/* ========== CUSTOM VIOLET (#5f259f), BLACK & WHITE THEME ========== */
:root {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-darker: #000000;
    --bg-card: #0a0a0a;
    --primary: #5f259f;                /* Your exact violet */
    --primary-light: #7e3bb5;          /* Lighter violet for hover */
    --primary-dark: #4a1d7d;           /* Darker violet for active */
    --violet-glow: rgba(95, 37, 159, 0.4);
    --violet-subtle: rgba(95, 37, 159, 0.12);
    --gradient-primary: linear-gradient(135deg, #4a1d7d 0%, #5f259f 50%, #7e3bb5 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #0a0a1a 50%, #050510 100%);
    --text-primary: #ffffff;
    --text-secondary: #c0c0d0;
    --text-muted: #9999aa;
    --border-color: rgba(95, 37, 159, 0.25);
    --border-light: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --shadow-sm: 0 5px 20px rgba(95, 37, 159, 0.15);
    --shadow-md: 0 10px 40px rgba(95, 37, 159, 0.2);
    --shadow-lg: 0 20px 60px rgba(95, 37, 159, 0.25);
    --shadow-glow: 0 0 40px rgba(95, 37, 159, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    padding-top: 76px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: var(--primary); color: #fff; }

.bg-darker { background: var(--bg-darker); }
.section-padding { padding: 100px 0; }

/* ========== SECTION HEADERS ========== */
.section-header { margin-bottom: 60px; }
.section-header .text-muted,
.section-header p {
    color: #c0c0d0 !important;
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 1;
}
.section-tag {
    display: inline-block;
    background: var(--violet-subtle);
    color: var(--primary-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(95, 37, 159, 0.3);
}
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    display: inline-block;
}
.section-title .text-highlight {
    color: var(--primary-light);
    font-weight: 900;
}

/* ========== NAVIGATION ========== */
#navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}
#navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}
.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* filter: brightness(0) invert(1); */
    transition: transform 0.3s;
}
.nav-logo:hover { transform: scale(1.1) rotate(-5deg); }
.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}
.brand-text .fw-light {
    color: var(--primary-light);
}
.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    margin: 0 3px;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: var(--violet-subtle);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 20px;
}
.navbar-toggler {
    border-color: rgba(95, 37, 159, 0.4);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(95,37,159,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar CTA Button */
.btn-outline-light {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: transparent;
}
.btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(95, 37, 159, 0.12) 0%, transparent 70%);
    animation: hero-pulse 6s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(126, 59, 181, 0.08) 0%, transparent 70%);
    animation: hero-pulse 8s ease-in-out infinite reverse;
}
@keyframes hero-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.7; }
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-tag {
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease;
    opacity: 1;
}
.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 20px 0;
    color: #fff;
    animation: fadeInUp 1s ease 0.2s both;
}
.hero-title .text-highlight {
    color: var(--primary-light);
}
.hero-desc {
    color: #d0d0e0 !important;
    font-size: 1.2rem;
    max-width: 550px;
    animation: fadeInUp 1s ease 0.4s both;
    line-height: 1.8;
}
.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}
.hero-buttons .btn {
    padding: 14px 35px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary Button */
.btn-light {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: #fff;
    font-weight: 600;
}
.btn-light:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

/* Outline Button */
.hero-buttons .btn-outline-light {
    border: 2px solid var(--primary-light);
    color: #fff;
    background: transparent;
}
.hero-buttons .btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.hero-stats {
    animation: fadeInUp 1s ease 0.8s both;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-stats h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-light);
}
.hero-stats p {
    color: #b0b0c0 !important;
    font-size: 0.95rem;
}
.hero-img {
    max-width: 100%;
    filter: brightness(1.1);
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-25px) rotate(1deg); }
    60% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}
.hero-scroll a {
    color: var(--primary-light);
    font-size: 2rem;
    transition: color 0.3s;
}
.hero-scroll a:hover { color: #fff; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* ========== SERVICES ========== */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--primary-light);
    transition: transform 0.3s;
}
.service-card:hover .service-icon {
    transform: scale(1.2);
}
.service-card h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
.service-card p {
    color: #c0c0d0 !important;
    line-height: 1.7;
}

