/* =========================================
   ALPHA SECURITY - BROCHURE THEME (Dark Blue & Gold)
   ========================================= */

/* --- 1. GLOBAL RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #001f5b; /* Dark Blue Background */
    color: #ffffff; /* White Text */
}

h1, h2, h3, h4, h5, h6 {
    color: #FDB813; /* Gold Headings */
    font-weight: 600;
}

/* Container Utility */
.container {
    width: 95%;          
    max-width: 1400px; 
    margin: 0 auto;
}

/* --- 2. NAVIGATION BAR --- */
.navbar {
    background: #001f5b;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #FDB813;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;              /* ✅ allow wrapping */
    justify-content: center;      /* ✅ center when wrapped */
}

/* Gold Pill Navigation Style */
.menu li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid transparent;
    white-space: nowrap;
}

.menu li a:hover, .menu li a.active {
    background-color: #FDB813;
    color: #001f5b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* --- 3. GENERAL SECTIONS & HERO --- */
.hero {
    background: linear-gradient(rgba(0, 31, 91, 0.85), rgba(0, 31, 91, 0.85)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
    text-align: center;
    border-bottom: 3px solid #FDB813;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.page-header {
    background-color: #002a7a;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 2px solid #FDB813;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* --- 4. BUTTONS --- */
.btn {
    display: inline-block;
    background: #FDB813;
    color: #001f5b;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #FDB813;
}

.btn:hover {
    background: #e5a800;
    border-color: #e5a800;
    transform: translateY(-2px);
}

/* --- 5. GRID & CARDS (Services/Values) --- */
.section-padding {
    padding: 4rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #002a7a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.card h3 { margin-bottom: 1rem; }
.card p { color: #e0e0e0; }

.card:hover {
    transform: translateY(-7px);
    border-color: #FDB813;
    box-shadow: 0 10px 25px rgba(253, 184, 19, 0.2);
    cursor: pointer;
}

/* --- 6. ABOUT PAGE LAYOUT --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

/* UPDATED: Justify Text for Clean Edges */
.text-content { 
    flex: 1; 
    font-size: 1.1rem; 
    color: #e0e0e0; 
    text-align: justify; /* Fix applied here */
    padding-right: 2rem; /* Adds space next to photos */
}

/* Keep headings aligned left */
.text-content h2, .text-content h3 { 
    color: #FDB813; 
    text-align: left; 
}

.image-content { flex: 1; }
.image-content img {
    width: 100%;
    border-radius: 8px;
    border: 3px solid #FDB813;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- 7. FORMS --- */
form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #FDB813;
}

form input, form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    background-color: #001a4d;
    border: 2px solid #003380;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    color: #ffffff;
    transition: border 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: #FDB813;
    outline: none;
}

/* --- 8. FOOTER --- */
footer {
    background: #001540;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid #FDB813;
}

.socials { margin: 1rem 0; }
.socials a {
    color: #FDB813;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}
.small-text { font-size: 0.9rem; color: #bbb; }

/* --- 9. ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 1s ease-out forwards; }
.fade-in-delay { opacity: 0; animation: fadeInUp 1s ease-out 0.5s forwards; }

/* --- 10. MODALS & POPUPS --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #001f5b;
    margin: 10% auto;
    padding: 2rem;
    border: 3px solid #FDB813;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: fadeInUp 0.4s ease;
}

.close-btn {
    color: #FDB813;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: white; }

/* --- 11. GALLERY: ALBUM COLLECTIONS (NEW) --- */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.album-card {
    background-color: #000; /* Dark Card */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    position: relative;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(253, 184, 19, 0.2);
    border-color: #FDB813;
}

.album-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.album-card:hover .album-cover { opacity: 1; }

.album-info { padding: 1.5rem; }

.album-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.album-count { color: #888; font-size: 0.85rem; }

/* Back Button inside Album */
.back-btn {
    display: inline-block;
    background: transparent;
    color: #FDB813;
    border: 2px solid #FDB813;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #FDB813;
    color: #001f5b;
}

/* Gallery Grid (For photos inside albums) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    border: 3px solid #FDB813;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
    height: 200px;
}

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

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

/* --- 12. FIXED LIGHTBOX (Centering & Arrows) --- */
#lightbox {
    background-color: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
}

#lightbox-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* CENTERS THE IMAGE */
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    border: 3px solid #FDB813;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #FDB813;
    font-weight: bold;
    font-size: 50px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 101;
    text-shadow: 2px 2px 5px #000;
}
.next { right: 10px; border-radius: 3px 0 0 3px; }
.prev { left: 10px; border-radius: 0 3px 3px 0; }
.prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.8); color: #fff; }

/* --- 13. WHATSAPP & SUCCESS PAGE --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128C7E; }

.success-box {
    background: #002a7a !important;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid #FDB813;
}
.success-box h1 { color: #FDB813; }
.checkmark { color: #FDB813 !important; font-size: 4rem; margin-bottom: 1rem; }

/* --- 14. MOBILE MENU (Horizontal Scroll Fix) --- */
@media screen and (max-width: 768px) {

    .navbar .container {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .navbar nav {
        width: 100%;
    }

    .navbar .menu {
        justify-content: center;
        width: 100%;
        gap: 10px;
        padding: 8px 10px;
    }

    .menu li a {
        font-size: 0.85rem;     /* slightly smaller */
        padding: 8px 14px;      /* reduced padding */
        white-space: nowrap;    /* keep text in one pill */
    }
}



/* --- CLIENTS PAGE STYLES --- */
.client-card {
    background: #002a7a;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* UPDATED: Forces all images to start at the exact same top level */
    justify-content: flex-start; 
    /* UPDATED: Forces the second row to be as tall as the first row */
    min-height: 280px; 
}

.client-card:hover {
    transform: translateY(-5px);
    border-color: #FDB813;
}

.client-logo-img {
    /* UPDATED: Fixed height so all text aligns perfectly underneath */
    height: 100px; 
    width: 100%;
    max-width: 80%;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.client-name {
    color: #FDB813;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-title {
    text-align: center;
    margin: 4rem 0 2rem 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

/* --- UPDATED: CENTERED LAYOUT (Works for Clients AND Services) --- */
.centered-row {
    display: flex;
    flex-wrap: wrap;       /* Allows boxes to wrap to next line */
    justify-content: center; /* CENTERS the boxes horizontally */
    gap: 2rem;
    margin-top: 2rem;
}

/* Enforce uniform width for BOTH Client Cards and Service Cards */
.centered-row .client-card, 
.centered-row .card {       /* <--- Added .card here */
    flex: 0 1 300px;        /* Sets a base width of 300px */
    width: 100%;
    max-width: 350px;       /* Prevents them from getting too huge */
}

/* --- HERO SLIDER STYLES --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 3px solid #FDB813;
    background-color: #001f5b; 
}

/* The Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

/* Dark Overlay so text is readable */
.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 91, 0.6); /* Dark Blue Tint */
}

/* The Text Content (Sits on top of slider) */
.hero-content {
    position: relative;
    z-index: 10; /* Must be higher than slides */
    padding: 20px;
}

/* --- FOUNDERS GRID (For About Page) --- */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns (Left & Right) */
    gap: 1rem; /* Space between photos */
}

.founder-card {
    background: #001a4d;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #FDB813;
    text-align: center;
    transition: transform 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(253, 184, 19, 0.2);
}

.founder-card img {
    width: 100%;
    /* UPDATED: Increased height to 250px so photos are big enough */
    height: 250px; 
    
    /* UPDATED: 'contain' shows FULL image. */
    object-fit: contain; 
    object-position: center; 
    
    border-radius: 4px;
    margin-bottom: 8px;
    border: none !important; 
    box-shadow: none !important;
    background-color: #001540; 
}

.founder-name {
    color: #FDB813;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.founder-role {
    color: #ccc;
    font-size: 0.75rem;
    line-height: 1.2;
}