        body {
            box-sizing: border-box;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #5591a9;
            --secondary: #9ccddc;
            --accent: #054569;
            --bg-dark: #062c43;
            --text-light: #f0f4f8;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Space Grotesk', sans-serif;
            background: var(--bg-dark);
            color: var(--text-light);
            overflow-x: hidden;
        }

        .font-mono {
            font-family: 'JetBrains Mono', monospace;
        }

        /* Space Background */
        .space-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #062c43 0%, #054569 25%, #0a3a52 50%, #054569 75%, #062c43 100%);
            z-index: -3;
        }

        /* Stars */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            overflow: hidden;
        }

        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle 3s ease-in-out infinite;
        }

        @keyframes twinkle {

            0%,
            100% {
                opacity: 0.3;
                transform: scale(1);
            }

            50% {
                opacity: 1;
                transform: scale(1.2);
            }
        }

        /* Nebula Glow */
        .nebula {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            z-index: -2;
            animation: nebulaPulse 8s ease-in-out infinite;
        }

        @keyframes nebulaPulse {

            0%,
            100% {
                opacity: 0.15;
                transform: scale(1);
            }

            50% {
                opacity: 0.25;
                transform: scale(1.1);
            }
        }

        /* Hexagonal Crystals */
        .hexagon-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            overflow: hidden;
        }

        .hexagon {
            position: absolute;
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            animation: hexDrift 20s ease-in-out infinite;
        }

        .hexagon-outline {
            position: absolute;
            border: 2px solid;
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            animation: hexDrift 25s ease-in-out infinite reverse;
        }

        @keyframes hexDrift {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            25% {
                transform: translateY(-20px) rotate(5deg);
            }

            50% {
                transform: translateY(-10px) rotate(-3deg);
            }

            75% {
                transform: translateY(-30px) rotate(3deg);
            }
        }

        /* Loader */
        .loader-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-dark);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loader-overlay.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-spinner {
            width: 60px;
            height: 60px;
            border: 3px solid rgba(139, 92, 246, 0.2);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .loader-text {
            margin-top: 20px;
            font-size: 14px;
            color: var(--primary);
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 1;
            }
        }

        /* Intro Overlay */
        .intro-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #062c43 0%, #054569 50%, #0a3a52 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9998;
            text-align: center;
            padding: 20px;
        }

        .intro-overlay.hidden {
            display: none;
        }

        .intro-overlay.fade-out {
            animation: introFadeOut 0.8s ease-out forwards;
        }

        @keyframes introFadeOut {
            0% {
                opacity: 1;
                transform: scale(1);
            }

            100% {
                opacity: 0;
                transform: scale(0.95);
                visibility: hidden;
            }
        }

        .intro-welcome {
            font-size: clamp(2rem, 5vw, 4rem);
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: introTextIn 0.8s ease-out forwards;
            opacity: 0;
        }

        .intro-tagline {
            font-size: clamp(1rem, 2.5vw, 1.5rem);
            color: var(--text-light);
            margin-top: 20px;
            animation: introTextIn 0.8s ease-out 0.3s forwards;
            opacity: 0;
        }

        .intro-code {
            font-family: 'JetBrains Mono', monospace;
            font-size: clamp(0.8rem, 2vw, 1rem);
            color: var(--secondary);
            margin-top: 30px;
            padding: 15px 25px;
            background: rgba(6, 182, 212, 0.1);
            border: 1px solid rgba(6, 182, 212, 0.3);
            border-radius: 8px;
            animation: introTextIn 0.8s ease-out 0.6s forwards;
            opacity: 0;
        }

        @keyframes introTextIn {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Scroll Animations */
        .scroll-animate {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .scroll-animate.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .scroll-animate-left {
            opacity: 0;
            transform: translateX(-40px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .scroll-animate-left.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .scroll-animate-right {
            opacity: 0;
            transform: translateX(40px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .scroll-animate-right.visible {
            opacity: 1;
            transform: translateX(0);
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 15px 0;
            background: rgba(15, 10, 31, 0.9);
            backdrop-filter: blur(10px);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .navbar.scrolled {
            padding: 10px 0;
            box-shadow: 0 4px 20px rgba(85, 145, 169, 0.15);
        }

        .nav-link {
            color: var(--text-light);
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
            font-size: 14px;
        }

        .nav-link:hover {
            color: var(--primary);
            background: rgba(139, 92, 246, 0.1);
        }

        .nav-link.active {
            color: var(--primary);
            background: rgba(139, 92, 246, 0.15);
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: rgba(15, 10, 31, 0.98);
                flex-direction: column;
                padding: 20px;
                gap: 10px;
                display: none !important;
                border-top: 1px solid rgba(139, 92, 246, 0.2);
            }

            .nav-links.open {
                display: flex !important;
            }
        }

        /* Hero Section */
        .hero {
            min-height: 100%;
            display: flex;
            align-items: center;
            padding: 120px 20px 80px;
        }

        .hero-title {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 20px;
        }

        .gradient-text {
            background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-tagline {
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            color: rgba(240, 244, 248, 0.95);
            max-width: 500px;
            margin-bottom: 30px;
        }

        /* Buttons */
        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 28px;
            background: linear-gradient(135deg, #5591a9, #054569);
            color: white;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(85, 145, 169, 0.4);
        }

        .btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 28px;
            background: transparent;
            color: var(--text-light);
            border: 2px solid rgba(85, 145, 169, 0.5);
            border-radius: 12px;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .btn-secondary:hover {
            border-color: var(--primary);
            background: rgba(85, 145, 169, 0.1);
            transform: translateY(-3px);
        }

        /* Code Card */
        .code-card {
            background: rgba(6, 44, 67, 0.8);
            border: 1px solid rgba(85, 145, 169, 0.3);
            border-radius: 16px;
            padding: 20px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            backdrop-filter: blur(10px);
            max-width: 100%;
            overflow-x: auto;
        }

        .code-header {
            display: flex;
            gap: 6px;
            margin-bottom: 15px;
        }

        .code-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .code-keyword {
            color: var(--accent);
        }

        .code-function {
            color: var(--secondary);
        }

        .code-string {
            color: #A5D6A7;
        }

        .code-comment {
            color: #6B7280;
        }

        /* Section Styles */
        .section {
            padding: 100px 20px;
            position: relative;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 700;
            text-align: center;
            margin-bottom: 15px;
        }

        .section-subtitle {
            text-align: center;
            color: rgba(240, 244, 248, 0.9);
            max-width: 600px;
            margin: 0 auto 60px;
        }

        /* About Cards */
        .about-card {
            background: rgba(5, 69, 105, 0.4);
            border: 1px solid rgba(85, 145, 169, 0.2);
            border-radius: 16px;
            padding: 25px;
            transition: all 0.3s ease;
        }

        .about-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary);
            box-shadow: 0 10px 40px rgba(85, 145, 169, 0.2);
        }

        .about-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 15px;
        }

        /* Skills */
        .skill-category {
            background: rgba(5, 69, 105, 0.4);
            border: 1px solid rgba(85, 145, 169, 0.2);
            border-radius: 16px;
            padding: 30px;
            transition: all 0.3s ease;
        }

        .skill-category:hover {
            border-color: var(--primary);
            transform: translateY(-5px);
        }

        .skill-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            background: rgba(85, 145, 169, 0.15);
            border: 1px solid rgba(85, 145, 169, 0.3);
            border-radius: 30px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .skill-badge:hover {
            background: rgba(85, 145, 169, 0.25);
            transform: scale(1.05);
        }

        .skill-bar {
            height: 8px;
            background: rgba(85, 145, 169, 0.2);
            border-radius: 4px;
            overflow: hidden;
            margin-top: 8px;
        }

        .skill-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 4px;
            width: 0;
            transition: width 1s ease;
        }

        /* Project Cards */
        .project-card {
            background: rgba(5, 69, 105, 0.5);
            border: 1px solid rgba(85, 145, 169, 0.2);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .project-card:hover {
            transform: translateY(-8px);
            border-color: var(--primary);
            box-shadow: 0 20px 50px rgba(85, 145, 169, 0.25);
        }

        .project-image {
            height: 200px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .project-image:hover img {
            transform: scale(1.1);
        }

        /* Lightbox */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(6, 44, 67, 0.95);
            backdrop-filter: blur(15px);
            z-index: 10001;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 40px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .lightbox.show {
            display: flex;
            opacity: 1;
        }

        .lightbox-content-wrapper {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-content {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .lightbox.show .lightbox-content {
            transform: scale(1);
        }

        .lightbox-close {
            position: absolute;
            top: 30px;
            right: 30px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10002;
        }

        .lightbox-close:hover {
            background: var(--primary);
            transform: rotate(90deg);
        }

        .project-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, transparent 50%, rgba(5, 69, 105, 0.8) 100%);
        }

        .project-featured {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--accent);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            z-index: 1;
        }

        .project-content {
            padding: 25px;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 15px 0;
        }

        .tech-tag {
            padding: 5px 12px;
            background: rgba(156, 205, 220, 0.15);
            border: 1px solid rgba(156, 205, 220, 0.3);
            border-radius: 15px;
            font-size: 12px;
            color: var(--secondary);
        }

        /* Services */
        .service-card {
            background: rgba(5, 69, 105, 0.4);
            border: 1px solid rgba(85, 145, 169, 0.2);
            border-radius: 20px;
            padding: 35px;
            text-align: center;
            transition: all 0.3s ease;
            height: 100%;
        }

        .service-card:hover {
            transform: translateY(-8px);
            border-color: var(--secondary);
            box-shadow: 0 15px 40px rgba(156, 205, 220, 0.2);
        }

        .service-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, rgba(85, 145, 169, 0.2), rgba(156, 205, 220, 0.2));
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 35px;
            margin: 0 auto 20px;
            transition: all 0.3s ease;
        }

        .service-card:hover .service-icon {
            transform: scale(1.1) rotate(5deg);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
        }

        /* Timeline */
        .timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 100%;
            background: linear-gradient(180deg, var(--primary), var(--secondary));
        }

        @media (max-width: 768px) {
            .timeline::before {
                left: 20px;
            }
        }

        .timeline-item {
            position: relative;
            padding: 20px 0;
        }

        .timeline-content {
            width: calc(50% - 40px);
            background: rgba(5, 69, 105, 0.5);
            border: 1px solid rgba(85, 145, 169, 0.2);
            border-radius: 16px;
            padding: 25px;
            transition: all 0.3s ease;
        }

        .timeline-content:hover {
            transform: translateX(5px);
            border-color: var(--primary);
        }

        .timeline-item:nth-child(odd) .timeline-content {
            margin-left: auto;
        }

        @media (max-width: 768px) {
            .timeline-content {
                width: calc(100% - 50px);
                margin-left: 50px !important;
            }
        }

        .timeline-dot {
            position: absolute;
            left: 50%;
            top: 30px;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: var(--primary);
            border-radius: 50%;
            border: 4px solid var(--bg-dark);
        }

        @media (max-width: 768px) {
            .timeline-dot {
                left: 20px;
            }
        }

        .timeline-date {
            font-size: 13px;
            color: var(--secondary);
            margin-bottom: 8px;
        }

        /* Contact Form */
        .contact-form {
            background: rgba(5, 69, 105, 0.5);
            border: 1px solid rgba(85, 145, 169, 0.2);
            border-radius: 20px;
            padding: 40px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-light);
        }

        .form-input {
            width: 100%;
            padding: 14px 18px;
            background: rgba(6, 44, 67, 0.8);
            border: 1px solid rgba(85, 145, 169, 0.3);
            border-radius: 12px;
            color: var(--text-light);
            font-size: 15px;
            font-family: 'Space Grotesk', sans-serif;
            transition: all 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 20px rgba(85, 145, 169, 0.2);
        }

        .form-input::placeholder {
            color: rgba(206, 215, 224, 0.6);
        }

        textarea.form-input {
            min-height: 150px;
            resize: vertical;
        }

        .contact-info-card {
            background: rgba(5, 69, 105, 0.4);
            border: 1px solid rgba(85, 145, 169, 0.2);
            border-radius: 16px;
            padding: 25px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
        }

        .contact-info-card:hover {
            border-color: var(--primary);
            transform: translateX(5px);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        /* Footer */
        .footer {
            background: rgba(6, 44, 67, 0.9);
            border-top: 1px solid rgba(85, 145, 169, 0.2);
            padding: 60px 20px 30px;
        }

        .social-link {
            width: 50px;
            height: 50px;
            background: rgba(85, 145, 169, 0.15);
            border: 1px solid rgba(85, 145, 169, 0.3);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: var(--text-light);
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .social-link:hover {
            background: var(--primary);
            transform: translateY(-5px);
        }

        /* Success Message */
        .success-message {
            background: linear-gradient(135deg, rgba(85, 145, 169, 0.2), rgba(156, 205, 220, 0.2));
            border: 1px solid rgba(85, 145, 169, 0.5);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            display: none;
        }

        .success-message.show {
            display: block;
            animation: fadeInUp 0.5s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Reduced Motion */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .scroll-animate,
            .scroll-animate-left,
            .scroll-animate-right {
                opacity: 1;
                transform: none;
            }
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 4px;
        }

        @view-transition {
            navigation: auto;
        }
