/* --- Universal Styles --- */
:root {
    --primary-yellow: #ffb400;
    --dark-bg: #1a1a1a;
    --light-gray: #f4f4f4;
    --text-white: #ffffff;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--light-gray);
    overflow-x: hidden;
}

/* --- HERO SECTION --- */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 { font-size: 3.5rem; color: var(--primary-yellow); margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 25px; }
.btn-yellow { background: var(--primary-yellow); color: #000; padding: 12px 30px; text-decoration: none; font-weight: bold; border-radius: 5px; transition: var(--transition); }
.btn-yellow:hover { background: #e6a400; transform: scale(1.05); }

/* --- SPLASH SCREEN (FIXED LAYOUT) --- */
#splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Desktop par content center karega */
    align-items: center;
    transition: all 1s ease;
    overflow: hidden;
}

#dots-loader { display: flex; gap: 10px; position: absolute; }
.dot {
    width: 15px; height: 15px;
    background: var(--primary-yellow);
    border-radius: 50%;
    animation: dotBounce 0.5s infinite alternate;
}
.dot:nth-child(2) { animation-delay: 0.15s; }
.dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
    from { transform: translateY(0); opacity: 0.4; }
    to { transform: translateY(-15px); opacity: 1; }
}

/* Main Wrapper for Sequence */
.splash-main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* Animation Step Base */
.seq-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.seq-anim.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Welcome Text Styling */
.intro-text {
    font-size: 2.2rem;
  	
  	width: 100%;
    color: black;
  	
    font-style: italic;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Brand Name Styling */
.brand-name {
    font-size: 3.5rem;
    font-weight: 800;
  	
    color: #ff007f;
  	
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Founder Image Container */
.splash-image-container {
    margin: 10px 0;
    flex-grow: 0;
}

#main-splash-logo {
    max-height: 55vh; /* Image screen se bahar nahi jayegi */
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Pink Bottom Bar - Screen ke niche fix rahega */


.splash-bottom-bar p {
    color: black;
  	
    font-weight: bold;
    font-size: 2.0rem;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Fade out total screen */
.fade-out-splash {
    opacity: 0 !important;
    filter: blur(20px);
    visibility: hidden;
    pointer-events: none;
}

/* --- NAVIGATION --- */
header {
    background: #2c3e50;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text h3 { color: var(--text-white); font-size: 1.4rem; }
.logo-text span { color: var(--primary-yellow); }
nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a { color: white; text-decoration: none; font-weight: 500; }

/* --- SERVICE CARDS --- */
.service-card {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-yellow);
    transition: 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.card-body { padding: 25px; }
.service-card h3 { font-size: 1.5rem; color: var(--dark-bg); margin-bottom: 12px; }
.service-card p { color: #666; line-height: 1.6; margin-bottom: 20px; }
.card-btn { color: #004aad; text-decoration: none; font-weight: bold; }

/* --- FLOATING QUERY POPUP --- */
#query-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-yellow);
    color: #000;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
}

/* --- MOBILE OPTIMIZATION (FINAL FIX) --- */
@media (max-width: 768px) {
    /* 1. Pure content ko upar shift karne ke liye */
    .splash-main-wrapper {
        justify-content: flex-start !important; /* Center se hata kar Top pe shuru karega */
        padding-top: 40px; /* Screen ke ek dum top se halka gap */
        height: 100vh;
    }

    .intro-text { 
        font-size: 1.4rem; 
        margin-bottom: 2px;
    }

    .brand-name { 
        font-size: 1.8rem; 
        margin-bottom: 20px; 
    }

    /* 2. Image ko Right mein shift karne ke liye */
    .splash-image-container {
        width: 100% !important;
        display: block !important; 
        padding-right: 0 !important;
        margin-top: -20px; /* Text ke paas lane ke liye */
    }

    /* 2. Image par margin-left auto lagao */
    #main-splash-logo {
        max-height: 70vh; 
        width: auto;
        display: block !important;
        
        /* Ye do lines image ko right side dhaka degi */
        margin-left: auto !important; 
        margin-right: -35px !important;
    }

    /* 3. Pink Bar Mobile par Full Width (Corners tak) */
    .splash-bottom-bar { 
        width: 100% !important; 
        left: 0 !important;
        transform: none !important; /* Center logic khatam */
        border-radius: 0 !important; /* Sharp corners jaisa screenshot mein hai */
        bottom: 10%;
        padding: 12px 0;
    }

    .splash-bottom-bar p { font-size: 0.85rem; }

    /* Hero aur Cards purane wale hi hain */
    .hero-content h1 { font-size: 2.2rem; }
    nav ul { display: none; }
    .service-card { min-width: 100%; }
}

@media (min-width: 1024px) {
    #main-splash-logo { max-height: 60vh; }
    .brand-name { font-size: 4rem; }
}