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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background: #FFFFFF;
    overflow-x: hidden;
}

.tamil-text {
    font-family: 'Noto Sans Tamil', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1em;
    color: #666;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2C2C2C;
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #F0F0F0;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    will-change: auto;
    transform: translateZ(0);
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #2C2C2C;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
    font-size: 0.85rem;
}

.nav-links a:hover {
    color: #666;
}

@media (min-width: 768px) {
    header {
        padding: 1.5rem 0;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .logo {
        gap: 1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 2rem;
        flex-wrap: nowrap;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
}

main {
    margin-top: 120px;
}

@media (min-width: 768px) {
    main {
        margin-top: 100px;
    }
}

/* Hero Section - Mobile First */
.hero {
    background: #FAFAFA;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C2C2C;
    padding: 2rem 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    opacity: 0.9;
    will-change: auto;
    transform: translateZ(0);
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-family: 'Noto Sans Tamil', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Noto Sans Tamil', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    color: #666;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #666;
    font-weight: 300;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .hero {
        min-height: 85vh;
        padding: 4rem 0;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .hero-logo-img {
        height: 120px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        letter-spacing: -1px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        letter-spacing: -0.5px;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
        margin-top: 3rem;
        width: auto;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
}

/* CTA Buttons - Mobile First */
.cta-button {
    background: #2C2C2C;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
}

.cta-button:hover {
    background: #666;
}

.cta-button.secondary {
    background: transparent;
    color: #2C2C2C;
    border: 1px solid #2C2C2C;
}

.cta-button.secondary:hover {
    background: #2C2C2C;
    color: white;
}

@media (min-width: 768px) {
    .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
        width: auto;
    }
}

/* Video Section - Mobile First - Full Video Display */
.video-section {
    padding: 0;
    background: #000000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.video-section .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #000000;
    /* Remove controls on mobile */
    pointer-events: none;
}

/* Allow controls on desktop if needed */
@media (min-width: 1024px) {
    .community-video {
        pointer-events: auto;
    }
}

/* Portrait orientation - prioritize width */
@media (orientation: portrait) {
    .community-video {
        width: 100%;
        height: auto;
        max-height: 50vh;
    }
}

/* Landscape orientation - prioritize height */
@media (orientation: landscape) {
    .community-video {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 80vh;
    }
}

.video-placeholder {
    width: 100%;
    min-height: 40vh;
    background: #F0F0F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 300;
    padding: 1rem;
}

.video-placeholder p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
}

@media (min-width: 768px) {
    .video-section {
        min-height: 50vh;
    }
    
    .community-video {
        max-height: 80vh;
    }
    
    .video-placeholder {
        min-height: 50vh;
    }
    
    .video-placeholder p {
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .video-section {
        min-height: 60vh;
    }
    
    .community-video {
        max-height: 85vh;
    }
    
    .video-placeholder {
        min-height: 60vh;
    }
}

/* Sections - Mobile First */
.about, .events, .contact {
    padding: 3rem 0;
}

.about {
    background: #FFFFFF;
}

.events {
    background: #FAFAFA;
}

.about h2, .events h2, .contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2C2C2C;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.about-content p {
    font-size: 1rem;
    color: #2C2C2C;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .about, .events, .contact {
        padding: 5rem 0;
    }
    
    .about h2, .events h2, .contact h2 {
        margin-bottom: 2.5rem;
        font-size: 2.5rem;
        letter-spacing: -0.8px;
    }
    
    .about-content {
        margin: 0 auto 3.5rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1.3rem;
    }
}

@media (min-width: 1024px) {
    .about, .events, .contact {
        padding: 6rem 0;
    }
    
    .about h2, .events h2, .contact h2 {
        margin-bottom: 3rem;
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .about-content {
        margin: 0 auto 4rem;
    }
    
    .about-content p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
}

/* Features - Mobile First */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #2C2C2C;
    border-radius: 0;
    transition: transform 0.3s;
}

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

.feature h3 {
    color: #fefdfd;
    margin-bottom: 1rem;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.feature p {
    color: #fefdfd;
    font-weight: 300;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .feature {
        padding: 2.5rem 2rem;
    }
    
    .feature h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .feature p {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 3rem;
        margin-top: 4rem;
    }
    
    .feature {
        padding: 3rem 2rem;
    }
    
    .feature:hover {
        transform: translateY(-5px);
    }
    
    .feature h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        letter-spacing: -0.5px;
    }
    
    .feature p {
        line-height: 1.7;
    }
}

/* Events - Mobile First */
.event-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.event {
    background: white;
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.event.featured {
    background: white;
    border: 1px solid #E0E0E0;
}

.event h3 {
    color: #2C2C2C;
    margin-bottom: 1rem;
    font-family: 'Noto Sans Tamil', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.event p {
    color: #2C2C2C;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .event-list {
        gap: 2rem;
    }
    
    .event {
        padding: 2rem;
    }
    
    .event h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .event p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .event-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 3rem;
    }
    
    .event {
        padding: 3rem;
    }
    
    .event:hover {
        transform: translateY(-5px);
    }
    
    .event h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        letter-spacing: -0.5px;
    }
    
    .event p {
        line-height: 1.7;
    }
}

.rsvp-btn {
    background: #2C2C2C;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.rsvp-btn:hover {
    background: #666;
}

.mass-dates {
    margin: 1.5rem 0;
}

.mass-dates h4 {
    color: #2C2C2C;
    font-weight: 400;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Date Grid - Mobile First */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.date-item {
    background: #FAFAFA;
    padding: 0.7rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 300;
    color: #2C2C2C;
    border: 1px solid #E0E0E0;
}

@media (min-width: 480px) {
    .dates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .dates-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    
    .date-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

.map-container {
    margin: 1.5rem 0;
}

.map-container iframe {
    border-radius: 0;
    width: 100%;
}

.contact {
    background: #2C2C2C;
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
    font-family: 'Noto Sans Tamil', 'Helvetica Neue', Arial, sans-serif;
}

/* Contact Info - Mobile First */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-item h3 {
    color: #CCCCCC;
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-item p {
    color: #E0E0E0;
    font-weight: 300;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .contact-item h3 {
        font-size: 1.05rem;
        margin-bottom: 0.9rem;
    }
    
    .contact-item p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (min-width: 1024px) {
    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* RSVP Section - Mobile First */
.rsvp-section {
    background: #FFFFFF;
    padding: 3rem 0;
}

.rsvp-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2C2C2C;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.rsvp-section p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    padding: 0 1rem;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 1rem;
    background: #FAFAFA;
    padding: 1.5rem;
    border-radius: 0;
}

@media (min-width: 768px) {
    .rsvp-section {
        padding: 5rem 0;
    }
    
    .rsvp-section h2 {
        margin-bottom: 1.5rem;
        font-size: 2.5rem;
        letter-spacing: -0.8px;
    }
    
    .rsvp-section p {
        margin-bottom: 2.5rem;
        font-size: 1.05rem;
    }
    
    .rsvp-form {
        margin: 0 auto;
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .rsvp-section {
        padding: 6rem 0;
    }
    
    .rsvp-section h2 {
        margin-bottom: 2rem;
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .rsvp-section p {
        margin-bottom: 3rem;
        font-size: 1.1rem;
    }
    
    .rsvp-form {
        padding: 3rem;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 400;
    color: #2C2C2C;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    border-radius: 0;
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.3s;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #2C2C2C;
}

.submit-btn {
    width: 100%;
    background: #2C2C2C;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
}

.submit-btn:hover {
    background: #666;
}

.rsvp-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.rsvp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rsvp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    background: #FAFAFA;
    color: #666;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #E0E0E0;
}

footer p {
    font-weight: 300;
    font-size: 0.9rem;
}

/* Social Links - Mobile First */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #E0E0E0;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid #666;
    transition: all 0.3s;
    font-weight: 300;
    font-size: 0.95rem;
    width: 100%;
    max-width: 250px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #E0E0E0;
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .social-links {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .social-link {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        width: auto;
    }
}