/* --- CSS Variables & Reset --- */
:root {
    /* NEW COLOR SCHEME: Deep Blue to Purple Gradient */
    --primary-gradient: linear-gradient(135deg, #1a237e 0%, #7b1fa2 100%);
    --secondary-gradient: linear-gradient(to right, #24C6DC, #514A9D);
    
    --primary-color: #3949ab;
    --accent-color: #ff3d00; /* For subtle highlights */
    
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --dark-bg: #0f172a;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-pad {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-white { color: var(--white) !important; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-block {
    background: var(--accent-color);
    color: var(--white);
    width: 100%;
    border-radius: 8px;
}

.btn-block:hover { background: #d83300; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i, .logo span { color: var(--accent-color); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-color); }

.btn-nav {
    background: var(--primary-gradient);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

/* --- Hero Section --- */
.hero {
    /* New Attractive Gradient Background */
    background: var(--primary-gradient);
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px; /* space for navbar */
    position: relative;
    overflow: hidden;
}

/* Subtle animated background pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 800; }
.hero-content h2 { font-size: 2rem; margin-bottom: 1.5rem; font-weight: 400; opacity: 0.9; }
.hero-content p { max-width: 700px; margin: 0 auto 2.5rem; font-size: 1.1rem; opacity: 0.8; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* --- Service Cards --- */
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(123, 31, 162, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.service-card p { color: var(--text-light); margin-bottom: 1.5rem; }

.learn-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.learn-more:hover { gap: 10px; color: var(--accent-color); }

/* --- Stats Section --- */
.stats-section {
    background: var(--secondary-gradient);
    padding: 5rem 0;
    color: var(--white);
    text-align: center;
}

.stat-box i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.8; }
.counter { font-size: 3rem; font-weight: 800; margin-bottom: 0.5rem; }
.stat-box p { font-size: 1.1rem; font-weight: 500; }

/* --- Features / Why Choose --- */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.feature-card i { color: #10b981; font-size: 1.5rem; margin-top: 5px; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Contact Section --- */
.contact-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.contact-wrapper {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info {
    flex: 1;
    background: var(--primary-gradient);
    padding: 3rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 { font-size: 2rem; margin-bottom: 2rem; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.info-item i { font-size: 1.2rem; }
.social-links { display: flex; gap: 1rem; margin-top: auto; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover { background: var(--white); color: var(--primary-color); }

.contact-form-box {
    flex: 1.5;
    padding: 3rem;
}

/* Modern Floating Labels Form */
.form-group { position: relative; margin-bottom: 1.5rem; }

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: var(--transition);
    background: transparent;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    background: var(--white);
    padding: 0 5px;
}

/* Animation for floating label */
.form-group input:focus, .form-group textarea:focus, .form-group select:focus,
.form-group input:not(:placeholder-shown), .form-group textarea:not(:placeholder-shown) {
    border-color: var(--primary-color);
}

.form-group input:focus ~ label, .form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label, .form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.7rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: #0b1120;
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem 0;
}

/* --- Animations --- */
/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsive --- */
@media (max-width: 968px) {
    .hero-content h1 { font-size: 2.5rem; }
    .contact-wrapper { flex-direction: column; }
    .contact-info { padding: 2rem; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem 0;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
    }
    
    .nav-links.active { left: 0; }
    
    .hero { padding-top: 120px; min-height: auto; padding-bottom: 4rem;}
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}