:root {
    --bg-color: #000;
    --text-color: #ffffff;
    --accent-color: #f5f5f5;
    --text-muted: #888888;
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-padding: 2rem;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom one */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--container-padding);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.menu-btn {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    color: #fff;
}

.menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    display: block;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(14, 14, 14, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
    transition: right 0.4s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    position: relative;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    width: 100%;
}

.menu-list li a {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: block;
}

.menu-list li a:hover {
    color: var(--text-muted);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.close-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    display: block;
    transition: all 0.3s ease;
}

.close-btn span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.close-btn span:nth-child(2) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */

.about-section {
        background: #000;
        min-height: 200vh;
        /* Provides scroll room */
        padding-top: 100px;
        margin-bottom: 250px;
        
    }
    
    .hexagon-content{
        text-align: center;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    .hexagon-content h5{
        font-size: var(--font-heading);
        letter-spacing: 5px;
        font-size: 1.5rem;
    }
    .hexagon-content p{
        font-size: var(--font-heading);
        letter-spacing: 2px;
        font-size: 1rem;
    }

    .reveal-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-title-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
        z-index: 2;
    }

    .title-left,
    .title-right {
        font-size: clamp(4rem, 10vw, 10rem);
        font-family: serif;
        color: #fff;
    }

    /* The Image Container */
    .expanding-image-container {
        width: 150px;
        /* Small initial width */
        height: 100px;
        /* Small initial height */
        /* overflow: hidden; */
        border-radius: 20px;
        position: relative;
        z-index: 1;
    }

    .reveal-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.2);
        /* Slight zoom for parallax */
    }

    /* About Content */
    .about-reveal-box {
        width: 100%;
        max-width: 800px;
        padding: 60px 20px;
        text-align: center;
        opacity: 0;
        transform: translateY(50px);
    }

    .about-header h2 {
        font-size: 4rem;
        letter-spacing: 2px;
        margin-bottom: 20px;
        font-family: var(--font-heading);
    }

    .featured-work-header h2 {
        font-size: 3rem;
        letter-spacing: 2px;
        margin-top: 50px;
        margin-bottom: 50px;
        font-family: var(--font-heading);
    }

    .about-text {
        font-size: 1.1rem;
        font-family: var(--font-heading);
        color: #ccc;
        line-height: 1.6;
        /* letter-spacing: 1px; */
    }

    /* Responsive for about page */
    @media (max-width: 600px) {
        .reveal-img{
            width: 90%;
            height: 90%;
            object-fit: cover;
            padding-top: 20px;
        }
        .hero-title-wrapper { gap: 12px; flex-direction: column; }
        .title-left, .title-right { font-size: clamp(28px, 10vw, 64px); }
        .expanding-image-container { width: 90vw; height: 40vh; border-radius: 12px; }
        .about-reveal-box { padding: 24px 16px; max-width: 95%; }
        .about-text { font-size: 1rem; }
        .about-section { padding-top: 60px; }
        .about-header h2{
            font-size: 2.5rem;
            letter-spacing: 2px;
            margin-bottom: 20px;
            font-family: var(--font-heading);
        }
    }

    @media (min-width: 601px) and (max-width: 1024px) {
        .title-left, .title-right { font-size: clamp(40px, 12vw, 96px); }
        .expanding-image-container { width: 60vw; height: 45vh; }
        .about-reveal-box { padding: 40px 24px; }
    }




