/* ==========================================================================
   ROHITRAJ INTERNATIONAL - MASTER CSS FILE
   ========================================================================== */

/* --- CSS VARIABLES (Brand Colors) --- */
:root {
    --primary-blue: #0a3161;   /* Main Brand Color */
    --secondary-blue: #114c99; /* Lighter Blue for Hovers */
    --dark-grey: #333333;
    --light-grey: #f4f4f6;
    --white: #ffffff;
    --text-color: #555555;
}

/* --- GLOBAL RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-grey);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* --- BUTTONS --- */
.btn {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- GENERAL SECTIONS --- */
.section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
}

/* --- GRID & CARDS (Home Page Services) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(10, 49, 97, 0.1);
    border-color: var(--primary-blue);
}

.card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.card h3 {
    color: var(--dark-grey);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- FOOTER --- */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--white);
}

.footer-grid p, .footer-grid ul {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid ul li a {
    color: #e0e0e0;
    transition: color 0.3s;
}

.footer-grid ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* --- FLOATING ELEMENTS --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: background 0.3s;
}

.scroll-top:hover {
    background: var(--secondary-blue);
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & HAMBURGER MENU FIX
   ========================================================================== */

.menu-btn {
    display: none;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
    position: relative;
    z-index: 9999; /* Forces the icon to the very front so it's always clickable */
}

@media (max-width: 900px) {
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: center; /* Centers your logo nicely on mobile */
        padding: 15px 20px;
        position: relative; /* This is the secret to making absolute positioning work */
    }
    
    .menu-btn {
        display: block;
        position: absolute; /* Rips the icon out of the standard layout */
        left: 20px; /* Glues it exactly 20 pixels from the left screen edge */
        top: 50%;
        transform: translateY(-50%); /* Perfectly centers it vertically */
        margin: 0;
        z-index: 9999; /* Guarantees it is clickable */
    }
    
    header {
        position: relative;
    }
    
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex; 
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-container .btn {
        display: none; 
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 15px;
    }
}