/* 
  Thirumala Vasa Builders - Premium Construction Design System
  Color Palette:
  --primary: #0a0a0a (Deep Midnight)
  --accent: #c5a059 (Antique Gold)
  --secondary: #2d3436 (Slate Grey)
  --text: #333333 (Coal)
  --light: #f8f9fa (Off-White)
  --glass: rgba(255, 255, 255, 0.05)
*/

:root {
    --primary: #0a0a0a;
    --accent: #c5a059;
    --accent-hover: #b08d4a;
    --secondary: #2d3436;
    --text-main: #333333;
    --text-muted: #666666;
    --light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    color: var(--white);
    /* Default to white for subpages and hero overlay */
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
}

header.scrolled .brand {
    color: var(--primary);
}

.brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

header.scrolled .nav-link {
    color: var(--text-main);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

header.scrolled .menu-toggle {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links.open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 100%);
    height: 100vh;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    background: rgba(10,10,10,0.98);
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}

.nav-links.open .nav-link,
.nav-links.open .btn-quote {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-quote {
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-quote:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
}

.stat-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header .subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* Why Us Section */
.why-us {
    background: var(--light);
}

.section {
    padding: 100px 0 80px;
}

.hero .eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.1);
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: var(--transition);
}

.hero-link:hover {
    background: rgba(255,255,255,0.2);
}

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.about-copy h2,
.about-copy p {
    max-width: 720px;
}

.about-list {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
}

.about-list i {
    color: var(--accent);
    margin-top: 0.2rem;
}

.about-image img,
.contact-visual img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}

.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
}

.service-card ul {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
    color: var(--text-muted);
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-card li i {
    color: var(--accent);
}

.value-prop {
    background: var(--light);
}

.budget-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.budget-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.contact-card {
    background: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 40px 90px rgba(0,0,0,0.18);
}

.contact-card h2 {
    margin-bottom: 1.5rem;
}

.contact-card p {
    color: rgba(255,255,255,0.78);
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-details div {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.contact-details i {
    color: var(--accent);
    min-width: 24px;
}

.contact-details a {
    color: inherit;
}

.footer-links a,
.footer-phone a {
    color: rgba(255,255,255,0.72);
}

.footer-phone a:hover {
    color: var(--accent);
}

section {
    scroll-margin-top: 110px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Scrolling Logos */
.logo-bar {
    padding: 4rem 0;
    background: var(--white);
    overflow: hidden;
}

.logo-slider {
    display: flex;
    gap: 5rem;
    align-items: center;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo-slider img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.logo-slider img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 5-Step Process */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 2.5rem;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    width: 2px;
    height: calc(100% + 4rem);
    background: var(--accent);
    opacity: 0.2;
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Portfolio Filters */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.filter-btn.active {
    color: var(--primary);
    border-color: var(--accent);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.site-evolution {
    padding: 100px 0;
    background: #fbfaf8;
}

.site-evolution-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-evolution-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.site-evolution-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.site-evolution-copy {
    padding: 2rem;
}

.site-evolution-copy h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.site-evolution-copy p {
    color: var(--text-muted);
    line-height: 1.8;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    align-items: start;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand h2 span {
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Floating CTA Buttons */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.cta-btn {
    width: 60px;
    height: 60px;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.phone-btn {
    background-color: var(--accent);
}

.phone-btn:hover {
    background-color: var(--accent-hover);
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid.home-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .features-grid,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .about-copy,
    .about-image,
    .contact-card,
    .contact-visual {
        width: 100%;
    }

    .hero {
        min-height: 80vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .service-card {
        padding: 2rem;
    }
}
