/* FUTURISTIC CYBERPUNK THEME */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL TEXT OVERFLOW PREVENTION */
h1, h2, h3, h4, h5, h6, p, span, div, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* PREVENT ALL CONTAINERS FROM OVERFLOWING */
section, div, article, aside, main, header, footer, nav {
    max-width: 100%;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff006e;
    --neon-purple: #9d4edd;
    --neon-green: #39ff14;
    --neon-orange: #ff9e00;
    --cyber-dark: #0a0e27;
    --cyber-darker: #050816;
    --cyber-blue: #1a2456;
    --cyber-purple: #2d1b69;
    --text-light: #ffffff;
    --text-glow: #00f3ff;
    --card-bg: rgba(10, 14, 39, 0.85);
    --gradient-cyber: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-neon: linear-gradient(135deg, #00f3ff 0%, #9d4edd 50%, #ff006e 100%);
    
    /* Performance variables - optimized for better performance */
    --enable-3d: 1;
    --particle-count: 50;
    --animation-speed: 0.8;
}

html {
    scroll-behavior: auto; /* Changed from smooth - prevents lag */
    overflow-x: hidden;
    overflow-y: scroll; /* Force scrollbar to prevent layout shift */
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--cyber-darker);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* MOBILE MEDIA QUERIES DISABLED - Mobile devices will use desktop version */

/* ADVANCED 3D WEBGL CANVAS */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.5s ease;
    will-change: auto;
}

/* PARTICLE BACKGROUND (Fallback) */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* CYBERPUNK GRID */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 3D PERSPECTIVE ENHANCEMENT */
section {
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.service-card,
.feature-card,
.contact-card,
.profile-card,
.stat-card {
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
}

/* CARD SHINE EFFECT */
.card-shine {
    mix-blend-mode: screen;
}

/* 3D TEXT LAYERS - DISABLED TO FIX OVERLAPPING */
.text-3d-enhanced {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    /* Disable 3D layering that causes overlaps */
    transform-style: flat !important;
}

.text-3d-enhanced span {
    position: relative !important;
    display: inline !important;
}

/* FLOATING LETTERS CONTAINER */
.floating-letters {
    mix-blend-mode: screen;
}

/* CURSOR TRAIL */
.cursor-trail-3d {
    mix-blend-mode: screen;
}

/* CARD HOVER DEPTH */
.service-card:hover,
.feature-card:hover,
.contact-card:hover {
    z-index: 10;
}

/* 3D TRANSFORM OPTIMIZATION */
@supports (transform-style: preserve-3d) {
    .hero-content,
    .about-content,
    .contact-content {
        transform-style: preserve-3d;
    }
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-glow {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-neon);
    filter: blur(4px);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    box-sizing: border-box;
    overflow: hidden;
}

.nav-logo .logo-container {
    position: relative;
}

/* LOGO TEXT STYLING */
.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-text-container {
    position: relative;
    cursor: pointer;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.logo-fide {
    color: var(--neon-cyan);
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 30px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
    animation: pulse-glow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.logo-fidex {
    color: var(--neon-pink);
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 30px var(--neon-pink),
        0 0 40px var(--neon-pink);
    animation: pulse-glow 2s ease-in-out infinite 1s;
    transition: all 0.3s ease;
}

/* Hover effect for logo */
.logo-text-container:hover .logo-fide {
    color: var(--neon-purple);
    text-shadow: 
        0 0 15px var(--neon-purple),
        0 0 30px var(--neon-purple),
        0 0 45px var(--neon-purple),
        0 0 60px var(--neon-purple);
    transform: translateY(-2px);
}

.logo-text-container:hover .logo-fidex {
    color: var(--neon-green);
    text-shadow: 
        0 0 15px var(--neon-green),
        0 0 30px var(--neon-green),
        0 0 45px var(--neon-green),
        0 0 60px var(--neon-green);
    transform: translateY(-2px);
}

/* Pulse glow animation */
@keyframes pulse-glow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 5px currentColor);
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 20px currentColor);
    }
}

/* Logo explode animation */
@keyframes logo-explode {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.3) rotate(5deg);
        filter: brightness(2) blur(2px);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Footer logo styling */
.footer-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: inline-flex;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-logo-text .logo-fide {
    color: var(--neon-cyan);
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan);
}

