/* Enhanced Root Variables with more sophisticated color palette */
:root {
    --primary: #800000;
    --primary-light: rgba(128, 0, 0, 0.1);
    --primary-dark: #5a0000;
    --secondary: #faebd7;
    --secondary-dark: #f0d9b5;
    --text: #333333;
    --text-light: #666666;
    --accent: #d4af37;
    --accent-light: #e5ca6c;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.15);
    --border: rgba(0, 0, 0, 0.1);
    --light-bg: #FFF2D7;
    --white: #ffffff;
    --success: #2ecc71;
    --info: #3498db;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Enhanced Theme variations */
[data-theme="maroon"] {
    --primary: #800000;
    --primary-light: rgba(128, 0, 0, 0.1);
    --primary-dark: #5a0000;
    --secondary: #faebd7;
    --secondary-dark: #f0d9b5;
    --text: #333333;
    --accent: #ffffff;
    --background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
    url('https://www.ugaoo.com/cdn/shop/articles/ea82c6feda.jpg?v=1713939433&width=1780');
}

[data-theme="royal"] {
    --primary: #1e3a8a;
    --primary-light: rgba(30, 58, 138, 0.1);
    --primary-dark: #152a63;
    --secondary: #facc15;
    --secondary-dark: #eab308;
    --accent: #ffffff;
    --text: #1a1a1a;
    --light-bg: #f0f7ff;
    --background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
    url('https://cf.bstatic.com/xdata/images/hotel/max1024x768/327830975.jpg?k=4ad411c2d5476f646f8f28c4df9bd50f3f860b195c0af22bbaaed6398ca937aa&o=&hp=1');
}

[data-theme="forest"] {
    --primary: #2f4f4f;
    --primary-light: rgba(47, 79, 79, 0.1);
    --primary-dark: #203535;
    --secondary: #e8f0fe;
    --secondary-dark: #d3e5fd;
    --text: #2c3e50;
    --accent: #ffffff;
    --light-bg: #edf4f0;
    --background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
    url('https://assets.weforum.org/article/image/responsive_large_5JVQsymzmzTZRb8-lOzlbf2HvK5gGWznbqDyrdXiabE.jpg');
}

/* Enhanced typography */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 600;
    color: var(--primary);
}

