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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f1419;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --navy-900: #0f1419;
    --navy-950: #0a0d11;
    --red-500: #dc2626;
    --red-600: #b91c1c;
    --red-400: #ef4444;
    --golden-400: #fbbf24;
    --golden-500: #f59e0b;
    --white: #ffffff;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-red {
    color: var(--red-500);
}

.text-golden {
    color: var(--golden-400);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary {
    background: linear-gradient(to right, var(--red-500), var(--red-600));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--red-600), #991b1b);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--golden-400);
    color: var(--golden-400);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--golden-400);
    color: var(--navy-900);
}

.btn-golden {
    background: linear-gradient(to right, var(--golden-500), var(--golden-400));
    color: var(--navy-900);
}

.btn-golden:hover {
    background: linear-gradient(to right, var(--golden-400), var(--golden-500));
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--red-600);
}

.btn-white:hover {
    background: var(--gray-300);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--red-500), var(--golden-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-img {
    height: 3rem;
    width: auto;
    transition: transform 0.3s ease;
}

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

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

.logo-ball {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--white);
    border-radius: 50%;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-universal {
    color: var(--white);
}

.logo-cricket {
    color: var(--red-500);
    margin-left: 0.25rem;
}

.logo-academy {
    color: var(--golden-400);
    margin-left: 0.25rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-400);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--red-500), var(--golden-400));
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.375rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--red-400);
}

.mobile-cta {
    margin-top: 1rem;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-950), var(--navy-900));
}

.cricket-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.pattern-circle {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    top: 5rem;
    left: 5rem;
    width: 8rem;
    height: 8rem;
    border-color: var(--red-500);
    animation-delay: 0s;
}

.circle-2 {
    top: 10rem;
    right: 8rem;
    width: 6rem;
    height: 6rem;
    border-color: var(--golden-400);
    animation-delay: 2s;
}

.circle-3 {
    bottom: 8rem;
    left: 8rem;
    width: 10rem;
    height: 10rem;
    border-color: var(--red-400);
    animation-delay: 4s;
}

.circle-4 {
    bottom: 5rem;
    right: 5rem;
    width: 7rem;
    height: 7rem;
    border-color: var(--golden-500);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.title-universal {
    color: var(--white);
}

.title-cricket {
    color: var(--red-500);
}

.title-academy {
    color: var(--golden-400);
    margin-left: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Page Header for all pages */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
}

.header-content {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3.75rem;
    }
}

.page-description {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.8;
}

/* Improved scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--navy-950);
}

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

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red-500);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    color: var(--gray-300);
    font-size: 1.125rem;
}

/* Programs Section */
.programs-section {
    padding: 5rem 0;
    background: var(--navy-900);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.8;
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.program-card {
    background: var(--navy-950);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.2);
    opacity: 0;
    transform: translateY(50px);
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

.program-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 20, 25, 0.9), transparent);
}

.program-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--red-500);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.program-content {
    padding: 1.5rem;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.program-description {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--red-500), var(--red-600));
}

.cta-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--navy-950);
    border-top: 1px solid rgba(220, 38, 38, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.6;
    max-width: 28rem;
}

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

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

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

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

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

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
    }
}

.footer-copyright {
    color: rgba(209, 213, 219, 0.7);
    font-size: 0.875rem;
}

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

.social-link {
    color: rgba(209, 213, 219, 0.7);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--red-400);
}

.footer-contact-email {
    font-size: 15px; /* change value to taste (e.g. 12px or 0.875rem) */
    line-height: 1.8;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon::after {
    content: '';
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-link:nth-child(1) .social-icon::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23808080'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.social-link:nth-child(2) .social-icon::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23808080'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
}

.social-link:nth-child(3) .social-icon::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23808080'%3E%3Cpath d='M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z'/%3E%3C/svg%3E");
}

/* Animation Classes: initial hidden state and `.animated` to trigger reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback keyframes (kept for older browsers if desired) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}