/* portfolio */
.viewport {
    
            position: relative;
            width: 100%;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        .project-section {
            position: absolute;
            width: calc(100% - 80px);
            height: calc(100vh - 80px);
            border-radius: 40px;
            display: flex;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            top: 40px;
            left: 40px;
        }

        /* Unique Background Gradients */
        .p1 {
            background: radial-gradient(circle at 80% 20%, rgba(80, 80, 200, 0.2), #0a0a0a);
            z-index: 1;
        }

        .p2 {
            background: radial-gradient(circle at 80% 20%, rgba(51, 101, 248,100, 0.2), #0a0a0a);
            z-index: 2;
        }

        .p3 {
            background: radial-gradient(circle at 80% 20%, rgba(80, 200, 80, 0.2), #0a0a0a);
            z-index: 3;
        }

        .p4 {
            background: radial-gradient(circle at 80% 20%, rgba(200, 150, 50, 0.2), #0a0a0a);
            z-index: 4;
        }

        .left-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 8%;
        }

        .right-col {
            flex: 1.2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 5%;
            position: relative;
        }

        /* Project Circle Progress */
        .project-circle {
            position: relative;
            width: 110px;
            height: 110px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .progress-ring {
            position: absolute;
            transform: rotate(-90deg);
        }

        .circle-text {
            text-align: center;
            font-size: 0.7rem;
            color: #aaa;
        }

        .circle-text span {
            font-size: 1.8rem;
            font-weight: bold;
            display: block;
            color: #fff;
        }

        .left-col h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            text-transform: uppercase;
            line-height: 0.9;
        }

        .left-col p {
            color: #888;
            /* max-width: 350px; */
            line-height: 1.6;
            margin-bottom: 2rem;
            font-family: var(--font-heading);
            font-size: 1.1rem;
        }

        /* Project Stack Header (Website Type & Tech) */
        .stack-header {
            width: 80%;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 15px;
            margin-bottom: 30px;
        }

        .stack-header h3 {
            font-size: 0.9rem;
            letter-spacing: 2px;
            margin-bottom: 10px;
            color: #fff;
        }

        .stack-header .tags {
            font-size: 0.7rem;
            color: #777;
            letter-spacing: 1px;
        }

        /* Image Stack with Zoom Effect */
        .stack-wrapper {
            position: relative;
            width: 80%;
            height: 50%;
            perspective: 1000px;
        }

        .mini-card {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            overflow: hidden;
            background: #111;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
        }

        .mini-card img {
            width: 100%;
            height: 100%;
            /* object-fit: cover; */
        }
        .visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* background-color: #000; */
    color: #fff;
    /* padding: 12px 20px; */
    text-decoration: none;
    /* border-radius: 6px; */
    font-size: 16px;
    transition: 0.3s ease;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.visit-btn i {
    font-size: 14px;
}


        
        /* Responsive rules for demo page */
        @media (max-width: 600px) {
            .viewport { 
                display: none !important;
                 }
                 .featured-work-header h2 {
                    font-size: 2rem;
                    letter-spacing: 2px;
        
                    font-family: var(--font-heading);
                    }
                
            /* Keep project card overlay style but stack content vertically so only one card shows */
            .project-section {
                position: absolute;
                width: calc(100% - 24px);
                height: calc(100vh - 24px);
                left: 12px;
                top: 12px;
                border-radius: 16px;
                padding: 18px;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                overflow: hidden;
                box-shadow: 0 18px 40px rgba(0,0,0,0.6);
                border: 1px solid rgba(255,255,255,0.04);
                background: rgba(10,10,10,0.5);
                backdrop-filter: blur(14px);
            }
            .project-circle{
                width: 72px;
                height: 72px;
                margin-bottom: 0.6rem;
            }
            .circle-text{
                font-size: 0.6rem;
            }

            /* Left and right columns become full-width stacked blocks */
            .left-col, .right-col {
                width: 100%;
                padding: 0;
            }

            .left-col { order: 1; }
            .right-col { order: 2; }

            .left-col h1 { font-size: clamp(20px, 8vw, 34px); margin-bottom: 0.6rem; }
            .left-col p { max-width: 100%; font-size: 0.95rem; margin-bottom: 0.75rem; }

            /* Place visit button directly under description */
            .visit-btn { margin-top: 6px; margin-bottom: 12px; }

            /* Technologies header and tags full-width under the visit button */
            .stack-header { width: 100%; margin-top: 6px; border-bottom: none; padding-bottom: 0; }
            .stack-header h3 { font-size: 0.9rem; margin-bottom: 6px; }
            .stack-header .tags { display: block; font-size: 0.85rem; color: var(--text-muted); }

            /* Show images as a simple responsive row under technologies */
            .stack-wrapper { position: relative; width: 100%; height: auto; display: flex; gap: 12px; }
            .mini-card { position: relative; width: 48%; height: 140px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
            .mini-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

            .project-circle { width: 72px; height: 72px; margin-bottom: 0.6rem; }
            .progress-ring { width: 72px; height: 72px; }
        }

        @media (min-width: 601px) and (max-width: 1024px) {
            .viewport { 
                display: none;
                padding: 28px; 
            }
            .project-section { width: calc(100% - 56px); height: calc(100vh - 56px); border-radius: 28px; }
            .left-col h1 { font-size: clamp(32px, 8vw, 56px); }
            .stack-wrapper { height: 60%; }
        }

/* end of portfolio */

/* Work Section */
.work {
    padding: 10rem var(--container-padding);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    align-items: flex-end;
}

.section-header h2 {
    font-size: 4rem;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    padding: 3rem 1rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.project-name {
    font-family: var(--font-heading);
    font-size: 3rem;
}

.project-cat {
    text-transform: uppercase;
    color: var(--text-muted);
}

/* About Section */
.about {
    padding: 10rem var(--container-padding);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about p {
    font-family: var(--font-heading);
    font-size: 4vw;
    line-height: 1.2;
    max-width: 80%;
}

/* Footer */
footer {
    padding: 5rem var(--container-padding);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.email-link {
    font-family: var(--font-heading);
    font-size: 5vw;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--text-muted);
}

.footerlast {
    margin-top: 5rem;
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #646363;
}

/* Project Preview */
.project-preview {
    position: fixed;
    width: 300px;
    height: 400px;
    background-color: #333;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    /* Half width */
    margin-top: -200px;
    /* Half height */
}

/* Split Text for Animation */
.char {
    display: inline-block;
}

/* Responsive adjustments */
/* Hide custom cursor on touch devices and pointer-coarse devices */
@media (hover: none), (pointer: coarse) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    body {
        cursor: auto;
    }
}

/* Mobile (small phones) */
@media (max-width: 600px) {
    :root { --container-padding: 1rem; }

    nav {
        padding: 1rem;
    }

    .logo { font-size: 1rem; }
    .menu-btn { display: flex; }

    .hero { padding: 4rem 1rem; }
    .hero-text h1 { font-size: clamp(40px, 18vw, 84px); line-height: 0.95; }
    .hero-sub { margin-top: 1.5rem; font-size: 1rem; justify-content: flex-start; }

    .work { padding: 4rem 1rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .section-header h2 { font-size: 2rem; }

    .project-list { display: block; }
    .project-item { flex-direction: column; align-items: flex-start; padding: 1.25rem 0; }
    .project-name { font-size: clamp(20px, 7vw, 36px); }
    .project-cat { margin-top: 0.5rem; }

    .project-preview { display: none; }

    .about { padding: 4rem 1rem; }
    .about p { font-size: clamp(16px, 4.5vw, 20px); max-width: 100%; }

    footer { padding: 3rem 1rem; }
    .footer-content h2 { font-size: 1.4rem; }
    .email-link { font-size: clamp(16px, 5vw, 28px); }
}

/* Tablet (landscape phones / small tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
    nav { padding: 1.25rem 1.5rem; }
    .logo { font-size: 1.15rem; }
    .menu-btn { display: flex; }

    .hero { padding: 6rem 1.5rem; }
    .hero-text h1 { font-size: clamp(56px, 14vw, 110px); }
    .hero-sub { margin-top: 2rem; font-size: 1.1rem; }

    .work { padding: 6rem 1.5rem; }
    .section-header h2 { font-size: 3rem; }

    .project-item { padding: 2rem 0; }
    .project-name { font-size: clamp(28px, 6vw, 48px); }

    .project-preview { width: 220px; height: 300px; margin-left: -110px; margin-top: -150px; }

    .about { padding: 6rem 1.5rem; }
    .about p { font-size: clamp(18px, 3.5vw, 26px); }

    .menu-list li a { font-size: 1.8rem; }
}

/* Desktop (large screens) keep original but ensure max content width */
@media (min-width: 1025px) {
    .work, .about, footer { max-width: 1200px; margin-left: auto; margin-right: auto; }
}

/* Additional portfolio responsiveness overrides (show one card at a time on small screens) */
@media (max-width: 600px) {
    .viewport { 
        display: none;
        padding: 12px; height: 100vh; }
    .project-section {
        position: absolute !important;
        width: calc(100% - 24px) !important;
        height: calc(100vh - 24px) !important;
        left: 12px !important;
        top: 12px !important;
        border-radius: 14px !important;
        padding: 16px !important;
        display: flex !important;
        box-shadow: 0 18px 40px rgba(0,0,0,0.6);
        border: 1px solid rgba(255,255,255,0.04);
        background: rgba(10,10,10,0.45);
        backdrop-filter: blur(18px);
    }
    .left-col, .right-col {
        width: 100% !important;
        padding: 0 !important;
        flex: none !important;
    }
    .left-col { margin-bottom: 0.5rem; }
    .left-col h1 { font-size: clamp(20px, 7vw, 34px); }
    .left-col p { font-size: 0.95rem; max-width: 100%; }
    .stack-wrapper { width: 100%; height: 46%; }
    .mini-card { position: absolute; width: 100%; height: 100%; min-height: 140px; border-radius: 12px; }
    .mini-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .project-circle { width: 72px; height: 72px; margin-bottom: 1rem; }
    .progress-ring, .project-circle svg { width: 72px; height: 72px; }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .viewport { padding: 20px; height: 100vh; }
    .project-section {
        position: absolute !important;
        width: calc(100% - 40px) !important;
        height: calc(100vh - 40px) !important;
        left: 20px !important;
        top: 20px !important;
        border-radius: 22px !important;
        display: flex !important;
        padding: 20px !important;
        gap: 18px !important;
    }
    .left-col { flex: 0.95; padding: 0 4%; }
    .right-col { flex: 1.05; padding: 0 4%; }
    .left-col h1 { font-size: clamp(26px, 6.5vw, 48px); }
    .left-col p { font-size: 1rem; }
    .stack-wrapper { height: 320px; }
    .mini-card { border-radius: 18px; height: 100%; }
    .mini-card img { object-fit: cover; display: block; }
}

/* Ensure mini-card images behave on large screens too */
.mini-card img { object-fit: cover; display: block; }

/* social icons */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.social-icons img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  transition: 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.15);
  opacity: 0.8;
}

.mobile-portfolio{
    display: none;
}


/* Mobile Portfolio Cards - Hide Viewport and Show Stacked Cards */
@media (max-width: 768px) {
    .viewport {
        display: none;
    }
    .featured-work-header{
        padding: 10px;
        margin-bottom: 0;
    }
    
    /* Show mobile portfolio cards section */
    .mobile-portfolio {
        display: block;
        padding:  20px;
        background: #000;
        margin-top: -50px;
    }
    
    .mobile-portfolio-card {
        width: 100%;
        margin-bottom: 30px;
        padding: 24px;
        background: rgba(10, 10, 10, 0.8);
        border: 1px solid rgba(252, 247, 247, 0.847);
        border-radius: 20px;
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
    }
    
    .mobile-portfolio-card h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        text-transform: uppercase;
        line-height: 1;
        letter-spacing: 2px;
    }
    
    .mobile-portfolio-card p {
        color: #888;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    .mobile-portfolio-card .visit-btn {
        display: inline-block;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #fff;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        margin-bottom: 16px;
    }
    
    .mobile-portfolio-card .visit-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-portfolio-card .stack-header {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 16px;
        padding-bottom: 0;
        margin-bottom: 16px;
        border-bottom: none;
    }
    
    .mobile-portfolio-card .stack-wrapper {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        width: 100% !important;
        height: auto !important;
    }
    
    .mobile-portfolio-card .mini-card {
        position: relative !important;
        min-width: 80px;
        height: 100px;
        border-radius: 12px;
        overflow: hidden;
        display: block !important;
    }
    
    .mobile-portfolio-card .mini-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}

.viewmore{
    text-align: center;
    padding-bottom: 10px;
}