.footer-logo-text .logo-fidex {
    color: var(--neon-pink);
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink);
}

.footer-logo-text:hover .logo-fide {
    color: var(--neon-purple);
    text-shadow: 
        0 0 15px var(--neon-purple),
        0 0 30px var(--neon-purple);
}

.footer-logo-text:hover .logo-fidex {
    color: var(--neon-green);
    text-shadow: 
        0 0 15px var(--neon-green),
        0 0 30px var(--neon-green);
}

/* LANGUAGE SELECTOR */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 2rem;
}

.lang-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--neon-cyan);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 0;
}

.lang-btn:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.lang-btn .flag {
    position: relative;
    z-index: 1;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.lang-btn:hover .flag {
    filter: grayscale(0%);
    transform: scale(1.2);
}

.lang-btn.active {
    background: rgba(0, 243, 255, 0.3);
    border-color: var(--neon-green);
    box-shadow: 
        0 0 20px rgba(0, 243, 255, 0.5),
        inset 0 0 20px rgba(0, 243, 255, 0.2);
}

.lang-btn.active .flag {
    filter: grayscale(0%);
    animation: flag-bounce 0.5s ease;
}

@keyframes flag-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-link span {
    position: relative;
    display: inline-block;
}

.nav-link span::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover span::before {
    opacity: 1;
    animation: glitch 0.3s infinite;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.95) 0%,
        rgba(45, 27, 105, 0.85) 50%,
        rgba(10, 14, 39, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
        gap: 5rem;
    }
}

.glitch-wrapper {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    text-align: center; /* Center title text */
}

.hero-text {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-container {
    padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 3rem);
    background: rgba(0, 243, 255, 0.05);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.3);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: inline-block;
}

/* Desktop: ensure container fits content */
@media (min-width: 769px) {
    .hero-title-container {
        width: auto !important;
        min-width: auto !important;
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 5.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.neon-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.8));
    display: block;
}

.glitch {
    position: relative;
    animation: glitchText 3s infinite;
}

@keyframes glitchText {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 2px); }
    92% { transform: translate(2px, -2px); }
    93% { transform: translate(-2px, -2px); }
    94% { transform: translate(2px, 2px); }
}

.cyber-text {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle.cyber-text {
    max-width: 800px;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.typing-effect {
    display: inline-block;
    border-right: 3px solid var(--neon-cyan);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.cyber-btn {
    position: relative;
    padding: 18px 40px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.btn-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-neon);
    transition: left 0.5s ease;
    z-index: 1;
}

.cyber-btn:hover .btn-glow {
    left: 0;
}

.cyber-btn:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
    transform: translateY(-3px);
}

.btn-primary {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
}

.btn-secondary {
    border-color: var(--neon-pink);
    background: rgba(255, 0, 110, 0.1);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.stat-card {
    flex: 1 1 200px;
    min-width: 150px;
    max-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--neon-cyan);
    padding: 1.5rem;
    text-align: center;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.5);
}

.stat-icon {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-visual {
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.hologram-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hologram-ring {
    position: absolute;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    opacity: 0.3;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.5);
}

.ring-2 {
    width: min(320px, 64vw);
    height: min(320px, 64vw);
    opacity: 0.5;
    animation-direction: reverse;
    animation-duration: 15s;
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
}

.ring-3 {
    width: min(240px, 48vw);
    height: min(240px, 48vw);
    opacity: 0.7;
    animation-duration: 10s;
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hologram-center {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.8);
    animation: pulse 2s infinite;
}

.hologram-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 50px rgba(0, 243, 255, 0.8); }
    50% { box-shadow: 0 0 80px rgba(0, 243, 255, 1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.cyber-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--neon-cyan);
    border-bottom: 3px solid var(--neon-cyan);
    transform: rotate(45deg);
    margin: 0 auto 10px;
    animation: bounce 2s infinite;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-15px) rotate(45deg); }
    60% { transform: translateY(-7px) rotate(45deg); }
}

.scroll-indicator span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* SECTIONS */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.neon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.5vw, 5px);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.title-number {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 1.5rem;
    color: var(--neon-pink);
    opacity: 0.5;
}

.neon-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: var(--gradient-neon);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 15px;
}

/* SERVICES */
.services {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
}

