*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #f7931e;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --bg-color: #ffffff;
    --section-bg: #ffffff;
    --card-bg: #f8f9fa;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-color: #e0e0e0;
    --bg-color: #1a1a2e;
    --section-bg: #252540;
    --card-bg: #2d2d4a;
    --light-color: #2d2d4a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 0.5rem;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Dark Mode Toggle Button */
.dark-mode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.dark-mode-btn:hover,
.dark-mode-btn:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: 2px solid white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hero Section with Slider */
.hero {
    padding: 0;
    border-radius: 0;
    margin-top: 70px;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--section-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

body.dark-mode h2 {
    color: var(--primary-color);
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 3rem;
    margin: 3rem 0;
    border-radius: 10px;
}

.quote-section p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.facility-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s, background 0.3s ease, box-shadow 0.3s;
}

.facility-card:hover,
.facility-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.facility-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Table Responsive Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Shift Timing Table */
.timing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 500px;
}

.timing-table th,
.timing-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

body.dark-mode .timing-table th,
body.dark-mode .timing-table td {
    border-color: #444;
}

.timing-table th {
    background: var(--secondary-color);
    color: white;
}

.timing-table tr:nth-child(even) {
    background: var(--card-bg);
}

/* Reviews with Show More */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    padding: 1.5rem;
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card.hidden {
    display: none;
}

.review-card .stars {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.reviews-show-more,
.gallery-show-more {
    text-align: center;
    margin-top: 2rem;
}

/* Contact Form */
.enquiry-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

body.dark-mode .form-group label {
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s, background 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    border-color: #555;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover,
.btn:focus {
    background: var(--secondary-color);
    transform: translateY(-2px);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

#address iframe {
    border-radius: 10px;
    width: 100%;
    max-width: 1050px;
    height: 450px;
    border: 0;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

address {
    font-style: normal;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover,
.gallery-item:focus {
    transform: scale(1.05);
    outline: 3px solid var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 3rem;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    outline: none;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: background 0.3s;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus,
.lightbox-next:focus {
    background: var(--primary-color);
    outline: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: scale(1.1);
    background: #128C7E;
    outline: 3px solid #25D366;
}

.whatsapp-float i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Responsive */
@media (max-width: 988px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: 0.3s;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    #address iframe {
        height: 300px;
    }

    nav {
        padding: 0 1rem;
    }

    main {
        padding: 0 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .quote-section {
        padding: 2rem 1rem;
    }

    .quote-section p {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .hero {
        height: 350px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .timing-table {
        font-size: 0.85rem;
    }

    .timing-table th,
    .timing-table td {
        padding: 0.5rem;
    }

    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quote-section p {
        font-size: 1rem;
    }

    .facility-card {
        padding: 1.5rem;
    }

    .facility-card i {
        font-size: 2.5rem;
    }
}

/* Accessibility improvements */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Improved contrast for better readability */
body.dark-mode {
    --text-color: #f0f0f0;
}

/* Print styles */
@media print {
    header,
    .whatsapp-float,
    .hamburger,
    .dark-mode-btn,
    .lightbox {
        display: none;
    }

    main {
        margin-top: 0;
    }

    section {
        page-break-inside: avoid;
    }
}