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

:root {
    /* Modern Tech Color Palette */
    --primary-dark: #0F172A;
    --secondary-dark: #1E293B;
    --accent-blue: #3B82F6;
    --accent-cyan: #06B6D4;
    --accent-indigo: #6366F1;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --border-color: #475569;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --error-red: #EF4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    --gradient-card: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    
    /* Shadows */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* Ensure all sections are properly visible */
section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Container improvements */
.container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 10;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* CSS-only fallback: hide after 3 seconds */
    animation: hideLoadingScreen 3s ease-in-out forwards;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

/* Hide loading screen by default if user has already visited */
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    animation: none; /* Stop the CSS animation if JavaScript takes over */
}

@keyframes hideLoadingScreen {
    0%, 80% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: none;
    }
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.loading-logo {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    outline: none;
}

.loading-logo h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-blue);
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
    animation: pulse 2s infinite;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    outline: none;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 3s ease-in-out forwards;
}

.loading-text {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--text-secondary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: fadeInOut 2s infinite;
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--accent-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: clamp(80px, 8vw, 120px) 0 clamp(60px, 6vw, 80px);
    background: var(--gradient-hero);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.bubbles {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Hide bubbles on non-landing pages */
body:not(.landing-page) .bubbles {
  display: none;
}

/* Only show bubbles in the hero section */
.hero .bubbles {
  display: block;
}

/* Hide bubbles in other sections */
section:not(.hero) .bubbles {
  display: none;
}

.bubble {
  position: absolute;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  will-change: transform;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(1px);
}

@media (prefers-reduced-motion: reduce) {
  .bubble { display: none; }
}

/* Mobile optimizations for bubbles */
@media (max-width: 768px) {
  .bubbles {
    /* Ensure bubbles work well on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  }
  
  .bubble {
    /* Slightly more visible on mobile */
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .bubble {
    /* Even more visible on small screens */
    opacity: 0.25;
  }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}


.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.6);
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.shape-2 {
    width: 160px;
    height: 160px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.shape-4 {
    width: 140px;
    height: 140px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
    animation-duration: 11s;
}

.shape-5 {
    width: 110px;
    height: 110px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 13s;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-60px) translateX(-10px) rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-30px) translateX(-20px) rotate(270deg) scale(1.05);
        opacity: 0.7;
    }
}

/* Magnetic Effects */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.magnetic:hover {
    transform: translateZ(0) scale(1.05);
}

.hero-container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 15;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
    animation: slideInLeft 0.8s ease;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-secondary);
    animation: slideInLeft 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease 0.8s both;
}

.btn {
    padding: clamp(12px, 2.5vw, 16px) clamp(24px, 5vw, 32px);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-glow);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-glow {
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
    100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: clamp(300px, 50vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

.floating-card {
    position: absolute;
    background: var(--gradient-card);
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    animation: floatCard 4s ease-in-out infinite;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    min-width: clamp(100px, 20vw, 120px);
    backdrop-filter: blur(10px);
}

.floating-card i {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--accent-cyan);
}

.floating-card span {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.card-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.tech-ring {
    position: relative;
    width: clamp(200px, 40vw, 300px);
    height: clamp(200px, 40vw, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    opacity: 0.6;
}

.ring-1 {
    width: clamp(130px, 26vw, 200px);
    height: clamp(130px, 26vw, 200px);
    animation-duration: 15s;
}

.ring-2 {
    width: clamp(170px, 34vw, 250px);
    height: clamp(170px, 34vw, 250px);
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-3 {
    width: clamp(200px, 40vw, 300px);
    height: clamp(200px, 40vw, 300px);
    animation-duration: 25s;
}

.center-icon {
    width: clamp(70px, 15vw, 100px);
    height: clamp(70px, 15vw, 100px);
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.center-icon i {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    animation: spin 3s linear infinite;
}

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

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


/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    width: 100%;
}

.section-header h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-primary);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-header p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    max-width: min(700px, 90vw);
    margin: 0 auto;
    font-weight: 500;
}

/* About Section */
.about {
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--bg-secondary);
    position: relative;
    width: 100%;
}

.about-content {
    max-width: min(800px, 90vw);
    margin: 0 auto;
    text-align: center;
}

.about-text h3 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-primary);
}

.about-text p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.8;
    font-weight: 400;
}

/* Services Section */
.services {
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--bg-primary);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 90vw), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    width: 100%;
}

.service-card {
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--gradient-card);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    min-height: clamp(250px, 40vw, 300px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon::before {
    width: 100%;
    height: 100%;
}

.service-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 400;
    flex-grow: 1;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 20px;
    background: var(--bg-secondary);
    position: relative;
    width: 100%;
}

.testimonials-carousel {
    position: relative;
    max-width: min(800px, 95vw);
    margin: 0 auto;
    overflow: visible;
    border-radius: 16px;
    padding: 0 80px;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-medium);
    color: white;
    font-size: 1.2rem;
}

.testimonial-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.testimonial-prev {
    left: 20px;
}

.testimonial-next {
    right: 20px;
}

.testimonial-slide {
    display: none;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3.5rem);
    background: var(--gradient-card);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    border: 1px solid var(--border-color);
    max-height: none;
    aspect-ratio: unset;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote-icon {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.testimonial-content p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: white;
    font-size: 1.5rem;
}