.futuristic-card {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
    overflow: hidden;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.futuristic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.4);
    border-color: var(--neon-pink);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.futuristic-card:hover .card-glow {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

.service-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.futuristic-card:hover .service-image-container img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--card-bg));
    opacity: 0.8;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.service-icon-float {
    position: absolute;
    top: 220px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--cyber-dark);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
    z-index: 2;
}

.service-content {
    padding: 3rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    width: 100%;
    box-sizing: border-box;
}

.service-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-number {
    color: var(--neon-pink);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.service-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.service-features i {
    color: var(--neon-green);
    font-size: 1rem;
    filter: drop-shadow(0 0 5px var(--neon-green));
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 25px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: var(--neon-cyan);
    color: var(--cyber-dark);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

/* FEATURES */
.features {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--cyber-darker) 0%, var(--cyber-blue) 50%, var(--cyber-darker) 100%);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border: 2px solid var(--neon-purple);
    padding: 3rem 2rem;
    text-align: center;
    clip-path: polygon(0 10%, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%);
    transition: all 0.4s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.feature-card:hover {
    transform: scale(1.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.3);
}

.feature-icon-3d {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.5);
    animation: float3d 3s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(180deg); }
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* ABOUT */
.about {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 5rem;
    }
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 2;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.tech-stack {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    border-left: 5px solid var(--neon-cyan);
}

.tech-stack h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Mobile media queries - enabled */
@media (max-width: 768px) {
    /* Global mobile overflow prevention */
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    html {
        width: 100vw !important;
        overflow-x: hidden !important;
        position: relative;
    }

    body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* All sections and major containers */
    .section, .hero, .footer, .navbar {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Container - force fit to screen */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Fix hero title container width for mobile */
    .hero-title-container {
        min-width: 0 !important;
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        padding: 1rem !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Fix hero content layout for mobile */
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }

    /* Fix hero title font size for mobile */
    .hero-title {
        font-size: 2rem !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    /* Fix hero subtitle for mobile */
    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        padding: 0 10px !important;
    }

    /* Fix hero buttons for mobile */
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
    }

    /* Fix hero stats for mobile */
    .hero-stats {
        flex-direction: column !important;
        gap: 2rem !important;
        margin-top: 3rem !important;
    }

    /* Fix navigation for mobile */
    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex !important;
    }

    /* Hide desktop menu on mobile */
    .nav-menu {
        position: fixed !important;
        top: 90px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 90px) !important;
        background: rgba(10, 14, 39, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding-top: 3rem !important;
        gap: 2rem !important;
        transition: left 0.3s ease !important;
        z-index: 999 !important;
        border-right: 2px solid var(--neon-cyan) !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    /* Fix logo size for mobile */
    .logo-text {
        font-size: 1.5rem !important;
    }

    /* Fix language selector for mobile */
    .language-selector {
        position: fixed !important;
        top: 15px !important;
        right: 80px !important;
        margin-left: 0 !important;
        gap: 0.3rem !important;
        z-index: 1001 !important;
    }

    .lang-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
        padding: 0.3rem !important;
    }

    /* Fix hero section padding for mobile */
    .hero {
        padding: 120px 0 60px !important;
        min-height: auto !important;
    }

    /* Fix section padding for mobile */
    .section {
        padding: 60px 0 !important;
    }

    /* Fix neon titles for mobile */
    .neon-title {
        font-size: 2rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }

    /* Fix services grid for mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Fix about content for mobile */
    .about-content {
        grid-template-columns: 1fr !important;
    }

    /* Fix contact content for mobile */
    .contact-content {
        grid-template-columns: 1fr !important;
    }

    /* Fix contact form for mobile */
    .contact-form-container {
        padding: 2rem 1.5rem !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Fix footer for mobile */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
}

.tech-item i {
    font-size: 2rem;
    color: var(--neon-cyan);
}

.tech-item span {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.about-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--neon-cyan);
}

.signature-name {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
    margin-bottom: 0.5rem;
}

.signature-title {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.profile-card {
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    padding: 2rem;
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.3);
}

.profile-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 3px solid var(--neon-cyan);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
    animation: scan 3s linear infinite;
}

.profile-info {
    text-align: center;
}

