/* Padmavilas Cricket Club - Light Premium Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Bebas+Neue&display=swap');

:root {
    --primary-color: #b54a3e;       /* Terracotta Red from Logo */
    --primary-dark: #8c362d;
    --accent-color: #d4a528;         /* Muted Gold */
    --text-dark: #1a1a2e;
    --text-body: #444;
    --text-muted: #777;
    --bg-white: #ffffff;
    --bg-light: #f7f8fa;
    --bg-off: #eef1f5;
    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: rgba(0,0,0,0.08);
    --shadow-soft: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --transition-speed: 0.3s;
    --section-padding: 100px 5%;
    --radius: 18px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
    color: var(--text-dark);
}

a { text-decoration: none; }

/* Scroll Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-speed);
}

header.scrolled {
    padding: 10px 5%;
    box-shadow: var(--shadow-soft);
}

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

.logo-container img {
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: #fff;
}

.logo-container h1 {
    font-size: 1.6rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover { color: var(--primary-color); }
nav a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.25s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(181,74,62,0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(181,74,62,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
}

/* ========== HERO ========== */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1531415074968-036ba1b575da?w=2560&q=90') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, var(--bg-white));
    z-index: 2;
}

.hero h2 {
    font-size: 4.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 20px rgba(0,0,0,0.4);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.85);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========== SECTIONS ========== */
section {
    padding: var(--section-padding);
}

section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ========== ABOUT ========== */
.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-body);
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
}

.about-content strong {
    color: var(--primary-color);
}

/* Gallery - Horizontal Auto-Scroll */
.gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16/11;
    box-shadow: var(--shadow-card);
    cursor: zoom-in;
    transition: transform 0.3s;
}

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

/* Lightbox Styling */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

/* Lightbox Controls */
.lb-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2100;
}

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s;
    z-index: 2100;
}

.lb-prev { left: -80px; }
.lb-next { right: -80px; }

.lb-prev:hover, .lb-next:hover, .lb-close:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-prev, .lb-next { font-size: 2rem; background: rgba(0,0,0,0.5); border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.15));
    pointer-events: none;
}

/* ========== ASK ME FORM ========== */
.form-container {
    max-width: 750px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

.askme-form .form-group {
    margin-bottom: 22px;
}

.askme-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.askme-form input,
.askme-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1.5px solid #dde1e7;
    border-radius: 12px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.askme-form input:focus,
.askme-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11,110,79,0.1);
}

.askme-form textarea {
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

/* ========== CONTACT ========== */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.contact-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.contact-card h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-body);
}

.contact-card a {
    color: var(--text-body);
    text-decoration: none;
}

/* Map */
.map-section {
    text-align: center;
    margin-top: 50px;
}

.map-section h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* ========== FOOTER ========== */
footer {
    padding: 50px 5% 30px;
    background: var(--text-dark);
    text-align: center;
    color: #fff;
}

.footer-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.footer-social {
    margin: 20px 0;
}

.footer-social a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 12px;
    transition: color 0.3s;
}

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

.footer-copy {
    color: #888;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1rem; }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger { display: flex; }

    .form-container { padding: 30px 20px; }
    .about-content { padding: 30px 20px; }
    
    :root { --section-padding: 70px 5%; }

    .header-cta { display: none; }
}
