/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-card-hover: rgba(30, 30, 30, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-silver: #e2e8f0;
    --accent-glow: rgba(226, 232, 240, 0.15);
    --border-color: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s var(--ease-out);
    --transition-fast: 0.3s var(--ease-out);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Handled by JS for smoothness */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--space-xl) 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-lg);
    background: linear-gradient(180deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Custom Cursor & Loader
   ========================================================================== */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-silver);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 5px;
    background: linear-gradient(90deg, #333 0%, #fff 50%, #333 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */



.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
    max-width: 1280px;
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:not(.btn-outline):hover {
    color: var(--text-secondary);
}

.btn-outline {
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

.menu-btn {
    display: none;
    cursor: none;
    /* Let custom cursor handle it */
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite alternate;
}

@keyframes float {
    100% {
        transform: translate(-10%, 10%);
    }
}

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

.tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 50px;
}

.tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #111;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg-dark) 100%);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    max-width: 900px;
}

.about-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--font-heading);
    line-height: 1.4;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.2);
    /* For GSAP scrub effect */
}

/* ==========================================================================
   Skills & Tools Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.tool-card {
    height: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: var(--transition-slow);
    transform-style: preserve-3d;
}

.tool-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

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

.project-card.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.project-image {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1px var(--border-color);
    border-radius: 20px;
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
    filter: grayscale(30%);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.project-info h3 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin: 1rem 0 1.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.project-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-tags span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.view-project-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.3s;
}

.view-project-btn:hover::after {
    width: 100%;
}

.arrow {
    transition: transform 0.3s;
}

.view-project-btn:hover .arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   AI in Marketing Section
   ========================================================================== */
.ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #fff 0%, #718096 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.ai-visuals {
    position: relative;
    height: 400px;
}

.hologram-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.05);
}

.glow-lines {
    position: absolute;
    top: 0;
    left: 10%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.floating-element {
    position: absolute;
    padding: 0.8rem 1.5rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.el-1 {
    top: 10%;
    left: -10%;
    animation: floatObj 4s ease-in-out infinite alternate;
}

.el-2 {
    top: 40%;
    right: -20%;
    animation: floatObj 5s ease-in-out infinite alternate-reverse;
}

.el-3 {
    bottom: 10%;
    left: 20%;
    animation: floatObj 3s ease-in-out infinite alternate;
}

@keyframes floatObj {
    100% {
        transform: translateY(-15px);
    }
}

/* ==========================================================================
   Timeline / Experience Section
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* Animated via GSAP */
    background-color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.timeline-date {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.timeline-role {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timeline-org {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.certifications {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cert-tag {
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    transition: transform var(--transition-slow);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--text-secondary);
    transform: translateX(10px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--text-primary);
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -1.5rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.submit-btn {
    align-self: flex-start;
    cursor: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    position: relative;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    overflow: hidden;
}

.footer-bg-effect {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    filter: blur(20px);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsive / Mobile Styles
   ========================================================================== */
@media (max-width: 1024px) {

    .hero-container,
    .skills-grid,
    .ai-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card.reverse {
        grid-template-columns: 1fr;
    }

    .project-card.reverse .project-image {
        order: -1;
        /* Always image on top for mobile */
    }

    .hero-image-wrapper {
        height: 50vh;
        margin-top: 2rem;
    }

    .cursor,
    .cursor-follower {
        display: none;
        /* Disable custom cursor on touch devices */
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.5s var(--ease-out);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
        /* Above menu */
    }

    .menu-line {
        width: 30px;
        height: 2px;
        background-color: var(--text-primary);
        transition: transform 0.3s, opacity 0.3s;
    }

    /* Menu active state animation */
    .menu-btn.active .menu-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-btn.active .menu-line:nth-child(2) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

    .contact-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

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


@media screen and (max-width:576px) {
    .hero-image-placeholder {
        max-width: 25rem;
    }
}