.profile-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links-futuristic {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links-futuristic a {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    text-decoration: none;
    clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
    transition: all 0.3s ease;
}

.social-links-futuristic a:hover {
    background: var(--neon-cyan);
    color: var(--cyber-dark);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
    transform: translateY(-5px);
}

/* CONTACT */
.contact {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 5rem;
    }
}

.contact-card {
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    border-left: 5px solid var(--neon-cyan);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.3);
}

.contact-icon-3d {
    width: 60px;
    height: 60px;
    background: var(--gradient-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.5);
}

.contact-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-card p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-card span {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-top: 0.5rem;
    word-wrap: break-word;
}

.contact-form-container {
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    padding: 3rem;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.3);
}

.futuristic-form {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 243, 255, 0.3);
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select {
    background: var(--cyber-dark) !important;
    color: var(--text-light) !important;
    padding: 15px 10px;
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
}

.form-group select option {
    background: var(--cyber-dark) !important;
    color: var(--text-light) !important;
    padding: 10px;
}

/* Ensure dropdown is visible in all browsers */
.form-group select::-webkit-scrollbar {
    background: var(--cyber-dark);
}

.form-group select::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--neon-cyan);
}

.form-group label {
    position: absolute;
    top: -25px;
    left: 0;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    letter-spacing: 1px;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: visible;
}

.form-group input:focus ~ label,
.form-group select:focus ~ label,
.form-group textarea:focus ~ label {
    color: var(--neon-green);
}

.form-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-bar,
.form-group select:focus ~ .form-bar,
.form-group textarea:focus ~ .form-bar {
    width: 100%;
}

.submit-btn {
    width: 100%;
    margin-top: 2rem;
}

/* FOOTER */
.footer {
    position: relative;
    background: var(--cyber-dark);
    border-top: 2px solid var(--neon-cyan);
    padding: 4rem 0 2rem;
    z-index: 1;
}

.footer-glow {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-neon);
    filter: blur(4px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.contact-link {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-link:hover {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
    transform: scale(1.05);
    display: inline-block;
}

.footer-section ul li i {
    margin-right: 0.75rem;
    color: var(--neon-cyan);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--gradient-neon);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.made-with {
    margin-top: 0.5rem;
}

.made-with i {
    color: var(--neon-pink);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.2); }
    20%, 40% { transform: scale(1); }
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-neon);
    border: 2px solid var(--neon-cyan);
    clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.6);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .services {
        padding: 4rem 0;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .contact {
        padding: 4rem 0;
    }
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .hero-visual {
        height: 400px;
    }
}

/* Mobile media queries - enabled */
@media (max-width: 480px) {
    /* Extra small screens - ULTRA compact */

    /* Global mobile overflow prevention - FIXED */
    /* Removed overly aggressive max-width rule */

    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Force hero title container to be even more compact */
    .hero-title-container {
        min-width: 0 !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        padding: 0.8rem !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Navbar - smaller on tiny screens */
    .navbar {
        padding: 1rem 0 !important;
    }

    .logo-text {
        font-size: 1.2rem !important;
    }

    .language-selector {
        right: 65px !important;
        gap: 0.2rem !important;
    }

    .lang-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
        padding: 0.2rem !important;
    }

    /* Hero - extra compact */
    .hero {
        padding: 100px 0 40px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }

    .hero-buttons .btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.85rem !important;
    }

    .hero-stats {
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }

    /* Sections - more compact */
    .section {
        padding: 40px 0 !important;
    }

    .neon-title {
        font-size: 1.8rem !important;
    }

    .section-subtitle {
        font-size: 0.85rem !important;
        padding: 0 5px !important;
    }

    /* Services - more compact cards */
    .services-grid {
        gap: 1.5rem !important;
    }

    .service-card {
        padding: 1.2rem !important;
    }

    .service-icon {
        font-size: 2rem !important;
        width: 70px !important;
        height: 70px !important;
    }

    .service-card h3 {
        font-size: 1.1rem !important;
        margin: 1rem 0 0.8rem !important;
    }

    .service-card p {
        font-size: 0.85rem !important;
    }

    .service-features li {
        font-size: 0.85rem !important;
        padding: 0.4rem 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* Features - more compact */
    .features-grid {
        gap: 1.5rem !important;
    }

    .feature-card {
        padding: 1.2rem !important;
    }

    .feature-card h3 {
        font-size: 1.1rem !important;
    }

    .feature-card p {
        font-size: 0.85rem !important;
    }

    /* About section */
    .about-text {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
    }

    /* Tech icons - smaller */
    .tech-icons {
        gap: 0.8rem !important;
    }

    .tech-item {
        padding: 0.8rem !important;
    }

    .tech-item i {
        font-size: 1.5rem !important;
    }

    .tech-item span {
        font-size: 0.7rem !important;
    }

    /* Contact form - very compact */
    .contact-form-container {
        padding: 1.5rem 1rem !important;
    }

    .form-group {
        margin-bottom: 1.5rem !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem !important;
        padding: 10px 0 !important;
    }

    .form-group label {
        font-size: 0.7rem !important;
    }

    textarea {
        min-height: 120px !important;
    }

    /* Footer - compact */
    .footer {
        padding: 3rem 0 1.5rem !important;
    }

    .footer-content {
        gap: 1.5rem !important;
    }

    .footer-section {
        margin-bottom: 1rem !important;
    }

    .footer-section h3 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .footer-section ul li,
    .footer-section p {
        font-size: 0.85rem !important;
    }

    .footer-logo-text {
        font-size: 1.1rem !important;
    }

    .social-links a {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .footer-bottom {
        padding-top: 1.5rem !important;
        font-size: 0.8rem !important;
    }

    /* Back to top button */
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        bottom: 20px !important;
        right: 20px !important;
    }

}

