/* CSS Variables */
:root {
    --primary-color: #7B3EBC; /* Deep Purple */
    --secondary-color: #C0C0C0; /* Silver */
    --accent-color: #FFD700; /* Gold */
    --text-dark: #1a1a1a;
    --text-light: #f0f0f0;
    --bg-dark: #0f0f0f;
    --bg-medium: #1f1f1f;
    --bg-light: #2c2c2c;
    --gradient-hero: linear-gradient(135deg, rgba(123, 62, 188, 0.8), rgba(255, 105, 180, 0.6)); /* Purple to Pink */
    --gradient-card: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
* {
    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-light);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: 80px; /* Adjust for fixed header */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.8em;
    color: var(--text-light);
}

h1 {
    font-size: 3.5em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2.8em;
    text-align: center;
    padding-bottom: 0.5em;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.8em;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

p {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 3em;
    color: var(--secondary-color);
}

/* Header & Navigation */
.header {
    background-color: rgba(15, 15, 15, 0.95);
    padding: 1.5em 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 2.5em;
}

.nav-link {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--text-light);
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 2000;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-light);
    position: relative;
    transition: background-color 0s 0.15s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--text-light);
    left: 0;
    transition: transform var(--transition-speed), top var(--transition-speed), opacity var(--transition-speed);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Nav Toggle Active State */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/image_14.jpg') no-repeat center center/cover;
    filter: brightness(0.4) grayscale(0.2);
    z-index: -1;
    transform: scale(1.05); /* Initial scale for parallax effect */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    animation: fadeIn 1.5s ease-out forwards;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 0.3em;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.hero-content p {
    font-size: 1.6em;
    font-weight: 300;
    color: var(--text-light);
    opacity: 1;.9;
}

@keyframes fadeIn {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* General Section Styling */
.section {
    padding: 8em 0;
    background-color: var(--bg-medium);
    margin-bottom: 2em; /* Spacing between sections */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    opacity: 1; /* For scroll animation */
    transform: translateY(50px); /* For scroll animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-of-type(even) {
    background-color: var(--bg-dark);
}


/* About Us Section */
.about-us {
    background: var(--bg-dark);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 4em;
}

.about-text {
    flex: 2;
    padding-right: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--gradient-card);
    padding: 10px;
}

.about-image img {
    border-radius: var(--border-radius-md);
    transform: scale(1);
    transition: transform var(--transition-speed);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Experience & Philosophy Grids */
.experience-grid,
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 4em;
}

.experience-card,
.philosophy-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.experience-card:hover,
.philosophy-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.experience-card img {
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.experience-card h3,
.philosophy-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 0.5em;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-card p,
.philosophy-card p {
    font-size: 1em;
    color: var(--secondary-color);
    flex-grow: 1; /* Make paragraphs take available space */
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ensure 3 columns */
    gap: 20px;
    margin-top: 4em;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    position: relative;
    background-color: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed);
    filter: brightness(0.8);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* Philosophy Card specifics (no image) */
.philosophy-card {
    min-height: 250px; /* Ensure cards have similar height */
    justify-content: flex-start;
    text-align: left;
}
.philosophy-card h3 {
    text-align: center;
}
.philosophy-card p {
    text-align: left;
}

/* Footer */
.footer {
    background-color: var(--bg-medium);
    padding: 4em 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2em;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.footer-nav ul {
    display: flex;
    gap: 25px;
}

.footer-nav a {
    color: var(--secondary-color);
    font-size: 1em;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.footer-nav a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.9em;
    color: var(--secondary-color);
    opacity: 1;.7;
    margin-top: 2em;
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        padding-right: 0;
    }
    .about-image {
        margin-top: 2em;
    }
    .experience-grid,
    .gallery-grid,
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section {
        padding: 6em 0;
    }
    .nav-list {
        gap: 1.5em;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        background: var(--bg-dark);
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        transform: translateX(100%);
        transition: transform var(--transition-speed);
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1500;
    }

    .nav.nav-active {
        transform: translateX(0%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 2em 0;
        height: 100%;
        gap: 2em;
    }
    .nav-link {
        font-size: 1.3em;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    h2 {
        font-size: 2em;
    }
    .experience-grid,
    .gallery-grid,
    .philosophy-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .section {
        padding: 4em 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5em;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 1em;
    }
    .footer-logo {
        margin-bottom: 1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    h2 {
        font-size: 1.8em;
    }
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 2em;
    }
    p {
        font-size: 0.95em;
    }
    .experience-card, .philosophy-card {
        padding: 20px;
    }
    .experience-card h3, .philosophy-card h3 {
        font-size: 1.3em;
    }
    .experience-card img {
        height: 180px;
    }
    .gallery-item img {
        height: 200px;
    }
    .footer-logo {
        font-size: 1.8em;
    }
}

/* 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;
}
