/* Modern Vibrant Theme Variables - Updated to match base.css */
:root {
    /* Primary Colors - Using base.css palette */
    --primary: #3a0ca3;
    /* Using primary-dark as main primary */
    --primary-light: #4361ee;
    /* Electric blue */
    --primary-dark: #240046;
    /* Even deeper for contrast */
    --secondary: #4cc9f0;
    /* Cyan accent */
    --secondary-dark: #00b4d8;
    /* Darker cyan */
    --accent: #4895ef;
    /* Sky blue */
    --accent-light: #80ffdb;
    /* Light cyan */

    /* Background Colors - Softer, not pure white */
    --light: #f8fafc;
    /* Matching base.css body-bg */
    --card-bg: #ffffff;
    /* Pure white for cards */
    --section-bg: #f1f5f9;
    /* Light gray background for sections */
    --accent-bg: #e0f2fe;
    /* Very light blue for accents */

    /* Text Colors */
    --dark: #0f172a;
    /* Matching base.css gray-900 */
    --text: #1e293b;
    /* Matching base.css text */
    --text-light: #64748b;
    /* Matching base.css text-secondary */
    --text-lighter: #94a3b8;
    /* Even lighter text */

    /* Gradients - Updated with new colors */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
    --gradient-background: linear-gradient(135deg, var(--light) 0%, var(--accent-bg) 100%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Poppins', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Montserrat', Roboto, sans-serif;

    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-blue: 0 10px 25px rgba(58, 12, 163, 0.15);
    --shadow-blue-lg: 0 20px 40px rgba(58, 12, 163, 0.2);

    /* Transitions */
    --transition: all 0.25s ease-in-out;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--gradient-background);
    overflow: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
}

/* Floating Background Elements - Updated colors */
.decoration {
    position: fixed;
    z-index: -1;
    opacity: 0.06;
    filter: blur(40px);
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.circle {
    border-radius: 50%;
    background: var(--gradient-accent);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
    animation: float 12s ease-in-out infinite;
}

.circle-2 {
    width: 600px;
    height: 600px;
    bottom: -250px;
    right: -200px;
    animation: float 18s ease-in-out infinite reverse;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 250px solid transparent;
    border-right: 250px solid transparent;
    border-bottom: 500px solid var(--accent);
    left: 60%;
    top: 40%;
    transform: translateX(-50%) rotate(45deg);
    animation: pulse 14s ease infinite;
    opacity: 0.04;
}

/* Logo Container - Enhanced with subtle background */
.logo-container {
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 20px rgba(58, 12, 163, 0.08);
    border-bottom: 1px solid rgba(58, 12, 163, 0.1);
}

.logo-img {
    height: 60px;
    transition: var(--transition-bounce);
}

.logo-img:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section - Enhanced background */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(58, 12, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(76, 201, 240, 0.06) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Typography - Updated colors */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.welcome-heading {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.welcome-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform-origin: left;
    animation: scaleIn 1.5s ease-out forwards;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    color: var(--dark);
    font-weight: 600;
}

.tagline span {
    position: relative;
    display: inline-block;
}

.tagline span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--accent);
    z-index: -1;
    opacity: 0.2;
    transform: scaleX(1.05) skewX(-15deg);
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 90%;
    line-height: 1.8;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    animation: underlineGrow 1s ease-out forwards;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Buttons - Enhanced with new colors */
.button-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn-hero i {
    margin-right: 0.7rem;
    font-size: 1.2rem;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue-lg);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(58, 12, 163, 0.1);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 12, 163, 0.2);
}

/* Visionaries Section - Enhanced background */
.visionaries-section {
    background: var(--card-bg);
    padding: 2rem;
    padding-bottom: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(58, 12, 163, 0.1);
}

.visionaries-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-accent);
}

.visionaries-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 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='%234361ee' fill-opacity='0.02'%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");
    z-index: 0;
    opacity: 0.3;
}

/* Slideshow Styles */
.slideshow-container {
    display: flex;
    position: relative;
    height: auto;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.slide {
    position: absolute;
    padding: 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    height: auto;
}

.visionaries-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.visionary-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(58, 12, 163, 0.1);
    position: relative;
    overflow: hidden;
    gap: 0;
}

.slide .section-title,
.slide .section-subtitle {
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.visionary-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue-lg);
    border-color: rgba(58, 12, 163, 0.2);
}

.visionary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.visionary-card:hover::before {
    opacity: 0.03;
}

.visionary-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    background: var(--section-bg);
    border-radius: 3px;
    padding: 0;
}

.visionary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    transform: scale(1);
    object-position: 50% 20%;
}

.visionary-img-container::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: var(--gradient-primary);
    z-index: -1;
    border-radius: 12px;
    animation: rotate 8s linear infinite;
    opacity: 0.8;
}

.visionary-card:hover .visionary-img-container::before {
    animation: rotate 4s linear infinite;
}

.visionary-card:hover .visionary-img {
    transform: scale(1.03);
}