/* ========== PORTFOLIO TABS ========== */
.nav-pills .nav-link {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 50px;
    padding: 10px 24px;
    margin: 0 5px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ========== PORTFOLIO CARDS ========== */
.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s;
}
.portfolio-card:hover img {
    transform: scale(1.08);
}
.portfolio-card .card-info {
    padding: 20px;
    position: relative;
    z-index: 1;
}
.portfolio-card .card-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}
.portfolio-card .badge {
    background: var(--violet-subtle);
    color: var(--primary-light);
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* ========== ABOUT ========== */
.about-img {
    width: 100%;
    border-radius: 20px;
    border: 3px solid var(--border-color);
    transition: all 0.4s;
}
.about-img:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========== LEARN CARDS ========== */
.learn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.learn-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.learn-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
}
.learn-card span {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}
.learn-card h5 {
    font-weight: 700;
    color: var(--primary-light);
}
.learn-card p {
    color: #c0c0d0 !important;
    font-size: 0.9rem;
    margin: 0;
}

/* ========== GST CARD ========== */
.gst-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}
.gst-card-header {
    background: var(--violet-subtle);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.gst-card-header i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}
.gst-card-header h4 {
    font-weight: 700;
    color: #fff;
}
.gst-card-header p {
    color: #b0b0c0 !important;
}
.gst-card-body {
    padding: 30px;
    color: #c0c0d0 !important;
}
.gst-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.gst-item strong {
    color: #fff;
    min-width: 140px;
}
.gst-item span {
    color: #c0c0d0;
}
.gst-card-body hr {
    border-color: var(--border-color);
}

/* ========== CONTACT ========== */
.contact-form .form-control,
.contact-form .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    transition: all 0.3s;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--violet-subtle);
    outline: none;
    background: var(--bg-card);
    color: #fff;
}
.contact-form .form-control::placeholder {
    color: #8888a0 !important;
}
.form-select option {
    background: #111;
    color: #fff;
}
.form-label {
    color: #c0c0d0;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
    background: #000;
    border-top: 1px solid var(--border-color);
}
.footer h4, .footer h5 {
    font-weight: 700;
    color: #fff;
}
.footer a {
    color: #b0b0c0 !important;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover { color: var(--primary-light) !important; }
.social-icons a {
    font-size: 1.4rem;
    margin-right: 15px;
    color: #b0b0c0;
    transition: all 0.3s;
    display: inline-block;
}
.social-icons a:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

/* ========== MODAL ========== */
.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}
.modal-header, .modal-footer {
    border-color: var(--border-color);
}
.btn-close-white {
    filter: brightness(0) invert(1);
}
.modal-title {
    color: #fff;
}



/* ========== FORM ALERTS ========== */
.form-alert {
    border-radius: 10px;
    padding: 12px 20px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast Notification */
@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100px); opacity: 0; }
}

/* ========== GENERAL TEXT FIXES ========== */
p.text-muted,
span.text-muted,
div.text-muted,
.text-muted {
    color: #c0c0d0 !important;
    opacity: 1 !important;
}
::placeholder {
    color: #8888a0 !important;
    opacity: 1 !important;
}
.about-info .info-item {
    color: #c0c0d0;
}
.footer ul li a {
    color: #b0b0c0 !important;
}

/* ========== LOADING SPINNER ========== */
.spinner-border {
    border-color: var(--primary-light);
    border-right-color: transparent;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    html {
        scroll-padding-top: 70px;
    }
    .hero-section {
        min-height: calc(100vh - 66px);
    }
    .hero-title { 
        font-size: 2.5rem; 
        margin-top: 20px;
    }
    .section-title { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .hero-stats { gap: 20px; }
    .hero-stats h2 { font-size: 2rem; }
}
@media (min-width: 992px) {
    /* On large screens, the modal should not be full‑screen – let it be big but centered */
    #gameModal .modal-dialog {
        max-width: 90vw;
        height: 90vh;
    }
    #gameModal .modal-content {
        height: 90vh;
    }
}