/* ==========================================================================
   1. GLOBAL STYLES & TYPOGRAPHY
   ========================================================================== */
   html, body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fcfcfc;
    overflow-x: hidden; /* Absolutely prevents side-scrolling on mobile */
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}
.brand-text {
    font-family: "Comic Sans MS";
    font-size: 32px; 
    font-weight: 700; 
    font-style: italic; 
    color: #1a1a1a !important; 
    letter-spacing: 0.5px;
    
    /* These three lines guarantee perfect vertical centering next to the image */
    line-height: 1;
    display: flex;
    align-items: center; 
    
    margin-bottom: 0;
    padding-top: 0; /* Removed padding so flexbox handles the centering */
}

/* Mobile sizing */
@media (max-width: 767px) {
    .brand-text {
        font-size: 26px;
    }
}
.z-index-1 { z-index: 1; }
.tracking-wider { letter-spacing: 2px; }

/* Buttons */
.btn-pill {
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Custom Nav Pill */
.nav-pill {
    padding: 8px 20px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #555 !important;
    font-weight: 500;
}

.nav-pill:hover, .nav-pill.active {
    background-color: #f8f9fa;
    color: #000 !important;
}

/* ==========================================================================
   2. HERO CAROUSEL SECTION (DESKTOP FIRST)
   ========================================================================== */
   .hero-section {
    width: 100%;
    
    /* THE ULTIMATE LOCK: Forces the container to be the exact shape of your 1920x1020 images */
    aspect-ratio: 1920 / 1020; 
    
    position: relative;
    overflow: hidden;
    background-color: #000;
    
    /* We remove all old height rules so the aspect-ratio takes full control */
    height: auto !important;
    min-height: unset !important; 
    max-height: none !important;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* Because the container matches your image exactly, 'cover' will fit flawlessly with ZERO cropping */
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay so text is readable */
    z-index: 0;
}



/* Hero Typography */
.hero-section .display-4 {
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); 
}

.hero-section h5 {
    font-size: 1.25rem;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Custom Play/Pause Button */
.slide-control-top {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-control-top:hover {
    background: rgba(255,255,255,0.8);
    color: #000;
}

/* ==========================================================================
   3. PORTFOLIO SECTION
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: #000;
    margin-top: 15px;
}

.portfolio-img {
    height: 400px;
    width: 100%;
    object-fit: cover; /* Prevents image stretching */
    transition: transform 0.5s ease;
}
.smart-img {
    width: 100%;
    
    /* 1. THE SHAPE: Forces every single image to be this exact rectangle */
    aspect-ratio: 4 / 3; 
    
    /* 2. THE FILL: Forces the image to completely fill the rectangle without stretching */
    object-fit: cover; 
    
    /* 3. THE FOCUS: Keeps the center of the image visible if the edges get cropped */
    object-position: center; 
    
    /* Optional: Adds a subtle border so they all look framed */
    border: 1px solid #eaeaea; 
}
.portfolio-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.portfolio-img-wrapper:hover .portfolio-img {
    transform: scale(1.03); 
}

.portfolio-heading {
    font-size: 2.5rem;
    color: #222;
}

/* ==========================================================================
   4. CONTACT SECTION
   ========================================================================== */
.brand-heading {
    font-size: 3.5rem;
    color: #222;
    letter-spacing: -1px;
    line-height: 1;
}

.form-heading {
    font-size: 1.8rem;
    color: #333;
}

.description-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    text-align: justify;
}

.custom-input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #333;
    background-color: transparent;
    transition: all 0.3s ease;
}

.custom-input:focus {
    box-shadow: none;
    border-color: #000;
    background-color: #fff;
}

.map-container {
    border: 1px solid #eee;
    background: #f9f9f9;
    height: 100%; 
    min-height: 450px; 
}

/* ==========================================================================
   5. LOWER BRAND LOGO SLIDER (SLICK)
   ========================================================================== */
