:root {
    --primary-color: #64748b; /* Slate Gray */
    --secondary-color: #2b2d42; /* Dark Metal */
    --accent-color: #8d99ae; /* Soft Steel */
    --bg-color: #1a1a1a;
    --text-color: #edf2f4;
    --card-bg: #2a2a2a;
    --border-color: #3b3b3b;
    --transition: 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll globally */
}

/* Make all media responsive */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Fluid Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Slightly reduced padding for mobile */
}

/* Header & Nav */
header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li a {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links li a:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg') center/cover no-repeat;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    background-color: #fff;
    color: #111;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.hero-content .btn:hover {
    background-color: #f8f9fa;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.3);
}

/* Base Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* About Preview */
.about-preview {
    background-color: var(--card-bg);
}

.about-preview h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.product-img {
    height: 250px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}


.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-content p {
    color: var(--accent-color);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Light theme product card overrides */
.homepage-light .product-card {
    background-color: #fff;
    border-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.homepage-light .product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.homepage-light .product-content h3 {
    color: #1a1a1a;
}
.homepage-light .product-content p {
    color: #555;
}
.homepage-light .product-card .btn-secondary {
    border-color: #1a1a1a;
    color: #1a1a1a;
}
.homepage-light .product-card .btn-secondary:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(100, 116, 139, 0.3);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Add some dark mode form styling */
::-webkit-input-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

/* References Specific */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Contact Specific */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(100, 116, 139, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--accent-color);
}

/* Map specific */
.map-container {
    width: 100%;
    height: 400px;
    background-color: #333;
    margin-top: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/header-bg.jpg') center/cover;
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Admin Specific Overrides */
.admin-sidebar {
    width: 250px;
    background-color: var(--secondary-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    border-right: 1px solid var(--border-color);
}

.admin-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.admin-menu li a {
    display: block;
    padding: 15px 25px;
    border-left: 4px solid transparent;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background-color: rgba(255,255,255,0.05);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.admin-main {
    margin-left: 250px;
    padding: 40px;
}

.admin-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

/* Tables & Wrapping */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table gets scrollbar on very small screens instead of squishing */
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: rgba(0,0,0,0.2);
    color: var(--primary-color);
    font-weight: 600;
}

.table tr:hover {
    background-color: rgba(255,255,255,0.02);
}

/* Base Form Responsiveness for iOS */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    font-size: 16px; /* Prevents iOS auto zoom */
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    color: var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--accent-color);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 5px;
}

.footer-col .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-col .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.footer-col .social-links a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--accent-color);
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}

.floating-left-dock {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background: #fff;
    border-radius: 30px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}
.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0;
}
.dock-item:hover {
    transform: translateY(-3px);
}
.dock-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}
.dock-label {
    font-size: 0.7rem;
    color: #555;
    font-weight: 600;
}

