/* ================================================
   CSS Variables & Root Styles
================================================ */
:root {
    /* Triadic Color Scheme */
    --primary-color: #6366f1;
    --primary-light: #8b5cf6;
    --primary-dark: #4338ca;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    --secondary-dark: #d97706;
    --tertiary-color: #06d6a0;
    --tertiary-light: #34d399;
    --tertiary-dark: #059669;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    --gradient-tertiary: linear-gradient(135deg, var(--tertiary-color), var(--tertiary-light));
    --gradient-dark: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;
    
    /* Responsive Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 2rem + 1.2vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 1.5vw, 4rem);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-backdrop: blur(10px);
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--spacing-sm);
}

/* ================================================
   Global Button Styles
================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: var(--text-sm);
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-base);
    min-width: 150px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
    min-width: 100px;
}

/* ================================================
   Navigation Styles
================================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--gray-900) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    border-radius: 0.5rem;
    object-fit: cover;
}

.navbar-nav .nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--gray-700) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all var(--transition-normal);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--gray-50);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: var(--primary-color);
    color: var(--white) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ================================================
   Hero Section Styles
================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--text-5xl);
    color: var(--white) !important;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--white) !important;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.parallax-bg {
    background-attachment: fixed;
}

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

/* ================================================
   Section Styles
================================================ */
.section-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--text-4xl);
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

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

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: var(--spacing-2xl) 0;
}

/* ================================================
   Card Styles
================================================ */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    background: var(--white);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    margin: 0 auto;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: var(--spacing-lg);
}

.card-content h4,
.card-content h5 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.card-content p {
    color: var(--gray-600);
    flex: 1;
}

/* ================================================
   Service Card Styles
================================================ */
.service-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.service-card .card-image {
    position: relative;
    overflow: hidden;
}

.service-card .card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ================================================
   Events & Calendar Styles
================================================ */
.event-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.event-date {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.event-details {
    margin-top: auto;
}

.event-highlight-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.event-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ================================================
   Awards Section Styles
================================================ */
.award-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.award-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.award-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.award-item h5 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.award-item p {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

/* ================================================
   Portfolio Section Styles
================================================ */
.portfolio-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.portfolio-stats {
    margin-top: auto;
    padding-top: var(--spacing-sm);
}

.portfolio-stats .badge {
    font-size: var(--text-xs);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

/* ================================================
   Gallery Section Styles
================================================ */
.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    background: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    margin: 0 auto;
}

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

/* ================================================
   Blog Section Styles
================================================ */
.blog-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 1rem;
}

.blog-meta {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--gray-200);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform var(--transition-normal);
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* ================================================
   Contact Section Styles
================================================ */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 1rem;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-form .form-floating {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: var(--text-base);
    transition: all var(--transition-normal);
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-floating label {
    color: var(--gray-600);
    font-weight: 500;
}

.contact-info-item {
    padding: var(--spacing-lg);
    text-align: center;
}

.contact-info-item h5 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.contact-info-item p {
    color: var(--gray-600);
}

/* ================================================
   Resources Section Styles
================================================ */
.resource-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

/* ================================================
   Footer Styles
================================================ */
footer {
    background: var(--gradient-dark) !important;
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    text-align: center;
}

footer h5,
footer h6 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-primary);
}

footer p,
footer li {
    color: var(--gray-300);
    font-size: var(--text-sm);
}

footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
}

footer a:hover {
    color: var(--white);
    transform: translateX(2px);
}

footer ul {
    list-style: none;
    text-align: left;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all var(--transition-normal);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--text-sm);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: var(--white);
}

footer hr {
    border-color: var(--gray-600);
    margin: var(--spacing-xl) 0;
}

/* ================================================
   Badge Styles
================================================ */
.badge {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.375rem;
    text-align: center;
}

.bg-primary {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
}

.bg-secondary {
    background: var(--gradient-secondary) !important;
    color: var(--white) !important;
}

.bg-success {
    background: var(--gradient-tertiary) !important;
    color: var(--white) !important;
}

.bg-info {
    background: var(--gray-500) !important;
    color: var(--white) !important;
}

/* ================================================
   Utility Classes
================================================ */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.bg-light {
    background: var(--gray-50) !important;
}

.bg-dark {
    background: var(--gray-900) !important;
}

.text-muted {
    color: var(--gray-600) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-dark {
    color: var(--gray-900) !important;
}

/* ================================================
   Success Page Styles
================================================ */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl);
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-content h1 {

    margin-bottom: var(--spacing-lg);
    font-size: var(--text-4xl);
}

.success-content p {

    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xl);
}

/* ================================================
   Privacy & Terms Page Styles
================================================ */
.legal-page {
    padding-top: 100px;
    padding-bottom: var(--spacing-2xl);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.legal-content h1 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.legal-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.legal-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-800);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

.legal-content ul,
.legal-content ol {
    padding-left: var(--spacing-lg);
}

.legal-content li {
    margin-bottom: var(--spacing-xs);
}

/* ================================================
   About Page Styles
================================================ */
.about-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 120px 0 var(--spacing-2xl);
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.about-hero p {
    font-size: var(--text-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--primary-color);
}

.team-member h4 {
    margin-bottom: var(--spacing-xs);
}

.team-member .position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* ================================================
   Responsive Design
================================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: var(--spacing-sm);
    }
    
    .social-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .resource-links {
        justify-content: center;
    }
    
    .card-image {
        height: 200px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-2xl: 2rem;
        --spacing-xl: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }
    
    .legal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
    
    .award-item {
        padding: var(--spacing-md);
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* ================================================
   Animation & Transitions
================================================ */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .team-member,
    .award-item,
    .gallery-item,
    .event-card,
    .portfolio-card,
    .blog-card,
    .service-card,
    .resource-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .card:nth-child(2) { animation-delay: 0.1s; }
    .card:nth-child(3) { animation-delay: 0.2s; }
    .card:nth-child(4) { animation-delay: 0.3s; }
    .card:nth-child(5) { animation-delay: 0.4s; }
    .card:nth-child(6) { animation-delay: 0.5s; }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effect */
.parallax-element {
    transform: translateY(var(--parallax-offset, 0));
    transition: transform 0.1s linear;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    .legal-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}