/* =====================================================
   छत्रपती शिवाजी महाराज चषक - Main Stylesheet
   ===================================================== */

/* Theme variables are now in theme.css */
/* Legacy variable mapping for backward compatibility */
:root {
    --dark-bg: var(--bg-primary);
    --light-bg: var(--bg-secondary);
    --text-dark: var(--text-primary);
    --text-light: var(--text-secondary);
    --white: var(--bg-card);
    --shadow: var(--shadow-sm);
    --transition: var(--transition);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Enhanced for Dark/Light Mode */
.navbar {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Navigation Logo */
.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-brand i {
    margin-right: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: var(--glow-primary);
}

.nav-menu .register-btn {
    background: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
}

.nav-menu .register-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section - Shivaji Maharaj Background (No Overlay) */
.hero {
    position: relative;
    height: 90vh;
    width: 100%;
    max-width: 100vw;
    background: url('../images/csmc-bg-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero::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 1440 320"><path fill="%23ff6b35" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 1;
    animation: fadeInUp 1s ease 0.2s backwards;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(234, 88, 12, 0.98);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: bold;
    animation: fadeInUp 1s ease 0.4s backwards;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    font-size: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

/* Hero CTA at Bottom Center */
.hero-cta-bottom {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeInUpCentered 1.2s ease 0.8s both;
}

/* Creative Register Button */
.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.9rem 3rem;
    min-width: 380px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(234, 88, 12, 0.6),
        0 0 60px rgba(234, 88, 12, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: buttonPulse 2s ease-in-out infinite;
    justify-content: space-between;
}

/* Animated gradient overlay */
.btn-register::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s linear infinite;
}

/* Icon styling */
.btn-register-icon {
    font-size: 1.4rem;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Text container */
.btn-register-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-register-main {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.btn-register-sub {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 1px;
}

/* Arrow styling */
.btn-register-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* Hover effects */
.btn-register:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 60px rgba(234, 88, 12, 0.8),
        0 0 80px rgba(251, 146, 60, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-register:hover .btn-register-arrow {
    transform: translateX(5px);
}

.btn-register:hover .btn-register-icon {
    animation: iconSpin 0.6s ease;
}

.btn-register:active {
    transform: translateY(-2px) scale(1.02);
}

/* Pulse animation */
@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(234, 88, 12, 0.6),
            0 0 60px rgba(251, 146, 60, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 10px 40px rgba(234, 88, 12, 0.8),
            0 0 80px rgba(251, 146, 60, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Icon bounce */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Icon spin on hover */
@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive button */
@media (max-width: 768px) {
    .btn-register {
        padding: 0.9rem 2rem;
        gap: 0.8rem;
        min-width: 320px;
    }

    .btn-register-icon {
        font-size: 1.4rem;
    }

    .btn-register-main {
        font-size: 1.05rem;
    }

    .btn-register-sub {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .btn-register {
        padding: 0.8rem 1.5rem;
        gap: 0.6rem;
        min-width: 280px;
    }

    .btn-register-icon {
        font-size: 1.2rem;
    }

    .btn-register-main {
        font-size: 0.95rem;
    }

    .btn-register-sub {
        font-size: 0.68rem;
    }
}

/* Centered Fade In Up Animation */
@keyframes fadeInUpCentered {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    z-index: 5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--text-inverse);
    color: var(--secondary-color);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

/* Quick Stats */
.quick-stats {
    padding: 4rem 0;
    width: 100%;
    max-width: 100vw;
    background: var(--bg-secondary);
}

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

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Styling */
section {
    padding: 5rem 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Timeline */
.upcoming-section {
    background: var(--text-inverse);
    width: 100%;
    max-width: 100vw;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 1rem;
    /* Extra space for hover effect */
}

.timeline-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--shadow);
}

.timeline-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Features Grid */
.why-section {
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 1rem;
    /* Extra space for hover effect */
}

.feature-card {
    background: var(--text-inverse);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-primary) 100%);
    color: var(--text-inverse);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-inverse);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        gap: 0.25rem !important;
        row-gap: 0.25rem !important;
        margin-bottom: 1rem !important;
    }

    .footer-col {
        margin-bottom: 0 !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .footer-col h4 {
        margin-bottom: 0.5rem !important;
    }

    .footer-col p {
        margin-bottom: 0.5rem !important;
    }

    .footer-col ul {
        margin-top: 0.25rem !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .footer-col ul li {
        margin-bottom: 0.25rem !important;
    }
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

/* Footer Logo Styling */
.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

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

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.footer-col ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-contact-info {
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

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

.footer-contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-info a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
}

/* Social icon circles for light theme */
:root[data-theme="light"] .social-links a {
    background: #374151 !important;
    color: #ffffff !important;
}

/* Social icon circles for dark theme */
:root[data-theme="dark"] .social-links a {
    background: #ffffff !important;
    color: #000000 !important;
}

.social-links a:hover {
    background: var(--secondary-color) !important;
    color: #ffffff !important;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.footer-bottom .made-by {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom .made-by a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-bottom .made-by a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom .made-by i {
    font-size: 0.85rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid,
    .features-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}