/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-black: #0A0A0A;
    --dark-purple: #6C2BFF;
    --neon-purple: #9D5CFF;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #6C2BFF 0%, #9D5CFF 100%);
    --gradient-glow: linear-gradient(135deg, rgba(108, 43, 255, 0.3) 0%, rgba(157, 92, 255, 0.3) 100%);
}

html {
    scroll-behavior: smooth;
    /* Optimize scroll performance */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--deep-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Performance optimizations for smooth scrolling */
    will-change: scroll-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

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

/* ===== FLOATING ACTION BUTTONS ===== */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(108, 43, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Performance optimization */
    will-change: transform;
    transform: translateZ(0);
}

.instagram-btn {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    position: relative;
}

.email-btn {
    background: var(--gradient-primary);
    position: relative;
}

.btn-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(10, 10, 10, 0.95);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(108, 43, 255, 0.3);
}

.float-btn:hover .btn-tooltip {
    opacity: 1;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(108, 43, 255, 0.6);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Disable heavy animations on mobile and low-end devices */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .grid-overlay,
    .shape,
    .floating-card,
    .hero-scene img {
        animation: none !important;
    }
    
    .shape {
        opacity: 0.1;
    }
    
    .grid-overlay {
        opacity: 0.3;
    }
}

/* Hardware acceleration for smooth scrolling */
.hero,
.about,
.services,
.portfolio,
.testimonials,
.process,
.contact {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 43, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 40px rgba(108, 43, 255, 0.2);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(108, 43, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: logoShine 3s infinite;
}

@keyframes logoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-v {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    z-index: 1;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-cta {
    padding: 12px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 30px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(108, 43, 255, 0.4);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 43, 255, 0.6);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    /* Better touch target for mobile */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(108, 43, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.2s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(108, 43, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 43, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    /* Reduced animation speed for better performance */
    animation: gridMove 60s linear infinite;
    opacity: 0.6;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(25px, 25px); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    /* Reduced animation intensity for better performance */
    animation: shapeFloat 30s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--dark-purple);
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--neon-purple);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--dark-purple);
    bottom: 10%;
    left: 50%;
    animation-delay: 20s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, -15px) rotate(180deg); }
}

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

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(108, 43, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 43, 255, 0.6);
}

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

.btn-secondary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item h3 {
    font-size: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.hero-visual {
    position: relative;
    height: 600px;
}

.hero-3d-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.scene-layer {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(108, 43, 255, 0.5);
    border: 2px solid rgba(108, 43, 255, 0.3);
    animation: sceneFloat 16s ease-in-out infinite;
}

@keyframes sceneFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
}

.floating-card {
    position: absolute;
    background: rgba(108, 43, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 43, 255, 0.4);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(108, 43, 255, 0.4);
    animation: cardFloat 12s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(108, 43, 255, 0.6);
}

.card-content-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.card-content-mini i {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content-mini span {
    font-weight: 600;
    font-size: 14px;
}

.card-1 {
    width: 200px;
    top: 80px;
    left: 20px;
}

.card-2 {
    width: 180px;
    top: 250px;
    right: 50px;
    animation-delay: 1s;
}

.card-3 {
    width: 190px;
    bottom: 80px;
    left: 80px;
    animation-delay: 2s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 43, 255, 0.2);
    border: 1px solid rgba(108, 43, 255, 0.4);
    border-radius: 30px;
    color: var(--neon-purple);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-3d-container {
    position: relative;
    height: 500px;
}

.about-3d-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(108, 43, 255, 0.4);
    border: 2px solid rgba(108, 43, 255, 0.3);
    animation: floatSimple 6s ease-in-out infinite;
}

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

.about-3d-container .glass-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 280px;
    z-index: 2;
}

