/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Palette */
    --primary: #0f172a;        
    --primary-light: #1e293b; 
    --accent: #3b82f6;        
    --accent-dark: #2563eb;
    --success: #10b981;
    --star-yellow: #f59e0b;
    
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border: #e2e8f0;
    --radius: 12px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    
    --container-width: 1280px;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3; 
    letter-spacing: -0.01em; 
    margin-bottom: 1rem;
}

p { margin-bottom: 1.5rem; color: var(--text-muted); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* Utilities */
.container { 
    width: 100%; 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 24px; 
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: white; }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: #f1f5f9;
}

/* Section Titles */
.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 64px;
    padding: 0 10px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { font-size: 1.125rem; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 20px 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; 
}

.logo i { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 30px; 
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover { color: var(--accent); }

/* DESKTOP DROPDOWN STYLES */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: white;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 8px;
    z-index: 1001;
    border: 1px solid var(--border);
    opacity: 0;
    transition: all 0.2s ease;
}

.dropdown-menu li { list-style: none; }

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-main);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--accent);
}

/* Show dropdown on hover only on larger screens */
@media (min-width: 1161px) {
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile Menu Button */
.menu-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; z-index: 1002; }

/* =========================================
   3. HERO SECTION
   ========================================= */
#hero {
    padding-top: 140px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem; 
    margin-bottom: 24px;
    color: var(--primary);
    line-height: 1.3; 
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.trust-badges {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    align-items: center;
    flex-wrap: wrap;
}

