:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #17cf82;
    --secondary-text: #888888;
    --card-bg: rgba(20, 20, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Background & Shapes */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #004d40;
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 40%;
    left: 40%;
    opacity: 0.05;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: #ffffff;
    top: 20%;
    right: 20%;
    opacity: 0.05;
    filter: blur(40px);
}

.bottom-glow {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60vh;
    background: radial-gradient(ellipse at center, rgba(23, 207, 130, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    cursor: pointer;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.icon-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    /* Changed to min-height for scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.tag {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0s;
}

.hero-title {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 1rem 0;
    color: var(--text-color);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-description {
    color: var(--secondary-text);
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* Social Buttons */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

/* Entry Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    background: rgba(80, 235, 206, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(23, 207, 130, 0.3);
}

.social-btn i {
    width: 18px;
    height: 18px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--secondary-text);
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* General Section Styling */
.section {
    padding: 6rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(23, 207, 130, 0.3);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(23, 207, 130, 0.2);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    min-width: 140px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
    backdrop-filter: blur(5px);
}

.stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(23, 207, 130, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #fff;
    /* White text as seen in reference */
    margin: 0;
    font-weight: 500;
}

/* Responsive adjustment for stats */
@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        /* Stack on mobile */
        width: 100%;
    }

    .stat-card {
        width: 100%;
    }
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item h3 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.experience-item h4 {
    margin: 0 0 1rem 0;
    font-weight: 400;
    color: var(--accent-color);
}

.experience-item .year {
    font-size: 0.8rem;
    color: var(--secondary-text);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.experience-item p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin: 0;
}

/* Projects Scrolling Gallery */
.gallery-marquee {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 2rem 0;
    /* Fade Effect Mask */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.gallery-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: scroll-reverse 40s linear infinite;
}

/* Pause animation on hover */
.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    height: 280px;
    /* Fixed height for uniformity */
    width: auto;
    /* Allow width to adapt to image aspect ratio */
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.gallery-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(23, 207, 130, 0.2);
    transform: scale(1.02);
    z-index: 2;
}

.gallery-img {
    height: 100%;
    width: auto;
    /* Maintain aspect ratio */
    max-width: none;
    /* Prevent constraint */
    object-fit: contain;
    /* Ensure full visibility */
    display: block;
}

/* Infinite Scroll Animation (Left to Right) */
@keyframes scroll-reverse {
    0% {
        transform: translateX(calc(-50% - 1rem));
    }

    100% {
        transform: translateX(0);
    }
}

/* Contact Section */
.contact-container {
    text-align: center;
    max-width: 600px;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(80, 235, 206, 0.3);
}

.contact-socials {
    margin-top: 3rem;
}

.footer {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Scroll Animation Classes */
.hide-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .mobile-menu-btn {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    .shape-1 {
        width: 300px;
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .gallery-item {
        height: 180px;
        /* Smaller images on mobile */
    }
}