    /**
    * Sedat Alagöz - Kişisel Web Sitesi
    * Modern Minimalist CSS
    */

    /* === CSS Variables === */
    :root {
        --primary-color: #000000;
        --secondary-color: #0a0a0a;
        --accent-color: #6366f1;
        --accent-hover: #4f46e5;
        --text-primary: #ffffff;
        --text-secondary: #a1a1aa;
        --text-muted: #71717a;
        --border-color: #27272a;
        --gradient-start: #6366f1;
        --gradient-end: #8b5cf6;
        --success-color: #22c55e;
        --error-color: #ef4444;

        --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        --font-display: 'Space Grotesk', var(--font-primary);

        --transition-fast: 0.15s ease;
        --transition-normal: 0.3s ease;
        --transition-slow: 0.5s ease;

        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
        --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    }

    body.lightbox-open {
        overflow: hidden;
    }

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

    html {
        scroll-behavior: smooth;
        font-size: 16px;
        background-color: var(--primary-color);
    }

    body {
        font-family: var(--font-primary);
        background-color: var(--primary-color);
        color: var(--text-primary);
        line-height: 1.6;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        position: relative;
        cursor: none;
        /* Hide default cursor */
    }

    /* === Ambient Particles Background === */
    #ambient-particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        pointer-events: none;
        opacity: 1;
    }

    /* Hide canvas on mobile/tablet for performance */
    @media (max-width: 1024px) {
        #ambient-particles {
            display: none;
        }
    }

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

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

    /* === Typography === */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--font-display);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    h1 {
        font-size: clamp(2.5rem, 6vw, 4.5rem);
    }

    h2 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    h3 {
        font-size: clamp(1.25rem, 2vw, 1.5rem);
    }

    p {
        color: var(--text-secondary);
        font-size: 1.125rem;
    }

    .text-gradient {
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* === Layout === */
    .container {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .section {
        padding: 6rem 0;
        position: relative;
        z-index: 1;
    }

    .section-header {
        text-align: center;
        margin-bottom: 4rem;
    }

    .section-header h2 {
        margin-bottom: 1rem;
    }

    .section-header p {
        max-width: 600px;
        margin: 0 auto;
    }

    /* === Navigation === */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem 0;
        background: transparent;
        border-bottom: 1px solid transparent;
        /* Transparan başlatıyoruz */
        transition: padding 0.3s ease, background-color 0.2s ease;
        will-change: background-color, padding;
    }

    .navbar.scrolled {
        background: rgba(10, 10, 10, 0.98);
        /* Daha opak bir siyah */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        /* Belirgin ama koyu bir çizgi */
        padding: 0.75rem 0;
    }

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

    .logo {
        font-family: var(--font-display);
        font-size: 1.75rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.2rem;
        position: relative;
        animation: logo-pulse 4s ease-in-out infinite;
    }

    .logo span {
        background: linear-gradient(135deg, var(--accent-color), #818cf8);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
    }

    /* Blinking Cursor Effect */
    .logo::after {
        content: '|';
        color: var(--accent-color);
        margin-left: 2px;
        font-weight: 300;
        animation: cursor-blink 1s infinite;
    }

    @keyframes logo-pulse {

        0%,
        100% {
            text-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
            transform: scale(1);
        }

        50% {
            text-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
            transform: scale(1.02);
        }
    }

    @keyframes cursor-blink {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }
    }

    .logo:hover {
        animation-play-state: paused;
        text-shadow: 0 0 30px var(--accent-color);
    }

    .footer-logo {
        font-family: var(--font-display);
        font-size: 2rem;
        font-weight: 800;
        color: white;
        margin-bottom: 1.5rem;
        display: inline-block;
        animation: logo-pulse 4s ease-in-out infinite;
    }

    .footer-logo span {
        color: var(--accent-color);
        background: linear-gradient(135deg, var(--accent-color), #818cf8);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

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

    .nav-links a {
        color: var(--text-secondary);
        font-size: 0.9375rem;
        font-weight: 500;
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: var(--transition-normal);
    }

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

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

    .nav-cta {
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        color: white !important;
        padding: 0.625rem 1.5rem;
        border-radius: 9999px;
        font-weight: 600;
    }

    .nav-cta:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
    }

    .nav-cta::after {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* === Neural Network Hero Section === */
    /* === Hero Section === */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        padding-top: 80px;
        background: #000;
    }

    .typewriter-cursor {
        display: inline-block;
        margin-left: 2px;
        animation: blink 1s step-end infinite;
        color: var(--accent-color);
        font-weight: 300;
    }

    @keyframes blink {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }
    }

    #neural-canvas-container {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100vw;
        height: 100vh;
        pointer-events: none;
        transform: rotate(180deg);
        /* Çevir! */
    }

    #neural-canvas-container canvas {
        width: 100% !important;
        height: 100% !important;
        display: block;
    }

    .hero-overlay-neural {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%),
            rgba(0, 0, 0, 0.2);
        pointer-events: none;
    }

    .hero-content {
        position: relative;
        z-index: 10;
        text-align: center;
        max-width: 1000px;
        margin: 0 auto;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        margin-bottom: 2rem;
        backdrop-filter: blur(10px);
    }

    .hero-badge .dot {
        width: 8px;
        height: 8px;
        background: #22c55e;
        border-radius: 50%;
        box-shadow: 0 0 10px #22c55e;
        animation: pulse-dot 2s infinite;
    }

    .hero-badge span:last-child {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-primary);
    }

    .hero h1 {
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.25rem;
        margin-bottom: 3rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
    }

    @keyframes pulse-glow {

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

        50% {
            transform: translate(-50%, -50%) scale(1.1);
            opacity: 0.8;
        }
    }

    .hero-content {
        position: relative;
        z-index: 1;
        text-align: center;
        max-width: 1000px;
        margin: 0 auto;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid var(--border-color);
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-bottom: 2rem;
    }

    .hero-badge .dot {
        width: 8px;
        height: 8px;
        background: var(--success-color);
        border-radius: 50%;
        animation: pulse-dot 2s ease-in-out infinite;
    }

    .hero-badge.busy .dot {
        background: var(--error-color);
    }

    @keyframes pulse-dot {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }

    .hero h1 {
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.25rem;
        color: var(--text-secondary);
        max-width: 600px;
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* === Buttons === */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 9999px;
        border: none;
        cursor: pointer;
        transition: var(--transition-normal);
        font-family: var(--font-primary);
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        color: white;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
    }

    .btn-secondary {
        background: transparent;
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }

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

    /* === Services Section === */
    /* === Services Section === */
    .services {
        background: #000;
        position: relative;
        overflow: hidden;
        /* Seamless transition logic */
        z-index: 2;
        /* Ensure it sits nicely */
    }

    /* Soft Gradient Blend from Hero to Services */
    .hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        /* Adjust height for smoothness */
        background: linear-gradient(to bottom, transparent, #000);
        z-index: 5;
        pointer-events: none;
    }

    #services-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
    }

    .services-bg-overlay {
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, transparent 0%, #000 90%);
        z-index: 1;
        pointer-events: none;
    }

    .services .container {
        position: relative;
        z-index: 2;
        padding-top: 0;
        /* Remove default padding if needed */
        margin-top: -80px;
        /* Pull header and cards up */
    }

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

    .service-card {
        --spread: 200;
        --outer: 1;
        --size: 250;
        --border: 1.5;
        --radius: 16;
        --backdrop: rgba(15, 15, 15, 0.4);

        background: var(--backdrop);
        border: 1px solid var(--border-color);
        border-radius: calc(var(--radius) * 1px);
        padding: 2.5rem 2rem;
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    /* Spotlight background - Only visible on hover */
    .service-card[data-glow]::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(calc(var(--size) * 1px) calc(var(--size) * 1px) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
                hsl(var(--hue, 220) 100% 70% / 0.1), transparent 100%);
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    /* Border glow effect */
    .service-card[data-glow]::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: calc(var(--radius) * 1px);
        padding: calc(var(--border) * 1px);
        background: radial-gradient(calc(var(--size) * 0.7px) calc(var(--size) * 0.7px) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
                hsl(var(--hue, 220) 100% 70% / 1), transparent 100%);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        -webkit-mask-composite: destination-out;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    /* External blur/glow under the card */
    .service-card [data-glow] {
        position: absolute;
        inset: 0;
        border-radius: calc(var(--radius) * 1px);
        filter: blur(25px);
        background: none;
        pointer-events: none;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .service-card [data-glow]::before {
        content: "";
        position: absolute;
        inset: -20px;
        background-image: radial-gradient(calc(var(--size) * 0.5px) calc(var(--size) * 0.5px) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
                hsl(var(--hue, 220) 100% 70% / 0.4), transparent 100%);
    }

    .service-card:hover {
        transform: translateY(-5px);
        border-color: hsla(var(--hue, 220), 100%, 70%, 0.2);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    }

    .service-card:hover[data-glow]::before,
    .service-card:hover[data-glow]::after,
    .service-card:hover [data-glow] {
        opacity: 1;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .service-card h3 {
        margin-bottom: 0.75rem;
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 0.9375rem;
        color: var(--text-secondary);
    }

    /* === About Section === */
    /* Seamless transition from Services */
    .services::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(to bottom, transparent, var(--primary-color));
        z-index: 5;
        pointer-events: none;
    }

    #hakkimda {
        position: relative;
        z-index: 6;
        padding-top: 4rem;
        /* Restore some padding */
    }

    #hakkimda .container {
        margin-top: -40px;
        /* Reduced overlap for less tightness */
        position: relative;
        z-index: 7;
    }

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

    .about-image {
        position: relative;
    }

    .about-image-wrapper {
        position: relative;
        border-radius: 1.5rem;
        overflow: hidden;
        aspect-ratio: 4/5;
    }

    .about-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Glitch Effect */
    @keyframes glitch-anim-1 {
        0% {
            clip-path: inset(20% 0 80% 0);
            transform: translate(-2px, 1px);
        }

        20% {
            clip-path: inset(60% 0 10% 0);
            transform: translate(2px, -1px);
        }

        40% {
            clip-path: inset(40% 0 50% 0);
            transform: translate(-2px, 2px);
        }

        60% {
            clip-path: inset(80% 0 5% 0);
            transform: translate(2px, -2px);
        }

        80% {
            clip-path: inset(10% 0 70% 0);
            transform: translate(-1px, 1px);
        }

        100% {
            clip-path: inset(30% 0 50% 0);
            transform: translate(1px, -1px);
        }
    }

    @keyframes glitch-anim-2 {
        0% {
            clip-path: inset(10% 0 60% 0);
            transform: translate(2px, -1px);
        }

        20% {
            clip-path: inset(80% 0 5% 0);
            transform: translate(-2px, 2px);
        }

        40% {
            clip-path: inset(30% 0 20% 0);
            transform: translate(2px, 1px);
        }

        60% {
            clip-path: inset(10% 0 80% 0);
            transform: translate(-1px, -2px);
        }

        80% {
            clip-path: inset(50% 0 30% 0);
            transform: translate(1px, 2px);
        }

        100% {
            clip-path: inset(20% 0 70% 0);
            transform: translate(-2px, 1px);
        }
    }

    .about-image-wrapper:hover::before,
    .about-image-wrapper:hover::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: inherit;
        background-image: inherit;
        /* Requires JS to copy image or CSS variable */
        /* Since we can't easily inherit the <img> content in CSS pseudo-elements without mask-image or similar tricks for general cases...
           Strategy: We will use the glitch on the container with multiple layers or simply shake the image and add chromatic aberration.
           Easier and cleaner pure CSS approach for an <img> tag: */
    }

    /* Better Pure CSS Glitch for IMG tag */
    .about-image-wrapper {
        position: relative;
    }

    .about-image-wrapper::before,
    .about-image-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary-color);
        mix-blend-mode: hard-light;
        opacity: 0;
        z-index: 2;
        pointer-events: none;
    }

    .about-image-wrapper:hover img {
        animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
        filter: contrast(1.1) brightness(1.1);
    }

    .about-image-wrapper:hover::before {
        opacity: 0.2;
        animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
        background: blue;
        mix-blend-mode: overlay;
    }

    .about-image-wrapper:hover::after {
        opacity: 0.2;
        animation: glitch-anim-2 2s infinite linear alternate-reverse;
        background: red;
        mix-blend-mode: overlay;
    }

    @keyframes glitch-skew {
        0% {
            transform: skew(0deg);
        }

        20% {
            transform: skew(-0.5deg);
        }

        40% {
            transform: skew(0.5deg);
        }

        60% {
            transform: skew(-0.2deg);
        }

        80% {
            transform: skew(0.2deg);
        }

        100% {
            transform: skew(0deg);
        }
    }

    .about-image-glow {
        position: absolute;
        inset: -20px;
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        border-radius: 2rem;
        opacity: 0.3;
        filter: blur(40px);
        z-index: -1;
    }

    .about-text h2 {
        margin-bottom: 1.5rem;
    }

    .about-text p {
        margin-bottom: 1rem;
    }

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

    .stat-item h4 {
        font-size: 2rem;
        color: var(--accent-color);
        margin-bottom: 0.25rem;
    }

    .stat-item p {
        font-size: 0.875rem;
        color: var(--text-muted);
    }

    /* === Portfolio Section === */
    .portfolio {
        background: var(--primary-color);
    }

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

    .hidden-item {
        display: none !important;
    }

    .portfolio-load-more {
        display: flex;
        justify-content: center;
        margin-top: 4rem;
    }

    .btn-outline {
        background: transparent;
        border: 2px solid var(--accent-color);
        color: white;
        padding: 1rem 2.5rem;
        border-radius: 3rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-outline:hover {
        background: var(--accent-color);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
        transform: translateY(-3px);
    }

    .portfolio-card {
        position: relative;
        border-radius: 1rem;
        overflow: hidden;
        aspect-ratio: 16/10;
        cursor: pointer;
        transform-style: preserve-3d;
        transform: perspective(1000px);
        will-change: transform;
        /* Fix for Safari/Chrome corner clipping issues during 3D transform */
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        mask-image: radial-gradient(white, black);
    }

    @media (max-width: 1024px) {
        .portfolio-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .portfolio-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .portfolio-card {
            border-radius: 0.75rem;
        }
    }

    .portfolio-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: scale(1.0);
    }

    .portfolio-overlay {
        position: absolute;
        inset: 0;
        background: rgba(5, 5, 5, 0.85);
        backdrop-filter: blur(8px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
        opacity: 0;
        transition: all 0.4s ease;
        /* create dedicated layer but avoid translateZ causing clipping issues */
        z-index: 10;
    }

    @media (hover: hover) {
        .portfolio-card:hover img {
            transform: scale(1.1);
        }

        .portfolio-card:hover .portfolio-overlay {
            opacity: 1;
        }
    }

    .portfolio-overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #fff;
        transform: translateY(20px);
        transition: transform 0.4s ease;
    }

    .portfolio-overlay p {
        font-size: 1rem;
        color: #e4e4e7;
        transform: translateY(20px);
        transition: transform 0.4s ease 0.1s;
    }

    .portfolio-overlay .category {
        display: inline-block;
        background: var(--accent-color);
        color: #fff;
        padding: 0.35rem 1rem;
        border-radius: 9999px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 1rem;
        width: fit-content;
        transform: translateY(20px);
        transition: transform 0.4s ease 0.2s;
        box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    }

    @media (hover: hover) {

        .portfolio-card:hover .portfolio-overlay h3,
        .portfolio-card:hover .portfolio-overlay p,
        .portfolio-card:hover .portfolio-overlay .category {
            transform: translateY(0);
        }
    }

    /* === Testimonials Marquee Section === */
    .testimonials-section {
        overflow: hidden;
        padding: 6rem 0 4rem;
    }

    .testimonials-marquee {
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        /* Mask sides for fade effect */
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    .marquee-row {
        display: flex;
        overflow: hidden;
        user-select: none;
        gap: 1.5rem;
        padding: 1rem 0;
        /* Prevent clipping on hover */
    }

    .marquee-content {
        flex-shrink: 0;
        display: flex;
        gap: 1.5rem;
        min-width: 100%;
        animation-duration: 40s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    .marquee-right .marquee-content {
        animation-name: scroll-right;
    }

    .marquee-left .marquee-content {
        animation-name: scroll-left;
    }

    /* Pause on hover */
    .marquee-row:hover .marquee-content {
        animation-play-state: paused;
    }

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

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

    @keyframes scroll-left {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }

    .testimonial-card-marquee {
        flex-shrink: 0;
        width: 450px;
        background: var(--secondary-color);
        border: 1px solid var(--border-color);
        border-radius: 1rem;
        padding: 2rem;
        position: relative;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .testimonial-card-marquee:hover {
        transform: translateY(-5px);
        border-color: var(--accent-color);
        z-index: 10;
    }

    .testimonial-card-marquee::before {
        content: '"';
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 4rem;
        color: var(--accent-color);
        opacity: 0.2;
        font-family: Georgia, serif;
        line-height: 1;
    }

    .testimonial-content {
        margin-bottom: 1.5rem;
    }

    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--text-secondary);
    }

    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .testimonial-author img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--border-color);
    }

    .testimonial-author h4 {
        font-size: 1rem;
        margin-bottom: 0.125rem;
        color: var(--text-primary);
    }

    .about-text p {
        margin-bottom: 1.5rem;
        color: var(--text-secondary);
    }



    .testimonial-author p {
        font-size: 0.875rem;
        color: var(--text-muted);
    }

    /* === FAQ Section === */
    .faq {
        background: var(--secondary-color);
    }

    .faq-list {
        max-width: 800px;
        margin: 0 auto;
    }

    .faq-item {
        border-bottom: 1px solid var(--border-color);
    }

    .faq-question {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 0;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.125rem;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        font-family: var(--font-primary);
    }

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

    .faq-icon {
        width: 24px;
        height: 24px;
        position: relative;
        flex-shrink: 0;
    }

    .faq-icon::before,
    .faq-icon::after {
        content: '';
        position: absolute;
        background: currentColor;
        transition: var(--transition-normal);
    }

    .faq-icon::before {
        width: 12px;
        height: 2px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .faq-icon::after {
        width: 2px;
        height: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .faq-item.faq-open .faq-icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
        opacity: 0;
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }

    .faq-item.faq-open .faq-answer {
        max-height: 500px;
    }

    .faq-answer p {
        padding-bottom: 1.5rem;
        font-size: 1rem;
    }

    /* === Packages Section === */
    .packages {
        background: var(--primary-color);
    }

    .packages-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        margin-top: 4rem;
    }

    .package-card {
        background: rgba(20, 20, 20, 0.8);
        /* Refined background without expensive blur for performance */
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 2rem;
        position: relative;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* backdrop-filter: blur(10px); Removed for performance as it causes lag during animation */
        will-change: transform;
    }

    .package-card:hover {
        transform: translateY(-12px);
        border-color: var(--accent-color);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
        background: rgba(25, 25, 25, 0.95);
    }

    .package-image {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
        background: #111;
        backface-visibility: hidden;
        /* GPU boost */
    }

    .browser-mockup {
        background: #1a1a1a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    .browser-header {
        height: 25px;
        background: #2a2a2a;
        display: flex;
        align-items: center;
        padding: 0 12px;
        position: relative;
        z-index: 10;
    }

    .browser-dots {
        display: flex;
        gap: 6px;
    }

    .browser-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
    }

    .browser-dots span:nth-child(1) {
        background: #ff5f56;
    }

    .browser-dots span:nth-child(2) {
        background: #ffbd2e;
    }

    .browser-dots span:nth-child(3) {
        background: #27c93f;
    }

    .mockup-content {
        width: 100%;
        height: calc(100% - 22px);
        overflow: hidden;
        position: relative;
        background: #000;
    }

    .mockup-content img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 8s cubic-bezier(0.45, 0.05, 0.55, 0.95);
        transform: translateZ(0);
        /* Force hardware acceleration */
        will-change: transform;
    }

    .package-card:hover .mockup-content img {
        transform: translateY(calc(-100% + 228px)) translateZ(0);
    }

    .package-image-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 60%, rgba(10, 10, 10, 0.4) 100%);
        pointer-events: none;
    }

    .package-badge {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--accent-color);
        color: #fff;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        z-index: 5;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }

    .package-icon {
        width: 70px;
        height: 70px;
        background: rgba(99, 102, 241, 0.1);
        border-radius: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-color);
        font-size: 1.75rem;
        margin: 2.5rem auto 1rem;
        border: 1px solid rgba(99, 102, 241, 0.2);
    }

    .package-info {
        padding: 2.5rem 2rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .package-image+.package-info {
        padding-top: 1.5rem;
    }

    .package-card h3 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
        text-align: center;
    }

    .package-subtitle {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .package-price {
        font-size: 2.8rem;
        font-family: var(--font-display);
        font-weight: 800;
        color: var(--text-primary);
        margin-bottom: 2.5rem;
        text-align: center;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 4px;
    }

    .package-features {
        list-style: none;
        width: 100%;
        margin-bottom: 2.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
    }

    .package-features li {
        color: var(--text-secondary);
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.85rem;
        line-height: 1.3;
    }

    .package-features li i {
        color: var(--accent-color);
        font-size: 0.85rem;
        background: rgba(99, 102, 241, 0.15);
        padding: 4px;
        border-radius: 50%;
    }

    .package-actions {
        display: flex;
        gap: 1rem;
        margin-top: auto;
    }

    .package-actions .btn {
        flex: 1;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        border-radius: 1rem;
    }

    .package-btn-demo {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }

    .package-btn-demo:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: white;
    }

    .package-btn-details,
    .package-btn-buy {
        background: var(--accent-color);
        color: white;
        box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
    }

    .package-btn-details:hover,
    .package-btn-buy:hover {
        box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
    }

    @media (max-width: 992px) {
        .packages-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

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

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

    .contact-info h2 {
        margin-bottom: 1rem;
    }

    .contact-info>p {
        margin-bottom: 2rem;
    }

    .contact-methods {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .contact-method {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .contact-method-icon {
        width: 48px;
        height: 48px;
        background: rgba(99, 102, 241, 0.1);
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-color);
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .contact-method h4 {
        font-size: 0.875rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    .contact-method p {
        font-size: 1rem;
        color: var(--text-primary);
    }

    .social-links {
        display: flex;
        gap: 0.75rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
        background: var(--secondary-color);
        border: 1px solid var(--border-color);
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        font-size: 1.125rem;
        transition: var(--transition-normal);
    }

    .social-links a:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        color: white;
        transform: translateY(-2px);
    }

    .contact-form {
        background: var(--secondary-color);
        border: 1px solid var(--border-color);
        border-radius: 1rem;
        padding: 2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.875rem 1rem;
        background: var(--primary-color);
        border: 1px solid var(--border-color);
        border-radius: 0.75rem;
        color: var(--text-primary);
        font-size: 1rem;
        font-family: var(--font-primary);
        transition: var(--transition-fast);
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--accent-color);
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

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

    /* === Marquee Tags Section === */
    .marquee-tags-section {
        padding: 0 0 1rem;
        transform: translateY(-8rem);
        /* Pull up even more */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: relative;
        z-index: 20;
        /* Ensure it is above other elements */
        pointer-events: none;
        margin-bottom: -6rem;
        /* Compensate gap */
    }

    .marquee-tags-section>* {
        pointer-events: auto;
        /* Re-enable pointer events for rows */
    }

    .marquee-tag-row {
        position: relative;
        width: 100%;
        overflow: hidden;
        /* Increase vertical padding to prevent hover cutoff */
        padding: 1rem 0;
        margin: -0.5rem 0;
        /* Tighten gap */
        /* Mask sides for fade effect */
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    /* We need a wrapper for masking now if we use overflow:visible */
    /* Alternatively, just add enough padding to the row container so the item doesn't hit the edge */

    .marquee-tag-track {
        display: flex;
        gap: 1.5rem;
        width: max-content;
        will-change: transform;
    }

    .marquee-scroll-left {
        animation: marquee-left 40s linear infinite;
    }

    .marquee-scroll-right {
        animation: marquee-right 40s linear infinite;
    }

    /* Pause on hover */
    .marquee-tags-section:hover .marquee-tag-track {
        animation-play-state: paused;
    }

    .marquee-tag-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.5rem;
        background: transparent;
        /* Transparent background */
        border: 1px solid rgba(255, 255, 255, 0.15);
        /* More visible border */
        backdrop-filter: blur(4px);
        /* Slight blur for readability */
        border-radius: 9999px;
        /* Capsule shape */
        color: var(--text-secondary);
        font-size: 0.9375rem;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.3s ease;
        user-select: none;
    }

    .marquee-tag-item i {
        color: var(--accent-color);
        font-size: 1rem;
    }

    .marquee-tag-item:hover {
        background: rgba(99, 102, 241, 0.1);
        border-color: var(--accent-color);
        color: var(--text-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    @keyframes marquee-left {
        from {
            transform: translateX(0);
        }

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

    @keyframes marquee-right {
        from {
            transform: translateX(-50%);
        }

        to {
            transform: translateX(0);
        }
    }

    /* === Features Showcase Section === */
    .features-showcase {
        background: #000;
        padding: 2rem 0 3rem;
        /* Reduced bottom padding to 3rem */
        position: relative;
        overflow: hidden;
    }

    #hakkimda {
        padding-bottom: 2rem;
    }

    .features-wrapper {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        /* Wider cards area */
        gap: 2rem;
        /* Tighter gap between text and cards */
        align-items: center;
    }

    .profile-header-meta {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .features-left .profile-single {
        position: relative;
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .profile-info h4 {
        color: #fff;
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        font-family: var(--font-display);
    }

    .profile-info p {
        color: var(--text-secondary);
        font-size: 0.95rem !important;
        margin-bottom: 0 !important;
    }

    .features-left .profile-single img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--accent-color);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    .features-left .status-indicator {
        position: absolute;
        bottom: 5px;
        right: 5px;
        width: 16px;
        height: 16px;
        background: var(--success-color);
        border-radius: 50%;
        border: 3px solid #000;
        animation: pulse-dot 2s infinite;
    }

    .features-left h2 {
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 2rem;
        font-family: var(--font-display);
        background: linear-gradient(to bottom, #fff, #a1a1aa);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .features-left p {
        color: var(--text-secondary);
        font-size: 1.15rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        max-width: 540px;
    }

    .stats-row {
        display: flex;
        gap: 4rem;
        margin-top: 4rem;
    }

    .stat-box h3 {
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
        font-family: var(--font-display);
        color: #fff;
    }

    .stat-box .stars {
        color: #fbbf24;
        margin-bottom: 0.75rem;
        display: flex;
        gap: 3px;
        font-size: 0.9rem;
    }

    .stat-box p {
        font-size: 0.95rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    /* Scrolling Container */
    .features-scrolling-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        /* Tight gap between columns */
        height: 600px;
        position: relative;
        padding: 0;
        /* Removed shrinking padding */
        /* Mask top and bottom */
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
        mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    }

    .scroll-column {
        height: 100%;
        overflow: visible;
        /* Allow scale to show */
        position: relative;
    }

    .scroll-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        /* Vertical gap matched */
        padding: 2rem 0.5rem;
        /* Minimal padding for hover */
    }

    .scroll-up .scroll-content {
        animation: scroll-v-up 30s linear infinite;
    }

    .scroll-down .scroll-content {
        animation: scroll-v-down 30s linear infinite;
    }

    /* Pause on hover */
    .features-scrolling-container:hover .scroll-content {
        animation-play-state: paused;
    }

    .feature-card {
        --size: 250;
        --border: 1;
        --radius: 32;
        --backdrop: rgba(15, 15, 15, 0.4);

        background: var(--backdrop);
        border: 1px solid var(--border-color);
        border-radius: calc(var(--radius) * 1px);
        padding: 2.5rem 2rem;
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        overflow: hidden;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 1;
    }

    /* Spotlight background - Only visible on hover */
    .feature-card[data-glow]::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(calc(var(--size) * 1px) calc(var(--size) * 1px) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
                hsl(var(--hue, 220) 100% 70% / 0.1), transparent 100%);
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    /* Border glow effect */
    .feature-card[data-glow]::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: calc(var(--radius) * 1px);
        padding: calc(var(--border) * 1px);
        background: radial-gradient(calc(var(--size) * 0.7px) calc(var(--size) * 0.7px) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
                hsl(var(--hue, 220) 100% 70% / 1), transparent 100%);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        -webkit-mask-composite: destination-out;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    /* External blur/glow under the card */
    .feature-card [data-glow] {
        position: absolute;
        inset: 0;
        border-radius: calc(var(--radius) * 1px);
        filter: blur(25px);
        background: radial-gradient(calc(var(--size) * 0.5px) calc(var(--size) * 0.5px) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
                hsl(var(--hue, 220) 100% 70% / 0.5), transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 0;
    }

    .feature-card:hover {
        transform: scale(1.05);
        border-color: transparent;
        z-index: 10;
        background: rgba(10, 10, 10, 0.8);
    }

    .feature-card:hover::before,
    .feature-card:hover::after,
    .feature-card:hover [data-glow] {
        opacity: 1;
    }

    .feature-icon {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        color: #fff;
        position: relative;
        z-index: 5;
    }

    .feature-card h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: #fff;
        font-weight: 600;
        position: relative;
        z-index: 5;
    }

    .feature-card p {
        font-size: 1rem;
        color: var(--text-secondary);
        line-height: 1.6;
        position: relative;
        z-index: 5;
    }

    @keyframes scroll-v-up {
        0% {
            transform: translateY(0);
        }

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

    @keyframes scroll-v-down {
        0% {
            transform: translateY(-50%);
        }

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

    @media (max-width: 1024px) {
        .features-wrapper {
            grid-template-columns: 1fr;
            gap: 4rem;
        }

        .features-left h2 {
            font-size: 2.8rem;
        }

        .features-scrolling-container {
            height: 500px;
        }
    }

    @media (max-width: 640px) {
        .features-left {
            text-align: center;
        }

        .features-scrolling-container {
            grid-template-columns: 1fr;
        }

        .features-left h2 {
            font-size: 2.2rem;
            /* Even smaller for mobile */
        }

        .profile-header-meta {
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .scroll-down {
            display: none;
            /* Hide second column on small mobile for space */
        }

        .stats-row {
            flex-direction: row;
            /* Force side by side on mobile */
            justify-content: center;
            gap: 2.5rem;
            margin-top: 2rem;
        }

        .stat-box .stars {
            justify-content: center;
        }

        .stat-box {
            flex: 1;
        }

        .stat-box h3 {
            font-size: 1.8rem;
            /* Smaller font for mobile */
        }

        .stat-box p {
            font-size: 0.8rem;
        }
    }


    /* === Portfolio Background Effects === */
    .portfolio {
        padding-top: 2rem !important;
        /* Reduced top gap */
        position: relative;
        overflow: hidden;
        /* Ensure container is above bg */
        z-index: 1;
    }

    .portfolio .container {
        position: relative;
        z-index: 2;
    }

    .portfolio-bg-effects {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
        opacity: 0.9;
        /* Made more prominent */
    }

    #portfolio-canvas {
        width: 100%;
        height: 100%;
        display: block;
    }


    /* === Footer === */
    .footer {
        background: var(--secondary-color);
        border-top: 1px solid var(--border-color);
        padding: 3rem 0;
    }

    .footer-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-logo {
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: 700;
    }

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

    .footer-links {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    .footer-links a {
        color: var(--text-secondary);
        font-size: 0.875rem;
    }

    .footer-links a:hover {
        color: var(--text-primary);
    }

    .footer-copyright {
        color: var(--text-muted);
        font-size: 0.875rem;
    }



    /* === Portfolyo Lightbox === */
    .lightbox {
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .lightbox.active {
        opacity: 1;
        visibility: visible;
    }

    .lightbox-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
    }

    .lightbox-content {
        position: relative;
        width: 90%;
        max-width: 1000px;
        background: var(--secondary-color);
        border: 1px solid var(--border-color);
        border-radius: 1.5rem;
        overflow: hidden;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .lightbox.active .lightbox-content {
        transform: translateY(0);
    }

    .lightbox-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 2.5rem;
        cursor: pointer;
        z-index: 10;
        transition: var(--transition-fast);
    }

    .lightbox-close:hover {
        color: var(--accent-color);
        transform: rotate(90deg);
    }

    .lightbox-body {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        height: 100%;
        overflow-y: auto;
    }

    .lightbox-image {
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .lightbox-info {
        padding: 3rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .lightbox-category {
        display: inline-block;
        padding: 0.25rem 1rem;
        background: rgba(99, 102, 241, 0.1);
        color: var(--accent-color);
        border-radius: 9999px;
        font-size: 0.875rem;
        font-weight: 600;
        width: fit-content;
    }

    .lightbox-info h2 {
        font-size: 2rem;
    }

    .lightbox-description {
        color: var(--text-secondary);
        line-height: 1.7;
    }

    .lightbox-meta {
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .lightbox-meta strong {
        color: var(--text-primary);
    }

    #lightboxUrl {
        margin-top: auto;
        width: fit-content;
    }

    @media (max-width: 768px) {
        .lightbox-body {
            grid-template-columns: 1fr;
        }

        .lightbox-info {
            padding: 2rem;
        }

        .lightbox-image {
            aspect-ratio: 16/9;
        }
    }

    /* === Animations === */
    /* === Scroll Reveal System === */
    .reveal {
        opacity: 0;
        will-change: transform, opacity;
        transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    }

    /* Animation Types */
    .reveal[data-anim="up"] {
        transform: translateY(50px);
    }

    .reveal[data-anim="down"] {
        transform: translateY(-50px);
    }

    .reveal[data-anim="left"] {
        transform: translateX(50px);
    }

    .reveal[data-anim="right"] {
        transform: translateX(-50px);
    }

    .reveal[data-anim="zoom-in"] {
        transform: scale(0.8);
    }

    .reveal[data-anim="zoom-out"] {
        transform: scale(1.2);
    }

    .reveal[data-anim="flip-up"] {
        transform: rotateX(45deg) translateY(50px);
    }

    /* Default fallback (equivalent to old .fade-in) */
    .reveal:not([data-anim]) {
        transform: translateY(30px);
    }

    /* Active State */
    .reveal.active {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0);
    }

    /* Delays */
    .reveal[data-delay="100"] {
        transition-delay: 0.1s;
    }

    .reveal[data-delay="200"] {
        transition-delay: 0.2s;
    }

    .reveal[data-delay="300"] {
        transition-delay: 0.3s;
    }

    .reveal[data-delay="400"] {
        transition-delay: 0.4s;
    }

    .reveal[data-delay="500"] {
        transition-delay: 0.5s;
    }

    /* Backward Compatibility */
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    }

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

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

        /* Disable glow effects on mobile for better scrolling */
        .service-card[data-glow]::before,
        .service-card[data-glow]::after,
        .service-card [data-glow] {
            display: none !important;
        }

        .about-content,
        .contact-content {
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        .about-image {
            max-width: 400px;
            margin: 0 auto;
        }
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: var(--secondary-color);
            flex-direction: column;
            padding: 2rem;
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            text-align: center;
            gap: 1.5rem;
        }

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

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

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

        .mobile-menu-btn {
            display: block;
            z-index: 1001;
            /* Ensure button is clickcable */
        }

        .section {
            padding: 4rem 0;
        }

        .services .container {
            margin-top: 0;
            /* Reset negative margin on mobile */
            padding-top: 2rem;
        }

        .marquee-tags-section {
            transform: translateY(-3rem);
            /* Less pull up to avoid sticking to Hero */
            margin-bottom: -3rem;
            /* Balanced gap to Services */
            padding-bottom: 2rem;
        }

        .hero {
            padding: 6rem 0 3rem;
        }

        .hero-buttons {
            flex-direction: column;
            align-items: center;
        }

        .btn {
            width: 100%;
            max-width: 280px;
        }

        .about-stats {
            grid-template-columns: repeat(3, 1fr);
            text-align: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }

        .stat-item h4 {
            font-size: 1.5rem;
            /* Slightly smaller for mobile side-by-side */
        }

        .stat-item p {
            font-size: 0.7rem;
            /* Smaller labels */
        }

        .portfolio-grid,
        .testimonials-grid {
            grid-template-columns: 1fr;
        }

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

        .footer-content {
            flex-direction: column;
            text-align: center;
        }
    }

    /* === Scrollbar === */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--primary-color);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent-color);
    }

    /* === Selection === */
    ::selection {
        background: var(--accent-color);
        color: white;
    }

    /* === Floating Contact Widget === */
    .contact-widget {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
        pointer-events: none;
        /* Block-level container shouldn't catch clicks */
    }

    .contact-widget>* {
        pointer-events: auto;
        /* Buttons and popups should catch clicks */
    }

    .widget-btn {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background: #25d366;
        color: white;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .widget-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }

    .widget-btn .icon-close {
        display: none;
    }

    .contact-widget.active .widget-btn {
        background: #ff4757;
        transform: rotate(90deg);
    }

    .contact-widget.active .icon-open {
        display: none;
    }

    .contact-widget.active .icon-close {
        display: block;
    }

    .contact-popup {
        width: 350px;
        background: #0f1113;
        border-radius: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow: hidden;
    }

    .contact-widget.active .contact-popup {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .popup-header {
        padding: 2rem;
        background: linear-gradient(to bottom, #1a1e21, #0f1113);
    }

    .popup-header h3,
    .popup-body h3 {
        color: white;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        font-family: 'Space Grotesk', sans-serif;
        margin-top: 0;
    }

    .popup-header p,
    .popup-body p {
        color: #94a3b8;
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .phone-link {
        display: block;
        width: 100%;
        padding: 1rem;
        background: white;
        color: #0f1113;
        text-align: center;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.2rem;
        border-radius: 0.75rem;
        transition: all 0.3s ease;
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }

    .phone-link:hover {
        background: #e2e8f0;
        transform: translateY(-2px);
    }

    .popup-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 0 1rem;
    }

    .popup-body {
        padding: 2rem;
    }

    .whatsapp-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
        padding: 1.1rem;
        background: #25d366;
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        border-radius: 0.75rem;
        transition: all 0.3s ease;
    }

    .whatsapp-btn:hover {
        background: #22c35e;
        transform: translateY(-2px);
    }

    @media (max-width: 480px) {
        .contact-widget {
            bottom: 1.5rem;
            right: 1.5rem;
        }

        .contact-popup {
            width: calc(100vw - 3rem);
        }
    }