.about-text h3 {
    font-size: 36px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-item i {
    color: var(--neon-purple);
    font-size: 20px;
}

.glass-card {
    background: rgba(108, 43, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 43, 255, 0.3);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(108, 43, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(108, 43, 255, 0.5);
}

.card-content {
    text-align: center;
}

.card-content i {
    font-size: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.card-content h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== SERVICES SECTION ===== */
.services {
    background: linear-gradient(180deg, var(--deep-black) 0%, rgba(108, 43, 255, 0.05) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(108, 43, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 43, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--dark-purple);
    box-shadow: 0 20px 60px rgba(108, 43, 255, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(108, 43, 255, 0.4);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.service-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--gradient-glow);
    transition: height 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-hover-effect {
    height: 100%;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose {
    background: var(--deep-black);
    position: relative;
    overflow: hidden;
}

.value-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.value-bg-image {
    display: none; /* Remove background image for better performance */
}

.why-choose .container {
    position: relative;
    z-index: 1;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: rgba(108, 43, 255, 0.05);
    border: 1px solid rgba(108, 43, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    background: rgba(108, 43, 255, 0.1);
    border-color: var(--dark-purple);
    box-shadow: 0 20px 60px rgba(108, 43, 255, 0.3);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(108, 43, 255, 0.4);
}

.why-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background: linear-gradient(180deg, rgba(108, 43, 255, 0.05) 0%, var(--deep-black) 100%);
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 30px;
    background: rgba(108, 43, 255, 0.1);
    border: 1px solid rgba(108, 43, 255, 0.3);
    border-radius: 30px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(108, 43, 255, 0.5);
    transform: translateY(-2px);
}

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

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(108, 43, 255, 0.5);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.98) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 14px;
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Tech stack tags hidden as requested */
.portfolio-tech {
    display: none;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: var(--deep-black);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(108, 43, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 43, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--dark-purple);
    box-shadow: 0 20px 60px rgba(108, 43, 255, 0.3);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--neon-purple);
    font-size: 14px;
}

/* ===== PROCESS SECTION ===== */
.process {
    background: linear-gradient(180deg, var(--deep-black) 0%, rgba(108, 43, 255, 0.05) 100%);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--dark-purple) 0%, var(--neon-purple) 100%);
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 10px 40px rgba(108, 43, 255, 0.5);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--deep-black);
    padding: 30px 0;
}

.contact .section-header {
    margin-bottom: 30px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.contact-form-wrapper {
    background: rgba(108, 43, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 43, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(108, 43, 255, 0.3);
    border-radius: 15px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-purple);
    box-shadow: 0 0 20px rgba(108, 43, 255, 0.3);
}

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

.btn-full {
    width: 100%;
    padding: 18px;
    font-size: 18px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: rgba(108, 43, 255, 0.05);
    border: 1px solid rgba(108, 43, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(10px);
    border-color: var(--dark-purple);
    box-shadow: 0 10px 40px rgba(108, 43, 255, 0.3);
}

.info-card i {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, var(--deep-black) 0%, #050505 100%);
    border-top: 1px solid rgba(108, 43, 255, 0.2);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-logo .logo-v {
    font-size: 20px;
}

.footer-brand h3 {
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
    font-size: 14px;
    font-style: italic;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--neon-purple);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(108, 43, 255, 0.2);
    border: 1px solid rgba(108, 43, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 43, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(108, 43, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.creator-credit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ===== ENHANCED MOBILE & CROSS-PLATFORM RESPONSIVENESS ===== */

/* iOS Safari specific optimizations */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-primary, .float-btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
}

/* Android Chrome specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    body {
        text-size-adjust: 100%;
    }
}

/* Large tablets and small desktops (1024px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
    .hero-title {
        font-size: 52px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 30px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-title {
        font-size: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile landscape and small tablets (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-title {
        font-size: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile portrait (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .services-grid,
    .why-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Very small screens (below 320px) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* Legacy responsive styles - Enhanced */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 52px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Section */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stats {
        gap: 30px;
        justify-content: center;
    }
    
    /* Sections */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .floating-buttons {
        right: 20px;
        bottom: 20px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-form-wrapper {
        padding: 15px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Better touch targets for mobile */
    .btn-primary {
        min-height: 44px;
        padding: 15px 25px;
    }
    
    .service-card,
    .why-card,
    .portfolio-item {
        padding: 25px 20px;
    }
}

/* ===== MOBILE TOUCH & INTERACTION OPTIMIZATIONS ===== */

/* Better touch targets for all interactive elements */
.btn-primary,
.float-btn,
.nav-link,
.portfolio-item,
.service-card,
.why-card {
    min-height: 44px; /* Apple's recommended minimum touch target */
    min-width: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(108, 43, 255, 0.2);
    tap-highlight-color: rgba(108, 43, 255, 0.2);
}

/* iOS Safari specific fixes */
input, textarea, select {
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    border-radius: 8px;
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Android Chrome specific fixes */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 2px rgba(157, 92, 255, 0.3);
}

/* Prevent text selection on interactive elements */
.btn-primary,
.float-btn,
.portfolio-item,
.service-card,
.why-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}

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

/* Android status bar color */
@media screen and (max-width: 768px) {
    meta[name="theme-color"] {
        content: "#0A0A0A";
    }
}

/* ===== DEVICE-SPECIFIC OPTIMIZATIONS ===== */

/* High DPI displays (Retina, high-density Android) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-scene img,
    .portfolio-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .float-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Portrait orientation optimizations */
@media (orientation: portrait) and (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* iPhone specific optimizations */
@media only screen 
    and (device-width: 375px) 
    and (device-height: 812px) 
    and (-webkit-device-pixel-ratio: 3) {
    /* iPhone X/XS/11 Pro */
    .hero {
        padding-top: 88px; /* Account for notch */
    }
}

@media only screen 
    and (device-width: 414px) 
    and (device-height: 896px) 
    and (-webkit-device-pixel-ratio: 2) {
    /* iPhone XR/11 */
    .hero {
        padding-top: 88px;
    }
}

/* Samsung Galaxy and other Android devices */
@media screen and (max-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    .container {
        padding: 0 16px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 14px 24px;
    }
}

/* Foldable devices */
@media (max-width: 768px) and (min-aspect-ratio: 1/1) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== UTILITY CLASSES ===== */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--dark-purple);
    color: var(--white);
}

::-moz-selection {
    background: var(--dark-purple);
    color: var(--white);
}


/* ===== ENHANCED 3D EFFECTS ===== */
.service-card,
.why-card,
.portfolio-item,
.glass-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ===== GLOW EFFECTS ===== */
.service-icon,
.why-icon,
.logo-icon {
    position: relative;
}

.service-icon::after,
.why-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-primary);
    border-radius: inherit;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon::after,
.why-card:hover .why-icon::after {
    opacity: 0.6;
}

/* ===== ENHANCED BUTTON STYLES ===== */
.btn-primary,
.nav-cta,
.category-btn.active {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before,
.nav-cta:hover::before {
    left: 100%;
}

/* ===== DEPTH SHADOWS ===== */
.floating-card,
.service-card,
.why-card,
.portfolio-item,
.glass-card,
.testimonial-card {
    box-shadow: 
        0 10px 30px rgba(108, 43, 255, 0.2),
        0 20px 60px rgba(108, 43, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.floating-card:hover,
.service-card:hover,
.why-card:hover,
.portfolio-item:hover,
.glass-card:hover,
.testimonial-card:hover {
    box-shadow: 
        0 20px 50px rgba(108, 43, 255, 0.4),
        0 30px 80px rgba(108, 43, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== ANIMATED GRADIENT BACKGROUNDS ===== */
.hero,
.services,
.portfolio {
    position: relative;
}

.hero::before,
.services::before,
.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(108, 43, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(157, 92, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ===== GLASS MORPHISM ENHANCEMENTS ===== */
.glass-card,
.contact-form-wrapper,
.info-card,
.testimonial-card {
    background: rgba(108, 43, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(108, 43, 255, 0.25);
}

/* ===== FLOATING ANIMATION VARIANTS ===== */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

.shape-1 {
    animation: floatSlow 8s ease-in-out infinite;
}

.shape-2 {
    animation: floatMedium 10s ease-in-out infinite;
}

.shape-3 {
    animation: floatSlow 12s ease-in-out infinite;
}

/* ===== TEXT GLOW EFFECTS ===== */
.hero-title,
.section-header h2 {
    text-shadow: 0 0 30px rgba(108, 43, 255, 0.3);
}

.gradient-text {
    position: relative;
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(108, 43, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(157, 92, 255, 0.8)); }
}

/* ===== ENHANCED MOBILE RESPONSIVENESS ===== */
@media (max-width: 968px) {
    .hero-3d-scene,
    .about-3d-container {
        height: 400px;
    }
    
    .scene-layer {
        width: 350px;
        height: 350px;
    }
    
    .floating-card {
        padding: 20px;
    }
    
    .card-1,
    .card-2,
    .card-3 {
        width: 150px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .hero-3d-scene {
        display: none;
    }
    
    .about-3d-image {
        height: 300px;
    }
    
    .about-3d-container .glass-card {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
    }
    
    .floating-buttons {
        gap: 10px;
    }
    
    .btn-tooltip {
        display: none;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--neon-purple);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .floating-buttons,
    .navbar,
    .hero-visual,
    .floating-shapes {
        display: none;
    }
}


/* ===== PREMIUM LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo .logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.loading-logo .logo-v {
    font-size: 40px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(108, 43, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-text {
    color: var(--neon-purple);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== ENHANCED SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    color: var(--neon-purple);
    font-size: 24px;
}

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

/* ===== PREMIUM CURSOR (Desktop Only) ===== */
@media (min-width: 1024px) {
    body {
        cursor: none;
    }
    
    a, button, .portfolio-item, .service-card, .why-card {
        cursor: none;
    }
    
    .custom-cursor {
        position: fixed;
        width: 10px;
        height: 10px;
        background: var(--neon-purple);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.15s ease;
        mix-blend-mode: difference;
    }
    
    .custom-cursor-follower {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 2px solid var(--neon-purple);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
        opacity: 0.5;
    }
    
    .custom-cursor.hover {
        transform: scale(2);
    }
    
    .custom-cursor-follower.hover {
        width: 60px;
        height: 60px;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(108, 43, 255, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 43, 255, 0.6);
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dark-purple), transparent);
    margin: 80px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--neon-purple);
}

/* ===== ENHANCED TESTIMONIAL CARDS ===== */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(108, 43, 255, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== PROCESS STEP ENHANCEMENTS ===== */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.process-step:last-child::after {
    display: none;
}

/* ===== MOBILE MENU STYLES ===== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(108, 43, 255, 0.3);
        z-index: 998;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .service-card,
    .why-card,
    .portfolio-item,
    .testimonial-card {
        border-width: 2px;
    }
}


/* ===== PORTFOLIO MODAL ===== */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Performance optimization */
    will-change: opacity, visibility;
    transform: translateZ(0);
}

.portfolio-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(108, 43, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(108, 43, 255, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(108, 43, 255, 0.2);
    border: 1px solid rgba(108, 43, 255, 0.4);
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-image {
    position: relative;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(108, 43, 255, 0.3);
    min-height: 400px;
    background: rgba(30, 30, 30, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block !important;
    border-radius: 15px;
    object-fit: contain;
    max-height: 600px;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-info h2 {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-info p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.modal-features h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--neon-purple);
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-purple);
    font-weight: bold;
    font-size: 18px;
}

.modal-cta {
    margin-top: 20px;
}

/* Mobile Modal Styles */
@media (max-width: 968px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .modal-info h2 {
        font-size: 24px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Smooth scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.5);
}

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

/* Portfolio item cursor */
.portfolio-item {
    cursor: pointer;
    position: relative;
}

.portfolio-item::after {
    content: '👁️ Click to view details';
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

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