        @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

        :root {
            --bg-dark: #151515;
            --text-white: #ffffff;
            --text-gray: #d9d9d9;
            --accent-green: #4ee1a0;
            --accent-warm: #ff8a5b;
            --card-bg: #242424;
            --page-padding: 165px;
            --page-padding-tablet: 80px;
            --page-padding-mobile: 30px;
            --section-padding-y: 120px;
            --radius-sm: 8px;
            --radius-pill: 999px;
            --font-hero-title: clamp(40px, 7vw, 78px);
            --font-section-title: clamp(40px, 7vw, 88px);
            --font-contact-title: clamp(40px, 7vw, 92px);
            --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.2);
        }

        body.light-mode {
            --bg-dark: #f7f8f7;
            --text-white: #151515;
            --text-gray: #535b57;
            --accent-green: #159967;
            --accent-warm: #d85f35;
            --card-bg: #ffffff;
            --shadow-card: 0 18px 50px rgba(21, 21, 21, 0.08);
        }

        .sun-icon {
            display: inline;
        }
        .moon-icon {
            display: none;
        }
        body.light-mode .sun-icon {
            display: none;
        }
        body.light-mode .moon-icon {
            display: inline;
        }

        body {
            font-family: 'Space Grotesk', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-white);
            overflow-x: hidden;
        }

        html {
            scroll-behavior: smooth;
        }

        /* Decorative lines */
        .decorative-lines {
            position: fixed;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            opacity: 0.1;
        }

        .line {
            position: absolute;
            border: 1px solid var(--text-white);
            border-radius: 50%;
        }

        .line-2 {
            border-color: var(--accent-warm);
        }

        body.light-mode .decorative-lines {
            opacity: 0.07;
        }

        .line-1 {
            width: 530px;
            height: 129px;
            top: 100px;
            left: -100px;
            transform: rotate(-45deg);
        }

        .line-2 {
            width: 530px;
            height: 129px;
            bottom: 300px;
            right: -200px;
            transform: rotate(30deg);
        }

        /* Header */
        header {
            position: relative;
            z-index: 10;
            padding: 30px var(--page-padding);
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 32px;
            align-items: center;
            animation: fadeInDown 0.8s ease;
        }

        .logo {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            color: var(--text-white);
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -0.5px;
            text-decoration: none;
        }

        .logo-mark {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
        }

        .header-nav {
            display: flex;
            justify-content: center;
            gap: 10px;
            padding: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-pill);
        }

        body.light-mode .header-nav {
            background: rgba(21, 21, 21, 0.04);
            border-color: rgba(21, 21, 21, 0.12);
        }

        .header-nav a {
            padding: 9px 14px;
            color: var(--text-gray);
            border-radius: var(--radius-pill);
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 1px;
            text-decoration: none;
            text-transform: uppercase;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .header-nav a:hover {
            color: var(--bg-dark);
            background: var(--accent-green);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .social-links {
            display: flex;
            gap: 12px;
        }

        .social-links a {
            display: inline-flex;
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
            color: var(--text-white);
            font-size: 24px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 50%;
            transition: color 0.3s ease, transform 0.3s ease;
            text-decoration: none;
        }

        body.light-mode .social-links a {
            background: rgba(21, 21, 21, 0.04);
            border-color: rgba(21, 21, 21, 0.12);
        }

        .social-links a:hover {
            color: var(--accent-green);
            transform: translateY(-3px);
        }

        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-white);
            transition: all 0.3s ease;
            border-radius: 50%;
            width: 40px;
            height: 40px;
        }

        .theme-toggle:hover {
            background-color: var(--card-bg);
            transform: scale(1.1);
        }

        .header-nav a:focus-visible,
        .social-links a:focus-visible,
        .theme-toggle:focus-visible,
        .btn-contact:focus-visible,
        .btn-view:focus-visible,
        .btn-submit:focus-visible,
        .footer-nav a:focus-visible,
        .footer-socials a:focus-visible,
        .modal-links a:focus-visible {
            outline: 3px solid var(--accent-green);
            outline-offset: 4px;
        }

        .theme-toggle .sun-icon {
            display: inline;
        }
        .theme-toggle .moon-icon {
            display: none;
        }
        body.light-mode .theme-toggle .sun-icon {
            display: none;
        }
        body.light-mode .theme-toggle .moon-icon {
            display: inline;
        }

        /* Hero Section */
        .hero {
            position: relative;
            z-index: 10;
            padding: 56px var(--page-padding) 72px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .hero-content {
            animation: fadeInLeft 0.45s ease both;
        }

        .hero-eyebrow {
            margin-bottom: 22px;
            color: var(--accent-green);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1.4px;
            text-transform: uppercase;
        }

        .hero-eyebrow span {
            padding: 0 5px;
            color: var(--accent-warm);
        }

        .hero h1 {
            font-size: var(--font-hero-title);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 28px;
        }

        .hero h1 .highlight {
            position: relative;
            display: inline;
        }

        .hero h1 .highlight::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--accent-green);
        }

        .hero p {
            font-size: 18px;
            line-height: 1.6;
            color: var(--text-gray);
            margin-bottom: 34px;
            max-width: 445px;
        }

        .btn-contact {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 50px;
            padding: 0 20px;
            font-size: 14px;
            font-weight: 700;
            color: #10241b;
            background: var(--accent-green);
            border: 1px solid var(--accent-green);
            border-radius: 4px;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
        }

        .btn-contact:hover {
            background: transparent;
            color: var(--accent-green);
            transform: translateY(-2px);
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .btn-contact-secondary {
            color: var(--text-white);
            background: transparent;
            border-color: rgba(128, 128, 128, 0.42);
        }

        .btn-contact-secondary:hover {
            border-color: var(--accent-green);
        }

        .hero-image {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 18px;
            align-items: center;
            animation: fadeInRight 0.45s ease both;
        }

        .profile-img {
            width: 100%;
            max-width: 380px;
            height: auto;
            filter: grayscale(100%);
            position: relative;
            z-index: 1;
            border-radius: var(--radius-sm);
        }

        .hero-media {
            width: 100%;
            max-width: 440px;
            border-radius: var(--radius-sm);
            overflow: hidden;
            box-shadow: var(--shadow-card);
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.04);
        }

        .hero-video {
            display: block;
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            filter: saturate(0.9) contrast(1.05);
        }


        /* Skills Section */
        .skills-section {
            position: relative;
            z-index: 10;
            padding: 20px;
            border-top: 1px solid var(--text-white);
            border-bottom: 1px solid var(--text-white);
            overflow: hidden;
        }

        .skills-grid {
            display: flex;
            width: max-content;
            gap: 32px;
            animation: skillsMarquee 42s linear infinite;
            will-change: transform;
            perspective: 900px;
        }

        .skills-grid:hover {
            animation-play-state: paused;
        }

        .skill-item {
            flex: 0 0 82px;
            display: flex;
            width: 82px;
            height: 82px;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.075) 58%, rgba(0, 0, 0, 0.12)),
                rgba(255, 255, 255, 0.11);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 8px -10px 18px rgba(0, 0, 0, 0.12),
                0 12px 22px rgba(0, 0, 0, 0.28);
            transform: rotateX(4deg) rotateY(-4deg) translateZ(0);
            transform-style: preserve-3d;
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
        }

        .skill-item:hover {
            transform: rotateX(0deg) rotateY(0deg) translateY(-4px) translateZ(10px);
            border-color: rgba(78, 225, 160, 0.42);
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.09) 58%, rgba(0, 0, 0, 0.1)),
                rgba(78, 225, 160, 0.08);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.24),
                inset 8px -10px 18px rgba(0, 0, 0, 0.1),
                0 16px 32px rgba(0, 0, 0, 0.3),
                0 0 18px rgba(78, 225, 160, 0.1);
        }

        body.light-mode .skill-item {
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(235, 241, 238, 0.72)),
                #ffffff;
            border-color: rgba(21, 21, 21, 0.08);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                inset 8px -10px 18px rgba(21, 21, 21, 0.035),
                0 12px 24px rgba(21, 21, 21, 0.1);
        }

        body.light-mode .skill-item:hover {
            border-color: rgba(21, 153, 103, 0.32);
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(231, 246, 239, 0.78)),
                #ffffff;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.95),
                inset 8px -10px 18px rgba(21, 21, 21, 0.03),
                0 16px 32px rgba(21, 21, 21, 0.12),
                0 0 18px rgba(21, 153, 103, 0.1);
        }

        .skill-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto;
            display: block;
            object-fit: contain;
            filter: drop-shadow(0 8px 7px rgba(0, 0, 0, 0.26));
            transform: translateZ(4px);
        }

        .skill-item h3 {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .express-icon,
        .next-icon,
        .github-icon,
        .aws-icon,
        .expo-icon {
            filter: invert(1) drop-shadow(0 8px 7px rgba(0, 0, 0, 0.24));
        }

        body.light-mode .express-icon,
        body.light-mode .next-icon,
        body.light-mode .github-icon,
        body.light-mode .aws-icon,
        body.light-mode .expo-icon {
            filter: drop-shadow(0 8px 7px rgba(21, 21, 21, 0.14));
        }

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

        @keyframes skillsMarquee {
            from {
                transform: translateX(0);
            }

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

        @media (prefers-reduced-motion: reduce) {
            .skills-grid {
                animation: none;
                flex-wrap: wrap;
                width: auto;
                justify-content: center;
            }
        }

        /* Projects Section */
        .projects-section {
            position: relative;
            z-index: 10;
            padding: var(--section-padding-y) var(--page-padding);
        }

        .section-header {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 80px;
        }

        .section-header h2 {
            font-size: var(--font-section-title);
            font-weight: 700;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 30px;
        }

        .project-group-divider {
            grid-column: 1 / -1;
            margin-top: 34px;
            padding: 28px 30px;
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
                rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-left: 4px solid var(--accent-warm);
            border-radius: var(--radius-sm);
        }

        body.light-mode .project-group-divider {
            background: rgba(21, 21, 21, 0.025);
            border-color: rgba(21, 21, 21, 0.1);
            border-left-color: var(--accent-warm);
        }

        .project-group-divider h3 {
            margin-bottom: 8px;
            font-size: 34px;
            line-height: 1.1;
        }

        .project-group-divider p {
            max-width: 680px;
            color: var(--text-gray);
            font-size: 16px;
            line-height: 1.6;
        }

        .project-card {
            position: relative;
            padding: 12px;
            background: rgba(255, 255, 255, 0.045);
            border: 1px solid rgba(78, 225, 160, 0.18);
            box-shadow: var(--shadow-card);
            cursor: pointer;
            transition: transform 0.3s ease;
            animation: fadeInUp 0.6s ease backwards;
            border-radius: var(--radius-sm);
            overflow: hidden;
            grid-column: span 2;
        }

        body.light-mode .project-card {
            background: #ffffff;
            border-color: rgba(21, 21, 21, 0.1);
            box-shadow: var(--shadow-card);
        }

        .project-card-featured {
            border: 1px solid rgba(78, 225, 160, 0.28);
            box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
        }

        body.light-mode .project-card-featured {
            border-color: rgba(21, 153, 103, 0.3);
            box-shadow: 0 24px 70px rgba(21, 153, 103, 0.12);
        }

        .project-card-hero {
            grid-column: span 6;
            display: grid;
            grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
            gap: 24px;
            align-items: center;
        }

        .project-card-featured-secondary {
            grid-column: span 3;
        }

        .project-card-featured::before {
            content: 'Featured';
            position: absolute;
            top: 24px;
            left: 24px;
            z-index: 2;
            padding: 7px 10px;
            border-radius: var(--radius-pill);
            background: var(--accent-green);
            color: var(--bg-dark);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        /* Removed custom animation delays for uniformity */

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

        .project-image {
            position: relative;
            margin-bottom: 14px;
            overflow: hidden;
            aspect-ratio: 16 / 9;
            border-radius: var(--radius-sm);
        }

        .project-card-hero .project-image {
            margin-bottom: 0;
        }

        .project-image img {
            width: 100% !important;
            height: 100% !important;
            display: block;
            object-fit: cover;
            border-radius: var(--radius-sm);
            transition: transform 0.35s ease;
        }

        .project-card:hover .project-image img {
            transform: scale(1.025);
        }

        .project-card-ecommerce-website .project-image img {
            object-position: top center;
        }

        .project-card-register-login-page .project-image img {
            object-position: top center;
        }

        .project-card-register .project-image img {
            object-position: 50% 50% !important;
        }

        .project-overlay {
            position: absolute;
            inset: auto 0 0;
            min-height: 88px;
            padding: 28px 16px 14px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
            display: flex;
            flex-direction: row;
            align-items: flex-end;
            justify-content: flex-start;
            gap: 10px;
            opacity: 1;
            pointer-events: auto;
            z-index: 2;
            transition: opacity 0.3s ease;
        }

        .project-card:hover .project-overlay,
        .project-card:focus-within .project-overlay {
            opacity: 1;
            pointer-events: auto;
        }

        .btn-view {
            display: inline-flex;
            align-items: center;
            min-height: 36px;
            padding: 0 11px;
            font-size: 11px;
            font-weight: 700;
            color: #ffffff;
            background: rgba(0, 0, 0, 0.42);
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: 3px;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
            position: relative;
            z-index: 3;
            pointer-events: auto;
        }

        .btn-view:hover {
            color: #10241b;
            background: var(--accent-green);
            border-color: var(--accent-green);
        }

        body.light-mode .btn-view {
            color: #ffffff;
        }

        body.light-mode .btn-view:hover {
            color: #10241b;
        }

        .project-info h3 {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
            text-transform: uppercase;
            text-align: center;
        }

        .project-summary {
            display: none;
            margin: 0 auto 18px;
            max-width: 34ch;
            color: var(--text-gray);
            font-size: 15px;
            line-height: 1.55;
            text-align: center;
        }

        .project-card-featured .project-summary {
            display: block;
        }

        .project-tags {
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        .project-tags span {
            display: inline-flex;
            width: 30px;
            height: 30px;
            align-items: center;
            justify-content: center;
        }

        .project-tag-icon {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
        }

        .project-tag-icon-dark {
            filter: invert(1);
        }

        body.light-mode .project-tag-icon-dark {
            filter: none;
        }

        /* Contact Section */
        .contact-section {
            position: relative;
            z-index: 10;
            padding: 132px var(--page-padding);
            background:
                radial-gradient(circle at 82% 18%, rgba(78, 225, 160, 0.12), transparent 28%),
                linear-gradient(135deg, rgba(255, 138, 91, 0.08), transparent 36%),
                var(--card-bg);
            border-top: 1px solid var(--text-white);
        }

        body.light-mode .contact-section {
            background:
                radial-gradient(circle at 82% 18%, rgba(21, 153, 103, 0.12), transparent 28%),
                linear-gradient(135deg, rgba(216, 95, 53, 0.08), transparent 36%),
                #eef3f0;
            border-top-color: rgba(21, 21, 21, 0.12);
        }
       
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 100px;
            max-width: 1110px;
            align-items: center;
            margin: 0 auto;
        }

        .contact-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 26px;
            padding: 8px 12px;
            color: var(--accent-green);
            border: 1px solid rgba(78, 225, 160, 0.45);
            border-radius: var(--radius-pill);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .contact-badge::before {
            content: '';
            width: 8px;
            height: 8px;
            background: var(--accent-green);
            border-radius: 50%;
            box-shadow: 0 0 18px var(--accent-green);
        }

        .contact-info h2 {
            max-width: 520px;
            font-size: var(--font-contact-title);
            font-weight: 700;
            margin-bottom: 24px;
            line-height: 1;
        }

        .contact-info p {
            max-width: 430px;
            font-size: 18px;
            line-height: 1.65;
            color: var(--text-gray);
        }

        .contact-form {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 30px;
            padding: 60px;
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
                rgba(255, 255, 255, 0.035);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: var(--radius-sm);
            box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
            overflow: hidden;
        }

        .contact-form::before {
            content: '';
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: var(--accent-green);
        }

        body.light-mode .contact-form {
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
                rgba(21, 21, 21, 0.035);
            border-color: rgba(21, 21, 21, 0.14);
            box-shadow: 0 28px 80px rgba(21, 21, 21, 0.12);
        }

        .form-group {
            position: relative;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            background: rgba(0, 0, 0, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: var(--radius-sm);
            padding: 24px 26px;
            font-size: 16px;
            font-family: 'Space Grotesk', sans-serif;
            color: var(--text-white);
            transition: border-color 0.3s ease, background-color 0.3s ease;
        }

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

        body.light-mode .form-group input,
        body.light-mode .form-group textarea {
            background: rgba(255, 255, 255, 0.76);
            border-color: rgba(21, 21, 21, 0.14);
        }

        body.light-mode .form-group input:focus,
        body.light-mode .form-group textarea:focus {
            border-color: var(--accent-green);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
        }

        body.light-mode .form-group input::placeholder,
        body.light-mode .form-group textarea::placeholder {
            color: rgba(21, 21, 21, 0.5);
        }

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

        .btn-submit {
            align-self: stretch;
            padding: 16px 20px;
            font-size: 16px;
            font-weight: 700;
            color: var(--bg-dark);
            background: var(--accent-green);
            border: 1px solid var(--accent-green);
            border-radius: var(--radius-sm);
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        }

        .btn-submit:hover {
            color: var(--accent-green);
            background: transparent;
            transform: translateY(-2px);
        }

        .btn-submit:disabled {
            cursor: wait;
            opacity: 0.7;
            transform: none;
        }

        /* Footer */
        footer {
            position: relative;
            z-index: 10;
            padding: 48px var(--page-padding) 32px;
            background:
                radial-gradient(circle at 16% 12%, rgba(78, 225, 160, 0.12), transparent 30%),
                linear-gradient(180deg, rgba(255, 138, 91, 0.08), transparent 42%),
                var(--card-bg);
            border-top: 1px solid rgba(255, 255, 255, 0.14);
        }

        body.light-mode footer {
            background:
                radial-gradient(circle at 16% 12%, rgba(21, 153, 103, 0.12), transparent 30%),
                linear-gradient(180deg, rgba(216, 95, 53, 0.08), transparent 42%),
                #ffffff;
            border-top-color: rgba(21, 21, 21, 0.14);
        }

        .footer-shell {
            display: grid;
            grid-template-columns: minmax(240px, 1fr) auto auto;
            gap: 40px;
            align-items: center;
            padding: 30px;
            background: rgba(255, 255, 255, 0.035);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: var(--radius-sm);
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
        }

        body.light-mode .footer-shell {
            background: rgba(21, 21, 21, 0.025);
            border-color: rgba(21, 21, 21, 0.12);
            box-shadow: 0 20px 60px rgba(21, 21, 21, 0.08);
        }

        .footer-logo {
            display: inline-block;
            margin-bottom: 12px;
            color: var(--text-white);
            font-size: 34px;
            font-weight: 700;
            text-decoration: none;
            transition: color 0.3s ease;
        }

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

        .footer-brand p {
            max-width: 440px;
            color: var(--text-gray);
            font-size: 16px;
            line-height: 1.6;
        }

        .footer-nav,
        .footer-socials {
            display: flex;
            align-items: center;
        }

        .footer-nav {
            gap: 10px;
            padding: 6px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-pill);
        }

        body.light-mode .footer-nav {
            background: rgba(21, 21, 21, 0.035);
            border-color: rgba(21, 21, 21, 0.1);
        }

        .footer-nav a {
            padding: 9px 13px;
            color: var(--text-gray);
            border-radius: var(--radius-pill);
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 1px;
            text-decoration: none;
            text-transform: uppercase;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .footer-nav a:hover {
            color: var(--bg-dark);
            background: var(--accent-green);
        }

        .footer-socials {
            gap: 12px;
        }

        .footer-socials a {
            display: inline-flex;
            width: 46px;
            height: 46px;
            align-items: center;
            justify-content: center;
            color: var(--text-white);
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 50%;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        }

        body.light-mode .footer-socials a {
            background: rgba(21, 21, 21, 0.04);
            border-color: rgba(21, 21, 21, 0.14);
        }

        .footer-socials a:hover {
            color: var(--bg-dark);
            background: var(--accent-green);
            border-color: var(--accent-green);
            transform: translateY(-3px);
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-top: 44px;
            padding: 24px 4px 0;
            color: var(--text-gray);
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            font-size: 14px;
        }

        body.light-mode .footer-bottom {
            border-top-color: rgba(21, 21, 21, 0.12);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            animation: fadeIn 0.3s ease;
        }

        body.light-mode .modal {
            background-color: rgba(247, 248, 247, 0.92);
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: var(--card-bg);
            padding: 60px;
            max-width: 900px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.4s ease;
        }

        body.light-mode .modal-content {
            border: 1px solid rgba(21, 21, 21, 0.1);
            box-shadow: 0 28px 90px rgba(21, 21, 21, 0.16);
        }

        .modal-close {
            position: absolute;
            top: 30px;
            right: 30px;
            font-size: 40px;
            color: var(--text-white);
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: var(--accent-green);
        }

        .modal-image {
            width: 100%;
            margin-bottom: 30px;
        }

        .modal-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .modal-description {
            font-size: 18px;
            line-height: 1.6;
            color: var(--text-gray);
            margin-bottom: 30px;
        }

        .modal-tags {
            display: flex;
            gap: 20px;
            margin-bottom: 40px;
        }

        .modal-tags span {
            padding: 8px 16px;
            background: var(--bg-dark);
            border-radius: 4px;
            font-size: 14px;
            text-transform: uppercase;
        }

        .modal-links {
            display: flex;
            gap: 30px;
        }

        .modal-links a {
            padding: 12px 0;
            font-size: 16px;
            font-weight: 700;
            color: var(--text-white);
            text-decoration: none;
            border-bottom: 2px solid var(--accent-green);
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: color 0.3s ease;
        }

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

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-24px);
            }

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

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

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

        @keyframes fadeInLeft {
            from {
                opacity: 0.82;
                transform: translateX(-12px);
            }

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

        @keyframes fadeInRight {
            from {
                opacity: 0.82;
                transform: translateX(12px);
            }

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

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }

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

        /* Form Status */
        .form-status {
            display: none;
            padding: 16px 18px;
            border-radius: 8px;
            border: 1px solid transparent;
            font-weight: 600;
            line-height: 1.45;
            animation: fadeInUp 0.4s ease;
        }

        .form-status.show {
            display: block;
        }

        .form-status.success {
            background: rgba(78, 225, 160, 0.16);
            border-color: rgba(78, 225, 160, 0.42);
            color: var(--accent-green);
        }

        .form-status.error {
            background: rgba(255, 98, 98, 0.14);
            border-color: rgba(255, 98, 98, 0.42);
            color: #ff8f8f;
        }

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

            header,
            .hero,
            .skills-section,
            .projects-section,
            .contact-section,
            footer {
                padding-left: var(--page-padding-tablet);
                padding-right: var(--page-padding-tablet);
            }

            header {
                grid-template-columns: 1fr;
                justify-items: center;
                gap: 18px;
            }

            .footer-shell {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .footer-nav,
            .footer-socials {
                justify-content: flex-start;
            }

            .projects-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .project-card,
            .project-card-hero,
            .project-card-featured-secondary {
                grid-column: auto;
            }

            .project-card-hero {
                display: block;
            }

            .project-card-hero .project-image {
                margin-bottom: 14px;
            }
        }

        @media (max-width: 900px) {
            .hero {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 20px;
                padding-top: 14px;
                padding-bottom: 24px;
            }

            .hero h1 {
                margin-bottom: 14px;
            }

            .hero p {
                margin-left: auto;
                margin-right: auto;
                margin-bottom: 18px;
                text-align: center;
            }

            .profile-img {
                max-width: 320px;
                aspect-ratio: 1 / 0.88;
                object-fit: cover;
                object-position: center 34%;
            }

            .hero-media {
                max-width: 320px;
            }

            .projects-section {
                padding-left: 60px;
                padding-right: 60px;
            }
        }

        @media (max-width: 768px) {

            header,
            .hero,
            .skills-section,
            .contact-section,
            footer {
                padding-left: var(--page-padding-mobile);
                padding-right: var(--page-padding-mobile);
            }

            .projects-section {
                padding-top: 72px;
                padding-bottom: 88px;
                padding-left: 20px;
                padding-right: 20px;
            }

            header {
                gap: 12px;
                padding-top: 18px;
                padding-bottom: 18px;
            }

            .header-nav {
                width: 100%;
                justify-content: space-between;
            }

            .header-nav a {
                flex: 1;
                padding: 9px 8px;
                text-align: center;
            }

            .header-actions {
                flex-direction: row;
                gap: 12px;
            }

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

            .hero p {
                margin-left: auto;
                margin-right: auto;
                text-align: center;
            }

            .profile-img,
            .hero-media {
                max-width: 280px;
            }

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

            .projects-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 24px;
            }

            .project-card,
            .project-card-hero,
            .project-card-featured-secondary {
                grid-column: auto;
            }

            .project-card {
                padding: 8px;
            }

            .project-info h3 {
                font-size: clamp(16px, 3vw, 22px);
            }

            .project-summary {
                font-size: 14px;
            }

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

            .contact-form {
                gap: 24px;
                padding: 38px 28px;
            }

            .form-group input,
            .form-group textarea {
                padding: 19px 20px;
            }

            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }

            .footer-logo {
                font-size: 28px;
            }

            .footer-nav {
                flex-wrap: wrap;
                gap: 16px;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 10px;
            }
        }

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

            .project-info h3 {
                font-size: 24px;
            }
        }
