/* CSS Design System - Vasanthara Construction */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #1A1A1A;
    --accent: #f37321;
    --accent-hover: #d15a1a;
    --secondary: #F4F4F4;
    --text-primary: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --bg-light: #FAFAFA;
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-bold: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.text-center {
    text-align: center;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-bold);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.footer-logo img {
    height: 90px;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero h1,
.page-hero h1 {
    color: var(--white);
}

.page-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col li {
    color: #AAA;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stylish Contact Form */
.contact-form-card,
.application-card {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before,
.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
}

.stylish-form .form-group {
    position: relative;
    margin-bottom: 30px;
}

.stylish-form input,
.stylish-form textarea,
.stylish-form select {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--primary);
    border: none;
    border-bottom: 2px solid #EEE;
    outline: none;
    background: transparent;
    transition: var(--transition-smooth);
    appearance: none;
}

.stylish-form label {
    position: absolute;
    top: 15px;
    left: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    color: #999;
    font-weight: 500;
}

.stylish-form input:focus~label,
.stylish-form input:valid~label,
.stylish-form textarea:focus~label,
.stylish-form textarea:valid~label,
.stylish-form select:focus~label,
.stylish-form select:valid~label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.stylish-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.file-input-wrapper {
    position: relative;
    margin-top: 20px;
}

.file-input-wrapper label {
    position: static;
    display: inline-block;
    background: var(--secondary);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.file-input-wrapper label:hover {
    background: #EEE;
}

.stylish-form input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
}

.stylish-form input:focus,
.stylish-form textarea:focus {
    border-bottom: 2px solid var(--accent);
}

.form-submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.form-submit-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-bold);
}

/* --- New Components --- */

/* Testimonials Slider */
.testimonial-section {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

.testimonial-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    overflow: hidden;
    /* Fix alignment overflow */
    width: 100%;
    /* Ensure fits within parent */
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.author-name {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.author-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-header:hover {
    background: var(--secondary);
}

.faq-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 30px;
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding: 10px 30px 30px;
}

.faq-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Global WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

.whatsapp-float i {
    margin-top: 2px;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

/* Project Stats Cards */
.stats-section {
    padding: 80px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    border: 1px solid #e0e6ed;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    min-height: 220px;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.stat-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-number-box {
    background: #1e2a4a;
    /* Deep Navy from image */
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #1e2a4a;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.stat-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #1e2a4a;
    background: transparent;
    color: #1e2a4a;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.stat-card:hover .stat-btn {
    background: #1e2a4a;
    color: white;
}

/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* --- Mobile Navigation & Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 10001;
    /* Above mobile menu */
}

.bar {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Hamburger animation state */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent);
}

/* --- Tablet Breakpoint (768px and below) --- */
@media screen and (max-width: 960px) {
    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Navigation - Tablet/Mobile adjustment */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(26, 26, 26, 0.98);
        /* Deep dark background */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s ease-in-out;
        z-index: 10000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        /* Animate quickly on open */
        transform: translateY(20px);
        transition: 0.3s ease forwards;
    }

    /* Staggered animation for links */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.7s;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    .header-cta {
        display: none;
        /* Hide 'Get Quote' on small screens if needed, or move to menu */
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Make logo slightly smaller */
    .logo img {
        height: 60px;
    }
}

/* --- Mobile Breakpoint (600px and below) --- */
@media screen and (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Section adjustments */
    .section-title {
        font-size: 1.75rem;
    }

    /* Grids to 1 column */
    .stats-grid,
    .footer-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    /* Footer adjustments */
    .footer-grid {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        justify-content: center;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Adjust page hero height */
    .page-hero {
        height: 250px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    /* Contact form mobile */
    .contact-form-card,
    .application-card {
        padding: 30px 20px;
    }
}