:root {
    --primary-color: #6a0572; /* Deep Magenta/Purple */
    --secondary-color: #a300a3; /* Vibrant Magenta */
    --accent-color: #f7b731; /* Golden Yellow */
    --dark-bg: #1a001a; /* Very Dark Purple/Black */
    --light-bg: #f9f9f9;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --gradient-hero: linear-gradient(135deg, rgba(106, 5, 114, 0.8), rgba(163, 0, 163, 0.8));
    --gradient-section-even: linear-gradient(45deg, #1a001a, #2a002a);
    --gradient-card: linear-gradient(145deg, #2a002a, #3a003a);
    --border-radius-large: 12px;
    --border-radius-small: 8px;
    --spacing-unit: 1rem;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.main-header {
    background-color: rgba(26, 0, 26, 0.9); /* Slightly transparent dark bg */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari support */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--heading-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--heading-color);
    background: url('images/image_9.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
    padding-top: 60px; /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 1;.9;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 1;.9;
}

/* Sections */
section {
    padding: 6rem 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden; /* For scroll reveal */
}

section:nth-of-type(even) {
    background: var(--gradient-section-even);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* About & Vision Sections (Two-column layout) */
.about-section .container,
.vision-section .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-section .about-content,
.vision-section .vision-content {
    flex: 1;
    text-align: left;
}

.about-section .about-image,
.vision-section .vision-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-section .about-image img,
.vision-section .vision-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease-in-out;
}

.about-section .about-image img:hover,
.vision-section .vision-image img:hover {
    transform: translateY(-5px);
}

/* Reverse layout for vision section */
.vision-section .container {
    flex-direction: row-reverse;
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--gradient-card); /* Slightly lighter dark bg */
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex; /* For flexible content within card */
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.8rem;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push description to bottom */
}

.card-content h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

.card-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Connect Section */
.connect-section {
    text-align: center;
    padding-bottom: 8rem;
}

.connect-section h2 {
    margin-bottom: 1.5rem;
}

.connect-section p {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    opacity: 1;.9;
}

.social-icons {
    margin-top: 2rem;
}

.social-icons a {
    display: inline-block;
    color: var(--accent-color);
    font-size: 2.5rem;
    margin: 0 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-color);
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.main-footer p {
    margin: 0;
    opacity: 1;.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 0 1rem 0.5rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .about-section .container,
    .vision-section .container {
        flex-direction: column;
    }

    .about-section .about-content,
    .vision-section .vision-content {
        text-align: center;
    }

    .card-grid {
        /* On larger tablets, allow 2 columns to fit nicely if space, otherwise 1.
           For smaller tablets, minmax(300px, 1fr) could still result in 2 columns.
           Using repeat(auto-fit, minmax(300px, 1fr)) allows flexibility but maintains 3 cards per row rule on larger screens due to container width */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        justify-content: center; /* Center cards if fewer than 3 fit */
    }
    
    .card {
        max-width: 400px; /* Constrain card width for better appearance on smaller screens if auto-fit makes them too wide */
        margin: 0 auto; /* Center individual cards */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .main-nav ul li {
        margin: 0 0.8rem 0.5rem;
    }
    
    .main-nav ul li a {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 4rem 0;
    }

    .card-grid {
        grid-template-columns: 1fr; /* Stack to 1 column */
    }

    .social-icons a {
        font-size: 2rem;
        margin: 0 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .main-nav ul {
        padding: 0;
    }

    .main-nav ul li {
        margin: 0 0.5rem 0.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 0 0.8rem;
    }
    
    .card-content {
        padding: 1.2rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
}


/* Animation states when visible - FIXED: Only opacity: 1 */
.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,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
