/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #111111;
    --secondary-bg: #1a1a1a;
    --card-bg: #1f1f1f;
    --accent-gold: #c6a75e;
    --gold-light: #d4af37;
    --text-primary: #eaeaea;
    --text-muted: #bdbdbd;
    --border-gold: rgba(198, 167, 94, 0.2);
    --border-gold-hover: rgba(198, 167, 94, 0.4);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 20px; /* FIX: slightly slimmer navbar */
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

/* FIX: Logo sizing (SVG-safe) */
.nav-logo img {
    width: 44px;      /* ideal desktop size */
    height: 44px;
    display: block;
    max-height: 44px;  /* prevents tall SVGs */
    object-fit: contain;
}

.nav-text {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-gold);
}

.nav-link.active:after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background: radial-gradient(circle at 20% 50%, rgba(198, 167, 94, 0.08) 0%, transparent 50%),
                linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 167, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInHero 1s ease forwards;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.7;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    margin-top: 2rem;
    font-weight: 400;
    opacity: 0.9;
    color: var(--text-muted);
}

.hero-positioning {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-location {
    font-size: 1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #111111;
    box-shadow: 0 4px 15px rgba(198, 167, 94, 0.2);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 167, 94, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background-color: rgba(198, 167, 94, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 167, 94, 0.15);
}

/* Section Title */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent-gold);
    opacity: 0.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-gold);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.highlight-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--border-gold-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.highlight-card h3 {
    color: var(--accent-gold);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Platforms Section */
.platforms {
    padding: 100px 0;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-gold);
}

.platforms-content {
    max-width: 1000px;
}

.platforms-header {
    margin-bottom: 2rem;
}

.platforms-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.platforms-list {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-weight: 500;
    line-height: 1.7;
}

.platforms-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.platforms-subheading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    margin-top: 1.5rem;
}

.platforms-list-items {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.platforms-list-items li {
    color: var(--text-muted);
    padding-left: 1.8rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.platforms-list-items li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background-color: var(--primary-bg);
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold), transparent);
    opacity: 0.3;
}

.experience-item {
    background: var(--card-bg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-bg);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-color: var(--border-gold-hover);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.experience-item:hover::before {
    left: -52px;
    width: 20px;
    height: 20px;
    top: 2.3rem;
    box-shadow: 0 0 20px rgba(198, 167, 94, 0.3);
}

.experience-header {
    margin-bottom: 1.2rem;
}

.job-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.company {
    font-size: 1.05rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.contributions {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contributions li {
    color: var(--text-muted);
    padding-left: 1.8rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contributions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-gold);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--border-gold-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    color: var(--accent-gold);
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.8rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-gold);
    position: relative;
    padding-left: 1.8rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.skill-list li:hover {
    color: var(--accent-gold);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--primary-bg);
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--border-gold-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(198, 167, 94, 0.15);
    background: rgba(198, 167, 94, 0.02);
}

.contact-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.contact-card p {
    opacity: 0.95;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Education Section */
.education {
    padding: 100px 0;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-gold);
}

.education-content {
    max-width: 800px;
}

.education-item {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
}

.education-degree {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.education-school {
    font-size: 1.05rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Footer */
.footer {
    background-color: rgba(17, 17, 17, 0.8);
    color: var(--text-muted);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-gold);
}

.footer p {
    opacity: 0.7;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Scroll Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-positioning {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contributions {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    /* FIX: Responsive logo size */
    .nav-logo img {
        width:44px;
        max-height: 44px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .experience-timeline {
        padding-left: 40px;
    }

    .experience-item::before {
        left: -45px;
    }

    .experience-item:hover::before {
        left: -47px;
    }

    .platforms-list-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-positioning {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .experience-item,
    .highlight-card,
    .skill-category,
    .contact-card,
    .education-item {
        padding: 1.8rem;
    }

    .job-title {
        font-size: 1.1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .experience-timeline {
        padding-left: 35px;
    }

    .experience-item::before {
        left: -38px;
        width: 14px;
        height: 14px;
    }

    .experience-item:hover::before {
        left: -40px;
        width: 18px;
        height: 18px;
    }

    .platforms-list-items {
        grid-template-columns: 1fr;
    }
}