/* Global CSS for Efba İlaç */
/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Performance Optimizations */
:root {
    /* GPU acceleration hint */
    transform: translateZ(0);
}

/* Containment for better performance */
.hero,
.about,
.contact,
.footer {
    contain: layout style paint;
}

/* Optimized will-change usage */
.hero-cta:hover,
.nav-link:hover,
.form-submit:hover {
    /* will-change removed for global performance */
}

.hero-cta,
.nav-link,
.form-submit {
    will-change: auto;
}

/* Rendering Optimizations */
html {
    /* Enable hardware acceleration */
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Critical path optimization */
.hero-title,
.nav-brand,
.section-title {
    font-display: swap;
}

/* Main wrapper for overflow control */
.main-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 480px) {
    * {
        max-width: 100% !important;
    }
    
    .hero-main-title,
    .hero-tagline,
    .hero-description,
    .hero-stats,
    .hero-cta-buttons {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* CSS Custom Properties */
:root {
    --primary-blue: #0C4A6E;
    --primary-blue-light: #1e40af;
    --primary-blue-dark: #0c2d48;
    --secondary-white: #ffffff;
    --accent-teal: #0D9488;
    --accent-teal-light: #14B8A6;
    --text-charcoal: #1f2937;
    --text-light: #6b7280;
    --light-gray: #f8fafc;
    --border-gray: #e5e7eb;
    --hover-blue: #0369a1;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-glow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #0C4A6E 0%, #0D9488 100%);
    --gradient-secondary: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --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);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-charcoal);
    background-color: var(--secondary-white);
    overflow-x: hidden !important;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.no-scroll {
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Additional mobile fixes */
* {
    box-sizing: border-box;
}

/* Mobile specific overflow control */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }
    
    .main-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero, .about, .contact, .footer, .software {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
}

.hero,
.about,
.contact,
.footer,
.software {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}