/* ==========================================
   VADA CLINIC - DESIGN SYSTEM
   Version: 1.0.0
   Last Updated: 2025
   ========================================== */

/* ==========================================
   CSS VARIABLES - COLOR SYSTEM
   ========================================== */
:root {
    /* Primary Colors - Pink (Main Brand) */
    --primary-50: #fdf2f8;
    --primary-100: #fce7f3;
    --primary-200: #fbcfe8;
    --primary-300: #f9a8d4;
    --primary-400: #f472b6;
    --primary-500: #ec4899;  /* Main Primary */
    --primary-600: #db2777;  /* Hover Primary */
    --primary-700: #be185d;
    --primary-800: #9f1239;
    --primary-900: #831843;
    
    /* Secondary Colors - Purple (Supporting) */
    --secondary-50: #faf5ff;
    --secondary-100: #f3e8ff;
    --secondary-200: #e9d5ff;
    --secondary-300: #d8b4fe;
    --secondary-400: #c084fc;
    --secondary-500: #a855f7;  /* Main Secondary */
    --secondary-600: #9333ea;  /* Hover Secondary */
    --secondary-700: #7e22ce;
    
    /* Accent Colors - Gold (Call-to-Action) */
    --accent-50: #fffbeb;
    --accent-100: #fef3c7;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;  /* Main Accent */
    --accent-600: #d97706;  /* Hover Accent */
    
    /* Neutral Colors - Gray */
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    
    /* Line Height */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    --spacing-2xl: 4rem;    /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.5rem;    /* 8px */
    --radius-md: 1rem;      /* 16px */
    --radius-lg: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ==========================================
   BASE STYLES
   ========================================== */
* {
    font-family: 'Prompt', sans-serif;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* ==========================================
   PARALLAX SYSTEM
   ========================================== */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 400px;
}

/* New Parallax Section with JavaScript-based effect */
.parallax-section {
    position: relative;
    overflow: hidden !important;
}

.parallax-section img {
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* Mobile Parallax Fix - Enhanced */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 300px !important;
    }
    
    /* Ensure parallax sections are visible on mobile */
    .parallax::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        background-attachment: scroll;
    }
    
    /* Reduce parallax effect on mobile for better performance */
    .parallax-section img {
        transform: none !important;
    }
}

/* Tablet Parallax Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .parallax {
        background-attachment: scroll;
        min-height: 350px;
    }
}

/* ==========================================
   TABLET (iPAD) RESPONSIVE - 768px - 1024px
   ========================================== */

/* Navigation Menu - Tablet Fix */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Make Desktop Menu Compact for Tablet */
    nav .hidden.md\\:flex {
        gap: 1rem !important;
    }
    
    nav .hidden.md\\:flex a {
        font-size: 0.875rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    nav .hidden.md\\:block {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Dropdown Menu Positioning */
    .services-dropdown .absolute {
        width: 16rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Container Padding */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* Logo Size */
    nav img {
        height: 2.5rem !important;
    }
}

/* Hero Section - Tablet Optimization */
@media (min-width: 768px) and (max-width: 1024px) {
    #home h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    #home p {
        font-size: 1rem !important;
    }
    
    /* CTA Buttons */
    #home a[href^="tel"],
    #home a[href^="#"] {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
    }
    
    /* Trust Badges */
    #home .flex-wrap.justify-center .flex {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Services Section - Tablet Grid */
@media (min-width: 768px) and (max-width: 1024px) {
    #services .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    #services h2 {
        font-size: 2.5rem !important;
    }
    
    #services h3 {
        font-size: 1.5rem !important;
    }
    
    #services p {
        font-size: 0.875rem !important;
    }
}

/* About Section - Tablet Layout */
@media (min-width: 768px) and (max-width: 1024px) {
    #about .grid {
        gap: 2rem !important;
    }
    
    #about h2 {
        font-size: 2.5rem !important;
    }
    
    #about h4 {
        font-size: 1rem !important;
    }
    
    #about p {
        font-size: 0.875rem !important;
    }
    
    /* Buttons */
    #about a {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}

/* Statistics Section - Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid.grid-cols-2.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Stat Numbers */
    .grid.grid-cols-2.md\\:grid-cols-4 h3 {
        font-size: 3rem !important;
    }
    
    .grid.grid-cols-2.md\\:grid-cols-4 p {
        font-size: 1rem !important;
    }
}

/* Footer - Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    footer .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    footer h3 {
        font-size: 1.25rem !important;
    }
    
    footer p,
    footer a {
        font-size: 0.875rem !important;
    }
}

/* Typography - Tablet General */
@media (min-width: 768px) and (max-width: 1024px) {
    .text-3xl {
        font-size: 1.875rem !important;
    }
    
    .text-4xl {
        font-size: 2.25rem !important;
    }
    
    .text-5xl {
        font-size: 2.5rem !important;
    }
    
    .text-6xl {
        font-size: 3rem !important;
    }
}

