/* =====================================================
   DARVAZA ERP - FLOUR MILL MANAGEMENT SYSTEM
   PROFESSIONAL STYLESHEET
   Path: public_html/assets/cssL/stylesheet.css
===================================================== */

/* =====================================================
   CSS VARIABLES & ROOT SETTINGS
===================================================== */
:root {
    /* Primary Colors */
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    
    /* Secondary Colors */
    --secondary: #10B981;
    --secondary-dark: #059669;
    --secondary-gradient: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    
    /* Accent & Utility */
    --accent: #F59E0B;
    --danger: #EF4444;
    --warning: #F59E0B;
    --success: #10B981;
    
    /* Neutral Colors */
    --dark: #1F2937;
    --darker: #111827;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --light: #F9FAFB;
    --white: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 10px 30px rgba(79, 70, 229, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
}

/* =====================================================
   RESET & BASE STYLES
===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* =====================================================
   PRELOADER
===================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(79, 70, 229, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray);
}

.text-muted { color: var(--gray-light) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.8) !important; }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-primary-custom {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

.btn-outline-custom {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-nav {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-nav:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-cta-primary {
    background: var(--secondary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 10px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-cta-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 10px 30px rgba(16, 185, 129, 0.3);
    color: var(--white);
}

.btn-cta-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 38px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.125rem;
    margin: 10px;
    transition: all var(--transition-normal);
}

.btn-cta-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   BADGES
===================================================== */
.badge-custom {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-custom i {
    color: var(--accent);
}

/* =====================================================
   NAVIGATION
===================================================== */
.navbar {
    padding: 20px 0;
    transition: all var(--transition-normal);
    background: transparent;
    z-index: 1030;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

.navbar.scrolled .nav-link {
    color: var(--dark);
}

.navbar.scrolled .navbar-brand {
    color: var(--primary);
}

.navbar.scrolled .btn-nav {
    background: var(--primary);
}

.navbar.scrolled .btn-nav:hover {
    background: var(--primary-dark);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.navbar-brand span {
    color: var(--secondary);
}

.navbar-brand:hover {
    color: var(--white);
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    color: var(--white);
    transition: all var(--transition-fast);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831, 41, 55, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" fill-opacity="1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero h1 {
    margin-bottom: 24px;
    font-weight: 800;
}

.hero .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -4px;
    right: -4px;
    height: 16px;
    background: rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    z-index: -1;
    animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.4; }
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-supporting {
    font-size: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-supporting i {
    color: var(--secondary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    opacity: 0.9;
}

.badge-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    animation: bounce 2s infinite;
    z-index: 2;
    transition: all var(--transition-fast);
}

.scroll-indicator:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =====================================================
   PROBLEM-SOLUTION SECTION
===================================================== */
.problem-solution {
    padding: 80px 0;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.problem-box,
.solution-box {
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.problem-box {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.problem-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.solution-box {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.solution-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.problem-box .icon,
.solution-box .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.problem-box .icon {
    background: #FEE2E2;
}

.problem-box .icon i {
    font-size: 40px;
    color: var(--danger);
}

.solution-box .icon {
    background: rgba(255, 255, 255, 0.2);
}

.solution-box .icon i {
    font-size: 40px;
    color: var(--white);
}

.problem-box h3,
.solution-box h3 {
    margin-bottom: 16px;
}

.problem-list,
.solution-list {
    text-align: left;
    margin-top: 20px;
}

.problem-list li,
.solution-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.problem-list i {
    color: var(--danger);
}

.solution-list i {
    color: var(--secondary);
}

.arrow-icon {
    font-size: 48px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.7; transform: translateX(5px); }
}

/* =====================================================
   SECTIONS COMMON STYLES
===================================================== */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title h2 {
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   FEATURES SECTION
===================================================== */
.features {
    background: var(--light);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.feature-icon i {
    font-size: 32px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0;
    flex-grow: 1;
}

/* =====================================================
   HOW IT WORKS SECTION
===================================================== */
.how-it-works {
    background: var(--white);
}

.step-card {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    margin-bottom: 0;
}

/* =====================================================
   BENEFITS SECTION
===================================================== */
.benefits {
    background: var(--primary-gradient);
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal), background var(--transition-normal);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent);
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.5;
}

/* =====================================================
   TESTIMONIALS SECTION
===================================================== */
.testimonials {
    background: var(--light);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rating {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 16px;
    border-top: 1px solid var(--light);
}

.testimonial-author .avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.testimonial-author h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--dark);
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin: 0;
}

/* =====================================================
   TRUST SECTION
===================================================== */
.trust {
    background: var(--white);
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
}

.trust-item {
    text-align: center;
    padding: 20px;
}

.trust-item i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.trust-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.trust-item p {
    color: var(--gray-light);
    margin: 0;
    font-size: 0.95rem;
}

/* =====================================================
   FINAL CTA SECTION
===================================================== */
.final-cta {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--white);
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .btn {
    margin: 10px 8px;
}

.closing-line {
    margin-top: 40px;
    font-size: 1rem;
    opacity: 0.85;
    font-style: italic;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: var(--darker);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-tagline {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-tagline h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.footer-tagline span {
    color: var(--secondary);
}

.footer h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer p {
    color: var(--gray-light);
    line-height: 1.7;
}

.footer-links {
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* =====================================================
   SCROLL TO TOP BUTTON
===================================================== */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
}

#scrollTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTop:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

#scrollTop:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* =====================================================
   ACCESSIBILITY & FOCUS STATES
===================================================== */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
    .hero {
        text-align: center;
        padding: 120px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .arrow-icon {
        transform: rotate(90deg);
        margin: 30px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Small devices (phones, 767px and down) */
@media (max-width: 767px) {
    section {
        padding: 70px 0;
    }
    
    .navbar {
        background: var(--white);
        padding: 15px 0;
    }
    
    .navbar .nav-link {
        color: var(--dark);
    }
    
    .navbar-brand {
        color: var(--primary);
    }
    
    .navbar.scrolled {
        padding: 12px 0;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .problem-box,
    .solution-box {
        padding: 30px 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 10px auto;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4:first-child {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    #scrollTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Extra small devices (portrait phones, 575px and down) */
@media (max-width: 575px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .trust-item i {
        font-size: 32px;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-icon,
    .step-number,
    .badge-custom {
        will-change: transform;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    #scrollTop,
    .footer {
        display: none !important;
    }
    
    body {
        background: var(--white);
        color: var(--dark);
    }
    
    .hero {
        background: var(--white);
        color: var(--dark);
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero .highlight::after {
        display: none;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero .highlight::after {
        animation: none;
    }
    
    .arrow-icon {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark mode support (optional - can be enabled via JS) */
@media (prefers-color-scheme: dark) {
    /* Uncomment and customize if adding dark mode toggle */
    /*
    body {
        background: var(--darker);
        color: var(--light);
    }
    */
}