/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
:root {
    --primary-color: #14042c; /* Dark Blue */
    --secondary-color: #E21B23; /* Red/Accent */
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
    background: /* Optional: adds contrast if logo is dark */
    padding: 5px;
    border-radius: 4px;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* ==========================================================================
   GLOBAL LAYOUT & SECTIONS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* ==========================================================================
   HERO SECTIONS & 3-SLIDE BANNER
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background-color: var(--primary-color);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white;
    background-color: rgba(0,0,0,0.4); 
    background-blend-mode: overlay;
    animation: slideAnim 15s infinite;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
}

@keyframes slideAnim {
    0%, 25% { opacity: 1; z-index: 1;}
    33%, 92% { opacity: 0; z-index: 0;}
    100% { opacity: 1; z-index: 1;}
}

.slide:nth-child(1) { background-image: url('banner.png'); animation-delay: 0s; }
.slide:nth-child(2) { background-image: url('https://images.unsplash.com/photo-1556905055-8f358a7a47b2?q=80&w=2070&auto=format&fit=crop'); animation-delay: -5s; }
.slide:nth-child(3) { background-image: url('https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?q=80&w=1972&auto=format&fit=crop'); animation-delay: -10s; }

.page-hero {
    height: 40vh;
    background: linear-gradient(rgba(20, 4, 44, 0.9), rgba(20, 4, 44, 0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-hero h2 { font-size: 3rem; margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.2rem; color: var(--secondary-color); }

/* ==========================================================================
   ABOUT PAGE (OUR STORY OVERLAY)
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.vision-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.card { background: var(--white); padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-top: 4px solid var(--secondary-color); }

.story-section {
    position: relative;
    padding: 5rem 2rem;
    background: url('https://images.unsplash.com/photo-1516257984-b1b4d707412e?q=80&w=2000&auto=format&fit=crop') center/cover fixed;
    text-align: center;
    color: var(--white);
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 4, 44, 0.85); /* Dark Blue Transparent */
}

.story-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.story-content h3 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--white); }
.story-content p { font-size: 1.1rem; line-height: 1.8; color: #E0E0E0; margin-bottom: 1rem; }

/* ==========================================================================
   SERVICES & PORTFOLIO
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background: var(--white); padding: 2rem; text-align: center; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1rem; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 8px; height: 300px; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(20, 4, 44, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: var(--white); font-size: 1.5rem; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info-block { background: var(--white); padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.info-item { margin-bottom: 1.5rem; }
.info-item h4 { color: var(--primary-color); margin-bottom: 0.5rem; font-size: 1.1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.contact-form textarea { height: 150px; resize: vertical; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background-color: var(--primary-color); color: var(--white); padding: 4rem 2rem 1rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h3 { color: var(--secondary-color); margin-bottom: 1.5rem; font-size: 1.2rem; text-transform: uppercase; }
.footer-col p, .footer-col ul li { margin-bottom: 0.8rem; font-size: 0.95rem; color: #ccc; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { display: inline-block; width: 35px; height: 35px; background: rgba(255,255,255,0.1); text-align: center; line-height: 35px; border-radius: 50%; font-size: 1.2rem; }
.social-links a:hover { background: var(--secondary-color); color: var(--white); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: #888; font-size: 0.9rem; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
    .about-grid, .contact-layout, .vision-mission { grid-template-columns: 1fr; gap: 2rem; }
    .slide-content h2 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .menu-icon { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-color); padding: 1rem 0; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    #menu-toggle:checked ~ .nav-links { display: flex; }
    .hero-slider { height: 50vh; }
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1.2rem; }
}