
:root {
    --congress-blue: #19AAED;
    --congress-dark-blue: #0066CC;
    --congress-light-blue: #E3F2FD;
    --congress-navy: #003366;
    --accent-green: #4CAF50;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --white: #FFFFFF;
    --gray-bg: #F8F9FA;
    --shadow: rgba(0, 102, 204, 0.1);
    --india-green: #138808;
    --achievement-gold: #FFD700;
    --congress-orange: #FF6B35;
    --india-saffron: #FF9933;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.kannada {
    font-family: 'Noto Sans Kannada', sans-serif;
}

.hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Animated Background Gradient */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    object-fit: contain;
    animation: fadeIn 0.5s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--congress-dark-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-text .kannada {
    font-size: 1.3rem;
}

.logo-text .hindi {
    font-size: 1.3rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--congress-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--congress-blue), var(--congress-dark-blue));
    transition: width 0.3s ease;
}

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

/* Updated Language Selector for 3 languages */
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-bg);
    padding: 5px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--congress-blue), var(--congress-dark-blue));
    color: white;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 102, 204, 0.1);
}

/* Gallery Section Styles */
.gallery-section {
    padding: 100px 5%;
    background: var(--gray-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px -15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px var(--shadow);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--congress-blue);
    background: transparent;
    color: var(--congress-blue);
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--congress-blue);
    color: white;
}

/* Language visibility classes */
[lang="kn"],
[lang="hi"],
.kannada-text,
.hindi-text {
    display: none !important;
}

/* Kannada language active */
body.kannada [lang="en"],
body.kannada [lang="hi"] {
    display: none !important;
}

body.kannada [lang="kn"] {
    display: initial !important;
}

body.kannada h1[lang="kn"], 
body.kannada h2[lang="kn"], 
body.kannada h3[lang="kn"], 
body.kannada h4[lang="kn"], 
body.kannada p[lang="kn"], 
body.kannada div[lang="kn"],
body.kannada .kannada-text {
    display: block !important;
}

body.kannada span[lang="kn"] {
    display: inline !important;
}

body.kannada li[lang="kn"] {
    display: list-item !important;
}

/* Hindi language active */
body.hindi [lang="en"],
body.hindi [lang="kn"] {
    display: none !important;
}

body.hindi [lang="hi"] {
    display: initial !important;
}

body.hindi h1[lang="hi"], 
body.hindi h2[lang="hi"], 
body.hindi h3[lang="hi"], 
body.hindi h4[lang="hi"], 
body.hindi p[lang="hi"], 
body.hindi div[lang="hi"],
body.hindi .hindi-text {
    display: block !important;
}

body.hindi span[lang="hi"] {
    display: inline !important;
}

body.hindi li[lang="hi"] {
    display: list-item !important;
}

/* Language-specific font adjustments */
body.hindi {
    font-size: 1.05em;
}

body.hindi .section-header h2 {
    font-size: 2.8rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #19AAED, #0066CC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0066CC, #19AAED);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Hero Section with Responsive Slider */
.hero {
    margin-top: 80px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f0f0f0;
}

/* Language-specific slides */
.slide.english,
.slide.kannada,
.slide.hindi {
    display: none;
}

/* Show English slides by default */
.slide.english {
    display: block;
}

/* Show Kannada slides when Kannada is active */
body.kannada .slide.english,
body.kannada .slide.hindi {
    display: none;
}

body.kannada .slide.kannada {
    display: block;
}

/* Show Hindi slides when Hindi is active */
body.hindi .slide.english,
body.hindi .slide.kannada {
    display: none;
}

body.hindi .slide.hindi {
    display: block;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 5px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

/* Slider Navigation Dots */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 12px;
    z-index: 3;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 0;
    outline: none;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: white;
}

.slider-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

/* Stats Section */
.stats-section {
    padding: 10px 5%;
    background: #FAFBFC;
    position: relative;
    overflow: hidden;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

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

.section-header h2 {
    font-size: 3rem;
    color: var(--congress-dark-blue);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--congress-blue), var(--accent-green));
    border-radius: 2px;
}

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

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--congress-blue), var(--accent-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px var(--shadow);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 232, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: rotate(0deg) scale(1.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--congress-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748B;
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 100px 5%;
    background: var(--white);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.quote-box {
    background: linear-gradient(135deg, var(--congress-light-blue), rgba(255,255,255,0.5));
    padding: 2rem;
    border-left: 5px solid var(--congress-blue);
    margin: 2rem 0;
    border-radius: 10px;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--congress-navy);
    box-shadow: 0 5px 20px var(--shadow);
}

/* About Image Gallery */
.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    height: 100%;
}

.about-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px -10px var(--shadow);
    transition: transform 0.3s ease;
}

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

.about-img:nth-child(1) {
    grid-column: span 2;
    height: 300px;
}

/* Key Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--congress-blue), var(--accent-green));
    border-image-slice: 1;
    position: relative;
    overflow: hidden;
}

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

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

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.pillar-card h3 {
    color: var(--congress-dark-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Vision Mission */
.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.vision-block, .mission-block {
    padding: 3rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.vision-block {
    background: linear-gradient(135deg, var(--congress-blue), var(--congress-dark-blue));
    color: var(--white);
}

.mission-block {
    background: linear-gradient(135deg, var(--india-green), #0a5a05);
    color: var(--white);
}

.vision-block h3, .mission-block h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Initiatives Section */
.initiatives-section {
    padding: 100px 5%;
    background: #FAFBFC;
}

.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.initiative-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.initiative-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px -15px var(--shadow);
}

.initiative-header {
    background: linear-gradient(135deg, var(--congress-blue), var(--congress-dark-blue));
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.initiative-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 0px;
    right: 20px;
}

.initiative-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.initiative-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.initiative-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.initiative-description {
    color: #64748B;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* President Section */
.president-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.president-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 1px);
    background-size: 50px 50px;
}

