* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #f8f9fa;
    --bg-light: #ffffff;
    --bg-section: #f1f3f4;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --accent-warm: #e74c3c;
    --accent-cool: #3498db;
    --accent-purple: #9b59b6;
    --code-bg: #f4f4f4;
    --border-subtle: #e1e8ed;
    --shadow-soft: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-dark);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: var(--accent-cool);
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

.logo::before {
    content: '> ';
    color: var(--accent-warm);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-cool);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cool);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 120px 0 80px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
}


.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.cta-button {
    background: transparent;
    color: var(--accent-cool);
    border: 2px solid var(--accent-cool);
    padding: 12px 24px;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-cool);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: white;
}

.cta-button:hover::before {
    left: 0;
}

/* Sections */
section {
    padding: 80px 0;
}

.about {
    background: var(--bg-section);
    border-top: 1px solid var(--border-subtle);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-photo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.photo-placeholder {
    width: 200px;
    height: 250px;
    background: var(--code-bg);
    border: 2px dashed var(--border-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    border-color: var(--accent-cool);
    background: rgba(52, 152, 219, 0.05);
}

.profile-photo {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    border-color: var(--accent-cool);
    box-shadow: 0 8px 25px var(--shadow-soft);
}

.about h2, .experience h2, .quotes h2, .contact h2 {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 400;
    position: relative;
    padding-left: 1.5rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about p {
    text-align: left;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 0 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding-left: 1.5rem;
}

.skill-tag {
    background: var(--code-bg);
    color: var(--accent-purple);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--accent-purple);
    color: white;
    transform: translateY(-1px);
}

.hobby-tag {
    background: var(--code-bg);
    color: #c53030;
    border: 1px solid #fed7d7;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.hobby-tag:hover {
    background: #c53030;
    color: white;
    transform: translateY(-1px);
}

/* Quotes Section */
.quotes {
    background: var(--bg-light);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0;
}

.quote-display {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-content {
    background: var(--code-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quote-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-soft);
    border-color: var(--accent-cool);
}

.quote-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0;
    font-style: italic;
    position: relative;
    transition: opacity 0.3s ease;
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    font-size: 2.5rem;
    color: var(--accent-cool);
    opacity: 0.3;
}

.quote-text::after {
    content: '"';
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    font-size: 2.5rem;
    color: var(--accent-cool);
    opacity: 0.3;
}

.quote-author {
    color: var(--accent-warm);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Experience */
.experience {
    border-top: 1px solid var(--border-subtle);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-left: 1.5rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-left: 1.5rem;
}

.project-card, .experience-card {
    background: var(--code-bg);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.project-card::before, .experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cool), var(--accent-purple));
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before, .experience-card:hover::before {
    opacity: 1;
}

.project-card:hover, .experience-card:hover {
    transform: translateX(8px);
    background: white;
    box-shadow: 0 8px 25px var(--shadow-soft);
}

.project-card h3, .experience-card h3 {
    color: var(--accent-cool);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.project-card p, .experience-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact */
.contact {
    background: var(--bg-section);
    border-top: 1px solid var(--border-subtle);
}

.contact h2 {
    color: var(--text-primary);
}

.contact > .container > p {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.contact-info {
    text-align: left;
    padding-left: 1.5rem;
}

.contact-info p {
    margin: 1rem 0;
    font-family: inherit;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--accent-warm);
    flex-shrink: 0;
}

/* Footer */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}


/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 1.5rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 1.2rem 1.5rem;
    }
    
    .project-grid, .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-photo {
        order: -1;
    }
    
    .photo-placeholder {
        width: 150px;
        height: 180px;
        margin: 0 auto;
    }
    
    .profile-photo {
        width: 150px;
        height: 180px;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: left;
    }
    
    .about h2, .experience h2, .contact h2 {
        font-size: 1.7rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .about-text h2 {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .about h2, .experience h2, .contact h2,
    .about p, .tags, .project-grid, .experience-grid, .contact-info,
    .contact > .container > p {
        padding-left: 0;
    }
    
    .tags {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .project-grid, .experience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info {
        text-align: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    body {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-content h2 {
        font-size: 1.7rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .about h2, .experience h2, .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .about p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .tags {
        gap: 0.6rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .hobby-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .project-card, .experience-card {
        padding: 1.2rem;
    }
    
    .project-card h3, .experience-card h3 {
        font-size: 1.1rem;
    }
    
    .project-card p, .experience-card p {
        font-size: 0.9rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        margin: 0.8rem 0;
        word-break: break-all;
    }
    
    .photo-placeholder, .profile-photo {
        width: 120px;
        height: 150px;
    }
}

/* Ultra-small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0.8rem 0.5rem;
    }
    
    .tags {
        gap: 0.4rem;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .hobby-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cool);
}