/* ==========================================================================
   1. Uniform Global Reset & Scaling Baseline
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #f9fbfd;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   2. Standardized Header & Navigation
   ========================================================================== */
header {
    background-color: #EAF8FF;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 4px solid #0B5FA5;
    position: relative;
}

.logo-link {
    display: block;
}

.logo {
    height: 60px;
    width: 190px;
    display: block;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #444444;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0B5FA5;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #0B5FA5;
}

nav a:hover::after {
    width: 100%;
}

/* ==========================================================================
   3. Unified Structural Layout Containers
   ========================================================================== */
.page-content, .about-page-container, .services-page-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

h1 {
    color: #0B5FA5;
    margin-bottom: 15px;
    font-size: 38px;
    font-weight: 700;
}

h2 {
    color: #0B5FA5;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 600;
}

.page-title {
    color: #0B5FA5; 
    margin-bottom: 15px;
}

.section-subtitle {
    color: #0B5FA5; 
    font-size: 24px; 
    margin-bottom: 10px;
}

.section-intro, .lead-text, .form-intro, .about-intro-section {
    font-size: 18px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.services-subtitle-text {
    font-size: 16px; 
    color: #666;
}

/* ==========================================================================
   4. Index Landing Page Specific Rules
   ========================================================================== */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgb(255, 255, 255);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/wallpaper.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 40px 20px;
    opacity: 1;
}

.hero h1, .hero p, .hero .btn {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 46px;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: #ffffff;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    max-width: 800px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.btn {
    background-color: #2DB7F5;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn:hover {
    background-color: #ffffff;
    color: #0B5FA5;
    transform: translateY(-2px);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: bold;
    padding: 15px;
    z-index: 10;
    transition: color 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.slider-arrow:hover {
    color: #ffffff;
}

.prev-arrow { left: 2px; }
.next-arrow { right: 2px; }

.wallpaper-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover { background-color: rgba(255, 255, 255, 0.8); }
.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.overview {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.overview-text {
    font-size: 18px;
    color: #555555;
    line-height: 1.7;
}

/* ==========================================================================
   5. Standardized Grid Architecture
   ========================================================================== */
.four-card-row, .services-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-top: 15px;
}

.card, .feature-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-top: 4px solid #8bc8f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-icon {
    font-size: 24px;
}

.feature-card h3 {
    color: #0B5FA5; 
    font-size: 18px; 
    margin: 10px 0 5px 0;
}

.feature-card p {
    color: #666666; 
    font-size: 14px;
}

.card:hover, .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(11, 95, 165, 0.08);
}

.card h3 {
    color: #0B5FA5;
    margin-bottom: 10px;
    font-size: 17px;
}

.card p {
    font-size: 13.5px;
    color: #666666;
    line-height: 1.5;
}

/* ==========================================================================
   6. About & Contact Page Modules
   ========================================================================== */
.about-split-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.about-description {
    flex: 1.5;
}

.about-badge-box {
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}

.badge {
    background-color: #EAF8FF;
    color: #0B5FA5;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    border-left: 4px solid #8bc8f6;
}

.contact-split-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.contact-info-panel, .contact-whatsapp-panel {
    flex: 1;
}

.info-item-card {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid #8bc8f6;
    margin-bottom: 15px;
}

.whatsapp-btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #ffffff !important;
    margin-bottom: 100px;
    text-decoration: none;
    padding: 20px 35px;
    border-radius: 6px;
    font-weight: bold;
}

/* ==========================================
   7. Form & Footer
   ========================================== */
.form-container { max-width: 750px; margin: 0 auto; }
form { background-color: #ffffff; padding: 35px; border-radius: 10px; border-top: 5px solid #0B5FA5; }
input, select, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #dcdcdc; border-radius: 6px; }

footer { 
    background-color: #0B5FA5; 
    color: white; 
    text-align: center; 
    padding: 10px 0; 
    font-size: 13px; 
    margin-top: 50px; 
}

/* ==========================================
   8. Partners Slider Animation
   ========================================== */
.partners-section { padding: 40px 20px; background-color: #ffffff; overflow: hidden; }
.partners-title { text-align: center; margin-bottom: 30px; }
.partners-slider-wrapper { overflow: hidden; width: 100%; }
.partners-slider { display: flex; gap: 50px; animation: scroll 20s linear infinite; width: max-content; }
.partners-slider img { height: 60px; opacity: 0.9; transition: 0.3s; }
.partners-slider img:hover { opacity: 1; }

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================
   9. Interactive UI Components
   ========================================== */
form button {
    width: 100%;
    background-color: #2DB7F5;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form button:hover {
    background-color: #0B5FA5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

form button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.alert-box { 
    padding: 15px; 
    margin-bottom: 20px; 
    border-radius: 6px; 
    font-weight: bold; 
    text-align: center; 
}

.success-line { 
    background-color: #e6f7ed; 
    color: #1e7e34;            
    border: 1px solid #c3e6cb; 
    border-left: 6px solid #28a745; 
}

.menu-toggle { display: none; }
.menu-icon {
    display: none;
    font-size: 30px;
    color: #0B5FA5;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

/* ==========================================================================
   10. Responsiveness & Adaptive Viewports
   ========================================================================== */
@media screen and (max-width: 768px) {
    header {
        position: relative; 
        flex-direction: row; 
        justify-content: space-between;
        padding: 10px 20px;
    }

    .menu-icon { display: block; }

    nav {
        display: flex;
        flex-direction: column;
        gap: 0; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #EAF8FF;
        border-bottom: 3px solid #0B5FA5;
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.4s ease-in-out; 
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(11, 95, 165, 0.1);
        font-size: 16px;
    }
    
    nav a::after { display: none; }

    .menu-toggle:checked ~ nav { max-height: 350px; }

    .hero { background-position: center top; }
    .hero h1 { font-size: 32px; }
    .about-split-layout, .contact-split-container { flex-direction: column; }
    .four-card-row, .services-row-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About Page Enhancements & Lightbox Styles
   ========================================================================== */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

/* Lightbox Pagination UI Controls Layer */
.lightbox-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lightbox-dot.active {
    background-color: #2DB7F5;
    transform: scale(1.2);
}

.lightbox-arrow {
    font-size: 36px !important;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0 8px;
    color: #ffffff;
}

.lightbox-arrow:hover {
    color: #2DB7F5 !important;
}

.close-lightbox:hover {
    color: #2DB7F5 !important;
}

/* Counter display metrics */
.lightbox-counter {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    user-select: none;
}

@media screen and (max-width: 768px) {
    .vision-mission-grid {
        grid-template-columns: 1fr !important;
    }
    .lightbox-arrow {
        font-size: 32px !important;
    }
    .lightbox-content-wrapper {
        max-width: 90% !important;
    }
}

/* Base enhancements for wallpaper project cards */
.project-card {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-top: none !important;
    z-index: 1;
    overflow: hidden;
}

/* Ensure content sits cleanly on top of the background image overlay */
.project-card-content {
    position: relative;
    z-index: 2;
}

/* Force text and buttons inside wallpaper cards to stand out beautifully */
.project-card h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.project-card p {
    color: #f1f1f1 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.project-card .preview-btn {
    position: relative;
    z-index: 2;
}
