:root {
    --primary-color: #0b1a33;
    --secondary-color: #d4af37;
    --accent-color: #f3d56d;
    --light-bg: #fffbf2;
    --text-dark: #333;
    --text-light: #aaa;
    --white: #ffffff;
    --font-heading: 'Noto Sans Tamil', 'Inter', sans-serif;
    --font-body: 'Noto Sans Tamil', 'Roboto', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Sans+Tamil:wght@400;600;700&display=swap');

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--primary-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu Toggle Button - hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 5%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(11, 26, 51, 1) 30%, rgba(11, 26, 51, 0) 80%);
    z-index: 1;
}

.hero-content {
    max-width: 50%;
    position: relative;
    z-index: 2;
    left: 123px;
    padding-bottom: 0rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn:hover {
    transform: translateY(-3px);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    border-radius: 0;
    opacity: 0.9;
}

/* Services Section */
.services {
    background-color: var(--light-bg);
    padding: 5rem 5%;
    text-align: center;
}

.services h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s;
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
}

/* How It Works */
.steps {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--white);
}

.steps h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.step-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.arrow {
    font-size: 1.5rem;
    color: #ccc;
    display: none;
}

@media (min-width: 768px) {
    .arrow {
        display: block;
    }
}

/* Testimonials */
.testimonial {
    background-color: var(--light-bg);
    padding: 5rem 5%;
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}

.author {
    font-weight: 700;
    color: var(--primary-color);
}

.author span {
    font-weight: 400;
    color: #888;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-links h3,
.footer-contact h3,
.footer-logo h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.contact-bar {
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-radius: 50px;
    align-items: center;
    margin-top: -3rem;
    /* Overlap effect if wanted, but simpler to keep inside footer */
    /* Let's keep it simple inside footer */
}

/* ===== TABLET (max-width: 900px) ===== */
@media (max-width: 900px) {

    /* Show hamburger menu */
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    nav.nav-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    nav ul li a:hover {
        background-color: rgba(212, 175, 55, 0.1);
    }

    /* Hero adjustments */
    .hero {
        padding: 5rem 5% 4rem;
        min-height: 60vh;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-content {
        max-width: 65%;
        left: 0;
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 4%;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        text-align: left;
        padding: 4rem 5% 3rem;
        min-height: 55vh;
    }

    .hero::before {
        background: linear-gradient(to right, rgba(11, 26, 51, 0.95) 20%, rgba(11, 26, 51, 0.5) 100%);
    }

    .hero-content {
        max-width: 90%;
        left: 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-image img {
        object-position: 70% center;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 0.85rem;
    }

    .logo img {
        height: 35px;
    }

    .hero {
        padding: 3.5rem 5% 2.5rem;
        min-height: 50vh;
    }

    .hero::before {
        background: linear-gradient(to bottom, rgba(11, 26, 51, 0.95) 30%, rgba(11, 26, 51, 0.6) 100%);
    }

    .hero-content {
        max-width: 100%;
        left: 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
    }

    .hero-image img {
        object-position: 65% center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }
}

/* Calculator Section */
.calculator-section {
    background-color: var(--white);
    padding: 5rem 5%;
    text-align: center;
}

.calculator-section h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.results-box {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.result-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-item span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.result-item strong {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

/* ===== About Section ===== */
.about-section {
    background-color: var(--light-bg);
    padding: 5rem 5%;
    text-align: center;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 3px solid var(--secondary-color);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: var(--white);
    padding: 5rem 5%;
    text-align: center;
}

.contact-section h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.contact-card {
    background: var(--light-bg);
    padding: 1.8rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.contact-card h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    display: block;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}