       * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            -webkit-text-size-adjust: 100%;
            height: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background: #111111;
            color: white;
            overflow-x: hidden;
            line-height: 1.6;
            min-height: 100vh;
            min-height: -webkit-fill-available;
            position: relative;
        }

        /* Animated Background */
        #element {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .frame {
            margin: 15px;
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: -1;
            border: 2px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
        }

        /* Desktop Navigation */
        .navbar {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            right: 20px;
            z-index: 100;
            font-size: 18px;
            display: flex;
            flex-direction: column;
        }

        .nav-indicator {
            position: absolute;
            left: -16px;
            top: 14px;
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            border-left: 10px solid #ffffff;
            transition: all 0.3s ease;
            opacity: 0;
        }

        .nav-link {
            display: block;
            color: #cccccc;
            text-decoration: none;
            padding: 8px 0;
            transition: all 0.3s ease;
            position: relative;
            margin-right: 10px;
            white-space: nowrap;
        }

        .nav-link:hover,
        .nav-link.active {
            color: #ffffff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .nav-link.active ~ .nav-indicator {
            opacity: 1;
        }

        /* Mobile Navigation - Redesigned */
        .mobile-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(17, 17, 17, 0.98);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-top: 0.5px solid rgba(255, 255, 255, 0.15);
            z-index: 100;
            padding: 0;
            padding-bottom: env(safe-area-inset-bottom);
        }

        .mobile-nav-content {
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 4px 0 10px 0;
        }

        .mobile-nav-link {
            color: #888;
            text-decoration: none;
            font-size: 10px;
            padding: 4px;
            border-radius: 12px;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            flex: 1;
            max-width: 80px;
        }

        .mobile-nav-link::before {
            content: '';
            width: 24px;
            height: 24px;
            background: currentColor;
            mask-size: contain;
            -webkit-mask-size: contain;
            mask-repeat: no-repeat;
            -webkit-mask-repeat: no-repeat;
            mask-position: center;
            -webkit-mask-position: center;
        }

        .mobile-nav-link[data-section="about"]::before {
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
        }

        .mobile-nav-link[data-section="projects"]::before {
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
        }

        .mobile-nav-link[data-section="skills"]::before {
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
        }

        .mobile-nav-link[data-section="faqs"]::before {
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
        }

        .mobile-nav-link.active {
            color: #ffffff;
        }

        .mobile-nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            background: #ffffff;
            border-radius: 50%;
        }

        /* Sections */
        .section {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 0 8%;
            padding-bottom: 80px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .section.active {
            opacity: 1;
            visibility: visible;
        }

        .section-content {
            max-width: 600px;
            width: 100%;
            animation: slideIn 0.8s ease-out;
            margin-top: auto;
            margin-bottom: auto;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* About Section */
        .about-content h1 {
            font-size: clamp(2.5rem, 7vw, 4rem);
            font-weight: 300;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #ffffff, #cccccc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.1;
        }

        .about-content .role {
            font-size: clamp(1.1rem, 3.5vw, 1.8rem);
            color: #aaaaaa;
            margin-bottom: 2rem;
            font-weight: 300;
        }

        .about-content .description {
            font-size: clamp(1rem, 2.5vw, 1.2rem);
            margin-bottom: 2rem;
            color: #cccccc;
            line-height: 1.6;
        }

        .skills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 2rem;
        }

        .skill-tag {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 25px;
            font-size: 0.9rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .skill-tag:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .social-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .social-link {
            color: #cccccc;
            text-decoration: none;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            border-bottom: 1px solid transparent;
            padding: 5px 0;
        }

        .social-link:hover {
            color: #ffffff;
            border-bottom-color: #ffffff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
            max-height: calc(100vh - 200px);
            overflow-y: auto;
            padding-right: 0.5rem;
        }

        .project-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .project-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .project-card h3 {
            font-size: 1.3rem;
            margin-bottom: 0.8rem;
            color: #ffffff;
        }

        .project-card p {
            color: #cccccc;
            margin-bottom: 1rem;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .tech-tag {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.8rem;
            color: #aaaaaa;
        }

        .project-links {
            display: flex;
            gap: 1rem;
        }

        .project-link {
            color: #cccccc;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            border-bottom: 1px solid transparent;
            padding: 2px 0;
        }

        .project-link:hover {
            color: #ffffff;
            border-bottom-color: #ffffff;
        }

        /* Skills Section */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
            max-height: calc(100vh - 200px);
            overflow-y: auto;
            padding-right: 0.5rem;
        }

        .skill-box {
            background: rgba(83, 83, 83, 0.17);
            padding: 1.5rem;
            border-radius: 16px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .skill-box:hover {
            transform: translateY(-3px);
            background: rgba(83, 83, 83, 0.25);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .skill-box h2 {
            font-size: 1.3rem;
            margin-bottom: 0.8rem;
            color: #ffffff;
            font-weight: 400;
        }

        .skill-box p {
            color: #cccccc;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* FAQ Section */
        .questions {
            width: 100%;
            max-width: 1000px;
            background: rgba(83, 83, 83, 0.17);
            padding: 1.5rem;
            border-radius: 16px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            max-height: calc(100vh - 200px);
            overflow-y: auto;
        }

        .questions h3 {
            margin-bottom: 10px;
            font-size: 1.2rem;
            line-height: 1.4;
        }

        .questions h5 {
            margin-bottom: 30px;
            font-style: italic;
            font-size: 1rem;
            line-height: 1.5;
            color: #cccccc;
        }

        /* Contact */
        .contact {
            position: fixed;
            bottom: 40px;
            left: 8%;
            z-index: 100;
        }

        .contact-email {
            color: #cccccc;
            text-decoration: none;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            border-bottom: 1px solid transparent;
        }

        .contact-email:hover {
            color: #ffffff;
            border-bottom-color: #ffffff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        /* Enhanced Loading Screen with Skip Button */
        .loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            background: linear-gradient(135deg, #0a0a0a 0%, #202020 50%, #0a0a0a 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: all 1s ease;
            overflow: hidden;
        }

        .loading.hidden {
            opacity: 0;
            transform: translateY(-100%);
            pointer-events: none;
        }

        /* Skip Intro Button */
        .skip-intro {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 25px;
            color: #ffffff;
            cursor: pointer;
            font-size: 14px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeIn 1s ease-out 1s forwards;
            z-index: 1001;
        }

        .skip-intro:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }

        .skip-intro:active {
            transform: scale(0.95);
        }

        .loading-content {
            text-align: center;
            animation: fadeInUp 1.5s ease-out;
            padding: 0 20px;
        }

        .loading-logo {
            font-size: clamp(2.5rem, 8vw, 5rem);
            font-weight: 100;
            margin-bottom: 2rem;
            background: linear-gradient(135deg, #ffffff, #888888, #ffffff);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 2s ease-in-out infinite, typewriter 2s steps(12) 1s both;
            white-space: nowrap;
            overflow: hidden;
            border-right: 2px solid #ffffff;
        }

        .loading-subtitle {
            font-size: clamp(1rem, 3vw, 1.5rem);
            color: #cccccc;
            font-weight: 300;
            margin-bottom: 3rem;
            opacity: 0;
            animation: fadeIn 1s ease-out 2.5s both;
        }

        .loading-progress {
            width: min(300px, 80vw);
            height: 2px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 1px;
            overflow: hidden;
            margin: 0 auto 2rem;
            opacity: 0;
            animation: fadeIn 1s ease-out 3s both;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #ffffff, #888888, #ffffff);
            background-size: 200% 100%;
            width: 0%;
            animation: loadProgress 2s ease-out 3s both, shimmer 1.5s ease-in-out infinite;
        }

        .loading-dots {
            display: flex;
            gap: 8px;
            margin-top: 2rem;
            opacity: 0;
            animation: fadeIn 1s ease-out 4s both;
            justify-content: center;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ffffff;
            animation: pulse-dot 1.5s ease-in-out infinite;
        }

        .dot:nth-child(2) { animation-delay: 0.2s; }
        .dot:nth-child(3) { animation-delay: 0.4s; }

        /* Geometric elements */
        .loading-geometry {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0.1;
        }

        .geo-line {
            position: absolute;
            background: linear-gradient(90deg, transparent, #ffffff, transparent);
            animation: geo-move 3s linear infinite;
        }

        .geo-line:nth-child(1) {
            width: 200px;
            height: 1px;
            top: 20%;
            left: -200px;
        }

        .geo-line:nth-child(2) {
            width: 1px;
            height: 150px;
            top: -150px;
            right: 30%;
            animation-delay: 0.5s;
        }

        .geo-line:nth-child(3) {
            width: 180px;
            height: 1px;
            bottom: 25%;
            right: -180px;
            animation-delay: 1s;
        }

        .geo-line:nth-child(4) {
            width: 1px;
            height: 120px;
            bottom: -120px;
            left: 25%;
            animation-delay: 1.5s;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        @keyframes typewriter {
            from { width: 0; }
            to { width: 100%; }
        }

        @keyframes loadProgress {
            from { width: 0%; }
            to { width: 100%; }
        }

        @keyframes pulse-dot {
            0%, 100% {
                opacity: 0.3;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.2);
            }
        }

        @keyframes geo-move {
            0% { transform: translateX(0); }
            100% { transform: translateX(calc(100vw + 200px)); }
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .navbar {
                display: none;
            }
            
            .mobile-nav {
                display: block;
            }
            
            .frame {
                margin: 10px;
            }
            
            .section {
                padding: 20px;
                padding-bottom: 100px;
                align-items: flex-start;
                padding-top: env(safe-area-inset-top, 20px);
            }
            
            .section-content {
                margin-top: 20px;
            }
            .section-content h2{
              text-align: center;
            }
            .about-content h1 {
                text-align: center;
            }
            
            .about-content .role {
                text-align: center;
            }
            
            .about-content .description {
                text-align: center;
            }
            
            .skills {
                justify-content: center;
            }
            
            .social-links {
                justify-content: center;
                gap: 1rem;
            }
            
            .social-link {
                font-size: 0.95rem;
            }
            
            .contact {
                bottom: 90px;
                left: 50%;
                transform: translateX(-50%);
                text-align: center;
            }
            
            .contact-email {
                font-size: 0.9rem;
            }
            
            .projects-grid,
            .skills-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
                max-height: calc(100vh - 250px);
            }
            
            .questions {
                max-height: calc(100vh - 250px);
            }
            
            .skip-intro {
                top: env(safe-area-inset-top, 20px);
                right: 15px;
                padding: 8px 16px;
                font-size: 13px;
            }
        }

        /* Small iPhones (SE, 12 mini, etc.) */
        @media (max-width: 375px) {
            .section {
                padding: 15px;
                padding-bottom: 110px;
            }
            
            .about-content h1 {
                font-size: 2rem;
            }
            
            .about-content .role {
                font-size: 1rem;
                margin-bottom: 1.5rem;
            }
            
            .about-content .description {
                font-size: 0.9rem;
            }
            
            .skill-tag {
                font-size: 0.8rem;
                padding: 0.4rem 0.8rem;
            }
            
            .project-card {
                padding: 1.2rem;
            }
            
            .project-card h3 {
                font-size: 1.1rem;
            }
            
            .project-card p {
                font-size: 0.85rem;
            }
            
            .skill-box {
                padding: 1.2rem;
            }
            
            .skill-box h2 {
                font-size: 1.1rem;
            }
            
            .skill-box p {
                font-size: 0.85rem;
            }
            
            .questions {
                padding: 1.2rem;
            }
            
            .questions h3 {
                font-size: 1rem;
            }
            
            .questions h5 {
                font-size: 0.85rem;
                margin-bottom: 20px;
            }
            
            .mobile-nav-link {
                font-size: 9px;
            }
            
            .loading-logo {
                font-size: 2rem;
            }
        }

        /* Landscape orientation fixes */
        @media (max-height: 500px) and (orientation: landscape) {
            .section {
                padding-top: 10px;
                padding-bottom: 70px;
            }
            
            .projects-grid,
            .skills-grid,
            .questions {
                max-height: calc(100vh - 150px);
            }
            
            .mobile-nav {
                padding: 0;
            }
            
            .mobile-nav-content {
                padding: 4px 0 8px 0;
            }
            
            .mobile-nav-link {
                padding: 6px;
            }
            
            .mobile-nav-link::before {
                width: 20px;
                height: 20px;
            }
        }

        /* iOS specific fixes */
        @supports (-webkit-touch-callout: none) {
            .section {
                min-height: -webkit-fill-available;
            }
            
            .loading {
                min-height: -webkit-fill-available;
            }
        }

        /* Prevent zoom on input focus for iOS */
        @media (max-width: 768px) {
            input, select, textarea {
                font-size: 16px !important;
            }
        }