/**
 * Main Stylesheet for Tamil Aagamam Website
 * Author: Trae AI
 * Version: 1.0
 */

/* ===== VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary-color: #8e44ad;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #f8f9fa;
    --dark-bg: #2c3e50;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    --secondary-gradient: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --accent-gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --hero-gradient: linear-gradient(135deg, rgba(46, 49, 146, 0.9) 0%, rgba(142, 68, 173, 0.9) 100%);
    --footer-gradient: linear-gradient(to bottom, #2c3e50 0%, #1a252f 100%);
    
    /* Spacing */
    --section-spacing: 100px;
    --element-spacing: 30px;
    --small-spacing: 15px;
    
    /* Border Radius */
    --border-radius: 8px;
    --button-radius: 50px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    
    /* Shadows */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    --button-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #fff;
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

.text-center {
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--button-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    box-shadow: var(--button-shadow);
}

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

.btn-primary:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-fast);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
    z-index: 1001;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient), url('images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    margin-top: 0;
    padding-top: 80px;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* ===== SECTION COMMON STYLES ===== */
section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 0 auto 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transform: translateY(0);
    transition: var(--transition-medium);
    width: 100%;
    max-width: 550px;
    margin: 0 auto; /* Center the image */
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}



.about-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.feature:hover i {
    transform: scale(1.1);
}

.feature h4 {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* ===== TEAM SECTION ===== */
.team {
    background: linear-gradient(to right, rgba(142, 68, 173, 0.03), rgba(46, 49, 146, 0.03));
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-medium);
    width: 100%;
    max-width: 350px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.team-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px;
}

.team-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-role {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-bio {
    color: #666;
    line-height: 1.6;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: #f9f9f9;
}

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

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-description {
    color: #666;
}

/* ===== STAGES SECTION ===== */
.stages {
    background: linear-gradient(to right, rgba(142, 68, 173, 0.05), rgba(46, 49, 146, 0.05));
    position: relative;
    overflow: hidden;
}

.stages:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pattern-overlay);
    opacity: 0.3;
    pointer-events: none;
}

.stages-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.stages-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.stage {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.stage:nth-child(odd) {
    flex-direction: row-reverse;
}

.stage-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--card-shadow);
}

.stage-content {
    width: 45%;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.stage-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stage-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.testimonials:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lotus-overlay);
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    position: relative;
}

.testimonial:after {
    content: '\201D';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: rgba(142, 68, 173, 0.1);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-role {
    font-size: 0.9rem;
    color: #777;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.testimonial-prev,
.testimonial-next {
    background: var(--primary-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    margin: 0 15px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dot.active {
    background: var(--primary-color);
}

/* ===== APPOINTMENT SECTION ===== */
.appointment {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('images/appointment-bg.jpg') no-repeat center center/cover;
}

.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23333" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 15px center/15px;
    transition: var(--transition-fast);
}

.form-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-text h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: var(--button-radius);
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--button-shadow);
}

.whatsapp-button i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.whatsapp-button:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-gradient);
    color: white;
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    margin-right: 30px;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.footer-description {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        width: 100%;
        max-width: 100%;
    }
    
    .about-image img {
        width: 100%;
        display: block;
        margin: 0 auto 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .container {
        width: 95%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .appointment-form {
        max-width: 90%;
    }
    
    .stages-timeline:before {
        left: 40px;
    }
    
    .stage {
        flex-direction: row !important;
    }
    
    .stage-number {
        left: 40px;
    }
    
    .stage-content {
        width: 80%;
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: var(--transition-medium);
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-item {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        display: inline-block;
        width: 80%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        margin: 5px;
        padding: 10px 20px;
    }
    
    .about-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .stages-timeline:before {
        left: 30px;
    }
    
    .stage {
        flex-direction: row !important;
    }
    
    .stage-number {
        left: 30px;
    }
    
    .stage-content {
        width: 80%;
        margin-left: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin: 0 auto 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .header .container {
        padding: 15px 10px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .hero {
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 80%;
        margin: 8px 0;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .stage-content {
        width: 75%;
        padding: 15px;
    }
    
    .stage-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .appointment-form {
        padding: 20px;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control, .form-select {
        padding: 10px;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .header .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
}