.president-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.president-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.president-image-container {
    position: relative;
}

.president-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.president-image-wrapper:hover {
    transform: rotate(0deg) scale(1.05);
}

.president-image {
    width: 100%;
    height: auto;
    display: block;
}

.president-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--congress-blue), var(--congress-dark-blue));
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 10px 30px -10px var(--shadow);
    transform: rotate(5deg);
}

.president-content h2 {
    font-size: 1.2rem;
    color: var(--congress-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.president-name {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, white, #E0F2FE);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.president-role {
    font-size: 1.3rem;
    color: var(--congress-blue);
    margin-bottom: 2rem;
}

.president-quote {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 4px solid var(--congress-blue);
    opacity: 0.9;
}

.president-bio {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.achievement-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.achievement-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.achievement-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--congress-blue), var(--congress-dark-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* History Timeline */
.history-section {
    padding: 100px 5%;
    background: var(--gray-bg);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(180deg, var(--congress-blue), var(--accent-green));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--congress-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px -10px var(--shadow);
}

.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--congress-blue);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--congress-navy);
    color: var(--white);
    padding: 100px 5%;
}

.contact .section-header h2 {
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-card p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--achievement-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--congress-blue);
}

/* Footer */
footer {
    background: #0F172A;
    color: white;
    padding: 80px 5% 40px;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 168, 232, 0.1) 0%, transparent 50%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, white, var(--congress-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--congress-blue), var(--congress-dark-blue));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px var(--shadow);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--congress-blue);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-credit {
    background: linear-gradient(90deg, #FF6B35 0%, #138808 33%, #0066CC 66%, #19AAED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    display: inline-block;
    animation: gradientShift 10s ease infinite;
    background-size: 300% 300%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Header responsive fix */
    header {
        padding: 0.5rem 0;
    }
    
    nav {
        padding: 0.5rem 2%;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .logo-text span {
        font-size: 1.1rem;
    }
    
    .logo-text .kannada,
    .logo-text .hindi {
        font-size: 1rem;
    }
    
    .language-selector {
        gap: 5px;
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .nav-menu {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .president-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .president-name {
        font-size: 2rem;
    }
    
    .initiatives-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .logo-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .left::after, .right::after {
        left: 15px;
    }
    
    .right {
        left: 0%;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .about-img:nth-child(1) {
        grid-column: span 1;
    }
    
    .hero {
        height: auto;
        aspect-ratio: 16/9;
        min-height: 250px;
        max-height: 400px;
        margin-top: 70px;
    }

    .slider-arrow {
        padding: 10px;
        font-size: 16px;
        opacity: 0.7;
    }

    .slider-arrow.prev {
        left: 5px;
    }

    .slider-arrow.next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    /* Further reduce sizes for small mobile */
    header {
        padding: 0.3rem 0;
    }
    
    nav {
        padding: 0.5rem 2%;
        gap: 10px;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text span {
        font-size: 0.8rem;
    }
    
    .logo-text .kannada,
    .logo-text .hindi {
        font-size: 0.9rem;
    }
    
    .language-selector {
        gap: 3px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 40px;
    }
    
    .hero {
        aspect-ratio: 4/3;
        min-height: 200px;
        max-height: 300px;
        margin-top: 60px;
    }

    .slider-arrow {
        padding: 8px;
        font-size: 14px;
        background: rgba(0, 0, 0, 0.4);
    }

    .slider-arrow.prev {
        left: 2px;
    }

    .slider-arrow.next {
        right: 2px;
    }
}

/* Mobile responsive for back to top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lightbox-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--congress-blue);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--congress-blue);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive for Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        font-size: 20px;
        padding: 5px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        bottom: -80px;
        padding: 15px;
    }

    .lightbox-caption h3 {
        font-size: 1.2rem;
    }

    .lightbox-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 100%;
        max-height: 100%;
        margin: 10px;
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        font-size: 24px;
        width: 35px;
        height: 35px;
        background: rgba(0, 0, 0, 0.7);
    }

    .lightbox-nav {
        font-size: 18px;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.7);
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-image {
        max-height: 70vh;
        border-radius: 5px;
    }

    .lightbox-caption {
        position: relative;
        bottom: auto;
        background: rgba(0, 0, 0, 0.9);
        margin-top: 10px;
        border-radius: 5px;
        padding: 10px;
    }

    .lightbox-caption h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .lightbox-caption p {
        font-size: 0.85rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .lightbox-nav {
        font-size: 16px;
        padding: 6px 10px;
    }

    .lightbox-close {
        font-size: 20px;
        width: 30px;
        height: 30px;
    }

    .lightbox-caption h3 {
        font-size: 0.9rem;
    }

    .lightbox-caption p {
        font-size: 0.8rem;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .lightbox-image {
        max-height: 90vh;
    }

    .lightbox-caption {
        display: none;
    }

    .lightbox-nav {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .lightbox-prev {
        left: 20%;
    }

    .lightbox-next {
        right: 20%;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .lightbox-nav {
        opacity: 0.8;
        background: rgba(0, 0, 0, 0.7);
    }

    .lightbox-close {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Loading state for images */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    display: none;
}

.lightbox.loading .lightbox-loading {
    display: block;
}

.lightbox.loading .lightbox-image {
    opacity: 0;
}