/* Mobile Bottom Navigation (Hidden on Desktop) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero {
        min-height: 60vh; /* Better fit for tall mobile screens */
        padding: 0 15px;
    }
    .hero-content p { 
        font-size: 1.1rem; 
        padding: 0 10px;
    }

    .contact-layout { grid-template-columns: 1fr; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .admin-main { margin-left: 0; }
    
    /* Reveal Mobile Contact Nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        z-index: 9999;
        justify-content: space-around;
        padding: 8px 5px;
        border-top: 1px solid #e1e1e1;
    }
    
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #555;
        font-size: 0.75rem;
        font-weight: 600;
        transition: var(--transition);
        width: 100%;
        padding: 5px 0;
        text-decoration: none;
        border-radius: 8px;
    }
    
    .mobile-bottom-nav a i {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    /* Specific Colors for Contact Icons */
    .mobile-bottom-nav .nav-phone i { color: #007bff; }
    .mobile-bottom-nav .nav-whatsapp i { color: #25D366; }
    .mobile-bottom-nav .nav-email i { color: #dc3545; }
    .mobile-bottom-nav .nav-map i { color: var(--primary-color); }

    .mobile-bottom-nav a:hover, .mobile-bottom-nav a:active {
        background-color: #f8f9fa;
    }

    /* Hide redundant floating buttons on mobile since they are in the bottom nav */
    .floating-left-dock {
        display: none !important;
    }
    
    /* Push body bottom to avoid content being hidden under nav */
    body {
        padding-bottom: 60px;
    }
}

/* New Contact Layout */
.contact-page-wrapper {
    background-color: #f8f9fa; /* Light background for the specific page */
    color: #333;
    padding: 60px 20px;
}
.contact-page-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}
.contact-page-header h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}
.contact-page-header p {
    color: #666;
    font-size: 1rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.contact-card h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}
.company-slogan {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.company-about {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 30px;
}
.stat-item {
    font-size: 0.85rem;
    color: #777;
}
.stat-item strong {
    display: block;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-top: 5px;
}
.cert-section h4 {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    font-weight: 500;
}
.cert-section p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}
.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #333;
}
.info-list li i {
    margin-top: 4px;
    color: #1a1a1a;
}
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.quick-action-btn:hover {
    background: #f8f9fa;
}
.form-input-light {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
    color: #333;
}
.form-input-light:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}
.btn-dark-full {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}
.btn-dark-full:hover {
    background: #222;
}
.support-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.support-card {
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.support-card h5 {
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.support-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Homepage Light Theme Overrides */
.homepage-light {
    background-color: #f8f9fa;
    color: #333;
}
.homepage-light .section-title h2 {
    color: #495057;
}

/* Service Categories Block (Hizmet Kategorilerimiz) */
.service-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: inline-block;
}

.service-grid-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .service-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

.srv-card-light {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.srv-card-light:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.srv-card-light h4 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.srv-card-light p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Right Sidebar Highlight Card */
.support-highlight-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.support-highlight-card::before {
    content: '\f0ad'; /* Wrench icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 8rem;
    color: rgba(0,0,0,0.03);
    z-index: 0;
}

.support-highlight-card > * {
    position: relative;
    z-index: 1;
}

.support-highlight-card h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-highlight-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.support-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.support-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 12px;
}

.support-list li i {
    color: #28a745;
}

/* Hizmetlerimiz Detailed Page Styles */
.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .services-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-detailed-grid {
        grid-template-columns: 1fr;
    }
}

.service-detail-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s ease;
}

.service-detail-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.service-detail-card h4 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-detail-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

.service-features {
    text-align: left;
    margin: 25px 0;
    padding-top: 25px;
    border-top: 1px solid #f3f4f6;
}

.service-features h5 {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features ul li {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features ul li i {
    color: #10b981;
    font-size: 0.9rem;
}

.service-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.price-hint {
    font-size: 0.8rem;
    color: #9ca3af;
}

.btn-dark-full {
    background-color: #111827 !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-dark-full:hover {
    background-color: #374151 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.brand-pill {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.brand-pill:hover {
    border-color: #d1d5db;
    color: #111827;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* -------------------------------------------
   Global Mobile Overrides (MUST BE AT BOTTOM)
   ------------------------------------------- */
@media (max-width: 768px) {
    /* Contact Page Layouts */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .support-cards {
        grid-template-columns: 1fr;
    }

    /* Service Page Layouts */
    .service-grid-wrapper {
        grid-template-columns: 1fr;
    }
    .services-detailed-grid {
        grid-template-columns: 1fr;
    }
    
    /* References Page Layout */
    .references-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE FRONTEND REFACTORING (OVERRIDE BLOCK)
   Goal: 100% Mobile-Ready, Fluid, Grid & Flexbox Based Layouts
   ========================================================================== */

/* 1. Reset & Fluid Basics */
html {
    font-size: 100%; /* 16px Base */
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe, canvas {
    max-width: 100%;
    height: auto;
    display: block; /* prevents inline gap */
}

/* 2. Global Flexbox & Grid Helpers */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid System */
.grid-system {
    display: grid;
    gap: 30px;
}
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* 3. Responsive Typography & Elements */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.3; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; }
p  { font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.6; }

/* 4. BREAKPOINTS */

/* --- >= 1440px (Desktop Large) --- */
@media (min-width: 1440px) {
    .container { max-width: 1320px; }
}

/* --- <= 1024px (Tablet Landscape / Small Laptop) --- */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .products-grid, .contact-layout, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    section { padding: 60px 0; }
}

/* --- <= 768px (Tablet Portrait / Mobile) --- */
@media (max-width: 768px) {
    .container { width: 100%; padding: 0 15px; }
    .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
    .products-grid, .contact-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr !important; }
    .flex-row { flex-direction: column; }
    
    /* Typography */
    .section-title { font-size: 1.6rem; margin-bottom: 25px; }
    h1 { font-size: 1.6rem !important; line-height: 1.25 !important; }
    h2 { font-size: 1.45rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.3rem !important; line-height: 1.35 !important; }
    h4 { font-size: 1.15rem !important; line-height: 1.4 !important; }
    
    /* Utility */
    .mobile-left-align { text-align: left !important; }
    .mobile-desc-text {
        font-size: 0.95rem !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Buttons & Forms */
    .btn {
        width: 100%;
        text-align: center;
        padding: 15px;
        min-height: 50px; /* Touch target */
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.1rem;
    }
    
    .form-control, select, input, textarea {
        min-height: 50px;
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
        width: 100% !important;
    }
    
    /* Generic Layout Resets */
    .footer-col {
        text-align: left;
        padding: 0 15px;
    }
    .footer-col .social-links {
        justify-content: flex-start;
    }
    .footer-col h3::after {
        left: 0;
        transform: none;
    }
    
    .map-container { height: 300px; margin-top: 30px; }
    
    /* Fix sticky headers and paddings */
    .page-header { padding: 60px 0 40px; }
    
    body { padding-bottom: 70px; /* Space for mobile nav if exists */ }
}

/* --- <= 480px (Small Mobile) --- */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    section { padding: 40px 0; }
    
    .section-title { font-size: 1.4rem; }
    
    .product-img { height: 200px; }
    
    .contact-card { padding: 20px; }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* --- <= 320px (Extra Small Mobile) --- */
@media (max-width: 320px) {
    .btn { font-size: 1rem; padding: 12px; }
    h1 { font-size: 1.4rem !important; }
    h2 { font-size: 1.3rem !important; }
}

/* 5. Perf & Lazy Load UI enhancements */
/* End of Responsive CSS */