/* Spacing - Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-24 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2.5rem !important;
    }
    
    .mb-20 {
        margin-bottom: 3rem !important;
    }
}

/* iOS Safari Specific Fix */
@supports (-webkit-touch-callout: none) {
    .parallax {
        background-attachment: scroll;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.icon-bounce:hover {
    animation: float 0.5s ease-in-out;
}

.animated-gradient {
    background: linear-gradient(270deg, #ec4899, #db2777, #be185d);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Lazy Load Base State */
.lazy {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

/* (Optional) If we ever use a loaded state without keyframes */
.lazy.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ==========================================
   TYPOGRAPHY SYSTEM
   ========================================== */
.text-display {
    font-size: var(--font-size-6xl);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    font-weight: 700;
}

.text-heading-1 {
    font-size: var(--font-size-5xl);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    font-weight: 700;
}

.text-heading-2 {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
    font-weight: 700;
}

.text-heading-3 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    font-weight: 600;
}

.text-body-lg {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
}

.text-body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
}

.text-small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-wide);
}

/* ==========================================
   BUTTON SYSTEM
   ========================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-lg);
    letter-spacing: var(--letter-spacing-wide);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-base);
    letter-spacing: var(--letter-spacing-wide);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-600);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-lg);
    letter-spacing: var(--letter-spacing-wide);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-500) 100%);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px) scale(1.02);
}

/* Button Glow Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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.6s;
}

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

/* ==========================================
   CARD SYSTEM
   ========================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-compact {
    padding: var(--spacing-md);
}

.card-spacious {
    padding: var(--spacing-xl);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Testimonial Card */
.testimonial-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
}

/* ==========================================
   SECTION SYSTEM
   ========================================== */
.section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.section-compact {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-spacious {
    padding: 5rem var(--spacing-md);
}

@media (min-width: 768px) {
    .section {
        padding: 5rem var(--spacing-lg);
    }
    
    .section-spacious {
        padding: 6rem var(--spacing-lg);
    }
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
    margin: 2rem 0;
}

/* ==========================================
   GRADIENTS & EFFECTS
   ========================================== */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 50%, var(--primary-700) 100%);
}

.gradient-overlay {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(219, 39, 119, 0.9));
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Image Overlay Gradient */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.8), rgba(219, 39, 119, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

/* ==========================================
   CUSTOM SHADOWS
   ========================================== */
.shadow-primary {
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.3);
}

.shadow-primary-lg {
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4);
}

.shadow-accent {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* ==========================================
   DECORATIVE ELEMENTS
   ========================================== */
.decorative-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ec4899, #db2777);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

/* Price Badge */
.price-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* ==========================================
   🎨 DESIGN ENHANCEMENTS - 10/10 SCORE
   Added: Smooth Transitions, Hover Effects, Animations
   ========================================== */

/* === 1. SMOOTH TRANSITIONS === */
/* Apply smooth transitions to interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s ease;
}

img {
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.card-hover, 
.testimonial-card,
[class*="shadow"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* === 2. ENHANCED HOVER EFFECTS === */
/* Button Hover with Scale */
a[href^="tel"]:hover,
button:hover,
.btn-glow:hover,
[class*="bg-pink-6"]:hover,
[class*="bg-gradient"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

/* Button Active/Press Effect */
a[href^="tel"]:active,
button:active,
.btn-glow:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

/* Card Hover Enhancement */
.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
}

/* === 3. IMAGE HOVER EFFECTS === */
img:hover {
    transform: scale(1.05);
}

/* Service Card Image */
.card-hover img:hover {
    transform: scale(1.1);
}

/* Gallery Image Hover */
.group img {
    transition: transform 0.7s ease;
}

.group:hover img {
    transform: scale(1.08);
}

/* === 4. FADE-IN ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply fade-in to sections */
.fade-in-up {
    animation: fadeIn 0.6s ease forwards;
}

.scale-in {
    animation: fadeInScale 0.8s ease forwards;
}

/* === 5. ICON ANIMATIONS === */
/* Rotate icons on hover */
.group:hover i {
    transform: rotate(360deg) scale(1.1);
    transition: transform 0.6s ease;
}

/* Pulse animation for important icons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* === 6. LOADING SKELETON === */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* === 7. SMOOTH SCROLL BEHAVIOR === */
html {
    scroll-behavior: smooth;
}

/* === 8. GRADIENT HOVER EFFECTS === */
.animated-gradient {
    background-size: 200% auto;
    transition: background-position 0.5s ease;
}

.animated-gradient:hover {
    background-position: right center;
}

/* === 9. SHADOW TRANSITIONS === */
.shadow-pink:hover {
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.shadow-pink-lg:hover {
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.5);
}

/* === 10. BOUNCE ANIMATION === */
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce-subtle 2s ease-in-out infinite;
}

/* === 11. FORM INPUT ENHANCEMENTS === */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
    transform: translateY(-2px);
}

/* ==========================================
   iPAD SPECIFIC OPTIMIZATIONS
   Portrait: 768px - 834px
   Landscape: 1024px - 1112px
   ========================================== */

