/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
*, *::before, *::after {
    max-width: 100%;
}

/* Exception for transformed elements */
.code-animation, .hero-visual {
    max-width: none;
}

:root {
    /* Premium Color Palette */
    --primary-dark: #0a0a0a;
    --secondary-dark: #111111;
    --tertiary-dark: #1a1a1a;
    --quaternary-dark: #252525;
    --maroon-primary: #8B0000;
    --maroon-secondary: #A0252A;
    --maroon-light: #B22222;
    --maroon-gradient: linear-gradient(135deg, #8B0000 0%, #A0252A 50%, #B22222 100%);
    --accent-gold: #FFD700;
    --accent-gold-dark: #DAA520;
    --accent-crimson: #DC143C;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-dark-muted: #666666;
    --border-color: #2a2a2a;
    --border-light: #3a3a3a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-maroon: 0 8px 32px rgba(139, 0, 0, 0.3);
    --glow-maroon: 0 0 20px rgba(139, 0, 0, 0.5);

    /* Typography */
    --font-family: 'Rajdhani', 'Orbitron', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-family);
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}





html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 14px;
    background: var(--secondary-dark);
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D62929 0%, #8B0000 50%, #A0252A 100%);
    border-radius: 10px;
    border: 2px solid var(--secondary-dark);
    box-shadow:
        0 0 10px rgba(139, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF4444 0%, #B22222 50%, #D62929 100%);
    box-shadow:
        0 0 15px rgba(139, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #8B0000 0%, #D62929 50%, #FF4444 100%);
    box-shadow:
        0 0 20px rgba(139, 0, 0, 1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Remove scrollbar arrows/buttons */
::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-corner {
    background: var(--secondary-dark);
}

/* Firefox Scrollbar Support */
* {
    scrollbar-width: thick;
    scrollbar-color: #D62929 var(--secondary-dark);
}

/* Hide scrollbar during loading */
.simple-loader ~ * ::-webkit-scrollbar,
body.loading ::-webkit-scrollbar {
    display: none;
}





/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Premium Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

/* Removed blurred background behind navbar */

.navbar.scrolled {
    padding: 15px 20px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.navbar.scrolled .nav-container {
    max-width: 1200px;
    /* background: rgba(20, 20, 20, 0.15); */
    backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 8px 32px;
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); */
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.nav-logo {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-logo .logo-full {
    height: 40px;
    width: auto;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
    opacity: 1;
}

.nav-logo .logo-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: auto;
    opacity: 0;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-logo .logo-full {
    opacity: 0;
    transform: scale(0.8);
}

.navbar.scrolled .nav-logo .logo-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.nav-logo .logo:hover {
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 8px rgba(139, 0, 0, 0.4));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-menu {
    background: transparent;
    border: none;
    padding: 8px 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    text-transform: uppercase;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(139, 0, 0, 0.1);
    transform: translateY(-1px);
}

.navbar.scrolled .nav-link:hover {
    color: #8B0000;
    background: rgba(139, 0, 0, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(139, 0, 0, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .nav-link.active {
    color: #FF6B6B;
    background: rgba(139, 0, 0, 0.25);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000000;
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 100px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}







.hero-container {
    max-width: min(1400px, 100vw);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Typewriter Animation */
.typewriter {
    display: inline-block;
    color: var(--maroon-secondary);
    min-width: 200px;
    max-width: 100%;
    text-align: left;
    height: 1.2em;
    overflow: hidden;
    box-sizing: border-box;
}

.typewriter .cursor {
    display: inline-block;
    color: var(--maroon-secondary);
    margin-left: 2px;
    animation: blink 1s infinite;
    font-weight: 300;
}

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

.brand-text {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.code-symbol {
    color: var(--maroon-secondary);
    font-weight: 600;
    margin-left: 8px;
    font-size: 0.8em;
    animation: codeGlow 2s ease-in-out infinite alternate;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(139, 0, 0, 0.4);
}

@keyframes codeGlow {
    0% {
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 15px rgba(139, 0, 0, 0.4);
    }
    100% {
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 25px rgba(139, 0, 0, 0.7),
            0 0 35px rgba(139, 0, 0, 0.3);
    }
}

.maroon-text {
    color: var(--maroon-secondary);
    font-size: 0.85em;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    height: 52px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: all 0.6s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #8B0000 0%, #A0252A 100%);
    color: #ffffff;
    box-shadow:
        0 4px 16px rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #A0252A 0%, #B22222 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 0, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
}

/* Premium Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 60px;
    box-sizing: border-box;
}

.code-animation {
    position: relative;
    width: 490px;
    height: 310px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
    transform: perspective(800px) rotateY(-12deg) rotateX(6deg) rotateZ(1deg);
    transform-origin: center;
    transition: all 0.6s ease;
    margin: 0 auto;
}

.code-animation:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg) rotateZ(0deg);
    transform-origin: center;
}

.code-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 0 24px;
    backdrop-filter: blur(10px);
}

.code-animation::after {
    content: '⬤ ⬤ ⬤';
    position: absolute;
    top: 16px;
    left: 24px;
    color: #8B0000;
    font-size: 10px;
    letter-spacing: 6px;
    filter: drop-shadow(0 0 4px rgba(139, 0, 0, 0.5));
}

.code-line {
    height: 8px;
    background: linear-gradient(90deg, #8B0000, #A0252A, #FFD700);
    margin: 24px 32px;
    border-radius: 4px;
    animation: premiumCodeFlow 5s ease-in-out infinite;
    box-shadow:
        0 0 12px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.code-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: premiumShimmer 4s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 80%;
    animation-delay: 0s;
    margin-top: 72px;
    background: linear-gradient(90deg, #8B0000, #A0252A);
}
.code-line:nth-child(2) {
    width: 60%;
    animation-delay: 1s;
    background: linear-gradient(90deg, #A0252A, #FFD700);
}
.code-line:nth-child(3) {
    width: 90%;
    animation-delay: 2s;
    background: linear-gradient(90deg, #FFD700, #8B0000);
}
.code-line:nth-child(4) {
    width: 70%;
    animation-delay: 3s;
    background: linear-gradient(90deg, #8B0000, #A0252A, #FFD700);
}

@keyframes premiumCodeFlow {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1) scaleY(1);
        filter: brightness(0.9);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.02) scaleY(1.1);
        filter: brightness(1.3);
    }
}

@keyframes premiumShimmer {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Styles */
section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}



.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    position: relative;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* About Section */
.about {
    padding: 10px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}



.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-badge {
    display: inline-block;
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.badge-text {
    color: #8B0000;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.about-title .highlight {
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-point:hover {
    background: rgba(139, 0, 0, 0.05);
    border-color: rgba(139, 0, 0, 0.2);
    transform: translateX(8px);
}

.feature-point .feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.about-visual {
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(139, 0, 0, 0.05);
    border-color: rgba(139, 0, 0, 0.2);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: block;
}

.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B0000, #FF6B6B);
    border-radius: 2px;
    transition: width 2s ease;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(139, 0, 0, 0.05);
    border-color: rgba(139, 0, 0, 0.2);
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 1.5rem;
    color: #8B0000;
}

.tech-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Our Expertise Section */
.expertise {
    padding: 100px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}



.expertise-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    background: rgba(139, 0, 0, 0.08);
    border: 1px solid rgba(139, 0, 0, 0.25);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section-badge:hover {
    background: rgba(139, 0, 0, 0.12);
    border-color: rgba(139, 0, 0, 0.35);
}

.badge-text {
    color: #8B0000;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, #8B0000, #FF6B6B, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.expertise-item {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 10px;
}

.expertise-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expertise-item:hover::before {
    opacity: 1;
}

.expertise-item:hover {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(20, 20, 20, 0.6);
    border-color: rgba(139, 0, 0, 0.15);
    transform: translateX(8px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.expertise-item.featured {
    background:
        linear-gradient(145deg, rgba(139, 0, 0, 0.04), rgba(139, 0, 0, 0.02)),
        rgba(20, 20, 20, 0.5);
    border-color: rgba(139, 0, 0, 0.2);
    margin-bottom: 10px;
}

.expertise-item.featured::before {
    opacity: 1;
}

.item-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 107, 107, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow:
        0 4px 16px rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.expertise-item:hover .item-icon {
    transform: scale(1.05);
    box-shadow:
        0 6px 20px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 16px;
}

.item-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.item-badge {
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.item-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 200px;
    text-align: right;
}

.item-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
}

.item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.price {
    color: #8B0000;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.action-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.action-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    transition: width 0.3s ease;
}

.action-link:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.action-link:hover::after {
    width: 100%;
}

/* Responsive Design for Expertise Section */
@media (max-width: 768px) {
    .expertise-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }

    .item-number {
        font-size: 1.5rem;
        min-width: auto;
    }

    .item-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .item-action {
        align-items: center;
        text-align: center;
        min-width: auto;
        width: 100%;
    }

    .item-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }

    .item-pricing {
        align-items: center;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .expertise-item {
        padding: 20px;
        gap: 16px;
    }

    .item-title {
        font-size: 1.3rem;
    }

    .item-description {
        font-size: 0.9rem;
    }

    .item-features {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .expertise {
        padding: 80px 0;
    }

    .expertise-header {
        margin-bottom: 60px;
    }
}



/* Why Choose Us Section */
.why-choose {
    padding: 0 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}



.why-choose-content {
    position: relative;
    z-index: 2;
}

.why-choose-intro {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    color: #8B0000;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.why-choose-intro .section-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
}

.highlight-text {
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B0000, #FF6B6B);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.advantage-card:hover {
    background: rgba(139, 0, 0, 0.03);
    border-color: rgba(139, 0, 0, 0.2);
    transform: translateY(-8px);
}

.advantage-card.spotlight {
    background: rgba(139, 0, 0, 0.05);
    border-color: rgba(139, 0, 0, 0.2);
    transform: scale(1.02);
}

.advantage-card.spotlight::before {
    opacity: 1;
}

.advantage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.advantage-badge {
    background: rgba(139, 0, 0, 0.1);
    color: #8B0000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.advantage-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.advantage-metrics {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 4px;
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.advantage-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-features li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.advantage-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8B0000;
    font-weight: bold;
}

.why-choose-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.why-choose-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at center, rgba(139, 0, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(135deg, #8B0000, #FF6B6B);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 0, 0, 0.4);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.portfolio-item {
    background: var(--secondary-dark);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        var(--glow-maroon);
    border-color: var(--maroon-secondary);
}

.portfolio-item:hover .portfolio-image {
    background: linear-gradient(135deg, var(--tertiary-dark), var(--quaternary-dark));
}

.portfolio-item:hover .portfolio-image i {
    transform: scale(1.2) rotate(5deg);
    color: var(--maroon-secondary);
    filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.5));
}

.portfolio-image {
    height: 200px;
    background: var(--tertiary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-image i {
    font-size: 3rem;
    color: var(--maroon-secondary);
}

.portfolio-content {
    padding: var(--spacing-xl);
}

.portfolio-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.tag {
    background: var(--maroon-primary);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: #000000;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

/* Particles.js container for contact section */
.contact #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.contact #particles-js canvas {
    pointer-events: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--maroon-secondary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--maroon-primary), var(--maroon-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon i {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.method-info h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.method-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form input,
.form select,
.form textarea {
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--maroon-secondary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form input::placeholder,
.form textarea::placeholder {
    color: var(--text-muted);
}

.form select {
    cursor: pointer;
}

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

/* Footer */
.footer {
    --_footer-color: rgba(139, 0, 0, 0.15);
    --_footer-margin: 2rem;
    --_footer-size-first-color: 0.4rem;
    --_footer-size-second-color: 0.7rem;
    --_footer-size: calc(var(--_footer-size-first-color) * 2 + var(--_footer-size-second-color) * 2);

    background:
        radial-gradient(circle at 50% 0, transparent var(--_footer-size-first-color), var(--_footer-color) var(--_footer-size-first-color), var(--_footer-color) var(--_footer-size-second-color), transparent var(--_footer-size-second-color)),
        radial-gradient(circle at 50% 100%, transparent var(--_footer-size-first-color), var(--_footer-color) var(--_footer-size-first-color), var(--_footer-color) var(--_footer-size-second-color), transparent var(--_footer-size-second-color)),
        linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
    background-size: var(--_footer-size) var(--_footer-margin), var(--_footer-size) var(--_footer-margin), 100% 100%;
    background-position: 0 0, calc(var(--_footer-size) / 2) 0, 0 0;
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--maroon-gradient);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

.footer-section h4 {
    color: var(--maroon-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.footer-logo .logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--tertiary-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--maroon-secondary);
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--maroon-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .hero-container {
        gap: 60px;
        padding: 0 24px;
    }

    .code-animation {
        width: 280px;
        height: 210px;
        transform: perspective(600px) rotateY(-10deg) rotateX(4deg) rotateZ(0.5deg);
    }

    .about-hero {
        gap: 60px;
    }

    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* Mobile Typewriter Adjustments */
    .typewriter {
        min-width: 150px;
        max-width: 100%;
    }

    /* Enhanced Navigation */
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 20px;
    }

    /* Use icon instead of full logo on mobile to avoid text duplication */
    .navbar .logo {
        content: url('public/images/dark_icon.png');
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .navbar.scrolled {
        padding: 8px 0;
    }

    .navbar.scrolled .nav-container {
        padding: 8px 20px;
        max-width: calc(100% - 40px);
        backdrop-filter: blur(20px) saturate(180%);
        border-radius: 25px;
        border: 1px solid rgba(139, 0, 0, 0.3);
    }

    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        padding: 100px 20px 40px;
        justify-content: flex-start;
        gap: 20px;
        z-index: 998;
        border-bottom: 1px solid rgba(139, 0, 0, 0.3);
        visibility: hidden;
        opacity: 0;
        min-height: 100vh;
    }

    /* Ensure mobile menu looks the same when navbar is scrolled */
    .navbar.scrolled .nav-menu {
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 20px 40px;
        gap: 20px;
        border-radius: 0;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    }



    .nav-menu.active {
        top: 0;
        visibility: visible;
        opacity: 1;
    }

    /* Mobile menu backdrop overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 18px;
        padding: 15px 30px;
        border-radius: 12px;
        margin: 0;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
        color: rgba(255, 255, 255, 0.9);
    }

    /* Ensure mobile nav links look the same when navbar is scrolled */
    .navbar.scrolled .nav-link {
        font-size: 18px;
        padding: 15px 30px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        color: rgba(255, 255, 255, 0.9);
    }



    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for nav links - opening */
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.5s; }

    /* Reverse staggered animation for nav links - closing */
    .nav-menu:not(.active) .nav-link:nth-child(1) { transition-delay: 0.4s; }
    .nav-menu:not(.active) .nav-link:nth-child(2) { transition-delay: 0.3s; }
    .nav-menu:not(.active) .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu:not(.active) .nav-link:nth-child(4) { transition-delay: 0.1s; }
    .nav-menu:not(.active) .nav-link:nth-child(5) { transition-delay: 0s; }

    .nav-link:hover {
        background: rgba(139, 0, 0, 0.15);
        border-color: rgba(139, 0, 0, 0.4);
        transform: translateY(-2px);
        color: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
    }

    /* Ensure mobile nav link hover looks the same when navbar is scrolled */
    .navbar.scrolled .nav-link:hover {
        background: rgba(139, 0, 0, 0.15);
        border-color: rgba(139, 0, 0, 0.4);
        transform: translateY(-2px);
        color: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
    }



    .nav-toggle {
        display: flex;
        z-index: 1002;
        background: rgba(255, 255, 255, 0.08);
        padding: 8px;
        border-radius: 8px;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
    }



    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Enhanced Hero Section */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: left; /* Keep left aligned like desktop */
        gap: 40px;
        padding: 0 20px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: clamp(3.5rem, 12vw, 6.5rem);
        line-height: 0.85;
        margin-bottom: 40px;
        text-align: left; /* Ensure left alignment */
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Keep KaalDev and </> on same line on mobile */
    .hero-title .brand-text {
        display: inline;
    }

    .hero-title .code-symbol {
        display: inline;
        white-space: nowrap;
    }

    .hero-description {
        font-size: 18px;
        margin-bottom: 50px;
        max-width: 100%;
        padding: 0;
        text-align: left; /* Keep left aligned */
        margin-top: 20px;
        width: 100%;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        display: flex;
        justify-content: center; /* Center align buttons */
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 18px 32px;
        font-size: 16px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* Hide Hero Visual on Mobile */
    .hero-visual {
        display: none; /* Remove the code animation on mobile */
    }

    /* About Section Mobile */
    .about {
        padding: 80px 0;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-description {
        font-size: 1rem;
        text-align: left;
    }

    .about-features {
        gap: 20px;
    }

    .feature-point {
        padding: 16px;
        text-align: left;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 30px;
    }

    .stat-card {
        padding: 20px;
    }

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

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-item {
        padding: 12px;
    }

    /* Services/Expertise Section Mobile */
    .expertise {
        padding: 80px 0;
    }

    .expertise-header {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Why Choose Us Mobile */
    .why-choose {
        padding: 80px 0;
    }

    .why-choose-intro {
        margin-bottom: 60px;
    }

    .why-choose-intro .section-title {
        font-size: 2.8rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 60px;
    }

    .advantage-card {
        padding: 24px;
    }

    .advantage-card h3 {
        font-size: 1.3rem;
    }

    .advantage-metrics {
        gap: 20px;
        justify-content: center;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .why-choose-cta {
        padding: 40px 24px;
    }

    .cta-content h3 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 80px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-methods {
        gap: 20px;
    }

    .contact-method {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 12px;
    }

    .method-info {
        text-align: center;
    }

    /* Form Mobile Optimization */
    .form {
        gap: 20px;
    }

    .form input,
    .form select,
    .form textarea {
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 12px;
    }

    .form textarea {
        min-height: 140px;
    }

    .form .btn-full {
        align-self: center;
        max-width: 280px;
    }

    /* Footer Mobile - Compact but Complete Design */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 20px;
    }

    .footer-section {
        text-align: left;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
        margin-bottom: 16px;
        text-align: left;
    }

    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .footer-section p {
        font-size: 0.8rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .footer-links {
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 4px;
    }

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

    .footer-logo .logo {
        height: 32px;
        margin-bottom: 8px;
    }

    .social-links {
        justify-content: flex-start;
        gap: 12px;
        margin-top: 12px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .footer-bottom {
        padding-top: 16px;
        font-size: 0.75rem;
        margin-top: 16px;
        text-align: left;
    }

    /* Mobile Notification Adjustments */
    .modern-notification {
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: none;
        top: 80px;
    }
}

@media (max-width: 480px) {
    /* Mobile Typewriter Adjustments */
    .typewriter {
        min-width: 120px;
        max-width: 100%;
    }

    /* Container and Spacing */
    .container {
        padding: 0 16px;
    }

    /* Navigation Mobile Small */
    .nav-container {
        padding: 0 16px;
    }

    .navbar.scrolled .nav-container {
        padding: 8px 16px;
        max-width: calc(100% - 32px);
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        border-radius: 25px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(139, 0, 0, 0.3);
    }

    .nav-menu {
        padding: 100px 0 40px;
        gap: 24px;
    }

    /* Ensure mobile menu consistency on small screens when scrolled */
    .navbar.scrolled .nav-menu {
        padding: 100px 0 40px;
        gap: 24px;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px);
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 24px;
        margin: 0 16px;
    }

    /* Ensure mobile nav links consistency on small screens when scrolled */
    .navbar.scrolled .nav-link {
        font-size: 16px;
        padding: 12px 24px;
        margin: 0 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }

    /* Hero Section Small Mobile */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    .hero-container {
        padding: 0 16px;
        gap: 30px;
        text-align: left; /* Keep left aligned */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: clamp(3.2rem, 10vw, 5.5rem);
        margin-bottom: 32px;
        text-align: left;
        line-height: 0.85;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Keep KaalDev and </> together on small mobile */
    .hero-title .brand-text,
    .hero-title .code-symbol {
        display: inline;
        white-space: nowrap;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 40px;
        line-height: 1.5;
        text-align: left;
        margin-top: 16px;
        width: 100%;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        padding: 16px 28px;
        font-size: 14px;
        min-width: auto;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* Hero Visual Small - Hidden on mobile */
    .hero-visual {
        display: none;
    }

    .code-line {
        height: 6px;
        margin: 20px 24px;
    }

    .code-line:nth-child(1) {
        margin-top: 60px;
    }

    /* About Section Small */
    .about {
        padding: 0px 0;
    }

    .about-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .about-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .about-features {
        gap: 16px;
    }

    .feature-point {
        padding: 14px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .feature-point .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .feature-content h4 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .stat-card {
        padding: 16px;
    }

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

    .stat-label {
        font-size: 0.8rem;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tech-item {
        padding: 10px;
    }

    .tech-item i {
        font-size: 1.2rem;
    }

    .tech-item span {
        font-size: 0.75rem;
    }

    /* Services/Expertise Small */
    .expertise {
        padding: 60px 0;
    }

    .expertise-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section-description {
        font-size: 0.95rem;
        padding: 0 5px;
    }

    .section-badge {
        padding: 5px 16px;
        font-size: 0.8rem;
    }

    /* Why Choose Us Small */
    .why-choose {
        padding: 0px 0;
    }

    .why-choose-intro {
        margin-bottom: 50px;
    }

    .why-choose-intro .section-title {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 0.95rem;
        padding: 0 5px;
    }

    .advantages-grid {
        gap: 20px;
        margin-bottom: 50px;
    }

    .advantage-card {
        padding: 20px;
    }

    .advantage-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .advantage-card h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .advantage-card p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 16px;
    }

    .advantage-metrics {
        gap: 16px;
    }

    .metric-value {
        font-size: 1.3rem;
    }

    .metric-label {
        font-size: 0.75rem;
    }

    .advantage-features {
        text-align: center;
    }

    .advantage-features li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .why-choose-cta {
        padding: 32px 20px;
    }

    .cta-content h3 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
    }

    /* Contact Section Small */
    .contact {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .contact-content {
        gap: 32px;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .contact-methods {
        gap: 16px;
    }

    .contact-method {
        gap: 10px;
    }

    .method-icon {
        width: 40px;
        height: 40px;
    }

    .method-icon i {
        font-size: 1rem;
    }

    .method-info h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .method-info p {
        font-size: 0.85rem;
    }

    /* Form Small Mobile */
    .form {
        gap: 16px;
    }

    .form input,
    .form select,
    .form textarea {
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }

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

    .form .btn-full {
        align-self: center;
        max-width: 260px;
    }

    /* Footer Small - Compact but complete */
    .footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .footer-section:first-child {
        grid-column: 1;
        margin-bottom: 12px;
    }

    .footer-section:not(:first-child) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }

    .footer-section h4 {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .footer-section p,
    .footer-links a {
        font-size: 0.75rem;
    }

    .footer-section:first-child p {
        font-size: 0.8rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .footer-links li {
        margin-bottom: 3px;
    }

    .footer-logo .logo {
        height: 28px;
        margin-bottom: 6px;
    }

    .social-links {
        gap: 10px;
        margin-top: 8px;
        justify-content: flex-start;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .footer-bottom {
        padding-top: 12px;
        font-size: 0.7rem;
        margin-top: 12px;
        text-align: left;
    }

    /* Portfolio Grid Small */
    .features-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Mobile Notification Small */
    .modern-notification {
        right: 12px;
        left: 12px;
        top: 70px;
        padding: 16px;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
    }

    .notification-message {
        font-size: 0.9rem;
    }
}

/* iPhone SE and similar devices (375px width) */
@media (max-width: 430px) and (min-width: 376px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    .hero-container {
        padding: 0 20px;
        gap: 24px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: clamp(3rem, 9.5vw, 5rem);
        margin-bottom: 24px;
        text-align: left;
        line-height: 0.85;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
        line-height: 1.5;
        text-align: left;
        margin-top: 12px;
        width: 100%;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        padding: 16px 28px;
        font-size: 14px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

/* iPhone SE (375px width) */
@media (max-width: 375px) and (min-width: 361px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    .hero-container {
        padding: 0 18px;
        gap: 20px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: clamp(2.8rem, 9vw, 4.8rem);
        margin-bottom: 20px;
        text-align: left;
        line-height: 0.85;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 28px;
        line-height: 1.5;
        text-align: left;
        margin-top: 10px;
        width: 100%;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .btn {
        width: 100%;
        max-width: 240px;
        padding: 15px 26px;
        font-size: 13px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    .hero-container {
        padding: 0 12px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8.5vw, 4.5rem);
        text-align: left;
        line-height: 0.85;
        margin-bottom: 8px;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Keep KaalDev and </> together on extra small mobile */
    .hero-title .brand-text,
    .hero-title .code-symbol {
        display: inline;
        white-space: nowrap;
    }

    .hero-description {
        font-size: 15px;
        text-align: left;
        margin-bottom: 36px;
        margin-top: 12px;
        width: 100%;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .btn {
        width: 100%;
        max-width: 220px;
        padding: 14px 24px;
        font-size: 13px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .why-choose-intro .section-title {
        font-size: 2rem;
    }

    .advantage-card {
        padding: 16px;
    }

    .cta-content h3 {
        font-size: 1.6rem;
    }

    /* Extra compact footer but with content */
    .footer {
        padding: 24px 0 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-section h4 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .footer-section:first-child p {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

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

    .footer-links li {
        margin-bottom: 2px;
    }

    .footer-logo .logo {
        height: 24px;
        margin-bottom: 4px;
    }

    .social-links {
        gap: 8px;
        margin-top: 6px;
    }

    .social-link {
        width: 28px;
        height: 28px;
    }

    .footer-bottom {
        padding-top: 10px;
        font-size: 0.65rem;
        margin-top: 10px;
        text-align: left;
    }
}

/* Modern Notification System */
.modern-notification {
    position: fixed;
    top: 100px;
    right: 24px;
    min-width: 320px;
    max-width: 420px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    z-index: 10000;
    transform: translateX(120%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: var(--maroon-gradient);
}

.notification-success {
    border-left: 4px solid #10B981;
}

.notification-success .notification-icon {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.notification-error {
    border-left: 4px solid #EF4444;
}

.notification-error .notification-icon {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.notification-info {
    border-left: 4px solid var(--maroon-secondary);
}

.notification-info .notification-icon {
    color: var(--maroon-secondary);
    background: rgba(160, 37, 42, 0.1);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.notification-content {
    flex: 1;
    padding-top: 8px;
}

.notification-message {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

.notification-close svg {
    width: 18px;
    height: 18px;
}

/* Enhanced Card Styles */
.feature-item,
.portfolio-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-secondary);
}

/* Enhanced Form Styles */
.form input,
.form select,
.form textarea {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--maroon-secondary);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(139, 0, 0, 0.1),
        var(--glow-maroon);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Scrolling Fix */
@media (max-width: 768px) {
    /* Fix mobile scrolling issue in hero section */
    .hero {
        position: relative !important;
        overflow: visible !important;
    }

    .hero-container {
        position: static !important;
        overflow: visible !important;
    }

    /* Ensure body can scroll properly on mobile */
    body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    html {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn,
    .nav-link,
    .contact-method,
    .advantage-card,
    .expertise-item,
    .stat-card,
    .tech-item,
    .feature-point {
        -webkit-tap-highlight-color: rgba(139, 0, 0, 0.2);
        touch-action: manipulation;
    }

    /* Larger touch targets */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn {
        min-height: 48px;
    }

    /* Reduce hover effects on touch devices */
    .expertise-item:hover,
    .advantage-card:hover,
    .stat-card:hover,
    .tech-item:hover,
    .feature-point:hover {
        transform: none;
    }

    /* Simplify animations for better performance */
    .code-animation {
        transform: none !important;
    }

    .hero-visual {
        transform: none !important;
    }

    /* Disable parallax on mobile for better performance */
    .hero-content {
        transform: none !important;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr; /* Keep single column on mobile landscape */
        gap: 30px;
        align-items: flex-start;
        text-align: left;
    }

    .hero-visual {
        display: none; /* Hide visual on mobile landscape too */
    }

    .hero-content {
        text-align: left;
        order: 1;
    }

    .hero-title {
        font-size: clamp(3.5rem, 10vw, 4.5rem);
        text-align: left;
        line-height: 0.85;
        margin-bottom: 32px;
    }

    .hero-description {
        text-align: left;
        margin-bottom: 40px;
        margin-top: 16px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .btn {
        max-width: 180px;
        width: auto;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .rotating-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .typewriter .cursor {
        animation: none;
    }

    .code-line {
        animation: none;
    }

    .rotating-icon {
        animation: none;
    }

    .loader-particle {
        animation: none;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* Viewport Animation Classes */
.expertise-item,
.advantage-card,
.stat-card,
.tech-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.expertise-item.animate-in,
.advantage-card.animate-in,
.stat-card.animate-in,
.tech-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.expertise-item:nth-child(1) { transition-delay: 0.1s; }
.expertise-item:nth-child(2) { transition-delay: 0.2s; }
.expertise-item:nth-child(3) { transition-delay: 0.3s; }
.expertise-item:nth-child(4) { transition-delay: 0.4s; }

.advantage-card:nth-child(1) { transition-delay: 0.1s; }
.advantage-card:nth-child(2) { transition-delay: 0.2s; }
.advantage-card:nth-child(3) { transition-delay: 0.3s; }
.advantage-card:nth-child(4) { transition-delay: 0.4s; }
.advantage-card:nth-child(5) { transition-delay: 0.5s; }
.advantage-card:nth-child(6) { transition-delay: 0.6s; }

.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }
.stat-card:nth-child(4) { transition-delay: 0.4s; }

.tech-item:nth-child(1) { transition-delay: 0.1s; }
.tech-item:nth-child(2) { transition-delay: 0.2s; }
.tech-item:nth-child(3) { transition-delay: 0.3s; }
.tech-item:nth-child(4) { transition-delay: 0.4s; }
.tech-item:nth-child(5) { transition-delay: 0.5s; }
.tech-item:nth-child(6) { transition-delay: 0.6s; }

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .expertise-item,
    .advantage-card,
    .stat-card,
    .tech-item {
        transition-duration: 0.4s;
    }

    /* Simplify transforms on mobile */
    .expertise-item:hover,
    .advantage-card:hover,
    .stat-card:hover {
        transform: none;
    }

    /* Disable complex animations on mobile */
    .code-line::before {
        display: none;
    }

    .code-animation::before,
    .code-animation::after {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .nav-toggle,
    #particles-js,
    .loader-particles,
    .modern-notification {
        display: none !important;
    }

    .hero,
    .about,
    .expertise,
    .why-choose,
    .contact,
    .footer {
        page-break-inside: avoid;
        background: white !important;
        color: black !important;
    }

    .section-title,
    .hero-title,
    .about-title {
        color: black !important;
    }

    .expertise-item,
    .advantage-card,
    .stat-card,
    .tech-item {
        opacity: 1 !important;
        transform: none !important;
    }
}