/* MOBILE OPTIMIZATIONS */
.mobile-optimized .card-particles,
.mobile-optimized .floating-letters,
.mobile-optimized .cursor-trail-3d {
    display: none !important;
}

.mobile-optimized .service-card,
.mobile-optimized .feature-card,
.mobile-optimized .contact-card {
    will-change: auto !important;
}

.mobile-optimized * {
    animation-duration: calc(var(--animation-speed) * 1s) !important;
}

/* REDUCED MOTION SUPPORT */
@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;
    }
    
    canvas,
    .cyber-grid,
    .card-particles,
    .floating-letters {
        display: none !important;
    }
}

/* HARDWARE ACCELERATION - Optimized */
.service-card,
.feature-card,
.contact-card,
.stat-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.cyber-btn,
.nav-link {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* SMOOTH RENDERING */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU ACCELERATION FOR ANIMATIONS */
@keyframes float3d {
    0%, 100% { 
        transform: translateY(0) rotateY(0deg) translateZ(0);
    }
    50% { 
        transform: translateY(-10px) rotateY(180deg) translateZ(0);
    }
}

@keyframes rotate {
    from { 
        transform: rotate(0deg) translateZ(0);
    }
    to { 
        transform: rotate(360deg) translateZ(0);
    }
}

/* LOADING OPTIMIZATION */
img {
    content-visibility: auto;
}

.service-image-container,
.hero-bg-image,
.profile-image img {
    will-change: transform;
}

/* CIRCUIT CANVAS OPTIMIZATION */
.circuit-canvas {
    will-change: opacity;
}

/* ENERGY SHIELD OPTIMIZATION */
.energy-shield {
    will-change: opacity;
}

/* DATA STREAMS OPTIMIZATION */
.data-streams canvas {
    will-change: transform;
}

/* 3D PERFORMANCE BOOST */
@supports (transform-style: preserve-3d) {
    .service-card,
    .feature-card,
    .contact-card {
        transform: translate3d(0, 0, 0);
    }
}

/* PRINT STYLES */
@media print {
    canvas,
    .cyber-grid,
    .card-particles,
    .floating-letters,
    .cursor-trail-3d,
    .back-to-top,
    .navbar,
    video {
        display: none !important;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    :root {
        --neon-cyan: #00ffff;
        --neon-pink: #ff0080;
        --text-light: #ffffff;
    }
    
    .neon-text,
    .neon-title {
        filter: brightness(1.5);
    }
}

/* DARK MODE (System Preference) */
@media (prefers-color-scheme: dark) {
    /* Already dark, no changes needed */
}

/* LIGHT MODE OVERRIDE (If user prefers light) */
@media (prefers-color-scheme: light) {
    :root {
        --cyber-darker: #f0f4f8;
        --cyber-dark: #e1e8ed;
        --text-light: #1a2456;
    }
    
    body {
        color: var(--text-light);
    }
    
    /* Adjust neon colors for light mode visibility */
    .neon-text,
    .neon-title,
    .nav-link {
        filter: brightness(0.6);
    }
}

/* ACCESSIBILITY ENHANCEMENTS */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* FOCUS VISIBLE (Keyboard Navigation) */
:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 3px;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* HIGH PERFORMANCE SCROLLING */
* {
    scroll-behavior: smooth;
}

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* CONTAINER QUERIES (Future-proof) */
@supports (container-type: inline-size) {
    .service-card,
    .feature-card {
        container-type: inline-size;
    }
}

/* ADVANCED BACKDROP FILTERS */
@supports (backdrop-filter: blur(10px)) {
    .navbar,
    .nav-menu {
        backdrop-filter: blur(20px) saturate(180%);
    }
}

/* WEBKIT SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cyber-darker);
    border-left: 1px solid var(--neon-cyan);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 6px;
    border: 2px solid var(--cyber-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* FIREFOX SCROLLBAR */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--cyber-darker);
}