/* iPad Portrait Mode (768px - 834px) */
@media (min-width: 768px) and (max-width: 834px) {
    /* Navigation Refinements */
    nav {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    nav .container {
        max-width: 100% !important;
    }
    
    /* Hero Section Text Sizing */
    #home h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    #home h1 br {
        display: inline !important;
    }
    
    #home p:first-of-type {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #home p:nth-of-type(2) {
        font-size: 0.875rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Hero CTA Buttons */
    #home a[href^="tel"],
    #home a[href="#services"] {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.25rem !important;
    }
    
    #home a[href^="tel"] span:last-child {
        display: none !important;
    }
    
    /* Service Cards Grid */
    #services .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
    
    #services h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    #services .p-6 {
        padding: 1.25rem !important;
    }
    
    /* Service Card Icons */
    #services .w-14.h-14 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    /* About Section */
    #about .grid {
        gap: 1.5rem !important;
    }
    
    #about h2 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    #about .flex.items-start .w-12.h-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    /* Statistics Section */
    .grid.grid-cols-2 .rounded-xl,
    .grid.grid-cols-2 .rounded-3xl {
        padding: 1.25rem !important;
    }
    
    .grid.grid-cols-2 h3 {
        font-size: 2.5rem !important;
    }
}

/* iPad Landscape Mode (1024px - 1112px) */
@media (min-width: 1024px) and (max-width: 1112px) {
    /* Container Max Width */
    .container {
        max-width: 960px !important;
    }
    
    /* Navigation Spacing */
    nav .hidden.lg\\:flex {
        gap: 1.5rem !important;
    }
    
    /* Hero Section */
    #home h1 {
        font-size: 3.5rem !important;
    }
    
    #home p {
        font-size: 1.125rem !important;
    }
    
    /* Services Grid */
    #services .grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    #services h3 {
        font-size: 1.5rem !important;
    }
}

/* iPad Pro 12.9" (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container {
        max-width: 1200px !important;
    }
    
    /* Ensure 3 columns for service cards */
    #services .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card-hover:hover {
        transform: none !important;
    }
    
    /* Simplify animations on touch devices */
    * {
        transition-duration: 0.2s !important;
    }
}

/* Orientation-specific fixes */
@media (orientation: portrait) and (min-width: 768px) and (max-width: 834px) {
    /* Force mobile menu on portrait tablets */
    nav .lg\\:flex {
        display: none !important;
    }
    
    nav button[id="mobile-menu-btn"] {
        display: flex !important;
    }
}

@media (orientation: landscape) and (min-width: 768px) and (max-width: 1024px) {
    /* Reduce section padding in landscape */
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Optimize hero section height */
    #home {
        min-height: 80vh !important;
    }
}

/* === 12. RESPONSIVE HOVER (Desktop Only) === */
@media (hover: hover) and (pointer: fine) {
    /* Enable hover effects only on devices that support it */
    a:hover,
    button:hover {
        cursor: pointer;
    }
}

/* === 13. LOADING STATE === */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* === 14. PAGE FADE-IN ON LOAD === */
body {
    animation: fadeIn 0.5s ease;
}

/* === 15. PAGE LOADER - LOADING SCREEN === */
/* Loading Screen Overlay */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Spinner Animation */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(236, 72, 153, 0.2);
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Loading Text */
.loader-text {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ec4899;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Content Hidden Until Loaded */
body.page-loading {
    overflow: hidden;
}

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

/* ========================================== 
   FOOTER LAYOUT STABILITY FIX
   ========================================== */
footer {
    /* Prevent layout shift on hover by containing transforms */
    contain: layout style paint;
}

footer * {
    /* Ensure transforms don't affect layout */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

footer a,
footer button,
footer [class*="hover:"] {
    /* Use will-change for better performance without layout shift */
    will-change: auto;
}

/* ==========================================
   HERO SECTION - H1 NO HOVER EFFECTS
   ========================================== */
/* Remove ALL hover effects from H1 and its children */
#home h1,
#home h1 *,
#home h1 span {
    /* Prevent any outline, border, or shadow */
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    
    /* Prevent any transition effects */
    transition: none !important;
    
    /* Keep cursor as default */
    cursor: default !important;
    
    /* Prevent any transform */
    transform: none !important;
}

/* Force remove hover states */
#home h1:hover,
#home h1:hover *,
#home h1:hover span,
#home h1:focus,
#home h1:focus *,
#home h1:focus span,
#home h1:active,
#home h1:active *,
#home h1:active span {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Maintain gradient colors without changes */
#home h1 span.bg-gradient-to-r {
    background-image: linear-gradient(to right, #f9a8d4, #fbcfe8, #ffffff) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

#home h1:hover span.bg-gradient-to-r,
#home h1 span.bg-gradient-to-r:hover {
    background-image: linear-gradient(to right, #f9a8d4, #fbcfe8, #ffffff) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Remove selection highlight on H1 */
#home h1::selection,
#home h1 *::selection,
#home h1 span::selection {
    background: transparent;
    color: inherit;
}

#home h1::-moz-selection,
#home h1 *::-moz-selection,
#home h1 span::-moz-selection {
    background: transparent;
    color: inherit;
}

/* ========================================== 
   END OF DESIGN ENHANCEMENTS
   ========================================== */
