:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #00d4ff;
    --success-color: #28a745;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --card-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8fbff;
}

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

/* Navbar */
.navbar {
    background-color: #2a2a2a !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    padding: 0.3rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1000;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .navbar .container-fluid,
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.5rem 0.5rem;
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 auto;
        margin-right: 0;
    }
    
    .navbar-brand img {
        height: 102px !important;
        margin-right: 35px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
    }
    
    .navbar-brand > div {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        z-index: 1;
        padding-left: 15px;
    }
    
    .navbar-brand > div > div:first-child {
        font-size: 1.4rem !important;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .navbar-brand > div > div:last-child {
        font-size: 0.83rem !important;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .navbar-toggler {
        margin-left: auto;
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        flex: 0 0 auto;
    }
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="80" fill="rgba(255,255,255,0.03)"/><circle cx="900" cy="400" r="120" fill="rgba(255,255,255,0.03)"/><circle cx="600" cy="200" r="100" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.btn-hero {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.4s both, floatButton 3s ease-in-out infinite;
}

.btn-primary-custom {
    background: var(--accent-color);
    border: none;
    color: #000;
}

.btn-primary-custom:hover {
    background: #00b8e6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Section Styling */
.section {
    padding: 5rem 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 60, 114, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    animation: countUp 0.6s ease-out;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Gallery Cards */
.gallery-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

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

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

/* Gallery Tab Transitions */
.tab-pane {
    transition: opacity 0.3s ease-in-out;
}

.nav-pills .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--secondary-color);
}

.nav-pills .nav-link.active {
    background: var(--accent-color);
    color: #000;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
    padding: 1.5rem;
    color: white;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

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

/* Team Member Cards */
.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 2rem auto 1rem;
    object-fit: cover;
    border: 5px solid var(--accent-color);
}

.team-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.team-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* Player Cards */
.player-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.player-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.player-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 1rem;
}

.player-info h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.player-position {
    color: #666;
    font-size: 0.9rem;
}

/* Sponsor Cards */
.sponsor-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px dashed #ddd;
}

.sponsor-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.sponsor-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.sponsor-placeholder {
    font-size: 3rem;
    color: #ddd;
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.form-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Page Header (for team.html) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="80" fill="rgba(255,255,255,0.03)"/><circle cx="900" cy="400" r="120" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-section h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #000;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
}

.scroll-to-top.show {
    display: flex;
}

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

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    /* Gallery slideshow mobile adjustments */
    #gallerySlideshow {
        height: 350px !important;
    }
    
    .gallery-slide {
        object-fit: cover !important;
    }
}
