:root {
    --primary-color: #0A3D62; /* Deep Ocean Blue */
    --secondary-color: #FFD700; /* Gold Accent */
    --accent-color: #38A3A5; /* Teal */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f8f8f8;
    --bg-dark: #072F4C;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    --max-width: 1200px;
    --spacing-unit: 1rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-unit);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    position: relative;
    padding-bottom: var(--spacing-unit);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
}

p {
    margin-bottom: var(--spacing-unit);
    font-size: 1.1rem;
    color: #555;
}

.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: #777;
    margin-bottom: calc(var(--spacing-unit) * 3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
header {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 400;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after {
    transform: translateX(0);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('images/image_15.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-content {
    z-index: 1;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-unit);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hero-scroll-indicator span {
    display: block;
    width: 2px;
    height: 10px;
    background-color: var(--secondary-color);
    opacity: 1;.8;
    animation: scrollAnimation 1.5s infinite ease-in-out;
}

.hero-scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.hero-scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollAnimation {
    0%, 100% { transform: translateY(0); opacity: 1;.8; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Section Padding & Backgrounds */
.section-padding {
    padding: calc(var(--spacing-unit) * 8) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 5);
    align-items: center;
}

.about-content h2 {
    text-align: left;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.about-content h2::after {
    left: 0;
    transform: translateX(0);
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
}

/* Card Grid Layouts */
.grid-3-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 3);
}

.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--spacing-unit);
    filter: brightness(0.95);
    transition: filter 0.4s ease;
}

.card:hover img {
    filter: brightness(1.05);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Culture Section */
.culture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 5);
    align-items: center;
}

.culture-content h2 {
    text-align: right;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.culture-content h2::after {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.culture-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.culture-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.culture-image img:hover {
    transform: translateY(-5px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: calc(var(--spacing-unit) * 4) 0;
    text-align: center;
    font-size: 0.95rem;
}

footer p {
    margin: 0.5rem 0;
    color: inherit;
}

/* Animations */
.fade-in-up {
    opacity: 1;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.animate {
    opacity: 1;
    transform: translateY(0);
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 2.4rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: var(--spacing-unit);
    }
    .nav-links a {
        font-size: 1rem;
    }

    .about-grid, .culture-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 3);
        text-align: center;
    }

    .about-content h2, .culture-content h2 {
        text-align: center;
    }

    .about-content h2::after, .culture-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image, .culture-image {
        order: -1; /* Image appears first on mobile */
    }
}

@media (max-width: 768px) {
    header {
        padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%; /* Below the header */
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-dark);
        opacity: 1;.95;
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
        max-height: 300px; /* Adjust as needed */
    }

    .nav-links li {
        text-align: center;
        padding: var(--spacing-unit) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
        color: var(--text-light);
        font-size: 1.2rem;
    }

    .nav-links a::after {
        background-color: var(--secondary-color);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 1;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.2rem;
        padding: 0 var(--spacing-unit);
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: calc(var(--spacing-unit) * 6) 0;
    }

    .grid-3-columns {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .card {
        padding: calc(var(--spacing-unit) * 1.5);
    }

    .card img {
        height: 200px;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Stack gallery items */
    }

    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    p {
        font-size: 1rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }

    .section-padding {
        padding: calc(var(--spacing-unit) * 4) 0;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
