:root {
            /* New Deep Maroon/Mehroon Palette */
            --primary: #991B1B; /* Deep Maroon/Wine Red */
            --primary-light: #B91C1C; /* Lighter, but still strong red */
            --primary-dark: #7F1D1D; /* Darker, rich maroon */
            
            /* Kept the original energetic orange as the accent */
            --secondary: #F59E0B;
            --secondary-light: #FBBF24;
            --secondary-dark: #D97706;
            
            /* Softer, warmer blacks and whites */
            --dark: #18181b; /* Soft black for text (not #0d0d0d) */
            --dark-light: #374151;
            --light: #FFFBF7; /* A warm, antique-white background */
            --light-dark: #f0e2e2; /* Kept original, it's a warm gray */
            
            --accent: #F59E0B;
            --gray: #6B7281; /* A cleaner, neutral gray for subtitles */
            --light-gray: #E2E8F0;
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --transition-fast: all 0.2s ease-in-out;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
            --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
            
            /* CRITICAL: Fixed shadows to use the new deep maroon */
            --shadow-primary: 0 4px 15px rgba(153, 27, 27, 0.4);
            --shadow-primary-hover: 0 6px 20px rgba(153, 27, 27, 0.5);
            
            --border-radius-sm: 8px;
            --border-radius-md: 12px;
            --border-radius-lg: 16px;
            --border-radius-xl: 24px;
            --border-radius-full: 50px;
            --vh: 1vh;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--dark);
            line-height: 1.7;
            background-color: var(--light);
            overflow-x: hidden;
            position: relative;
            width: 100%;
        }

        h1,
        h2,
        h3,
        h4 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            line-height: 1.3;
        }

        /* Preloader */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        .preloader.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .bars {
            display: flex;
            gap: 3px;
            align-items: end;
            height: 40px;
        }

        .bar {
            width: 4px;
            background: var(--primary);
            animation: bar-scale 1.5s ease-in-out infinite;
        }

        .bar:nth-child(1) {
            height: 15px;
            animation-delay: 0s;
        }

        .bar:nth-child(2) {
            height: 25px;
            animation-delay: 0.1s;
        }

        .bar:nth-child(3) {
            height: 35px;
            animation-delay: 0.2s;
        }

        .bar:nth-child(4) {
            height: 20px;
            animation-delay: 0.3s;
        }

        .bar:nth-child(5) {
            height: 30px;
            animation-delay: 0.4s;
        }

        .bar:nth-child(6) {
            height: 10px;
            animation-delay: 0.5s;
        }

        @keyframes bar-scale {
            0%, 100% {
                transform: scaleY(0.3);
            }
            50% {
                transform: scaleY(1);
            }
        }

        .preloader-text {
            color: white;
            font-size: 1.2rem;
            margin-top: 1rem;
            text-align: center;
        }

        /* Particles */
        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 0;
        }

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

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

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: var(--border-radius-full);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Header */
        header {
            background: rgba(26, 32, 44, 0.9);
            backdrop-filter: blur(10px);
            color: white;
            padding: 1rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
        }

        header.scrolled {
            padding: 0.8rem 0;
            box-shadow: var(--shadow-lg);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 90%;
            max-width: 1400px;
            margin: auto;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 600;
            color: white;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            transition: var(--transition);
        }

        .logo:hover {
            transform: scale(1.05);
            color: var(--primary);
        }

        .logo i {
            font-size: 1.2rem;
        }

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

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            position: relative;
            padding: 0.5rem 0;
            transition: var(--transition);
        }

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

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

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

        .menu-toggle {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: white;
            transition: var(--transition);
            z-index: 1001;
            background: none;
            border: none;
        }

        .menu-toggle:hover {
            color: var(--primary);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            min-height: calc(var(--vh, 1vh) * 100);
            display: flex;
            align-items: center;
            padding: 6rem 1rem 3rem;
            background: linear-gradient(135deg, rgba(247, 250, 252, 0.9) 0%, rgba(254, 252, 241, 0.8) 100%),
                url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1472&q=80') no-repeat center/cover;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 50%, rgba(127, 71, 248, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            align-items: center;
        }

        .hero-text h1 {
            font-size: clamp(2rem, 5vw, 3rem);
            line-height: 1.2;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }

        .typing {
            color: var(--primary);
            font-weight: 700;
            position: relative;
        }

        .typing::after {
            content: '|';
            position: absolute;
            right: -8px;
            animation: blink 0.7s infinite;
        }

        @keyframes blink {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
        }

        .hero-text p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            color: #555;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }

        .btn {
            padding: 0.8rem 1.5rem;
            border-radius: var(--border-radius-full);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            z-index: 1;
            min-height: 44px;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: var(--dark);
            transition: var(--transition);
            z-index: -1;
        }

        .btn:hover::before {
            width: 100%;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: var(--shadow-primary);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: var(--shadow-primary-hover);
        }

        .btn-secondary {
            border: 2px solid var(--dark);
            color: var(--dark);
        }

        .btn-secondary:hover {
            background: var(--dark);
            color: white;
            transform: translateY(-3px);
            border-color: var(--dark);
        }

        .hero-image {
            position: relative;
            height: auto;
            display: flex;
            justify-content: center;
            align-items: center;
            order: -1;
        }

        .profile-img {
            width: 380px;
            height: 380px;
            border-radius: 50%;
            object-fit: cover;
            border: 6px solid white;
            box-shadow: var(--shadow-xl);
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-15px);
            }
            100% {
                transform: translateY(0px);
            }
        }

        .shape {
            position: absolute;
            opacity: 0.1;
            z-index: -1;
        }

        .shape-1 {
            top: 0;
            left: 0;
            width: 150px;
            animation: rotate 20s linear infinite;
        }

        .shape-2 {
            bottom: 0;
            right: 0;
            width: 200px;
            animation: rotate 25s linear infinite reverse;
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        /* Floating Elements */
        .floating-element {
            position: absolute;
            border-radius: 50%;
            background: rgba(248, 60, 60, 0.1);
            backdrop-filter: blur(5px);
            z-index: -1;
        }

        .floating-1 {
            width: 80px;
            height: 80px;
            top: 20%;
            left: 10%;
            animation: float 8s ease-in-out infinite;
        }

        .floating-2 {
            width: 120px;
            height: 120px;
            bottom: 15%;
            right: 15%;
            animation: float 10s ease-in-out infinite reverse;
        }

        /* Section Styling */
        .section {
            padding: 4rem 1rem;
            position: relative;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }

        .section-title h2 {
            font-size: 2rem;
            display: inline-block;
            position: relative;
            color: var(--dark);
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }

        .section-subtitle {
            color: var(--gray);
            font-size: 1rem;
            max-width: 700px;
            margin: 1rem auto 0;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        /* About Section */
        #about {
            background-color: white;
        }

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

        .about-image {
            position: relative;
            height: 350px;
            margin-bottom: 2rem;
        }

        .about-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-lg);
            transition: var(--transition);
        }

        .about-image:hover .about-img {
            transform: scale(1.02);
        }

        .about-img-2 {
            position: absolute;
            width: 180px;
            height: 180px;
            border-radius: var(--border-radius-md);
            object-fit: cover;
            box-shadow: var(--shadow-md);
            right: -15px;
            bottom: -15px;
            border: 4px solid white;
            transition: var(--transition);
        }

        .about-image:hover .about-img-2 {
            transform: translate(-5px, -5px) rotate(5deg);
        }

        .about-text h3 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: #555;
            font-size: 1rem;
        }

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

        .stat-item {
            background: rgba(247, 250, 252, 0.8);
            padding: 1.2rem;
            border-radius: var(--border-radius-md);
            text-align: center;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .stat-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
            background: white;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-family: 'Poppins', sans-serif;
        }

        .stat-label {
            font-size: 0.8rem;
            color: #777;
            font-weight: 500;
        }

        /* Skills Section */
        #skills {
            background: linear-gradient(135deg, rgba(247, 250, 252, 0.9) 0%, rgba(240, 253, 250, 0.8) 100%);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .skill-card {
            background: white;
            padding: 1.5rem;
            border-radius: var(--border-radius-lg);
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
            border-top: 4px solid var(--primary);
            position: relative;
            overflow: hidden;
        }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(98, 248, 71, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
            z-index: 0;
            opacity: 0;
            transition: var(--transition);
            pointer-events: none;
        }

        .skill-card:hover::before {
            opacity: 1;
        }

        .skill-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }

        .skill-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: var(--primary);
            transition: var(--transition);
        }

        .skill-card:hover .skill-icon {
            transform: scale(1.1);
        }

        .skill-card h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .skill-card h3::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--primary);
            transition: var(--transition);
        }

        .skill-card:hover h3::after {
            width: 60px;
        }

        .skill-card p {
            color: #666;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .tag {
            background: rgba(127, 71, 248, 0.2);
            color: var(--dark);
            padding: 0.3rem 0.8rem;
            border-radius: var(--border-radius-full);
            font-size: 0.75rem;
            font-weight: 500;
            transition: var(--transition-fast);
        }

        .tag:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        /* Progress Bars */
        .skill-progress {
            margin-top: 1.5rem;
        }

        .progress-item {
            margin-bottom: 1rem;
        }

        .progress-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .progress-bar {
            height: 8px;
            background: var(--light-gray);
            border-radius: var(--border-radius-full);
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--primary);
            border-radius: var(--border-radius-full);
            width: 0;
            transition: width 1.5s ease-in-out;
        }

        /* Portfolio Section */
        #portfolio {
            background-color: white;
        }

        .portfolio-filter {
            display: flex;
            justify-content: center;
            gap: 0.8rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 0.5rem 1.2rem;
            border-radius: var(--border-radius-full);
            background: transparent;
            border: 1px solid #ddd;
            color: #666;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
            min-height: 44px;
        }

        .filter-btn.active,
        .filter-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .portfolio-item {
            position: relative;
            border-radius: var(--border-radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            height: 250px;
        }

        .portfolio-item:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }

        .portfolio-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .portfolio-item:hover .portfolio-img {
            transform: scale(1.1);
        }

        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(26, 32, 44, 0.9) 0%, rgba(26, 32, 44, 0.3) 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.5rem;
            opacity: 0;
            transition: var(--transition);
        }

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

        .portfolio-category {
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 0.8rem;
        }

        .portfolio-title {
            color: white;
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
        }

        .portfolio-link {
            color: white;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
            transition: var(--transition);
        }

        .portfolio-link:hover {
            color: var(--accent);
            transform: translateX(5px);
        }

             /* Skills Logo Bar */
        #skills-bar {
            background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(26, 32, 44, 0.98) 100%),
                url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1469&q=80') no-repeat center/cover;
            color: white;
            padding: 4rem 0;
        }

        .skills-bar-title {
            color: white;
        }

        .skills-bar-title h2::after {
            background: var(--accent);
        }

        .skills-bar-title h2{
            color: white;
        }
        .skills-logos-container {
            overflow: hidden;
            position: relative;
            padding: 1.5rem 0;
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius-lg);
            margin-top: 1rem;
        }

        .skills-logos:h2{
            color: white;
        }

        .skills-track {
            display: flex;
            animation: scroll 30s linear infinite;
            width: max-content;
        }

        .skill-logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 120px;
            padding: 1rem;
            margin: 0 0.5rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--border-radius-md);
            transition: var(--transition);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .skill-logo:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .skill-logo i {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }

        .skill-logo span {
            font-size: 0.85rem;
            font-weight: 500;
            color: white;
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        /* Pause animation on hover */
        .skills-logos-container:hover .skills-track {
            animation-play-state: paused;
        }
        /* Clients Section */
        #clients {
            background: white;
        }

        .client-logos {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            margin-top: 2rem;
        }

        .client-logo {
            max-width: 120px;
            filter: grayscale(100%);
            opacity: 0.7;
            transition: var(--transition);
        }

        .client-logo:hover {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.1);
        }

        /* Contact Section */
        #contact {
            background: linear-gradient(135deg, rgba(247, 250, 252, 0.9) 0%, rgba(240, 253, 250, 0.8) 100%);
        }

        .contact-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .contact-card {
            background: white;
            padding: 1.5rem;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            display: flex;
            align-items: flex-start;
            gap: 1.2rem;
            transition: var(--transition);
        }

        .contact-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }

        .contact-icon {
            width: 45px;
            height: 45px;
            background: rgba(127, 71, 248, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: var(--primary);
            transition: var(--transition);
        }

        .contact-card:hover .contact-icon {
            background: var(--primary);
            color: white;
            transform: rotate(15deg);
        }

        .contact-details h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .contact-details p,
        .contact-details a {
            color: #666;
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.95rem;
        }

        .contact-details a:hover {
            color: var(--primary);
        }

        .social-links {
            display: flex;
            gap: 0.8rem;
            margin-top: 1rem;
        }

        .social-link {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(127, 71, 248, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark);
            transition: var(--transition);
        }

        .social-link:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
        }

        .contact-form {
            background: white;
            padding: 1.8rem;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }

        .contact-form:hover {
            box-shadow: var(--shadow-md);
        }

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

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

        .form-control {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid #ddd;
            border-radius: var(--border-radius-sm);
            font-family: 'Poppins', sans-serif;
            transition: var(--transition);
            font-size: 16px;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(127, 71, 248, 0.2);
        }

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

        .submit-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.9rem 1.8rem;
            border-radius: var(--border-radius-full);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            font-size: 1rem;
            box-shadow: var(--shadow-primary);
            position: relative;
            overflow: hidden;
            min-height: 44px;
        }

        .submit-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        .submit-btn:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }

        .submit-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: var(--shadow-primary-hover);
        }

        .submit-btn:disabled {
            background: var(--primary-light);
            cursor: not-allowed;
        }

        /* Newsletter */
        .newsletter {
            background: var(--dark);
            color: white;
            padding: 2.5rem 1.5rem;
            border-radius: var(--border-radius-lg);
            margin-top: 3rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .newsletter::before {
            content: '';
            position: absolute;
            top: -30px;
            right: -30px;
            width: 150px;
            height: 150px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }

        .newsletter h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .newsletter p {
            color: #bbb;
            max-width: 600px;
            margin: 0 auto 1.5rem;
            font-size: 0.95rem;
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            max-width: 500px;
            margin: 0 auto;
            gap: 1rem;
        }

        .newsletter-input {
            padding: 0.8rem 1rem;
            border: none;
            border-radius: var(--border-radius-full);
            font-family: 'Poppins', sans-serif;
            font-size: 16px;
        }

        .newsletter-input:focus {
            outline: none;
        }

        .newsletter-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.8rem;
            border-radius: var(--border-radius-full);
            cursor: pointer;
            transition: var(--transition);
            min-height: 44px;
        }

        .newsletter-btn:hover {
            background: var(--primary-dark);
        }

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 0 1.5rem;
            position: relative;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1.5rem;
            position: relative;
            z-index: 2;
        }

        .footer-col h3 {
            font-size: 1.3rem;
            margin-bottom: 1.2rem;
            color: white;
            position: relative;
            padding-bottom: 0.5rem;
            text-align: center;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 2px;
            background: var(--primary);
        }

        .footer-col p {
            color: #bbb;
            margin-bottom: 1.2rem;
            line-height: 1.6;
            text-align: center;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.7rem;
        }

        .footer-links a {
            color: #bbb;
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            justify-content: center;
        }

        .footer-links a:hover {
            color: var(--primary);
            padding-left: 5px;
        }

        .footer-links a i {
            font-size: 0.7rem;
        }

        .footer-social {
            display: flex;
            gap: 0.8rem;
            margin-top: 1.2rem;
            justify-content: center;
        }

        .footer-social a {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: var(--transition);
        }

        .footer-social a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 1.5rem;
            margin-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 2;
        }

        .footer-bottom p {
            color: #bbb;
            font-size: 0.85rem;
        }

        /* Back to top button */
        #topBtn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 999;
            background: var(--primary);
            color: white;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            font-size: 1.1rem;
            cursor: pointer;
            display: none;
            transition: var(--transition);
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: translateY(20px);
        }

        #topBtn.visible {
            opacity: 1;
            transform: translateY(0);
        }

        #topBtn:hover {
            background: var(--dark);
            transform: translateY(-5px) !important;
        }

        /* Screen reader only class */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Modal */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity var(--transition-normal);
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .modal:focus {
            outline: none;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(2px);
        }

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

        .modal-content {
            background: white;
            width: min(90%, 600px);
            max-height: min(90vh, 800px);
            border-radius: var(--border-radius-lg);
            position: relative;
            margin: 3.75rem auto;
            transform: scale(0.9);
            transition: transform var(--transition-normal);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .modal.active .modal-content {
            transform: scale(1);
        }

        .modal-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--light-dark);
            display: flex;
            justify-content: flex-end;
        }

        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            max-height: calc(90vh - 7rem);
            scrollbar-width: thin;
            scrollbar-color: var(--primary) transparent;
        }

        .modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: transparent;
        }

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

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 35px;
            height: 35px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            z-index: 10;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: var(--dark);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 2rem;
        }

        /* Mobile Navigation */
        .mobile-nav-close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 1.5rem;
            color: white;
            background: none;
            border: none;
            cursor: pointer;
            display: none;
            z-index: 1002;
        }

        /* Media Queries */
        @media (min-width: 576px) {
            .hero-content {
                padding: 0 1.5rem;
            }

            .portfolio-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .about-stats {
                grid-template-columns: repeat(3, 1fr);
            }

            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 768px) {
            .hero {
                padding: 7rem 2rem 4rem;
            }

            .hero-content {
                grid-template-columns: 1fr 1fr;
                text-align: left;
                gap: 2.5rem;
            }

            .hero-image {
                order: 0;
                height: 400px;
                margin-bottom: 0;
            }

            .hero-buttons {
                justify-content: flex-start;
            }

            .profile-img {
                width: 320px;
                height: 320px;
            }

            .section {
                padding: 5rem 2rem;
            }

            .about-content {
                grid-template-columns: 1fr 1fr;
            }

            .about-image {
                height: 400px;
                margin-bottom: 0;
            }

            .about-img-2 {
                width: 200px;
                height: 200px;
                right: -20px;
                bottom: -20px;
            }

            .skills-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .portfolio-grid {
                grid-template-columns: repeat(2, 1fr);
            }

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

            .footer-content {
                grid-template-columns: repeat(3, 1fr);
            }

            .footer-col h3 {
                text-align: left;
            }

            .footer-col h3::after {
                left: 0;
                transform: none;
            }

            .footer-col p {
                text-align: left;
            }

            .footer-links a {
                justify-content: flex-start;
            }

            .footer-social {
                justify-content: flex-start;
            }

            .newsletter-form {
                flex-direction: row;
            }

            .newsletter-input {
                border-radius: var(--border-radius-full) 0 0 var(--border-radius-full);
                margin-bottom: 0;
            }

            .newsletter-btn {
                border-radius: 0 var(--border-radius-full) var(--border-radius-full) 0;
            }
        }

        @media (min-width: 992px) {
            .menu-toggle {
                display: none;
            }

            .nav-links {
                display: flex;
            }

            .mobile-nav-close {
                display: none;
            }

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

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

            .hero-text h1 {
                font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
            }
        }

        @media (max-width: 991px) {
            .nav-links {
                display: none;
                flex-direction: column;
                background: var(--dark);
                position: fixed;
                top: 0;
                left: 0;
                width: 80%;
                height: 60vh;
                padding: 5rem 2rem 2rem;
                text-align: center;
                z-index: 1000;
                justify-content: center;
                gap: 2rem;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
            }

            .nav-links.active {
                display: flex;
                transform: translateX(0);
            }

            .menu-toggle {
                display: block;
            }

            .mobile-nav-close {
                display: block;
            }
        }

        @media (max-width: 480px) {
            .hero-buttons {
                flex-direction: column;
                width: 100%;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .about-img-2 {
                width: 120px;
                height: 120px;
            }

            .stat-item {
                padding: 1rem;
            }

            .stat-number {
                font-size: 1.8rem;
            }

            .portfolio-item {
                height: 220px;
            }

            .contact-form {
                padding: 1.5rem;
            }

            .newsletter {
                padding: 2rem 1rem;
            }

            .newsletter h3 {
                font-size: 1.3rem;
            }
        }

        /* Fix for iOS Safari */
        @supports (-webkit-touch-callout: none) {
            .hero {
                min-height: -webkit-fill-available;
            }
        }

        /* Prevent zoom on input focus for iOS */
        @media screen and (max-width: 768px) {
            input,
            select,
            textarea {
                font-size: 16px !important;
            }
        }

        /* Portfolio tilt helper */
        .portfolio-item {
            transform-style: preserve-3d;
            will-change: transform;
            transition: transform 300ms ease, box-shadow 300ms ease;
        }