        :root {
            --brand-red: #E62020;
            --brand-black: #0A0A0A;
            --brand-white: #F4F4F4;
            --font-main: 'Lexend', sans-serif;
            --parallax-offset: 0px;
            --navbar-height: 70px;
            --safe-area-top: env(safe-area-inset-top);
            --safe-area-right: env(safe-area-inset-right);
            --safe-area-bottom: env(safe-area-inset-bottom);
            --safe-area-left: env(safe-area-inset-left);
            
            /* Animasyon süreleri - constants */
            --anim-duration-fast: 300ms;
            --anim-duration-normal: 400ms;
            --anim-duration-slow: 800ms;
            --anim-easing: cubic-bezier(0.25, 1, 0.5, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            scroll-behavior: smooth;
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            .scroll-indicator, .mouse, .wheel,
            body::before {
                display: none !important;
            }
        }

        section, footer {
            scroll-margin-top: 100px;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--brand-black);
            color: var(--brand-white);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            padding-top: var(--safe-area-top);
            padding-right: var(--safe-area-right);
            padding-bottom: var(--safe-area-bottom);
            padding-left: var(--safe-area-left);
        }

        /* Skip to content link */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--brand-red);
            color: var(--brand-black);
            padding: 8px;
            text-decoration: none;
            z-index: 10000;
            font-weight: 700;
            border-radius: 0 0 4px 0;
            transition: top var(--anim-duration-fast) ease;
        }

        .skip-link:focus {
            top: 0;
        }

        /* TYPOGRAPHY */
        h1, h2, h3, h4 {
            font-weight: 900;
            text-transform: uppercase;
            line-height: 0.9;
        }

        p {
            font-weight: 300;
            line-height: 1.6;
        }

        .text-red { color: var(--brand-red); }
        .text-black { color: var(--brand-black); }
        .bg-red { background-color: var(--brand-red); }
        .bg-white { background-color: var(--brand-white); color: var(--brand-black); }

        /* NAVBAR - DESKTOP (Glassmorphism Pill) */
        .navbar {
            position: fixed;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            padding: 15px 40px;
            z-index: 101;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all var(--anim-duration-fast) ease;
            touch-action: manipulation;
        }

        .nav-list {
            list-style: none;
            display: flex;
            gap: 30px;
            margin: 0;
            padding: 0;
        }

        .nav-list li a {
            color: var(--brand-black);
            text-decoration: none;
            font-weight: 400;
            font-size: 1rem;
            transition: color var(--anim-duration-fast);
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            padding: 8px 4px;
            touch-action: manipulation;
        }

        .nav-list li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--brand-red);
            transition: width var(--anim-duration-fast) ease;
        }

        .nav-list li a:hover::after,
        .nav-list li a:focus::after {
            width: 100%;
        }

        .nav-list li a:hover,
        .nav-list li a:focus {
            color: var(--brand-black);
            outline: none;
        }

        .nav-list li a:active {
            opacity: 0.7;
        }

        /* HAMBURGER BUTTON - White icon, transparent background */
        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 48px;
            height: 48px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 101;
            position: relative;
            touch-action: manipulation;
            border-radius: 50%;
            transition: background-color var(--anim-duration-fast);
        }

        .hamburger:focus-visible {
            outline: 2px solid var(--brand-white);
            outline-offset: 4px;
        }

        .hamburger:active {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .hamburger-line {
            width: 28px;
            height: 2px;
            background: var(--brand-white);
            margin: 3px 0;
            transition: all var(--anim-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
        }

        .hamburger[aria-expanded="true"] .hamburger-line {
            background: var(--brand-black);
        }

        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        /* MOBILE NAV OVERLAY - Solid Background */
        .mobile-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            background: var(--brand-red);
            z-index: 100;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity var(--anim-duration-normal) ease, visibility var(--anim-duration-normal) ease;
            padding: 2rem;
            padding-top: calc(2rem + var(--safe-area-top));
            padding-bottom: calc(2rem + var(--safe-area-bottom));
        }

        .mobile-nav.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-nav-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1.5rem;
            width: 100%;
            max-width: 400px;
        }

        .mobile-nav-list li {
            width: 100%;
            text-align: center;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity var(--anim-duration-normal) ease, transform var(--anim-duration-normal) ease;
        }

        .mobile-nav.active .mobile-nav-list li {
            opacity: 1;
            transform: translateY(0);
        }

        .mobile-nav.active .mobile-nav-list li:nth-child(1) { transition-delay: 0.1s; }
        .mobile-nav.active .mobile-nav-list li:nth-child(2) { transition-delay: 0.2s; }
        .mobile-nav.active .mobile-nav-list li:nth-child(3) { transition-delay: 0.3s; }
        .mobile-nav.active .mobile-nav-list li:nth-child(4) { transition-delay: 0.4s; }

        .mobile-nav-list li a {
            color: var(--brand-black);
            text-decoration: none;
            font-size: clamp(2rem, 10vw, 3.5rem);
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            line-height: 1.1;
            transition: transform var(--anim-duration-fast) ease, opacity var(--anim-duration-fast) ease;
            display: inline-block;
            position: relative;
            padding: 0.5rem 1rem;
            touch-action: manipulation;
        }

        .mobile-nav-list li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 4px;
            background: var(--brand-black);
            transition: width var(--anim-duration-fast) ease;
        }

        .mobile-nav-list li a:hover::after,
        .mobile-nav-list li a:focus::after {
            width: 80%;
        }

        .mobile-nav-list li a:hover,
        .mobile-nav-list li a:focus {
            transform: scale(1.05);
            opacity: 0.9;
            outline: none;
        }

        .mobile-nav-list li a:focus-visible {
            outline: 2px solid var(--brand-black);
            outline-offset: 4px;
        }

        .mobile-nav-list li a:active {
            transform: scale(0.98);
            opacity: 0.8;
        }

        /* Mobile Contact Info in Menu */
        .mobile-nav-footer {
            position: absolute;
            bottom: calc(2rem + var(--safe-area-bottom));
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            opacity: 0;
            transition: opacity var(--anim-duration-normal) ease 0.5s;
            width: 100%;
        }

        .mobile-nav.active .mobile-nav-footer {
            opacity: 1;
        }

        .mobile-nav-footer a {
            color: var(--brand-black);
            font-size: 0.875rem;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0.5rem;
            display: inline-block;
            touch-action: manipulation;
        }

        /* RESPONSIVE BREAKPOINTS */
        @media (max-width: 768px) {
            .navbar {
                top: calc(20px + var(--safe-area-top));
                right: calc(20px + var(--safe-area-right));
                left: auto;
                transform: none;
                padding: 0;
                background: transparent;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                border: none;
                box-shadow: none;
            }

            .nav-list {
                display: none;
            }

            .hamburger {
                display: flex;
            }

            .navbar.scrolled {
                top: calc(10px + var(--safe-area-top));
                right: calc(10px + var(--safe-area-right));
            }
        }

        /* HERO SECTION */
        .hero {
            height: 100dvh;
            min-height: 600px;
            background-image: url('images/hero.webp');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            color: var(--brand-black);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            padding: 2rem;
            padding-top: calc(var(--navbar-height) + 40px + var(--safe-area-top));
        }

        .hero-subtitle {
            font-size: clamp(0.875rem, 2vw, 1.5rem);
            font-weight: 700;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            z-index: 2;
            max-width: 90%;
        }

        .hero-title {
            font-size: clamp(2.5rem, 12vw, 15rem);
            letter-spacing: -0.05em;
            z-index: 2;
        }

        /* SCROLL INDICATOR */
        .scroll-indicator {
            position: absolute;
            bottom: calc(30px + var(--safe-area-bottom));
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            z-index: 2;
            animation: fadeInUp 1s ease-out 0.5s both;
        }

        .mouse {
            width: 26px;
            height: 40px;
            border: 2px solid var(--brand-black);
            border-radius: 20px;
            position: relative;
        }

        .wheel {
            width: 4px;
            height: 8px;
            background-color: var(--brand-black);
            border-radius: 2px;
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            animation: scrollWheel 2s infinite;
        }

        .scroll-text {
            font-size: 0.75rem;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--brand-black);
        }

        @keyframes scrollWheel {
            0% {
                opacity: 1;
                top: 6px;
            }
            100% {
                opacity: 0;
                top: 20px;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        /* SCROLL REVEAL TEXT SECTION */
        .reveal-section {
            background-color: var(--brand-black);
            padding: 15vw 5vw;
            display: flex;
            justify-content: center;
            align-items: center;
            border-bottom: 2px solid #333;
        }

        #revealText {
            font-size: clamp(1.25rem, 3.5vw, 4rem);
            font-weight: 700;
            line-height: 1.2;
            text-transform: uppercase;
            text-align: center;
            max-width: 1200px;
        }

        #revealText span {
            color: rgba(244, 244, 244, 0.1);
            transition: color var(--anim-duration-normal) ease;
        }

        #revealText span.active {
            color: var(--brand-white);
        }

        /* STATS (DYNAMIC DOTS) SECTION - DÜZELTİLDİ */
        .stats-section {
            background-color: var(--brand-red);
            color: var(--brand-black);
            padding: 10vw 5vw;
            border-top: 2px solid var(--brand-black);
            border-bottom: 2px solid var(--brand-black);
            position: relative;
            overflow: hidden; 
        }

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

        .stats-container {
            display: flex;
            flex-direction: column;
            gap: 5rem;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 1; 
        }

        .stat-row {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            opacity: 0;
            transform: translateY(40px); 
            transition: opacity var(--anim-duration-slow) var(--anim-easing), transform var(--anim-duration-slow) var(--anim-easing);
            text-align: center;
        }

        @media(min-width: 768px) {
            .stat-row {
                flex-direction: row;
                align-items: center;
                gap: 8vw;
                text-align: left;
            }
        }

        .stat-row.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .stat-number {
            font-size: clamp(4rem, 15vw, 8rem);
            font-weight: 900;
            line-height: 0.9;
            letter-spacing: -0.05em;
            min-width: auto;
            text-align: center;
            transform: translateX(calc(var(--parallax-offset) * var(--parallax-direction, 1) * 1.2));
            transition: transform 0.1s linear;
            will-change: transform;
        }

        @media(min-width: 768px) {
            .stat-number {
                font-size: clamp(4rem, 10vw, 12rem);
                min-width: 45%;
                text-align: right;
            }
        }

        .stat-label {
            font-size: clamp(0.875rem, 4vw, 1.5rem);
            font-weight: 300; 
            line-height: 1.3;
            text-transform: uppercase;
            max-width: 300px;
            text-align: center;
            transform: translateX(calc(var(--parallax-offset) * var(--parallax-direction, 1) * 0.4));
            transition: transform 0.1s linear;
            will-change: transform;
        }

        @media(min-width: 768px) {
            .stat-label {
                font-size: clamp(1rem, 2.5vw, 2.5rem);
                max-width: 600px;
                text-align: left;
            }
        }

        /* SKILLS ACCORDION */
        .skills-section {
            padding: 0; 
            border-top: none; 
        }

        /* PROJECT IMAGE WRAPPER - 100% width */
        .project-image-wrapper {
            width: 100%;
            height: 350px;
            border-bottom: 2px solid #333;
            background-color: var(--brand-black);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

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

        @media(min-width: 768px) {
            .project-image-wrapper {
                height: 500px;
            }
        }

        /* DESKTOP: Row layout */
        .skill-block {
            display: flex;
            flex-direction: row;
            border-bottom: 2px solid #333;
            container-type: inline-size;
        }

        .skill-number {
            font-size: clamp(10rem, 25vw, 30rem);
            font-weight: 900;
            padding: 0 5vw;
            color: var(--brand-white);
            display: flex;
            align-items: center;
            line-height: 0.8;
            letter-spacing: -0.05em;
        }

        .skill-content {
            flex: 1;
            padding: 5vw;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .skill-title {
            font-size: clamp(2rem, 5vw, 4rem);
            margin-bottom: 2rem;
        }

        /* MOBILE: Column layout */
        @media(max-width: 767px) {
            .skill-block {
                flex-direction: column;
            }

            .skill-number {
                font-size: clamp(4rem, 20vw, 15rem);
                padding: 3rem 5vw 1rem;
                justify-content: center;
            }

            .skill-title {
                font-size: clamp(1.25rem, 5vw, 4rem);
                text-align: center;
            }

            .skill-content {
                padding: 5vw;
            }

            .project-image-wrapper {
                height: 250px;
            }
        }

        .accordion-item {
            border-top: 1px solid #444;
        }

        .accordion-header {
            padding: 1.5rem 0;
            font-size: clamp(0.9rem, 2.5vw, 1.2rem);
            font-weight: 400;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: color var(--anim-duration-fast) ease;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            color: inherit;
            font-family: inherit;
            cursor: pointer;
            min-height: 44px;
            touch-action: manipulation;
        }

        .accordion-header:hover,
        .accordion-header:focus {
            color: var(--brand-red);
            outline: none;
        }

        .accordion-header:focus-visible {
            outline: 2px solid var(--brand-red);
            outline-offset: 4px;
        }

        .accordion-header:active {
            opacity: 0.7;
        }

        .accordion-icon {
            transition: transform var(--anim-duration-fast) ease;
            flex-shrink: 0;
            margin-left: 1rem;
        }

        .accordion-item.active .accordion-icon {
            transform: rotate(45deg);
        }

        .accordion-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height var(--anim-duration-normal) ease, padding var(--anim-duration-normal) ease;
            color: #aaa;
            font-weight: 300;
        }

        .accordion-item.active .accordion-body {
            max-height: 300px;
            padding-bottom: 1.5rem;
        }

        /* FOOTER / CONTACT */
        .footer {
            background-color: var(--brand-red);
            color: var(--brand-black);
            padding: 10vw 5vw calc(5vw + var(--safe-area-bottom)) 5vw;
            text-align: center;
        }

        .footer-title {
            font-size: clamp(2.5rem, 12vw, 15rem);
            margin-bottom: 2rem;
        }

        .contact-info {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 3rem;
            font-size: 1.2rem;
            font-weight: 700;
            margin-top: 4rem;
        }

        a {
            color: inherit;
            text-decoration: none;
            transition: opacity var(--anim-duration-fast);
            touch-action: manipulation;
        }

        a:hover,
        a:focus {
            opacity: 0.6;
            outline: none;
        }

        a:focus-visible {
            outline: 2px solid currentColor;
            outline-offset: 4px;
        }

        a:active {
            opacity: 0.4;
        }

        /* FOOTER LOGO */
        .footer-logo {
            margin-top: 2rem;
            opacity: 0.6;
            transition: opacity var(--anim-duration-fast);
            text-align: center;
        }

        .footer-logo:hover,
        .footer-logo:focus-within {
            opacity: 1;
        }

        .footer-logo img {
            height: 50px;
            width: auto;
            display: block;
            margin: 0 auto;
        }

        /* SOCIAL LINKS */
        .social-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-top: 2rem;
        }

        .social-links a {
            color: var(--brand-black);
            text-decoration: none;
            font-size: 0.9rem;
            font-family: var(--font-main);
            transition: opacity var(--anim-duration-fast);
            padding: 4px 8px;
            border-radius: 4px;
            min-height: 44px;
            display: flex;
            align-items: center;
            touch-action: manipulation;
        }

        .social-links a:hover,
        .social-links a:focus {
            opacity: 0.6;
            background: rgba(0,0,0,0.05);
        }

        .social-links a:active {
            opacity: 0.4;
        }

        /* Scroll Progress Bar */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: var(--brand-red);
            z-index: 100;
            transform-origin: left;
            transform: scaleX(0);
        }

        /* Body lock when mobile nav open */
        body.nav-open {
            overflow: hidden;
        }

        /* Print styles */
        @media print {
            .navbar, .scroll-indicator, .scroll-progress, body::before {
                display: none !important;
            }
            
            .hero {
                height: auto;
                min-height: auto;
                page-break-after: always;
            }
            
            .skill-block {
                page-break-inside: avoid;
            }
        }
