:root {
    /* Light Theme Variables */
    --primary-color: #ffffff; /* Pure White BG */
    --primary-light: #f8fafc; /* Slate 50 - Section BG */
    --primary-dark: #0f172a; /* Slate 900 - Text/Headings */
    
    /* New Accent: Electric Blue */
    --accent-color: #2563eb; /* Blue 600 - Strong, Corporate, High Visibility */
    --accent-hover: #1d4ed8; /* Blue 700 - Darker Blue */
    
    --text-main: #1e293b; /* Slate 800 - Headings */
    --text-muted: #475569; /* Slate 600 - Body text */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(15, 23, 42, 0.05); /* Subtle dark border */
    
    /* Shadows with Blue tint */
    --shadow-soft: 0 10px 15px -3px rgba(37, 99, 235, 0.05);
    --shadow-strong: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-muted);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white); /* White logo on transparent hero */
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header.scrolled .logo {
    color: var(--primary-dark);
    text-shadow: none;
}

/* Invert logo color for light background (Assuming standard logo is white/light) */
header.scrolled #mainLogo {
    filter: invert(1) brightness(0.2); 
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

header.scrolled .nav-links {
    background: transparent;
    border-color: transparent;
    padding: 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header.scrolled .nav-links a {
    color: var(--text-muted);
    text-shadow: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--primary-dark);
}

/* Swiper Hero Slider */
.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s linear;
}

.swiper-slide-active .slide-bg {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    color: var(--white);
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.5s;
}

.swiper-slide-active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-color);
    background: linear-gradient(to right, var(--accent-color), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #cbd5e1;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.8s;
}

.swiper-slide-active .hero-content p {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 1.1s;
}

.swiper-slide-active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Swiper Navigation */
.swiper-button-next, .swiper-button-prev {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent-color);
    color: var(--white);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

/* Page Header (Inner Pages) */
.page-header {
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    padding: 180px 0 100px !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(255, 255, 255, 1)); /* Fade to white */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    margin-left: 20px;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

/* Section Common */
section {
    padding: 120px 0;
    position: relative;
    background-color: var(--white);
}

section:nth-child(even) {
    background-color: var(--primary-light);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-title p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Products Cards (Light Theme) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.product-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(37, 99, 235, 0.2);
}

.product-image:hover {
    cursor: zoom-in;
}

.product-image:hover .zoom-icon {
    opacity: 1 !important;
}

.product-image img {
    width: 100%;
    height: 220px; /* Reduced height for smaller cards */
    object-fit: cover;
    transition: var(--transition);
}

.product-image:hover img {
    transform: scale(1.05); /* Subtle zoom */
}

.product-info {
    padding: 15px 20px 20px;
}

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

.product-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Gallery (Light Theme Overlay) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    height: 250px; /* Fixed height container */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    color: var(--white);
    font-size: 1.2rem;
}

.gallery-overlay p {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Page Optimization */
.contact-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.contact-info {
    background: var(--primary-dark);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: white !important;
}

.contact-info p {
    color: #94a3b8 !important;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: transparent;
    border: none;
    padding: 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    background: transparent;
    border: none;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-item h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-form {
    padding: 60px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    background: white;
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info, .contact-form {
        padding: 40px;
    }
}

/* Footer (Dark) */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '\f054'; /* FontAwesome chevron right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-col i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    margin-right: 10px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Header/Nav */
    .mobile-menu-btn {
        display: block;
        color: var(--white);
        font-size: 1.5rem; /* Explicit size */
        background: rgba(255,255,255,0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex !important; /* Force flex display */
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
    }
    
     header.scrolled .mobile-menu-btn {
        color: var(--primary-dark);
        background: rgba(15, 23, 42, 0.05);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 999;
        display: flex; /* Ensure flex is active when toggled */
        padding: 0;
        border: none;
        border-radius: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--primary-dark);
        font-size: 1.2rem;
        text-shadow: none;
    }
    
     /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none; /* Hide arrows on mobile for cleaner look */
    }

    /* Grids */
    .clients-grid {
        gap: 20px !important;
    }
    
    .client-logo img {
        max-width: 100px;
    }
    
    /* Stats */
    section[style*="background-color: var(--primary-dark)"] .container > div {
        gap: 30px;
    }
    
    section[style*="background-color: var(--primary-dark)"] .container > div > div {
        width: 45%; /* 2 per row */
    }
    
    /* Section Padding */
    section {
        padding: 60px 0 !important;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .page-header { /** Adjust inner page header height */
        padding: 130px 0 60px !important;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
    
    /* CTA */
    .cta h2 {
        font-size: 2.5rem !important;
    }
    
    .cta p {
        font-size: 1.1rem !important;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .feature-row { /* Assuming flex used in services.css or style.css */
        flex-direction: column;
    }
    
    /* Stats 1 per row on very small screens */
    section[style*="background-color: var(--primary-dark)"] .container > div > div {
        width: 100%; 
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn.btn-outline {
        margin-left: 0;
    }
}

/* Admin Dashboard Styles */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 100%);
    padding: 30px;
    border-radius: 20px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.05) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.dashboard-welcome h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    color: white;
}

.dashboard-welcome p {
    color: #94a3b8;
    margin: 0;
    position: relative;
    z-index: 1;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-green { background: #dcfce7; color: #166534; }

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-info .count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.action-card:hover {
    border-color: var(--accent-color);
    background: #f8fafc;
    transform: translateY(-3px);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: 0.3s;
}

.action-card:hover .action-icon {
    background: var(--accent-color);
    color: white;
}

.action-card span {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
}

/* Rich Table Styling */
.table-responsive table tbody tr {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px; /* For hover effect */
}

.table-responsive table tbody tr:hover td {
    background: #f8fafc;
    transform: scale(1.005);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.table-responsive table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table-responsive table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
