/* ===== AURA DENTAL - MODERN CSS STYLES ===== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors - Elegant Gold & Beige Theme */
    --primary-gold: #C9A55A;
    --primary-beige: #E8DCC8;
    --dark-gold: #9B7A3C;
    --light-beige: #F5F0E8;
    --accent-black: #1A1A1A;
    --primary-gradient: linear-gradient(135deg, #C9A55A 0%, #9B7A3C 100%);
    --secondary-gradient: linear-gradient(135deg, #E8DCC8 0%, #C9A55A 100%);
    --accent-gradient: linear-gradient(135deg, #9B7A3C 0%, #1A1A1A 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Additional Colors */
    --text-dark: #2D2D2D;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --off-white: #FAFAF8;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Animations */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

.font-inter {
    font-family: var(--font-primary);
}

.font-outfit {
    font-family: var(--font-secondary);
}

/* ===== UTILITY CLASSES ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===== LOADING SCREEN ===== */
#loading-screen {
    background: linear-gradient(135deg, #1e3a8a 0%, #581c87 50%, #312e81 100%);
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-tooth {
    animation: float 2s ease-in-out infinite;
}

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

.loading-bar {
    position: relative;
    overflow: hidden;
}

.loading-progress {
    width: 0;
    animation: loading-progress 3s ease-in-out infinite;
}

@keyframes loading-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ===== LANGUAGE TOGGLE ===== */
.language-toggle {
    display: flex;
    border-radius: 50px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.lang-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 600;
    color: #6b7280;
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.lang-btn:hover:not(.active) {
    background: rgba(201, 165, 90, 0.1);
    color: var(--primary-gold);
}

/* ===== LOGO ENHANCEMENT ===== */
.logo-enhanced {
    filter: drop-shadow(0 2px 8px rgba(201, 165, 90, 0.3));
    transition: all var(--transition-normal);
    mix-blend-mode: multiply; /* Helps blend white background */
}

.logo-enhanced:hover {
    filter: drop-shadow(0 4px 12px rgba(201, 165, 90, 0.5));
    transform: scale(1.05);
}

/* ===== NAVIGATION ===== */
#navbar {
    transition: all var(--transition-normal);
    z-index: 1000;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.nav-link {
    position: relative;
    transition: all var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-normal);
}

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

/* Mobile Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1f2937;
    margin: 2px 0;
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    max-height: 400px;
}

/* ===== HERO SECTION ===== */
#home {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(155, 122, 60, 0.9) 35%, 
        rgba(201, 165, 90, 0.85) 70%, 
        rgba(232, 220, 200, 0.8) 100%);
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><polygon points="30,0 40,20 30,40 20,20"/></g></svg>');
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(10px) translateY(-5px); }
    75% { transform: translateX(-5px) translateY(10px); }
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 120px;
}

.hero-badge {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    to { box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

.hero-title-line {
    animation: slideInUp 1s ease-out;
}

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

.cta-button {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

.cta-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    transition: all var(--transition-normal);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
}

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

.feature-icon {
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: all var(--transition-normal);
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-icon {
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ===== TECHNOLOGY CARDS ===== */
.tech-card {
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.tech-card:hover::after {
    opacity: 0.05;
}

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

.tech-icon {
    transition: all var(--transition-normal);
}

.tech-card:hover .tech-icon {
    transform: scale(1.2);
}

/* ===== CONTACT FORM ===== */
#quote-form input,
#quote-form select,
#quote-form textarea {
    transition: all var(--transition-normal);
}

#quote-form input:focus,
#quote-form select:focus,
#quote-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.upload-area {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.upload-area.dragover {
    border-color: #1d4ed8;
    background: rgba(29, 78, 216, 0.1);
    transform: scale(1.02);
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-card {
    transition: all var(--transition-normal);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.contact-icon {
    transition: all var(--transition-normal);
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1);
}

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

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

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

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

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

/* ===== 3D EFFECTS ===== */
.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(10deg) rotateX(5deg);
}

/* ===== GLASS MORPHISM ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        padding-top: 100px;
    }
    
    .text-5xl { font-size: 3rem; }
    .text-6xl { font-size: 3.5rem; }
    .text-7xl { font-size: 4rem; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 1rem;
    }
    
    .hero-content {
        padding-top: 80px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl { font-size: 2rem; }
    .text-5xl { font-size: 2.5rem; }
    .text-6xl { font-size: 3rem; }
    .text-7xl { font-size: 3.5rem; }
    
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .feature-card,
    .service-card,
    .tech-card,
    .contact-info-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        top: 1rem;
        right: 1rem;
        scale: 0.9;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .text-xl { font-size: 1.125rem; }
    .text-2xl { font-size: 1.5rem; }
    .text-4xl { font-size: 1.75rem; }
    .text-5xl { font-size: 2rem; }
    .text-6xl { font-size: 2.25rem; }
    .text-7xl { font-size: 2.5rem; }
    
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .px-8 { padding-left: 1rem; padding-right: 1rem; }
    .py-8 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    
    .space-x-8 > * + * {
        margin-left: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #C9A55A, #9B7A3C);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9B7A3C, #1A1A1A);
}

/* ===== SELECTION STYLES ===== */
::selection {
    background: rgba(201, 165, 90, 0.2);
    color: var(--dark-gold);
}

::-moz-selection {
    background: rgba(201, 165, 90, 0.2);
    color: var(--dark-gold);
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br,
    .bg-gradient-to-l {
        background: white !important;
        color: black !important;
    }
}