/* =================================================================
   SJ DEMOLITION - MASTER STYLESHEET (WITH PRELOADER & TEAM STYLES)
   ================================================================ */

:root {
    --primary: #1e2238;       
    --dark: #0f121e;          
    --accent: #00a8e8;        
    --secondary-blue: #5b67ca;
    --light: #f4f6fa;         
    --white: #ffffff;
    --gray: #6b7280;
    --new:rgb(233, 206, 139);
    --border-color: #e2e8f0;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =================================================================
   WEBSITE PRELOADER STYLES
   ================================================================ */
.site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

.preloader-logo {
    width: 90px;
    height: auto;
    animation: preloaderPulse 1.8s infinite ease-in-out;
}

.preloader-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: preloaderSpin 0.9s linear infinite;
}

.preloader-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: 700;
    color: var(--dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.align-center { align-items: center; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Interactive Buttons */
.btn-interactive {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-interactive:hover {
    transform: translateY(-2px);
    background-color: #0090c7;
    box-shadow: 0 6px 15px rgba(0, 168, 232, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color:rgb(233, 206, 139);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--dark);
    color:white;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark);
    color: var(--gray);
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .contact-info i, .top-bar .social-icons a {
    color: var(--accent);
}

.top-bar .social-icons {
    display: flex;
    gap: 12px;
}

/* Navbar / Header */
/* =================================================================
   NAVBAR & MOBILE TOGGLE FIXES
   ================================================================ */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999; /* Keeps navbar below mobile drawer and toggles */
    padding: 1rem 0;
}

.navbar .container {
    position: relative; /* Ensures child absolute/z-index elements align properly */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 45px;
    height: auto;
}

.brand-text h2 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--dark);
}

.brand-text p {
    font-size: 0.7rem;
    color: var(--secondary-blue);
    font-weight: 600;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* =================================================================
   MOBILE NAVIGATION DRAWER & TOGGLE BUTTON DEFAULTS
   ================================================================ */
.mobile-menu-toggle,
.mobile-close-btn,
.nav-overlay {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Make sure the toggle button sits above everything in the header */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 1.6rem;
        color: var(--dark);
        cursor: pointer;
        transition: var(--transition);
        position: relative;
        z-index: 10002; /* Ensures it is always clickable */
        padding: 5px;
    }

    .mobile-menu-toggle:hover {
        color: var(--accent);
    }

    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10003; /* Sits above overlay */
        overflow-y: auto;
    }

    .nav-links-wrapper.active {
        right: 0;
    }

    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        background: transparent;
        border: none;
        font-size: 1.4rem;
        color: var(--primary);
        cursor: pointer;
        margin-bottom: 2rem;
        z-index: 10003;
        transition: var(--transition);
    }

    .mobile-close-btn:hover {
        color: var(--accent);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.8rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        color: var(--primary);
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 18, 30, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 10000; /* Sits behind drawer, above content */
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* =================================================================
   HERO SECTION WITH BACKGROUND SLIDER & BLUR OVERLAY
   ================================================================ */
.hero-slider-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
    text-align: center;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 6s ease-in-out;
    transform: scale(1);
}

.hero-slide.active-slide {
    opacity: 1;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 18, 30, 0.8), rgba(30, 34, 56, 0.85));
    backdrop-filter: blur(3px);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    margin: 0 auto;
    color: var(--white);
}

.hero-text-animator {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Section Styles */
.welcome-section {
    padding: 6rem 0;
}

.welcome-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--new);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* Sections & Cards */
.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light);
}

.vfx-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.vfx-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Stats Counter Section */
.stats-section {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.stat-box p {
    color: var(--secondary-blue);
    font-size: 0.95rem;
}

/* =================================================================
   4-COLUMN TEAM SECTION STYLES (WITH HOVER EFFECTS & TRANSITIONS)
   ================================================================ */
.team-section {
    background-color: var(--white);
}

.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 168, 232, 0.15);
    border-color: rgba(0, 168, 232, 0.3);
}

.team-img-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: var(--light);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.08);
}

/* Social Overlay Slide-in Effect */
.team-social-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    background: linear-gradient(to top, rgba(15, 18, 30, 0.85), rgba(15, 18, 30, 0.4));
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-social-overlay {
    bottom: 0;
}

.team-social-overlay a {
    width: 34px;
    height: 34px;
    background-color: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-social-overlay a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.team-info {
    padding: 1.5rem 1rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}


/* =================================================================
   MOBILE NAVIGATION DRAWER DEFAULTS (HIDDEN ON DESKTOP)
   ================================================================ */
.mobile-menu-toggle,
.mobile-close-btn,
.nav-overlay {
    display: none;
}


/* =================================================================
   RESPONSIVE MEDIA QUERIES
   ================================================================ */

@media screen and (max-width: 1024px) {
    .container {
        width: 92%;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }
}

@media screen and (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.8rem;
    }

    .top-bar .contact-info span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.2rem;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 1.6rem;
        color: var(--dark);
        cursor: pointer;
        transition: var(--transition);
        z-index: 9999;
    }

    .mobile-menu-toggle:hover {
        color: var(--accent);
    }

    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 9998;
        overflow-y: auto;
    }

    .nav-links-wrapper.active {
        right: 0;
    }

    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        background: transparent;
        border: none;
        font-size: 1.4rem;
        color: var(--primary);
        cursor: pointer;
        margin-bottom: 2rem;
        z-index: 10000;
        transition: var(--transition);
    }

    .mobile-close-btn:hover {
        color: var(--accent);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.8rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        color: var(--primary);
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 18, 30, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9997;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-slider-section {
        min-height: 70vh;
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-btns a {
        justify-content: center;
    }

    .section-padding {
        padding: 3.5rem 0;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
}