/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #0a0f1c;
    --bg-secondary: #111827;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #f3cf55;
    --gradient-primary: linear-gradient(135deg, #d4af37 0%, #a67c00 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100%;
    overflow-x: hidden;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section,
.hero {
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    top: -100%;
    left: -100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.logo img {
    height: 60px;
    /* Adjust according to navbar height */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.nav-link:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .eyebrow {
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
    border: none;
    width: 100%;
    max-width: none;
    width: 100%;
    height: auto;
    margin: 0 auto;
    /* Soft fade on all edges */
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.1);
    /* Zoom slightly to cut off any white borders */
    transition: var(--transition);
}

.hero-shape {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.5;
    transition: var(--transition);
}

.hero-image-container:hover+.hero-shape,
.hero-image-container:hover .hero-shape {
    transform: translate(10px, 10px);
}

/* About Section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

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

.about-text .lead {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience Section */
.logo-marquee-container {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 4rem;
    position: relative;
    padding: 2rem 0;
    background: linear-gradient(to right, var(--bg-color), transparent 20%, transparent 80%, var(--bg-color));
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scroll 40s linear infinite;
    min-width: 100%;
    align-items: center;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.7;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content span:hover {
    color: #fff;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.3;
    z-index: 0;
}

/* Timeline Item Container */
.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    width: 50%;
    padding: 0 3rem;
}

/* Base Date Style (reset from previous) */
.timeline-item .date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Connector Line Style */
.timeline-item .date::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.6;
}

/* Odd Items: Content on Left, Date on Right */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(odd) .date {
    left: 110%;
    /* Move to right side of center axis */
    text-align: left;
}

.timeline-item:nth-child(odd) .date::after {
    left: -40px;
    /* Connect back to center */
}

/* Even Items: Content on Right, Date on Left */
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item:nth-child(even) .date {
    right: 110%;
    /* Move to left side of center axis */
    text-align: right;
}

.timeline-item:nth-child(even) .date::after {
    right: -40px;
    /* Connect back to center */
}

/* Timeline Content Box */
.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Remove old date styling inside content if any remains */
.timeline-content .date {
    display: none;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    margin-top: 0;
}

.timeline-content .company {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.9;
}

.timeline-content p:not(.company) {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 0;
}

.timeline-content:hover p:not(.company) {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

/* Contact Section */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent-color);
}

.contact-card span {
    font-weight: 500;
    color: #fff;
}

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

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
    }

    .hero-actions {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    /* Mobile Timeline Layout */
    .timeline-item .date {
        position: static;
        width: 100%;
        transform: none;
        text-align: left;
        margin-bottom: 0.5rem;
        display: block;
    }

    .timeline-item .date::after {
        display: none;
        /* Hide connector on mobile */
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }

    /* Reset left/right offset for mobile */
    .timeline-item:nth-child(odd) .date,
    .timeline-item:nth-child(even) .date {
        left: auto;
        right: auto;
        text-align: left;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Hide nav for now on mobile for simplicity */

    .cursor-glow {
        display: none;
    }
}