.trust-item { display: flex; gap: 8px; align-items: center; }
.trust-item i { color: var(--success); }

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Floating Badge */
.hero-stat {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   4. STATS BAR
   ========================================= */
#stats { background: white; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 0; }
.stat-item { text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-content { padding-right: 40px; }
.about-list { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary); }
.about-list i { color: var(--accent); background: #eff6ff; padding: 8px; border-radius: 50%; font-size: 0.8rem; }

.arch-image {
    width: 90%;   
    height: 699px; 
    object-fit: cover; 
    border-radius: 425px 425px 0px 0px; 
    box-shadow: var(--shadow-xl);
    display: block;
    margin: 0 auto;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon { background: var(--accent); color: white; }

.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; margin-bottom: 20px; }
.service-link { font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 5px; }
.service-link:hover { gap: 10px; }

/* =========================================
   7. PROCESS (How It Works)
   ========================================= */
#process { position: relative; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 1; }

.step-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 4px solid white;
}

/* =========================================
   8. SUSTAINABILITY
   ========================================= */
.sus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sus-feature { display: flex; gap: 20px; margin-bottom: 30px; }
.sus-feature i {
    font-size: 2rem; color: var(--success); flex-shrink: 0;
    background: #ecfdf5; width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center; border-radius: 12px;
}
.sus-feature h4 { margin-bottom: 5px; font-size: 1.2rem; }

/* =========================================
   9. CALCULATOR (SaaS Style)
   ========================================= */
.calc-interface {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.calc-head {
    background: var(--primary);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-body { padding: 30px; }

.calc-table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calc-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 40px;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.form-select, .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-main);
    color: var(--primary);
}

.form-select:focus, .form-input:focus { outline: none; border-color: var(--accent); }

.calc-total-bar {
    background: var(--bg-light);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

/* =========================================
   10. PRICING & CORPORATE
   ========================================= */
.pricing-cards { 
    display: block; 
    position: relative; 
}

.p-card {
    background: white; border: 1px solid var(--border); border-radius: 16px;
    padding: 40px 30px; text-align: center; transition: var(--transition);
}

.p-card.featured {
    background: var(--primary); 
    color: white; 
    border-color: var(--primary);
    box-shadow: var(--shadow-xl); 
    position: relative; 
    z-index: 2;
    padding-top: 60px; 
    overflow: hidden; 
}

.p-card.featured h3, .p-card.featured .price, .p-card.featured p { color: white; }
.p-card.featured li { color: #cbd5e1; }
.p-card.featured i { color: var(--accent); }
.p-card.featured .btn { background: var(--accent); color: white; width: 100%; border: none; }

.price { font-size: 3rem; font-weight: 800; margin: 20px 0 5px; color: var(--primary); }
.price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

.p-features { margin: 30px 0; text-align: left; }
.p-features li { margin-bottom: 12px; display: flex; gap: 10px; color: var(--text-muted); }
.p-features i { color: var(--success); }

/* STRICT DESKTOP LAYOUT (Forces 3-Column Grid regardless of Swiper) */
@media (min-width: 1026px) {
    .pricing-cards { display: block; overflow: visible; }
    .pricing-cards .swiper-wrapper { 
        display: grid !important; 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 30px !important; 
        transform: none !important; /* Erase Swiper transform */
        width: 100% !important;
        box-sizing: border-box;
    }
    .pricing-cards .swiper-slide { 
        width: 100% !important; 
        height: auto !important; 
        opacity: 1 !important;
        transform: none !important;
    }
    .p-card.featured {
        transform: scale(1.05) !important; /* ONLY set scale here for Desktop */
    }
    .swiper-pagination { display: none !important; }
}

/* =========================================
   11. MOBILE APP SECTION
   ========================================= */
#app-download {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    overflow: hidden;
    padding: 0; 
}

#app-download h2 { color: #ffffff; }

.app-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    align-items: center;
}

.app-content-wrapper {
    padding: 80px 40px 80px max(24px, calc((100vw - 1280px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.app-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.app-buttons { display: flex; gap: 15px; margin-top: 30px; }
.app-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    transition: var(--transition);
}
.app-btn:hover { background: white; color: var(--primary); }

/* =========================================
   12. TESTIMONIALS & FAQ
   ========================================= */
.testi-slider { position: relative; display: block; overflow: visible; }
.testi-card { background: var(--bg-light); padding: 30px; border-radius: 16px; position: relative; }

.testi-card .quote-icon { font-size: 2rem; color: #cbd5e1; position: absolute; top: 20px; right: 20px; }

.star-rating {
    color: var(--star-yellow);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.user-info { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.user-avatar { width: 50px; height: 50px; border-radius: 50%; background: #ccc; object-fit: cover; }

/* STRICT DESKTOP LAYOUT FOR TESTIMONIALS */
@media (min-width: 1026px) {
    .testi-slider .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
        transform: none !important; /* Erase Swiper transform */
        width: 100% !important;
        box-sizing: border-box;
    }
    .testi-slider .swiper-slide {
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .testi-pagination { display: none !important; }
}

/* Accordion */
.accordion-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.accordion-header {
    width: 100%; padding: 20px; background: white; border: none; text-align: left;
    font-size: 1.1rem; font-weight: 600; color: var(--primary); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-content { max-height: 0; overflow: hidden; transition: 0.3s ease; padding: 0 20px; background: white; }
.accordion-content p { padding-bottom: 20px; font-size: 0.95rem; }
.accordion-header.active i { transform: rotate(180deg); }

/* =========================================
   13. CONTACT & LOCATIONS
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.contact-info { background: var(--primary); color: white; padding: 50px; }
.contact-form-box { background: white; padding: 50px; }

.info-item { display: flex; gap: 15px; margin-bottom: 30px; }
.info-item i { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; transition: var(--transition); }
.social-links a:hover { background: var(--accent); }

/* =========================================
   14. FOOTER
   ========================================= */
footer { background: var(--primary); color: #cbd5e1; padding-top: 80px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { color: white; font-size: 1.5rem; font-weight: 800; display: block; margin-bottom: 20px; }
.footer h4 { color: white; margin-bottom: 24px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom { padding: 30px 0; display: flex; justify-content: space-between; }

/* =========================================
   15. NEW COMPONENTS (MODAL, STICKY BTN, TOAST)
   ========================================= */

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); z-index: 2000;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: white; padding: 40px; width: 90%; max-width: 500px;
    border-radius: 20px; text-align: center; position: relative;
    animation: slideUp 0.3s ease;
}
.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 2rem;
    border: none; background: none; cursor: pointer; color: var(--text-muted);
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Timeline Styles */
.timeline-item { display: flex; gap: 20px; padding-bottom: 25px; border-left: 2px solid #e2e8f0; margin-left: 10px; padding-left: 20px; position: relative; }
.timeline-item:last-child { border-left: none; }
.timeline-item .dot { 
    width: 12px; height: 12px; background: #cbd5e1; border-radius: 50%; 
    position: absolute; left: -7px; top: 5px; 
}
.timeline-item.active .dot { background: var(--success); box-shadow: 0 0 0 4px #d1fae5; }
.timeline-item.blink .dot { background: var(--accent); animation: pulse 1.5s infinite; }
.time { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

/* Mobile Sticky Button (Icon Only - Bottom Left) */
.mobile-sticky-btn {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 25px; /* Bottom Left Corner */
    z-index: 999;
    animation: slideUp 0.5s ease;
}

.mobile-sticky-btn a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    font-size: 1.5rem;
    transition: var(--transition);
}

.mobile-sticky-btn a:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 3000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* RULE 1: DRAWER MENU activation under 1160px */
@media (max-width: 1160px) {
    
    /* Header & Nav Transition to Drawer */
    header { background: rgba(255,255,255,0.98); box-shadow: var(--shadow-sm); }
    
    .menu-toggle { display: block; z-index: 1002; position: relative; }

    .nav-links {
        display: flex; 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 100%; 
        height: 100vh;
        background: white; 
        flex-direction: column; 
        justify-content: flex-start; 
        align-items: center;
        gap: 20px; 
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001; 
        padding-top: 120px; 
        padding-bottom: 50px;
        overflow-y: auto;
    }

    .nav-links.active { right: 0; }
    .nav-link { font-size: 1.25rem; display: block; width: 100%; text-align: center; padding: 15px 0; white-space: normal; }

    /* Mobile Dropdown Styling within Drawer */
    .dropdown { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .dropdown > a { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
    .dropdown-menu {
        display: none; position: static; width: 90%; background: #f1f5f9; box-shadow: none;
        border: none; padding: 10px 0; margin-top: 5px; opacity: 1; transform: none; text-align: center; border-radius: 8px;
    }
    .dropdown-menu li { margin: 0; }
    .dropdown-menu a { padding: 12px; font-size: 1rem; display: block; color: var(--text-muted); }
    .dropdown.active .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
}

/* RULE 2: MOBILE SITE LOOK (Backgrounds, Grid Stacking) under 1025px */
@media (max-width: 1025px) {
    .container { padding: 0 30px; }
    
    /* Grids collapse to single column */
    .hero-grid, .about-content .about-list, .sus-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    
    /* Mobile Site Styling for Hero */
    #hero {
        background: linear-gradient(rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.60)), url('../img/home.png');
        background-size: cover; background-position: center; color: white;
        padding-top: 130px; padding-bottom: 80px; text-align: center;
    }
    .hero-image { display: none !important; } /* Hide 3D Rack Image */
    
    .hero-content { text-align: center; order: 1; }
    .hero-content h1 { color: white; }
    .hero-content p { color: rgba(255,255,255,0.9); margin-left: auto; margin-right: auto;}
    
    .hero-btns { justify-content: center; width: 100%; }
    .hero-btns .btn { width: auto; min-width: 160px; justify-content: center; } 
    
    .hero-btns .btn-outline {
        background: rgba(15, 23, 42, 0.8); /* Semi-transparent dark blue */
        color: white;
        border-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white border */
    }
    .hero-btns .btn-outline:hover {
        background: var(--accent);
        border-color: var(--accent);
    }

    .trust-badges { justify-content: center; color: rgba(255,255,255,0.8); margin-top: 20px;}
    
    /* Other Layout Adjustments */
    .arch-image { 
        width: 100%;       
        height: 450px;
        max-width: 400px; 
        margin: 0 auto 30px 0; 
        border-radius: 50% 50% 0px 0px; 
    }
    
    .stats-grid { grid-template-columns: 1fr 1fr; }
    
    /* --- SWIPER MOBILE CSS START (Pricing & Testimonials) --- */
    .pricing-cards, .testi-slider { 
        width: 100vw; 
        margin: 0 -30px; /* Pull to edges to show cut-off slides */
        padding: 20px 0 50px 0; /* Space for scaling and pagination */
        max-width: none;
        overflow: hidden;
    }
    
    .pricing-cards .swiper-wrapper {
        display: flex !important;
        align-items: center; /* Center them vertically for Coverflow */
    }
    
    .testi-slider .swiper-wrapper {
        display: flex !important;
        align-items: stretch; /* Make testimonials equal height */
    }
    
    .p-card.swiper-slide {
        width: 280px !important; /* Set narrow enough so sides peek in */
        opacity: 0.5; /* Fade out side cards */
        transition: opacity 0.3s ease;
    }
    
    .p-card.swiper-slide-active {
        opacity: 1; /* Center slide is fully visible */
    }
    
    /* REMOVED scale override here to allow Swiper's inline transforms to work! */
    .p-card.featured { 
        margin-top: 0; 
        padding-top: 40px; /* Aligns content visually */
    }
    
    .testi-card.swiper-slide {
        width: 300px !important;
        height: auto;
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }
    
    .testi-card.swiper-slide-active {
        opacity: 1;
    }
    
    .testi-pagination {
        position: absolute;
        bottom: 10px;
        width: 100%;
        text-align: center;
    }
    /* --- SWIPER MOBILE CSS END --- */

    .contact-info, .contact-form-box { padding: 30px; }
    
    .app-split-layout { grid-template-columns: 1fr; }
    .app-image-wrapper { height: 400px; }
    .app-content-wrapper { padding: 60px 30px; text-align: center; }
    .app-buttons { justify-content: center; }

    .mobile-sticky-btn { display: block; } /* Show Sticky Btn */
    
    /* Calculator Adjustments */
    .calc-table-header { display: none; }
    .calc-row { 
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px; 
        border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px;
    }
    .calc-row > div:first-child { grid-column: 1 / -1; }
    .calc-row div:nth-child(3) { display: none; }
    
    /* Footer Adjustments */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-links a:hover { padding-left: 0; color: var(--accent); }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .step-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
    .stat-item:last-child { border-bottom: none; }
}

/* RULE 3: GALAXY S5 / OLD SMARTPHONE OPTIMIZATION */
@media (max-height: 700px) and (max-width: 1160px) {
    .nav-links {
        padding-top: 80px; 
        padding-bottom: 20px;
        gap: 5px; 
        justify-content: center; 
    }
    .nav-link {
        font-size: 1.1rem; 
        padding: 10px 0;
    }
    .nav-links li:last-child {
        margin-top: 10px;
        gap: 5px !important;
    }
    .nav-links li:last-child .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Very Small Widths */
@media (max-width: 375px) {
    .container { padding: 0 15px; } 
    h1 { font-size: 2rem; }
    .calc-row, .footer-grid, .hero-grid, .sus-grid { display: flex; flex-direction: column; }
    .calc-row { gap: 10px; }
    .calc-row input, .calc-row select { width: 100%; height: 45px; }
    .nav-wrapper { padding: 0 5px; }
    .hero-stat { left: 0; width: 100%; justify-content: center; position: relative; margin-top: 20px; }
    .app-image-wrapper { height: 300px; }
    .app-content-wrapper { padding: 50px 20px; }
    .p-card.swiper-slide, .testi-card.swiper-slide { width: 250px !important; } 
}