:root {
    /* Colors */
    --bg-primary: #0B0B0B;
    --bg-secondary: #111111;
    --text-white: #FFFFFF;
    --text-gray: #888888;
    --accent-green: #7AF298;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 120px 0;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 40px;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-white);
    text-transform: uppercase;
}

.menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-btn {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 14px;
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    animation: menuBtnFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(8px);
    gap: 8px;
}

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

.menu-btn:hover {
    background: #efefef;
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.menu-btn.active {
    border-radius: 14px;
    background: #fff;
    border-color: #d8d8d8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #888;
}

.menu-btn.active .btn-arrow {
    transform: rotate(180deg);
}

.btn-arrow svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dropdown Menu */
.menu-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 6px;
    transform: scaleY(0.88) translateY(-6px);
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.2s ease;
    z-index: 999;
}

.menu-dropdown.active {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 400;
    color: #2a2a2a;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
    position: relative;
    overflow: hidden;
}

.menu-link:hover {
    background: #f3f3f3;
    color: #000;
    padding-left: 16px;
}

.menu-link .link-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-size: 12px;
    color: #aaa;
    margin-left: 8px;
}

.menu-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* staggered fade-in for items */
.menu-dropdown.active .menu-link:nth-child(1) { animation: fadeUp 0.22s ease 0.03s both; }
.menu-dropdown.active .menu-link:nth-child(2) { animation: fadeUp 0.22s ease 0.07s both; }
.menu-dropdown.active .menu-link:nth-child(3) { animation: fadeUp 0.22s ease 0.11s both; }
.menu-dropdown.active .menu-link:nth-child(4) { animation: fadeUp 0.22s ease 0.15s both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
    transition: clip-path 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease-out;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.menu-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 120px 60px 80px 60px;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-link {
    font-size: 6vw;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    transition: color 0.15s ease, transform 0.2s ease;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

.menu-overlay.active .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-link:nth-child(1) { animation-delay: 0ms; }
.nav-link:nth-child(2) { animation-delay: 80ms; }
.nav-link:nth-child(3) { animation-delay: 160ms; }
.nav-link:nth-child(4) { animation-delay: 240ms; }
.nav-link:nth-child(5) { animation-delay: 320ms; }
.nav-link:nth-child(6) { animation-delay: 400ms; }
.nav-link:nth-child(7) { animation-delay: 480ms; }

.menu-overlay.active .nav-link {
    animation: navLinkSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navLinkSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link:hover {
    color: #00ff7f;
    transform: translateX(10px);
}

.nav-link.active {
    color: #00ff7f;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff7f;
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 40px;
}

.menu-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-socials {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.menu-socials a {
    color: #FFFFFF;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.menu-socials a:hover {
    color: #00ff7f;
}

.menu-contact {
    color: #888888;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 768px) {
    .menu-wrapper {
        padding: 100px 40px 60px 40px;
    }
    
    .nav-link {
        font-size: 8vw;
    }
    
    .menu-socials {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 45% at 50% 55%, rgba(0, 90, 75, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 50%, rgba(50, 180, 140, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 55% 50% at 50% 60%, rgba(0, 60, 50, 0.4) 0%, transparent 65%),
        var(--bg-primary);
}

/* Left Side - Intro & Name */
.hero-content {
    position: absolute;
    top: 140px;
    left: 140px;
    z-index: 10;
    max-width: 600px;
}

.hero-intro {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Green Dot Indicator */
.green-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(122, 242, 152, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(122, 242, 152, 0.6);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 15px rgba(122, 242, 152, 0.9);
    }
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(50px, 9vw, 120px);
    font-weight: 700;
    color: var(--accent-green);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.hero-resume-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.resume-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid rgba(122, 242, 152, 0.32);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.resume-action-btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.resume-action-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.view-btn {
    background: var(--accent-green);
    color: #0b0b0b;
    box-shadow: 0 6px 18px rgba(122, 242, 152, 0.2);
}

.view-btn:hover {
    background: #94f8ad;
    box-shadow: 0 10px 24px rgba(122, 242, 152, 0.32);
}

.download-btn {
    background: rgba(122, 242, 152, 0.08);
    color: var(--accent-green);
}

.download-btn:hover {
    background: rgba(122, 242, 152, 0.16);
    border-color: rgba(122, 242, 152, 0.55);
    box-shadow: 0 10px 24px rgba(122, 242, 152, 0.2);
}

/* Center - Portrait with Glow */
.hero-portrait {
    position: absolute;
    bottom: 0;
    left: 40%;
    transform: translateX(-50%);
    width: 480px;
    height: 580px;
    max-width: 50vw;
    z-index: 5;
    pointer-events: none;
}

.portrait-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(ellipse at center,
            rgba(122, 242, 152, 0.4) 0%,
            rgba(122, 242, 152, 0.2) 25%,
            rgba(122, 242, 152, 0.08) 45%,
            rgba(0, 0, 0, 0) 65%);
    filter: blur(50px);
    z-index: -1;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    mask-image: linear-gradient(to bottom, black 55%, transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 92%);
    border-radius: 4px;
}

/* Right Side - Scroll & Description */
.hero-sidebar {
    position: absolute;
    right: 160px;
    bottom: 180px;
    width: 320px;
    z-index: 10;
}

.scroll-indicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.scroll-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-white);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: scrollTextFade 2s ease-in-out infinite;
}

@keyframes scrollTextFade {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--text-white) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

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



.hero-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-white);
    opacity: 0.8;
    text-align: left;
    font-weight: 400;
}

/* Bottom Left - Contact */
.hero-contact {
    position: absolute;
    bottom: 40px;
    left: 140px;
    z-index: 10;
}

.contact-row {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 8px;
    opacity: 0.9;
}

.contact-label {
    color: var(--accent-green);
    font-weight: 700;
    margin-right: 10px;
    font-size: 13px;
}

/* Bottom Right - Socials */
.hero-socials {
    position: absolute;
    bottom: 40px;
    right: 160px;
    display: flex;
    gap: 24px;
    z-index: 10;
}

.hero-socials a {
    font-size: 13px;
    color: var(--text-white);
    opacity: 0.75;
    transition: all 0.25s ease;
    font-weight: 500;
}

.hero-socials a:hover {
    color: var(--accent-green);
    opacity: 1;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* NEW: Fade-In-Up for Page Load */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Hero Overrides for fade-in-up */

/* Hero Content Wrapper: Ensure it's visible so children can animate independently */
.hero-content.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

.hero-content.fade-in-up .hero-intro {
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    /* Delay 0.1s */
}

.hero-content.fade-in-up.visible .hero-intro {
    opacity: 1;
}

.hero-content.fade-in-up .hero-name {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-content.fade-in-up.visible .hero-name {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Portrait Override */
.hero-portrait.fade-in-up {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-portrait.fade-in-up.visible {
    opacity: 1;
    transform: scale(1);
}


/* =========================================
   WORKS SECTION (Projects)
   ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

/* Subpage Hero Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    position: relative;
    /* group hover behavior handled in .project-card:hover .card-image */
}

.card-image {
    height: 300px;
    background-color: #222;
    border-radius: 16px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.25s ease-out;
    /* Added box-shadow transition */
}

.project-card:hover .card-image {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(110, 243, 165, 0.15);
    /* Glow opacity increase */
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
}

.card-content p {
    color: var(--text-gray);
    font-size: 14px;
}

.tags {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.tags span {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-gray);
}

.project-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link:hover {
    transform: translateX(4px);
    color: #fff;
}

/* =========================================
   SERVICES / ABOUT SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.service-item {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-white);
}

.service-item p {
    color: var(--text-gray);
    font-size: 14px;
}

/* =========================================
   PAGE HEADER (Subpages)
   ========================================= */
.page-header {
    margin-top: 80px;
    margin-bottom: 60px;
}

.page-header .hero-title {
    margin-bottom: 24px;
}

.page-description {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    line-height: 1.7;
}

/* =========================================
   BLOG STYLES - Card Layout
   ========================================= */

/* Blog Page Layout */
.blog-page {
    padding-top: 140px;
}

.blog-page-header {
    margin-bottom: 40px;
}

.blog-breadcrumb {
    display: block;
    color: var(--accent-green);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.blog-main-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Blog Cards Grid */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

/* Individual Blog Card */
.blog-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-card-link {
    text-decoration: none;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Blog Card Meta (Tag + Date) */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-tag {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-date {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 400;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent-green);
}

/* View More Button Section */
.blog-view-more {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px;
}

.view-more-btn {
    display: inline-block;
    background: var(--accent-green);
    color: #000;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(122, 242, 152, 0.3);
}

/* Blog Page Code Line Separator Override */
.blog-page .code-line-separator {
    margin: 40px 0 20px;
}

/* Responsive Blog Cards */
@media (max-width: 1024px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding-top: 120px;
    }

    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-main-title {
        font-size: 36px;
    }
}

/* Legacy Blog List Styles (kept for compatibility) */
.blog-list {
    margin-top: 40px;
}

.blog-item {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-item:hover {
    border-bottom-color: var(--accent-green);
    transform: translateX(8px);
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-header {
    margin-bottom: 12px;
}

.blog-date {
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 24px;
    color: var(--text-white);
    margin: 0;
}

.blog-excerpt {
    color: var(--text-gray);
    font-size: 15px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer-section {
    border-top: 1px solid var(--border-color);
    background: #090909;
    margin-top: 80px;
}

.footer-bottom {
    color: var(--text-gray);
    font-size: 13px;
    text-align: center;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    width: 100%;
    max-width: 1100px;
    position: relative;
}

.section-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #4fffb0;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-tag::before {
    content: '//';
    font-family: monospace;
    color: #4fffb0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-left h2 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.contact-left h2 .highlight {
    color: #4fffb0;
}

.contact-left p {
    font-size: 15px;
    color: #888;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 40px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 255, 176, 0.08);
    border: 1px solid rgba(79, 255, 176, 0.2);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    color: #4fffb0;
    font-weight: 500;
    margin-bottom: 36px;
}

.dot {
    width: 7px;
    height: 7px;
    background: #4fffb0;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 255, 176, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(79, 255, 176, 0); }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #4fffb0;
}

.contact-info a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-link:hover {
    border-color: #4fffb0;
    color: #4fffb0;
    background: rgba(79, 255, 176, 0.06);
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.contact-form {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.field input,
.field textarea {
    background: #141414;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: none;
    width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #444;
}

.field input:focus,
.field textarea:focus {
    border-color: #4fffb0;
    box-shadow: 0 0 0 3px rgba(79, 255, 176, 0.08);
}

.field textarea {
    height: 120px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #4fffb0;
    color: #000;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0.01em;
    margin-top: 4px;
}

.submit-btn:hover {
    background: #3de8a0;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79, 255, 176, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 16px;
    height: 16px;
    stroke: #000;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.submit-btn:hover svg {
    transform: translateX(3px);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f0f0f;
    border: 1px solid #4fffb0;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4fffb0;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    pointer-events: none;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .header {
        padding: 20px 30px;
    }

    .hero-name {
        font-size: 10vw;
    }

    .hero-sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px;
    }

    .hero-content {
        top: 120px;
        left: 20px;
        right: 20px;
    }

    .hero-name {
        font-size: 14vw;
    }

    .hero-resume-actions {
        margin-top: 20px;
        gap: 10px;
    }

    .resume-action-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-portrait {
        width: 320px;
        height: 400px;
    }

    .hero-sidebar {
        display: none;
    }

    .hero-contact {
        left: 20px;
        bottom: 20px;
    }

    .hero-socials {
        display: none;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.section-label {
    color: var(--accent-green);
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 40px;
    display: block;
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
}

/* Skills List (Left) */
.skills-list {
    display: flex;
    flex-direction: column;
}

.skill-category {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.skill-category:first-child {
    padding-top: 0;
}

.skill-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-cat-header h4 {
    font-size: 16px;
    color: var(--text-white);
    font-weight: 600;
}

.code-icon {
    font-family: monospace;
    color: var(--text-gray);
    font-size: 12px;
    opacity: 0.5;
}

.skill-items {
    color: var(--text-gray);
    font-size: 14px;
    word-spacing: 12px;
    /* Space out items like in design */
}

/* Description & Resume (Right) */
.skills-description p {
    color: var(--text-white);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.resume-btn {
    display: inline-block;
    background-color: var(--accent-green);
    color: #000000;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-btn:hover {
    transform: scale(1.05);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 120px;
    border-top: 1px solid transparent;
    /* Optical spacer if needed */
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.stat-label {
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 500;
}

/* Decorative Footer Line */
.code-line-separator {
    display: flex;
    align-items: center;
    color: var(--accent-green);
    font-family: monospace;
    font-size: 14px;
    opacity: 0.8;
    position: relative;
}

.cl-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
    margin: 0 16px;
    position: relative;
    overflow: visible;
}

/* Animated Arrow/Dot that travels along the line */
.cl-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green), 0 0 20px var(--accent-green);
    opacity: 0;
}

/* Animation triggers when parent gets 'animate' class */
.code-line-separator.animate .cl-line::after {
    animation: arrowTravel 1.5s ease-out forwards;
}

@keyframes arrowTravel {
    0% {
        left: 0;
        opacity: 1;
    }

    100% {
        left: calc(100% - 8px);
        opacity: 1;
    }
}

/* Responsive Skills */
@media (max-width: 768px) {
    .skills-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-number {
        font-size: 48px;
    }
}

/* =========================================
   WORK SECTION (Updated Design)
   ========================================= */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.work-label {
    color: var(--accent-green);
    font-family: var(--font-body);
    font-size: 14px;
    margin-top: 8px;
    /* Align with top of H2 visually */
}

.work-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.1;
    text-align: right;
    max-width: 600px;
}

/* Update Card Styles to match "Explore Work" design */
.project-card .card-content h3 {
    font-size: 20px;
    /* Reference looks slightly smaller/cleaner */
    margin-top: 20px;
    margin-bottom: 8px;
}

.project-card .card-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
}

.tags span {
    background: #1A1A1A;
    /* Darker pill background from image */
    color: #999;
    /* Muted text */
    font-size: 11px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* =========================================
   STAGGERED SCROLL ANIMATIONS
   ========================================= */

/* 
   Logic: When the PARENT container (e.g., .projects-grid.fade-up) becomes .visible,
   we trigger animations on the children. To do this effectively without JS for every child,
   we use nth-child delays.
*/

/* Initial state for children of fade-up containers */
.fade-up .project-card,
.fade-up .skill-category,
.fade-up .stat-item,
.fade-up .service-item,
.fade-up .process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trigger state when parent is visible */
.fade-up.visible .project-card,
.fade-up.visible .skill-category,
.fade-up.visible .stat-item,
.fade-up.visible .service-item,
.fade-up.visible .process-step {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.fade-up.visible .project-card:nth-child(1),
.fade-up.visible .skill-category:nth-child(1),
.fade-up.visible .stat-item:nth-child(1),
.fade-up.visible .service-item:nth-child(1),
.fade-up.visible .process-step:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-up.visible .project-card:nth-child(2),
.fade-up.visible .skill-category:nth-child(2),
.fade-up.visible .stat-item:nth-child(2),
.fade-up.visible .service-item:nth-child(2),
.fade-up.visible .process-step:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-up.visible .project-card:nth-child(3),
.fade-up.visible .skill-category:nth-child(3),
.fade-up.visible .stat-item:nth-child(3),
.fade-up.visible .service-item:nth-child(3),
.fade-up.visible .process-step:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-up.visible .project-card:nth-child(4),
.fade-up.visible .stat-item:nth-child(4),
.fade-up.visible .service-item:nth-child(4),
.fade-up.visible .process-step:nth-child(4) {
    transition-delay: 0.4s;
}

/* Ensure the parent itself doesn't hide the overflow or delay strangely */
.projects-grid.fade-up,
.skills-list.fade-up,
.stats-row.fade-up,
.process-grid.fade-up {
    /* The parent's own fade-up moves the whole block, 
       but we want the children to move *relative* to that or independently.
       Actually, if the parent fades up, everything moves together.
       To get the "cascading" look, we should arguably DISABLE the parent's transform/opacity
       and ONLY animate the children, OR just let them compound.
       Let's disable the parent's generic fade-up properties if it has these children,
       leaving only the triggers. */
    opacity: 1;
    transform: none;
    transition: none;
}

.tags span:hover {
    border-color: var(--accent-green);
    color: var(--text-white);
}

/* Responsive Work Section */
@media (max-width: 768px) {
    .work-header {
        flex-direction: column;
        gap: 20px;
    }

    .work-title {
        text-align: left;
        font-size: 36px;
    }
}

/* =========================================
   PROCESS SECTION
   ========================================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-left: 1px solid var(--border-color);
    padding-left: 30px;
    margin-left: -1px;
    transition: all 0.3s ease;
}

.process-step:first-child {
    border-left: none;
    padding-left: 0;
}

.process-number {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 24px;
    display: block;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
}

.process-step p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Responsive Process Section */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .process-step {
        border-left: none;
        padding-left: 0;
        padding-right: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 40px;
    }

    .process-step:first-child {
        border-top: none;
        padding-top: 0;
    }
}

/* =========================================
   ADVANCED FOOTER
   ========================================= */
.advanced-footer {
    position: relative;
    background: #000;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 40px;
    margin-top: 80px;
}

.footer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(122, 242, 152, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* CTA Section */
.footer-cta {
    position: relative;
    /* Above glow */
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    text-transform: uppercase;
}

.cta-button {
    width: 160px;
    height: 160px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(122, 242, 152, 0.3);
}

.cta-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 50px rgba(122, 242, 152, 0.5);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: var(--accent-green);
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 24px;
    text-transform: capitalize;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links li a {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--accent-green);
}

/* Bottom Info */
.footer-bottom-info {
    position: relative;
    z-index: 1;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.footer-email {
    font-size: 18px;
    color: var(--text-white);
    font-weight: 500;
}

.footer-phone {
    font-size: 16px;
    color: var(--text-gray);
}

.footer-legal {
    display: flex;
    justify-content: flex-end;
    /* Align to right as per image? Or spread? */
    /* Image shows 404, Privacy, Terms on right-ish, Made in Framer on far right? */
    /* Let's replicate the image: 404 PRIVACY TERM on left/center, Made in Framer on right. */
    /* Actually image shows: 404   PRIVACY POLICY   TERM & CONDITION         Made in Framer */
    gap: 40px;
    align-items: center;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}



/* Responsive Footer */
@media (max-width: 768px) {
    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .cta-button {
        width: 120px;
        height: 120px;
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }


}<!-- Update March 12 -->
