/* Base Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #ffb703;
    --accent-color: #fb8500;
    --dark-color: #1d3557;
    --light-color: #f1faee;
    --text-color: #457b9d;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: rgb(30, 30, 30);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    background: no-repeat center center/cover;
    color: white;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.decorative-line {
    height: 3px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Navigation */
#navbar {
    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);
    padding: 15px 0;
    transition: var(--transition);
}

#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Tangerine', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

.nav-links li {
    margin-left: 30px;
}
.nav-links a {
    position: relative;
    font-weight: 500;
       list-style: none;
     color: #1e1e1e;
  background-color: transparent;
  text-decoration: none;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('124798975f76eff6b5191354ccf70be8.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    
}

.hero .container {
    z-index: 1;
}

.hero h1 {
    font-family: 'Tangerine', cursive;
    font-size: 5rem;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease-out;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
    animation: fadeInUp 1s ease-out;
}

.hero .btn {
    animation: fadeIn 1.5s ease-out;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

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

.about-text p {
    margin-bottom: 15px;
}

.heritage-block {
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.heritage-block p {
    margin-bottom: 15px;
    color: ;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
     background-color: rgb(30, 30, 30);
}

.section-header h2{
    color:rgb(230, 57, 70);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 30px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

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

.timeline-content p{
    color:#1e1e1e;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -50px;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Events Section */
.events-section {
    padding: 100px 0;
    background-color: rgb(30, 30, 30);
}

.event-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    min-width: 100px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    font-weight: 500;
}

.event-content {
    padding: 20px;
    flex: 1;
}

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

.event-content p {
    color:#1e1e1e;
}

.event-time {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: 20px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.contact-info address {
    font-style: normal;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

/* Footer */
footer {    
     background-color: rgb(30, 30, 30);
    color: rgb(230, 75, 121);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-family: 'Tangerine', cursive;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgb(230, 75, 121);
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ============= NEW RESPONSIVE STYLES ============= */

/* Custom accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Touch-friendly improvements for all devices */
button, .btn, a, .filter-btn, .social-icon {
    min-height: 44px;
    min-width: 44px;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    font-size: 16px; /* Prevents iOS zoom on focus */
}

/* General responsive adjustments */
@media (max-width: 1200px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .container {
        width: 95%;
    }
}

/* Tablet/iPad */
@media (max-width: 991px) {
    /* Section padding */
    .about-section,
    .timeline-section,
    .gallery-section,
    .events-section,
    .contact-section {
        padding: 70px 0;
    }
    
    /* Font size adjustments */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h3,
    .contact-info h3 {
        font-size: 1.6rem;
    }
    
    /* Timeline adjustments */
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    /* Gallery adjustments */
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Event item adjustments */
    .event-date {
        min-width: 80px;
        padding: 15px;
    }
    
    .event-date .day {
        font-size: 1.8rem;
    }
}

/* Mobile/Large Phones */
@media (max-width: 768px) {
    /* Navigation - Mobile Menu */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        font-size: 1.2rem;
    }
    
    /* Add backdrop when menu is open */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    
    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero responsive */
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    /* Section padding */
    .about-section,
    .timeline-section,
    .gallery-section,
    .events-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    /* Timeline mobile view */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-content::after {
        left: -36px !important;
        right: auto !important;
    }
    
    /* Event items - stack on mobile */
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        padding: 10px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
}

/* Small Phone Devices */
@media (max-width: 576px) {
    /* Smaller font sizes */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-text h3,
    .contact-info h3 {
        font-size: 1.4rem;
    }
    
    /* Gallery adjustments */
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    /* Contact form - full width */
    .contact-info,
    .contact-form {
        min-width: 100%;
    }
    
    /* Footer logo */
    .footer-logo h3 {
        font-size: 2rem;
    }
}

/* Smartwatch Specific */
@media (max-width: 320px) {
    /* Optimize for very small screens */
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Gallery and timeline simpler layout */
    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    /* Simplified footer for very small screens */
    footer {
        padding: 30px 0 15px;
    }
}

/* High Resolution Displays */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    /* Slightly larger text for very large screens */
    body {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}

/* For landscape orientation on phones */
@media (max-height: 500px) and (orientation: landscape) {
    /* Adjust hero section height */
    .hero {
        height: 120vh;
    }
    
    /* Make navigation scroll on small height */
    .nav-links.active {
        overflow-y: auto;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    /* Show overlay on touch devices without hover */
    .gallery-item .gallery-overlay {
        transform: translateY(70%);
    }
    
    .gallery-item:active .gallery-overlay {
        transform: translateY(0);
    }
    
    /* Improved touch targets */
    .nav-links a {
        padding: 10px 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a1a;
        --text-color: #e0e0e0;
        --dark-color: #f1faee;
        --border-color: #444;
    }
    
    body {
        background-color: #121212;
    }
    
    #navbar {
        background-color: rgba(18, 18, 18, 0.95);
    }
    
    .timeline-content,
    .heritage-block,
    .event-item,
    {
        background-color: #1e1e1e;
    }
    
    .form-group input,
    .form-group textarea {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
}

/* Print styles */
@media print {
    #navbar, .filter-btn, .btn, footer {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* Add smooth scroll polyfill for Safari */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        scroll-behavior: auto;
    }
    
    /* JavaScript scrolling will be used instead */
    .smooth-scroll-safari {
        transition: all 0.5s;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