.visionary-info {
    position: relative;
    margin: 0;
    line-height: 1.4;
    padding: 0.5rem 0 0;
    width: 100%;
}

.visionary-name {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.1rem;
    transition: var(--transition);
    line-height: 1.2;
    font-weight: 600;
}

.visionary-title {
    font-size: 0.8rem;
    color: var(--secondary-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.2rem;
    gap: 0.5rem;
    margin: 0;
}

/* Slide 2: Single image */
.single-image-slide {
    background: var(--card-bg);
}

.single-image-container {
    width: 100%;
    max-width: 800px;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.single-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
}

/* Slideshow navigation */
.slideshow-navigation {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.nav-dot:hover {
    background-color: var(--primary-light);
    transform: scale(1.2);
}

/* Animations - Keep existing animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(5deg) scale(1.02);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.03;
        transform: translateX(-50%) rotate(45deg) scale(1);
    }

    50% {
        opacity: 0.08;
        transform: translateX(-50%) rotate(45deg) scale(1.05);
    }

    100% {
        opacity: 0.03;
        transform: translateX(-50%) rotate(45deg) scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes underlineGrow {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) rotateY(15deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(-15deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

/* Responsive Design - Enhanced */
@media (max-width: 1200px) {
    .hero-content {
        gap: 3rem;
    }

    .welcome-heading {
        font-size: 3.2rem;
    }

    .tagline {
        font-size: 1.7rem;
    }
}

@media (min-width: 1200px) {
    .visionaries-container {
        gap: 2rem;
    }

    .visionary-card {
        padding: 1.2rem;
    }
}

@media (hover: hover) {
    .visionary-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-blue-lg);
        border-color: rgba(58, 12, 163, 0.2);
    }

    .visionary-card:hover::before {
        opacity: 0.03;
    }

    .visionary-card:hover .visionary-img-container::before {
        animation: rotate 4s linear infinite;
    }

    .visionary-card:hover .visionary-img {
        transform: scale(1.03);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .welcome-heading {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .visionaries-section {
        max-width: 600px;
        margin: 0 auto;
    }

    .visionaries-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 1rem;
    }

    .visionaries-container {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 1.5rem;
        width: 100%;
        height: 100%;
        justify-content: center;
    }

    .welcome-heading {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        padding: 1rem;
        overflow: visible;
    }

    .visionaries-section {
        padding: 1.5rem;
        overflow: visible;
    }

    .slideshow-container {
        height: auto;
        min-height: 450px;
        overflow: visible;
        display: block;
        position: relative
    }

    .slide {
        position: relative;
        opacity: 0;
        height: 0;
        overflow: hidden;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        width: 100%;
        transition: opacity 0.8s ease, height 0.8s ease;
    }

    .single-image-container {
        height: 250px;
        width: 100%;
    }

    .slide.active {
        opacity: 1;
        height: auto;
        overflow: visible;
        display: flex;
        position: relative;
    }

    .visionary-card {
        flex-direction: row;
        text-align: left;
        padding: 1.2rem;
        gap: 1.2rem;
        align-items: center;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .visionary-img-container {
        width: 100px;
        height: 100px;
        min-width: 100px;
        margin-bottom: 0;
    }

    .visionary-info {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }

    .visionary-name {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }

    .visionary-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .nav-dot {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .welcome-heading {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .logo-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .logo-img {
        height: 50px;
    }

    .slideshow-container {
        min-height: 500px;
    }

    .slide {
        padding: 1rem;
    }

    .visionary-card {
        padding: 1rem;
        gap: 1rem;
    }

    .visionary-img-container {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .visionary-name {
        font-size: 1rem;
    }

    .visionary-title {
        font-size: 0.8rem;
    }

    .single-image-container {
        height: 200px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 380px) {
    .visionary-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }

    .visionary-img-container {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

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

/* Special Effects - Enhanced */
.hero-content {
    perspective: 1000px;
}

.program-info {
    transform-style: preserve-3d;
    animation: fadeInLeft 1.2s ease-out forwards;
}

.visionaries-section {
    transform-style: preserve-3d;
    animation: fadeInRight 1.2s ease-out forwards;
}

/* Loading Animation for Images */
.visionary-img {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visionary-img.loaded {
    opacity: 1;
}

.app-footer {
    padding: 10px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.8s ease-out;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-content span {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--gray-900);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}


.footer-logo-img {
    max-height: 50px;
    width: 10%;
    transition: var(--transition);
}

.logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-logo {
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .app-footer {
        padding: var(--space-sm) 0;
    }

    .visionaries-container {
        grid-template-columns: 1fr;
    }

    .footer-logo-text {
        align-items: center;
    }

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

    .visionaries-section {
        padding: 1rem;
    }

    .visionary-card {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .visionary-img-container {
        width: 100%;
        height: 160px;
    }

    .visionary-name {
        font-size: 0.9rem;
    }

    .visionary-title {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }
}