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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #DAA520;
    color: #1a1a4a;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1001;
    transition: top 0.3s;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(25, 25, 112, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: #c7da20;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #DAA520;
    background: rgba(218, 165, 32, 0.1);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1a1a4a 0%, #2d1b69 50%, #1a1a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="1" fill="white" opacity="0.3"/><circle cx="30" cy="10" r="0.5" fill="white" opacity="0.5"/><circle cx="70" cy="30" r="1.5" fill="white" opacity="0.2"/><circle cx="90" cy="15" r="0.8" fill="white" opacity="0.4"/><circle cx="20" cy="80" r="1" fill="white" opacity="0.3"/><circle cx="80" cy="70" r="1.2" fill="white" opacity="0.3"/></svg>') repeat;
    animation: twinkle 10s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    color: #E6E6FA;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #1a1a4a;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(218, 165, 32, 0.4);
}

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

/* Floating Elements */
.floating-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Introduction Section */
.intro {
    background: linear-gradient(to bottom, #f8f9fa, white);
    text-align: center;
}

.intro h2 {
    font-size: 2.5rem;
    color: #1a1a4a;
    margin-bottom: 2rem;
}

.intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Features Grid */
.features {
    background: rgb(255, 255, 255);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(218, 165, 32, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #DAA520, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #1a1a4a;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* About Detailed Section */
.about-detailed {
    background: linear-gradient(to bottom, white, #f8f9fa);
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: #1a1a4a;
    margin-bottom: 4rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.content-section {
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #DAA520;
}

.content-section h2 {
    font-size: 2rem;
    color: #2d1b69;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #DAA520;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    font-size: 1.5rem;
    color: #1a1a4a;
    margin: 2rem 0 1rem 0;
    font-weight: bold;
}

.content-section p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-section strong {
    color: #2d1b69;
    font-weight: bold;
}

/* Kandams Table Styling */
.kandams-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.kandam-item {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #DAA520;
}

.kandam-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.kandam-number {
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.kandam-content h4 {
    font-size: 1.2rem;
    color: #1a1a4a;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.kandam-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Testimonials */
.testimonials {
    background: #1a1a4a;
    color: white;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #DAA520;
}

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

.testimonial {
    padding: 2rem;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 1s ease;
}

.testimonial-author {
    margin-top: 1rem;
    font-size: 1rem;
    color: #DAA520;
    font-weight: bold;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(218, 165, 32, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background: #DAA520;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contact Form */
.contact {
    background: linear-gradient(to bottom, #f8f9fa, white);
    padding: 6rem 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a4a;
    margin-bottom: 3rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a4a;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DAA520;
}

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

/* Improved form validation styles */
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff4444;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #28a745;
}

/* Phone input styling */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-right: 1px solid #e0e0e0;
}

.submit-btn {
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #1a1a4a;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading state for submit button */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #1a1a4a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: #1a1a4a;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

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

.footer-section h3 {
    color: #DAA520;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: #E6E6FA;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #DAA520;
}

/* WhatsApp Button */
#whatsappButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#whatsappButton:hover {
    transform: scale(1.1);
}

#whatsappButton img {
    border-radius: 50%;
}

/* Improved focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #DAA520;
    outline-offset: 2px;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(25, 25, 112, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu {
        display: block;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .nav-links a {
        padding: 1rem;
        display: block;
        border-radius: 8px;
        text-align: center;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .section-title {
        font-size: 2.2rem;
    }

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

    .kandams-table {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 2rem;
    }

    .form-container {
        margin: 0 1rem;
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .testimonial-dots {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .kandam-item {
        padding: 1rem;
        flex-direction: column;
    }
    
    .kandam-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .testimonial {
        padding: 1rem;
        font-size: 1rem;
    }
}