@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #FF512F;           /* More vibrant Orange (from logo) */
    --primary-dark: #DD2476;      /* Matching Red (from logo gradient) */
    --secondary: #FFD700;         /* Soft Gold Accents */
    --bg-light: #FFFAF1;          /* Light Beige for warm feel */
    --bg-white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-muted: #666666;
    --accent: #FF8C00;            /* Warm Orange accent */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
    --grad-header: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
    --grad-hero: linear-gradient(135deg, rgba(255, 81, 47, 0.8) 0%, rgba(221, 36, 118, 0.8) 100%);

    /* Shadows & Rounds */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --navbar-height: 80px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Modern UI Refinements */
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Layout Utilities */
.section {
    padding: var(--space-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(221, 36, 118, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled {
    height: 70px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 70px;
    display: block;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding-top: var(--navbar-height);
    overflow: hidden;
    background: #111; /* Fallback */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Bring to front of background */
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-hero);
    z-index: 2; /* Overlay on top of image */
    opacity: 0.7; /* Adjust for better visibility */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3; /* Content on top of everything */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Divisions Grid */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Vision & Mission */
.split-section {
    display: flex;
    gap: 4rem;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin: 4rem 0;
}

.split-content {
    flex: 1;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Gallery Hover */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
    .container { max-width: 95%; }
}

@media (max-width: 991px) {
    :root {
        --navbar-height: 70px;
        --space-lg: 3rem;
    }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero { height: auto; padding: 120px 0 80px; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-btns { justify-content: center; }

    /* Stack sections that use flex row */
    .section .container[style*="display: flex"] {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center;
    }
    .section .container[style*="display: flex"] > div {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .section-title { text-align: center !important; }
    .btn { width: 100%; max-width: 300px; }

    /* Split Section Stacking */
    .split-section { flex-direction: column; gap: 2rem; padding: 2rem; }
    .mobile-hide { display: none; }

    /* Sidebar Admin Stacking */
    body:has(aside) { flex-direction: column; }
    aside { width: 100% !important; min-height: auto !important; height: auto !important; padding: 1.5rem !important; }
    main { padding: 2rem !important; }
}

/* Admin Layout Refactor */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-sidebar {
    width: 280px;
    background: #1a1a1a;
    color: white;
    padding: 2.5rem 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.admin-main {
    flex: 1;
    padding: 4rem;
    background: var(--bg-light);
    overflow-x: hidden;
}

@media (max-width: 991px) {
    .admin-container {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        padding: 2rem 1.5rem;
    }
    .admin-main {
        padding: 2rem 1.5rem;
    }
    .admin-sidebar nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
        gap: 0.5rem;
    }
    .admin-sidebar .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .admin-sidebar div:has(img) {
        margin-bottom: 2rem !important;
    }
}

/* Mobile Drawer & Dimmer */
#nav-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#nav-dimmer.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: #111;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}

.mobile-drawer.active {
    right: 0;
}

/* App-like Bottom Nav */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1002;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

@media (max-width: 991px) {
    .bottom-nav { display: flex; }
    body { padding-bottom: 65px; } /* Space for bottom nav */
}

/* Utility Classes */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding { padding: 6rem 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
}

.card:hover .icon-box {
    background: var(--grad-primary);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (max-width: 768px) {
    .section-padding { padding: 4rem 0; }
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
}
