/* ============================================
   GLOBAL STYLES - Seva Dil Se Foundation
   ============================================ */

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

:root {
    /* Color Palette - From Logo */
    --primary-orange: #D97835;
    --primary-teal: #2C8B8E;
    --dark-teal: #1f6467;
    --light-teal: #e8f4f5;
    --accent-orange: #E89050;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-grey: #F5F5F5;
    --border-color: #E0E0E0;
    
    /* Typography */
    --font-primary: 'Open Sans', 'Arial', sans-serif;
    --font-heading: 'Open Sans', 'Arial', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Content Width */
    --max-width: 1200px;
    --content-padding: 2rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Typography */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-teal);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-orange);
}

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

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.section {
    padding: var(--spacing-xxl) 0;
}

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

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

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

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

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

/* Header Styles */
.top-info-bar {
    background: linear-gradient(90deg, var(--primary-teal), var(--dark-teal));
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem var(--content-padding);
}

.top-info-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-info-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.top-info-bar a:hover { color: #fff; }

.top-info-bar-left,
.top-info-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-info-bar-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.top-info-bar-item i {
    color: var(--accent-orange);
    font-size: 0.75rem;
}

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--content-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .top-info-bar-left .top-info-bar-item:not(:first-child) {
        display: none;
    }
    .top-info-bar-right .top-info-bar-item:last-child {
        display: none;
    }
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 70px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-teal);
    margin: 0;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin: 0;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-teal);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-teal);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--bg-white);
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 120, 53, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--dark-teal);
    border-color: var(--dark-teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 139, 142, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--bg-white);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Card Styles */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 120, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(217, 120, 53, 0.2);
}

.card-header {
    margin-bottom: var(--spacing-sm);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-teal);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-teal);
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.card-body {
    color: var(--text-light);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Footer Styles */
.footer {
    background-color: var(--primary-teal);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-sm);
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(217, 120, 53, 0.95), rgba(44, 139, 142, 0.95));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(217, 120, 53, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 139, 142, 0.3) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    animation: patternMove 20s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-orange) 100%);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
    max-width: 100%;
}

.stat-card {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: none;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: 0.95rem;
    font-family: var(--font-primary);
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-sublabel {
    font-size: 0.85rem;
    font-family: var(--font-primary);
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 400;
}

/* Timeline */
.timeline {
    position: relative;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-teal), var(--primary-orange));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 var(--spacing-lg);
    position: relative;
}

.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-orange);
    border: 4px solid var(--bg-white);
    border-radius: var(--radius-round);
    box-shadow: var(--shadow-sm);
}

/* Section Headings */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --content-padding: 1.5rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --content-padding: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1.125rem;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        z-index: 1001;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        align-items: flex-start;
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Grid Adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-content {
        margin: 0 0 0 var(--spacing-lg);
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .btn {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-orange);
    color: var(--bg-white);
}

::-moz-selection {
    background-color: var(--primary-orange);
    color: var(--bg-white);
}
/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.decorative-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.blob-orange {
    background: var(--primary-orange);
}

.blob-teal {
    background: var(--primary-teal);
}

/* Enhanced Stats Section */
.stats-grid {
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 120, 53, 0.2);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(217, 120, 53, 0.25);
}