/* =========================================================================
   1. VARIABLES & RESET
   ========================================================================= */
:root {
    --primary-color: #0F52BA;
    /* Sapphire Blue (More Premium) */
    --primary-dark: #002D62;
    --primary-gradient: linear-gradient(135deg, #0F52BA 0%, #002D62 100%);
    --secondary-color: #FFD700;
    /* Gold */
    --secondary-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --text-dark: #1A1A1A;
    --text-light: #5A5A5A;
    --white: #ffffff;
    --bg-light: #F4F7FE;
    /* Soft Cool Grey/Blueish */
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 16px;
    /* More rounded for modern feel */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer, broader shadow */
    --shadow-card: 0 15px 35px rgba(0, 45, 98, 0.1);
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    --font-telugu: 'Noto Sans Telugu', sans-serif;
    --font-english: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-english);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
    position: relative;
    /* Background pattern like a subtle mesh */
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 30px 30px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    /* Wider container */
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 82, 186, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-block {
    display: flex;
    width: 100%;
}

.section {
    padding: 100px 0;
    /* More breathing room */
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 70px;
    color: var(--text-dark);
    position: relative;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* =========================================================================
   2. HEADER
   ========================================================================= */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    /* Glass effect header */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .nav-links {
    display: flex;
    gap: 40px;
}

.navbar .nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a:hover {
    width: 100%;
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* =========================================================================
   3. HERO SECTION
   ========================================================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 15, 60, 0.75), rgba(0, 15, 60, 0.75)), url('https://images.unsplash.com/photo-1579532537598-459ecdaf39cc?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    /* Full screen */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-telugu);
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   4. ABOUT SECTION
   ========================================================================= */
.about {
    background: var(--white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
}

/* Decor element for about image */
.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    top: -20px;
    left: -20px;
    border-radius: var(--border-radius);
    z-index: 1;
    opacity: 0.3;
}

.about-text h3 {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    margin-bottom: 25px;
    color: var(--text-dark);
    white-space: nowrap;
    /* Enforce single line */
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-text p {
    font-family: var(--font-telugu);
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* =========================================================================
   5. SERVICES SECTION (Grid Updated)
   ========================================================================= */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    /* USER REQUEST: 3 Blocks per row */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: rgba(15, 82, 186, 0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(15, 82, 186, 0.1), rgba(15, 82, 186, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--primary-gradient);
    color: var(--white);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover i {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* =========================================================================
   6. STATS COUNTER (New)
   ========================================================================= */
.stats-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

/* Overlay Pattern */
.stats-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* =========================================================================
   7. WHY CHOOSE US
   ========================================================================= */
.why-us {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Background circles decoration */
.why-us::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-gradient);
    opacity: 0.03;
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

/* Gradient border effect on hover */
.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.feature-item:hover::after {
    opacity: 1;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
    position: relative;
}

.feature-item:hover .icon-box {
    transform: scale(1.1);
    background: var(--primary-color);
    box-shadow: 0 10px 20px rgba(15, 82, 186, 0.3);
}

.icon-box i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover .icon-box i {
    color: var(--white);
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* =========================================================================
   8. PROCESS (New)
   ========================================================================= */
.process {
    background: var(--bg-light);
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.process-step:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(15, 82, 186, 0.3);
}

.process-step h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* =========================================================================
   9. MISSION & VISION
   ========================================================================= */
.mission-vision {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.mv-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    /* Glass */
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.mv-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.mv-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.mv-card p {
    font-family: var(--font-telugu);
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* =========================================================================
   10. FAQ (New)
   ========================================================================= */
.faq-section {
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Arbitrary large height */
    padding-bottom: 20px;
}

/* =========================================================================
   11. CONTACT SECTION
   ========================================================================= */
.contact {
    background: var(--bg-light);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 50px;
    /* Space for map below */
}

/* Left Side: Contact Info */
.contact-info {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.contact-info::before,
.contact-info::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.contact-info::before {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

.contact-info::after {
    width: 100px;
    height: 100px;
    top: 50px;
    right: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.contact-desc {
    opacity: 0.8;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.info-icon {
    min-width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Right Side: Contact Form */
.contact-form-container {
    padding: 60px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: #f8fafe;
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(15, 82, 186, 0.1);
    outline: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.form-check input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-check label {
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
}

.btn i {
    margin-left: 10px;
}

/* Map Section */
.map-section {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 5px solid var(--white);
}

/* Media Queries for Contact */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 40px;
    }

    .contact-form-container {
        padding: 40px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   12. FOOTER
   ========================================================================= */
.footer {
    background-color: #050d1a;
    color: #a0aab8;
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 60px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* =========================================================================
   13. RESPONSIVE DESIGN (Mobile First Optimizations)
   ========================================================================= */
@media (max-width: 1024px) {

    .services-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        /* Full width drawer */
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .navbar .nav-links a {
        font-size: 1.5rem;
        /* Larger text for mobile */
        font-weight: 600;
        color: var(--text-dark);
    }

    .about-grid,
    .mv-grid,
    .contact-wrapper,
    .footer-top {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
        /* Reduce padding on mobile */
    }

    .contact-info,
    .contact-form-container {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .services-grid,
    .process-grid,
    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .btn {
        width: 100%;
        margin-bottom: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hero-buttons {
        flex-direction: column;
    }
}