html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #008000; /* Office Green */
    --secondary-color: #004d00; /* Deep Green */
    --accent-color: #008000;
    --text-color: #002d00;
    --light-text: #4a554a;
    --bg-color: #ffffff;
    --light-bg: #f8faf8;
    --white: #ffffff;
    --orange-gradient: linear-gradient(135deg, #008000, #006600);
    --blue-gradient: linear-gradient(135deg, #004d00, #003300);
    --shadow: 0 4px 20px rgba(0, 128, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 128, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

body.fade-out {
    opacity: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Spacing Utilities - Standardized Scaling */
.section-padding {
    padding-top: 4rem !important;    /* 64px - Mobile */
    padding-bottom: 4rem !important; 
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem !important;   /* 96px - Tablet */
        padding-bottom: 6rem !important; 
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 8rem !important;   /* 128px - Desktop */
        padding-bottom: 8rem !important; 
    }
}

.heading-gap {
    margin-bottom: 1.5rem; /* 24px exactly */
}

.paragraph-to-btn {
    margin-top: 1.25rem; /* 20px exactly */
}

.card-gap {
    gap: 1.5rem; /* 24px */
}

.grid-gap-main {
    gap: 2rem; /* 32px */
}

.section-bg-alternate:nth-of-type(even) {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.section-bg-alternate:nth-of-type(odd) {
    background: linear-gradient(180deg, #f9fbfe 0%, #ffffff 100%);
}

.section-shadow {
    box-shadow: inset 0 20px 40px -20px rgba(10, 37, 64, 0.03), inset 0 -20px 40px -20px rgba(10, 37, 64, 0.03);
}

.section-divider {
    border-bottom: 1px solid rgba(10, 37, 64, 0.05);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;  /* 16px - Mobile */
    padding-right: 1rem;
}

@media (min-width: 1024px) {
    .container {
        padding-left: 1.5rem; /* 24px - Desktop */
        padding-right: 1.5rem;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.accent {
    color: var(--primary-color);
    font-weight: 700;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--orange-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
    border: none;
    padding: 14px 32px;
}

.btn-secondary {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-color);
    padding: 14px 32px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: 0.4s;
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
}

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

.nav-btns {
    display: flex;
    gap: 15px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../assets/images/hero_background.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 40, 80, 0.8), rgba(0, 102, 204, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Pause Marquee on Hover */
.hover\:pause:hover .marquee-track {
    animation-play-state: paused;
}

/* Goals Section */
.goals {
    padding: 100px 0;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.goal-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

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

.goal-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Modules Section */
.modules {
    padding: 100px 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.module-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
}

.module-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.module-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.module-link {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Panels Section */
.panels {
    padding: 80px 0;
}

.flex-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.panel-preview {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--white);
}

.user-panel {
    background: linear-gradient(135deg, #004488, #0066cc);
}

.admin-panel {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.panel-preview h3 {
    margin-bottom: 20px;
    font-size: 1.75rem;
}

.panel-list {
    display: grid;
    gap: 15px;
}

.panel-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 30px;
}

.grid-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.75rem; }
    .nav-links, .nav-btns { display: none; }
    .mobile-menu-btn { display: block; }
    .grid-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .grid-footer { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
}

/* Animations */
/* Custom Sections for Khushaal */
.hero {
    height: auto;
    padding: 160px 0 100px;
    background: #f0f7ff url('../assets/images/hero_dots.png') repeat;
    color: var(--text-color);
    text-align: left;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.hero h1 {
    font-size: 4.5rem;
    color: #002d5b;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.4rem;
    color: #4a5568;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Feature Cards Over Hero */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.module-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 25px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 30px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85rem;
}

.module-link:hover {
    background: #edf2f7;
}

/* Stats Styling */
.stats-bar {
    background: #ffffff;
    padding: 30px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.stat-item {
    text-align: center;
    border-right: 1px solid #f1f5f9;
    padding: 0 40px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a73e8;
    display: block;
}

.stat-label {
    color: var(--light-text);
    font-weight: 500;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Event Section */
.events-section {
    padding: 80px 0;
    background: #f8fbff;
}

.events-subtitle {
     text-align: center;
     color: var(--primary-color);
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
     margin-bottom: 10px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.event-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-content {
    padding: 20px;
    position: relative;
}

.event-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.event-date {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Support Section */
.support-section {
    padding: 80px 0;
}

.support-container {
    display: flex;
    gap: 50px;
}

.support-text {
    flex: 1;
}

.support-visual {
    flex: 1.5;
}

.support-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.support-tab {
    padding: 10px 20px;
    background: #f0f4f8;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    font-weight: 500;
}

.support-tab.active {
    background: var(--primary-color);
    color: white;
}

.main-support-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

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

@media (max-width: 992px) {
    .features-grid, .events-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-container, .support-container { flex-direction: column; text-align: center; }
    .hero-image { text-align: center; }
    .hero h1 { font-size: 3rem; }
}

/* Cause Icons at bottom of Support */
.cause-icons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.cause-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.cause-icon-box {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
    border: 1px solid #edf2f7;
}

.cause-item:hover .cause-icon-box {
    background: #fff;
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(255,140,0,0.1);
}

.cause-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
}

/* Premium Navbar Styles */
#main-header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(10, 37, 64, 0.1);
}

.nav-link {
    display: inline-block;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #008000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Animation */
#get-involved-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Smooth fade for elements */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown arrow rotation */
#get-involved-btn.active #dropdown-arrow {
    transform: rotate(180deg);
}

/* Get Involved Button Pulse/Scale */
#get-involved-btn:hover {
    box-shadow: 0 15px 30px -5px rgba(255, 107, 0, 0.4);
}

/* Marquee Animation */
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scrollMarquee 60s linear infinite;
}

.hover\:pause:hover {
    animation-play-state: paused;
}

/* Gradient Mask for fading edges */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.preserve-3d {
    transform-style: preserve-3d;
}

#hero-slider {
    /* Flatten the content but keep the deep shadow container */
    transform: none;
}

.hero-slide {
    backface-visibility: hidden;
}



/* Enhancing the 3D Border Effect */
.hero-3d-container {
    box-shadow: 
        15px 15px 30px rgba(0,0,0,0.1),
        -5px -5px 15px rgba(255,255,255,0.8),
        inset 5px 5px 10px rgba(0,0,0,0.05);
    border-radius: 3.5rem;
    transition: transform 0.3s ease;
}

.hero-slide {
    border: 12px solid white;
    box-shadow: 
        0 20px 40px -10px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(0,0,0,0.05);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
    gap: 1.5rem;
}

.animate-marquee-reverse {
    display: flex;
    width: max-content;
    animation: marquee-reverse 60s linear infinite;
    gap: 1.5rem;
}

@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.animate-marquee:hover, .animate-marquee-reverse:hover {
    animation-play-state: paused;
}


/* Glassmorphism & Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

/* Footer Link Hover Underline */
footer a:not(.w-10) {
    position: relative;
    display: inline-block;
}

footer a:not(.w-10)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -2px;
    left: 0;
    background-color: #008000; /* Primary Green */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a:not(.w-10):hover::after {
    width: 100%;
}

footer a:not(.w-10):hover {
    color: #008000 !important;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.6s ease;
    transform: rotate(45deg);
    pointer-events: none;
}

.shine-effect:hover::after {
    left: 150%;
}

.soft-3d-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.soft-3d-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 40px -15px rgba(255, 107, 0, 0.15),
        0 8px 10px -6px rgba(10, 37, 64, 0.05);
}

/* Custom Animated Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #800000;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
    opacity: 0; /* Hidden until first move */
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(128, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.15s ease-out, opacity 0.3s;
    opacity: 0; /* Hidden until first move */
}

/* Cursor Interaction States */
.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background-color: #660000;
}

.cursor-hover .cursor-outline {
    width: 70px;
    height: 70px;
    border-color: #800000;
    background-color: rgba(128, 0, 0, 0.08); /* Dark maroon with very low opacity */
    border-width: 1.5px;
}

.cursor-clicking .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    background-color: #4a0000;
}

.cursor-clicking .cursor-outline {
    transform: translate(-50%, -50%) scale(0.85);
    background-color: rgba(128, 0, 0, 0.15);
    border-color: #4a0000;
}

/* Hide default cursor on desktop */
/* Hide default cursor only when custom cursor is active */
@media (min-width: 1024px) {
    body.custom-cursor-active,
    body.custom-cursor-active * {
        cursor: none !important;
    }
}

/* Show default cursor on mobile/tablets for accessibility */
@media (max-width: 1023px) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
    html, body {
        cursor: auto !important;
    }
}

/* ==========================================================================
   Premium NGO Gallery System
   ========================================================================== */

:root {
    --gallery-saffron: #ff6b00;
    --gallery-green: #16a34a;
    --gallery-dark: #0a2540;
}

.gallery-filter-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #475569;
    border: 2px solid #f1f5f9;
}

.gallery-filter-btn:hover {
    border-color: var(--gallery-saffron);
    color: var(--gallery-saffron);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(255, 107, 0, 0.15);
}

.gallery-filter-btn.active {
    background: var(--gallery-saffron);
    border-color: var(--gallery-saffron);
    color: white;
    box-shadow: 0 20px 40px -15px rgba(255, 107, 0, 0.4);
}

/* Masonry Support */
#gallery-grid {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-card {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    cursor: pointer;
    background: white;
    box-shadow: 0 20px 50px -20px rgba(10, 37, 64, 0.12);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1) rotate(-1deg);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(10, 37, 64, 0.95) 0%, 
        rgba(10, 37, 64, 0.5) 40%, 
        transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card .card-content {
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-card:hover .card-content {
    transform: translateY(0);
}

/* Lightbox Premium Transition */
#gallery-lightbox.active {
    display: flex;
}

#gallery-lightbox.show {
    opacity: 1;
}

#gallery-lightbox img {
    transform: scale(0.8);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gallery-lightbox.show img {
    transform: scale(1);
}

/* Parallax Mock Effect */
.parallax-item {
    transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
    .gallery-filter-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .gallery-overlay {
        padding: 1.5rem;
    }
}