.brand-slider-section {
    border-top: 1px solid #eaeaea;
    overflow: hidden; /* Keeps slider from breaking mobile width */
}

.brand-carousel {
    position: relative;
    padding: 0 40px; 
}

.brand-item {
    outline: none;
    display: flex !important; 
    align-items: center;
    justify-content: center;
    height: 100px; 
}

.brand-item img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   6. DARK FOOTER
   ========================================================================== */
.cyber-footer {
    background-color: #1a1a1a; 
    color: #a0a0a0;
}

.footer-brand {
    font-family: "Comic Sans MS", "Comic Sans", "Kalam", cursive;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    font-size: 2.2rem;
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover { 
    color: #ffffff; 
}

.social-icons .social-btn {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; 
    color: #fff;
    margin-right: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-icons .social-btn:hover { opacity: 0.8; }
.btn-facebook { background-color: #3b5998; }
.btn-twitter { background-color: #00aced; }
.btn-vimeo { background-color: #1ab7ea; }
.btn-instagram { background-color: #e1306c; }
.btn-youtube { background-color: #ff0000; }

/* ==========================================================================
   7. ABSOLUTE RESPONSIVENESS (TABLETS & PHONES)
   ========================================================================== */

/* TABLETS (Max Width: 991px) */
@media (max-width: 991px) {
    .hero-section {
        height: 60vh;
        min-height: 450px;
    }
    .hero-section .display-4 { font-size: 2.8rem; }
    
    .portfolio-img { height: 350px; }
    
    .brand-heading { text-align: center; }
    .form-heading { margin-top: 2rem; text-align: center; }
    .map-container { min-height: 350px; margin-top: 2rem; }
    
    .brand-carousel { padding: 0 10px; }
}

/* MOBILE PHONES (Max Width: 767px - PIXEL 7, IPHONE, ETC) */
@media (max-width: 767px) {
    
    /* --- HERO LOCK FIX --- */
    .hero-section {
        /* We change height to viewport width so it perfectly scales the box to the image ratio */
        height: 55vw; 
        min-height: 220px; 
        max-height: 400px;
    }
    
    .hero-bg {
        /* 'contain' guarantees the left and right sides of your image are NEVER cut off */
        background-size: contain !important; 
        background-position: center center !important;
        background-color: #000; /* Fills top/bottom gaps with black for a cinematic look */
    }

    .hero-section .display-4 { 
        font-size: 1.8rem; 
        line-height: 1.3; 
        padding: 0 15px; /* Keeps HTML text off the very edge of the screen */
    }
    
    .hero-section h5 { 
        font-size: 0.85rem; 
        letter-spacing: 1px; 
    }
    
    .slide-control-top { 
        top: 10px; right: 10px; width: 30px; height: 30px; font-size: 0.8rem; 
    }
    
    /* --- PORTFOLIO FIX --- */
    .portfolio-heading { font-size: 2rem; }
    .portfolio-img { height: 250px; }
    .description-text { text-align: left; } /* Easier reading on narrow screens */
    
    /* --- CONTACT & MAP FIX --- */
    .brand-heading { font-size: 2.5rem; }
    .map-container { min-height: 300px; }
    
    /* --- LOWER SLIDER FIX --- */
    .brand-item { height: 50px; } /* Shrinks footer logos slightly on mobile */
    .brand-item img { max-height: 40px; }
    
    /* --- FOOTER FIX --- */
    .cyber-footer .footer-desc { text-align: center !important; }
    .footer-brand { font-size: 2rem; }
    .cyber-footer .col-12 { margin-bottom: 2.5rem; }
    .social-icons { justify-content: center !important; margin-bottom: 1rem; }
}

/* VERY SMALL PHONES (Max Width: 400px) */
@media (max-width: 400px) {
    .hero-section .display-4 { font-size: 1.5rem; }
    .portfolio-img { height: 200px; }
}