/* Enhanced Main Content Styles */
.main-content {
    margin-top: 100px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* Modern & Vivid Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 2rem;
    margin-bottom: 3rem;
    border-radius: 20px;
    text-align: center;
    background: var(--background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Top Gradient Line */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

/* Heading */
.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.5px;
    transition: text-shadow 0.3s ease;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Paragraph */
.hero-section p {
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto;
    color: var(--accent);
    line-height: 1.7;
    transition: text-shadow 0.3s ease;
}

/* Hover Glow Effects */
.hero-section:hover h1,
.hero-section:hover p {
    text-shadow: 0 0 30px var(--primary);
}

/* CTA Button */
.hero-cta {
    margin-top: 2rem;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Enhanced Stats Section */
.stats-section {
    margin-bottom: 4rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card i {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-medium);
}

.stat-card:hover i {
    transform: scale(1.2);
}

.stat-card h3 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Enhanced Section Headers */
section h2 {
    position: relative;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 15px;
    text-align: center;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

section h2 i {
    margin-right: 10px;
    color: var(--primary);
}

/* Enhanced Map Section */
.map-section {
    margin-bottom: 4rem;
}

.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.map-container h2 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Enhanced Custom Map Markers */
.custom-alumni-marker {
    position: relative;
    width: 40px;
    height: 40px;
}

.marker-pin {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -18px 0 0 -18px;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: all var(--transition-fast);
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.1);
    background: var(--primary-dark);
}

.marker-pin i {
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    color: var(--white);
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pulse {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(128, 0, 0, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Enhanced Map Popups */
.professional-popup {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.alumni-popup {
    min-width: 250px;
}

.alumni-popup .popup-header {
    background-color: var(--primary);
    padding: 15px;
    border-bottom: 1px solid var(--gray-300);
    text-align: center;
}

.alumni-popup .popup-header h3 {
    margin: 0;
    color: var(--white);
    font-weight: 600;
    font-size: 1.3rem;
}

.alumni-popup .popup-header .designation {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 5px 0 0;
    font-weight: 400;
}

.alumni-popup .popup-details {
    padding: 15px;
    background-color: var(--white);
}

.alumni-popup .popup-details p {
    margin: 10px 0;
    color: var(--text);
    display: flex;
    align-items: center;
}

.alumni-popup .popup-details p strong {
    color: var(--primary);
    margin-right: 5px;
    min-width: 70px;
}
/* Modern + Stunning Region Cards */
.regions-section {
    margin-bottom: 4rem;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f9fc, #ffffff);
}

.region-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

/* Glassmorphic Card */
.region-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 2.8rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.region-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px 20px 0 0;
    z-index: 2;
}

.region-card:hover::before {
    opacity: 1;
}

.region-card:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

/* Icon */
.region-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, color 0.4s ease;
}

.region-card:hover i {
    transform: scale(1.2) rotate(6deg);
    color: var(--accent);
}

/* Heading */
.region-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

/* Subheading */
.region-card p {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* List Styling */
.region-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.region-card ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
    color: var(--text-dark);
    font-weight: 500;
}

.region-card ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.region-card:hover ul li::before {
    color: var(--accent);
}

/* Optional Explore Button */
.region-card .explore-button {
    margin-top: 1.5rem;
    align-self: flex-start;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.region-card .explore-button:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* View more stories button */
.view-more-container {
    text-align: center;
    margin-top: 3rem;
}

.view-more-button {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    text-align: center;
}

.view-more-button i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.view-more-button:hover {
    background-color: var(--primary);
    color: var(--white);
}

.view-more-button:hover i {
    transform: translateX(3px);
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .story-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .success-stories {
        padding: 2.5rem 1.5rem;
    }
    
    .story-cards {
        gap: 1.8rem;
    }
    
    .story-card-header {
        padding: 2rem 1.5rem 0;
    }
    
    .story-card-content {
        padding: 1.8rem 1.5rem;
    }
    
    .story-card img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 576px) {
    .success-stories {
        padding: 2rem 1rem;
    }
    
    .story-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-card-header {
        padding: 1.8rem 1.2rem 0;
    }
    
    .story-card-content {
        padding: 1.5rem 1.2rem;
    }
    
    .story-card img {
        width: 120px;
        height: 120px;
    }
    
    .view-more-button {
        padding: 0.8rem 1.6rem;
        font-size: 0.95rem;
    }
}
/* Stunning Connect Section */
.connect-section {
    margin-bottom: 4rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f9fbfc, #ffffff);
}

.connect-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

/* Connect Card */
.connect-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    padding: 2.8rem 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out;
    text-align: center;
    position: relative;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    z-index: 1;
}

.connect-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: scale(0.7);
    opacity: 0;
    border-radius: 20px;
    z-index: -1;
    transition: all 0.4s ease-in-out;
}

.connect-card:hover::before {
    transform: scale(1);
    opacity: 0.15;
}

.connect-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.connect-card i {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: transform 0.4s ease, color 0.4s ease;
}

.connect-card:hover i {
    transform: scale(1.3) rotate(5deg);
    color: var(--accent);
}

.connect-card h3 {
    color: var(--primary-dark);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.connect-card p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: auto;
    min-height: 60px;
}

/* Elevated Button Style */
.action-button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
    align-self: center;
    margin-top: 2rem;
}

.action-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-dark);
    border-radius: 40px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-button:hover::after {
    opacity: 1;
}

.action-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent);
    padding: 0.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 100;
  }
  
  .theme-button {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .theme-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px var(--shadow);
  }
  
  .theme-button.active {
    outline: 2px solid white;
    outline-offset: 2px;
  }
  

/* Enhanced Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--gray-200);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .stat-card h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 80px;
        padding: 1.2rem;
    }

    .hero-section {
        padding: 2.5rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .theme-switcher {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.5rem;
    }

    .theme-button {
        width: 35px;
        height: 35px;
        margin: 0 0.2rem;
    }
    
    .map-container {
        height: 450px;
    }
    
    .stats-container,
    .region-cards,
    .story-cards,
    .connect-options {
        gap: 1.5rem;
    }
    
    .stat-card,
    .region-card,
    .connect-card {
        padding: 2rem;
    }
    
    .story-card-header {
        padding: 2rem 1.5rem 0;
    }
    
    .story-card-content {
        padding: 1.8rem 1.5rem;
    }
    
    .story-card img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .stat-card,
    .region-card,
    .connect-card {
        padding: 1.8rem 1.5rem;
    }
    
    .story-card-header {
        padding: 1.8rem 1.2rem 0;
    }
    
    .story-card-content {
        padding: 1.5rem 1.2rem;
    }
    
    .story-card img {
        width: 120px;
        height: 120px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    .action-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .theme-switcher {
        bottom: 1rem;
        right: 1rem;
    }
    
    .theme-button {
        width: 30px;
        height: 30px;
    }
}