/* SELECTION STYLING */
::selection {
    background: var(--neon-cyan);
    color: var(--cyber-dark);
    text-shadow: none;
}

::-moz-selection {
    background: var(--neon-cyan);
    color: var(--cyber-dark);
    text-shadow: none;
}

/* LOADING ANIMATION */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, transparent 0%, var(--neon-cyan) 50%, transparent 100%);
    background-size: 1000px 100%;
}

/* ============================================
   CRITICAL MOBILE FIXES - FINAL OVERRIDE
   Keeps ALL effects, forces mobile compatibility
   ============================================ */
@media (max-width: 767px) {
    /* Hero title container - MOBILE FIT */
    .hero-title-container {
        width: auto !important;
        max-width: calc(100vw - 2rem) !important; /* Viewport width minus margins */
        min-width: 0 !important;
        padding: 1rem 0.75rem !important; /* REDUCED padding */
        margin: 0 1rem !important; /* Side margins */
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Hero title text - wrap on mobile */
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
        white-space: normal !important; /* Allow wrapping on mobile */
        word-wrap: normal !important;
        line-height: 1.3 !important;
        text-align: center !important;
        letter-spacing: 1px !important; /* REDUCED from 3px */
    }
    
    /* Hero visual - scale down circles */
    .hero-visual {
        max-width: min(90vw, 350px) !important;
        height: min(90vw, 350px) !important;
        margin: 0 auto !important;
    }
    
    .hologram-ring.ring-1 { width: 250px !important; height: 250px !important; }
    .hologram-ring.ring-2 { width: 200px !important; height: 200px !important; }
    .hologram-ring.ring-3 { width: 150px !important; height: 150px !important; }
    .hologram-center { width: 100px !important; height: 100px !important; }
}

/* Desktop: Centered and properly sized */
@media (min-width: 768px) {
    .hero-title-container {
        width: auto !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 2rem 3rem !important;
    }
    
    .hero-title {
        font-size: clamp(3rem, 5vw, 5.5rem) !important;
        white-space: nowrap !important;
        letter-spacing: 3px !important;
    }
    
    .hero-title br {
        display: inline !important;
    }
    
    /* Subtitle full width on desktop */
    .hero-subtitle {
        max-width: 800px !important;
        margin: 0 auto 3rem !important;
    }
}

/* FINAL MOBILE OVERRIDE - Absolutely no overflow */
@media (max-width: 767px) {
    /* Force all hero elements to fit */
    .hero-title-container,
    .hero-subtitle,
    .hero-buttons,
    .hero-stats {
        max-width: calc(100vw - 2rem) !important;
        box-sizing: border-box !important;
    }
    
    /* Reduce all padding that could cause overflow */
    .hero-title-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .cyber-text {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Absolutely NO letter-spacing on mobile - saves critical width */
    .hero-title,
    .neon-title,
    h1, h2, h3, h4 {
        letter-spacing: 0 !important;
    }
    
    /* All hero elements must fit */
    .hero-text,
    .glitch-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Stat cards wrap properly */
    .stat-card {
        flex: 1 1 calc(50% - 0.5rem) !important;
        min-width: 100px !important;
        max-width: 180px !important;
        padding: 1rem 0.5rem !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
}