.author-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* Consultation Section */
.consultation {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    width: 100%;
}

.consultation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.consultation-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.consultation-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.consultation-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit i {
    color: var(--accent-cyan);
    font-size: 1.25rem;
}

.consultation-form {
    background: var(--bg-secondary);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.consultation-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.consultation-form h3 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    z-index: 1;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn {
    font-size: 1.1rem;
    padding: 18px 36px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

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

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

.footer-section ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section ul li:hover {
    color: var(--accent-blue);
}

.footer-section a[href^="mailto:"]:hover,
.footer-section a[href*="instagram.com"]:hover {
    color: var(--accent-blue) !important;
    text-decoration: underline !important;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        border-top: 1px solid var(--border-color);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.3s ease;
        min-height: 44px;
        display: block;
        width: 100%;
        border-radius: 8px;
        margin: 0.5rem 0;
    }

    .nav-link:hover {
        color: var(--accent-blue);
        background: rgba(59, 130, 246, 0.1);
    }

    .nav-link:active {
        background-color: rgba(59, 130, 246, 0.2);
        color: var(--accent-blue);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1.5rem, 4vw, 2rem);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
    }

    .consultation-content {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 4vw, 1.5rem);
    }
    
    .testimonials-carousel {
        padding: 0 70px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-prev {
        left: 15px;
    }
    
    .testimonial-next {
        right: 15px;
    }

    /* Mobile testimonial optimizations */
    .testimonial-slide {
        padding: 1.75rem 1.5rem;
    }

    .testimonial-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .consultation-form {
        padding: 1.5rem;
    }

    .booking-form-container {
        padding: 1.5rem;
    }

    /* Mobile loading screen adjustments */
    .loading-screen {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .loading-logo h2 {
        font-size: 2.5rem;
    }

    .loading-bar {
        width: 250px;
    }
    
    .testimonials-carousel {
        padding: 0 60px;
    }
    
    .testimonial-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .testimonial-prev {
        left: 12px;
    }
    
    .testimonial-next {
        right: 12px;
    }

    /* Fix testimonial slide padding on mobile */
    .testimonial-slide {
        padding: 1.5rem 1.25rem;
        min-height: auto;
    }

    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }
}

/* Smooth scrolling with performance optimizations */
html {
    scroll-behavior: smooth;
}

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

/* Hardware acceleration for animated elements */
.bubble,
.floating-card,
.ring,
.shape,
.service-card,
.magnetic {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimize bubble animations */
.bubbles {
    will-change: contents;
    contain: layout style paint;
}

/* Optimize scroll containers */
body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-red);
}

.form-group .error-message {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success message */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid var(--success-green);
}

/* Error message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid var(--error-red);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Booking Page Specific Styles */
.booking-hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.booking-hero .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.booking-hero .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.booking-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--accent-blue);
    transform: translateX(4px);
}

/* Consultation Benefits Section */
.consultation-benefits-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    width: 100%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.benefit-card {
    padding: 3rem 2.5rem;
    background: var(--gradient-card);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-blue);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon::before {
    width: 100%;
    height: 100%;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.benefit-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 400;
    flex-grow: 1;
}

/* Booking Form Section */
.booking-form-section {
    padding: 100px 0;
    background: var(--bg-primary);
    width: 100%;
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.booking-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.booking-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-blue);
}

.contact-item i {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.booking-form-container {
    background: var(--bg-secondary);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.booking-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.booking-form h3 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

.booking-form .form-group {
    margin-bottom: 1.5rem;
}

.booking-form .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.booking-form .form-group input,
.booking-form .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
}

.booking-form .form-group input:focus,
.booking-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

/* Responsive Design for Booking Page */
@media (max-width: 768px) {
    .booking-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-item i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .booking-hero .hero-title {
        font-size: 2rem;
    }
    
    .booking-info h2 {
        font-size: 2rem;
    }
    
    .booking-form h3 {
        font-size: 1.5rem;
    }

    .booking-form-container {
        padding: 1rem;
    }

    .contact-item {
        padding: 0.75rem;
    }
}

/* Hamburger Active State */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

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

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

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Ensure proper touch targets */
    .btn, .nav-link, .hamburger {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve form usability on mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        border-radius: 8px;
    }

    /* Better spacing for mobile */
    .section-header {
        margin-bottom: clamp(1.5rem, 4vw, 3rem);
    }

    .about, .services, .testimonials, .consultation, .cta-section {
        padding: clamp(40px, 8vw, 80px) 0;
    }

    /* Improve floating cards on mobile */
    .floating-card {
        min-width: clamp(80px, 18vw, 100px);
        padding: clamp(0.75rem, 2vw, 1rem) clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .floating-card i {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .floating-card span {
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    }

    /* Improve tech ring on mobile */
    .tech-ring {
        width: clamp(150px, 35vw, 250px);
        height: clamp(150px, 35vw, 250px);
    }

    .center-icon {
        width: clamp(50px, 12vw, 80px);
        height: clamp(50px, 12vw, 80px);
    }

    .center-icon i {
        font-size: clamp(1.2rem, 3vw, 2rem);
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }

    .hero-container {
        padding: 0 8px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .service-card {
        padding: 1rem;
    }

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

    .service-card p {
        font-size: 0.9rem;
    }
}