/* Modern CSS for KMC Student Committee Website */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-badge.badge-light {
    background: var(--white);
    color: var(--primary-color);
}

/* Utility Classes */
.section-padding {
    padding: 100px 0;
}

/* Navigation */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark-color) !important;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    border: 2px solid var(--primary-color);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.1);
}

.modern-dropdown {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius-lg);
    margin-top: 0.5rem;
    padding: 1rem 0;
}

.modern-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0;
}

.modern-dropdown .dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

.modern-dropdown .dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.3), rgba(29, 78, 216, 0.5));
    z-index: 1;
}

.carousel-inner {
    height: 100vh;
}

.carousel-item {
    height: 100vh;
}

.carousel-item img {
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-btn.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-btn.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-link {
    display: inline-block;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.about-image {
    position: relative;
    text-align: center;
}

.about-image img {
    max-width: 400px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 250px;
    text-align: left;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.floating-card h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.floating-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Club Cards */
.club-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.club-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

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

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

.club-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.club-card:hover .club-icon {
    transform: scale(1.1);
}

.club-icon i {
    font-size: 2rem;
    color: var(--white);
}

.club-card h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.club-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

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

.club-link:hover {
    color: var(--primary-dark);
    gap: 1rem;
}

/* Team Cards */
.team-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.team-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.9), rgba(29, 78, 216, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

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

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

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Event Cards */
.event-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

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

.event-date {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-content h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.event-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.event-content p:last-of-type {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.form-floating > .form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.contact-info-item {
    text-align: center;
    padding: 2rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--white);
}

.contact-info-item h5 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

/* Footer */
.modern-footer {
    background: var(--dark-color);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.footer-brand h4 {
    color: var(--white);
    margin: 0;
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-700);
    color: var(--gray-300);
    border-radius: 50%;
    text-decoration: none;
    margin-right: 0.75rem;
    transition: var(--transition);
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.contact-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    margin-top: 3rem;
}

.copyright {
    color: var(--gray-400);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-lg);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Custom Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

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

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
        max-width: none;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .club-card,
    .team-card,
    .contact-form-container {
        margin-bottom: 2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}

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

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

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --dark-color: #000000;
        --gray-600: #000000;
    }
}

/* Print Styles */
@media print {
    .modern-navbar,
    .back-to-top,
    .hero-section,
    .modern-footer {
        display: none !important;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    * {
        box-shadow: none !important;
    }
}
