:root {
    --bg-color: #1a1a2e;
    --primary-color: #4A90E2;
    --accent-color: #FFC107;
    --text-color: #f0f0f0;
    --card-bg-color: rgba(255, 255, 255, 0.05);
    --card-border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --hero-bg-url: none;

    /* Light Theme Colors */
    --bg-light-color: #ffffff;
    --text-light-color: #555;
    --heading-light-color: #1a1a2e;
}

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    padding-top: 100px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.page-section {
    padding: 80px 0;
    display: none;
    overflow-x: hidden;
}

.page-section.active {
    display: block;
}

/* Light Background Section Styles */
.bg-light {
    background-color: var(--bg-light-color) !important;
    color: var(--text-light-color);
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: var(--heading-light-color);
}

.bg-light p,
.bg-light li {
    color: var(--text-light-color);
}

.bg-light .text-muted {
    color: #6c757d !important;
}

.bg-light .section-title p {
    color: var(--text-light-color) !important;
}

/* Top Bar Styling */
.top-bar {
    background-color: #121221;
    padding: 8px 0;
    font-size: 0.85rem;
    z-index: 1032;
    position: fixed;
    width: 100%;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .contact-info {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.top-bar .contact-info a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-right: 20px;
    white-space: nowrap;
}

.top-bar .contact-info a:hover {
    opacity: 1;
}

.top-bar .contact-info i {
    color: var(--accent-color);
    margin-right: 8px;
}

.top-bar .socials a {
    color: var(--text-color);
    opacity: 0.8;
    margin-left: 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.top-bar .socials a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Navbar Styling */
.navbar {
    transition: all 0.3s ease-in-out;
    top: 45px;
    z-index: 1031;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color) !important;
    display: flex;
    align-items: center;
}

.navbar-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border-color: var(--card-border-color);
}

.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%28255, 193, 7, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled,
.navbar.expanded {
    background-color: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.btn-quote {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-quote:hover {
    background-color: #ffcf40;
    color: var(--bg-color);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    body {
        padding-top: 99px;
    }

    html {
        scroll-padding-top: 99px;
    }

    .navbar {
        top: 43px;
    }
}

@media (max-width: 767.98px) {
    .top-bar .email-info {
        display: none !important;
    }

    .top-bar .container {
        justify-content: center;
    }
}

/* Button Styling */
.btn-accent {
    background: linear-gradient(45deg, var(--accent-color), #ffdb58);
    color: var(--bg-color);
    font-weight: 600;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-light:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Hero Section */
#home {
    padding: 0;
}

.hero-section {
    min-height: calc(100vh - 100px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(26, 26, 46, 0.75), rgba(26, 26, 46, 0.85)), var(--hero-bg-url);
    background-size: cover;
    background-position: center;
    animation: kenburns 20s ease-out infinite;
    z-index: -1;
}

@keyframes kenburns {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero-section .display-3 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    max-width: 650px;
    margin: 1.5rem auto;
}

/* Our Process Section */
.our-process-section {
    position: relative;
}

.process-card {
    padding: 2rem 1.5rem;
    height: 100%;
}

.process-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.process-card p {
    opacity: 0.7;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--card-border-color);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 193, 7, 0.3);
    border-color: var(--accent-color);
}

.glass-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Section Titles */
.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Portfolio CTA */
.portfolio-cta {
    background: linear-gradient(45deg, var(--primary-color), #3a7bd5);
}

/* Testimonials */
.bg-light .testimonial-card {
    background: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.bg-light .testimonial-card p {
    color: var(--text-light-color);
}

.bg-light .testimonial-card h6 {
    color: var(--heading-light-color);
}

/* FAQ Accordion */
.accordion-button {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a1a2e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.accordion-body {
    background-color: var(--bg-color);
}

.accordion-item {
    border: 1px solid var(--card-border-color);
    background-color: transparent;
}

/* Contact Form */
.form-control,
.form-select {
    background-color: transparent;
    border: 1px solid var(--card-border-color);
    color: var(--text-color);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select option {
    background-color: var(--bg-color);
}

.contact-info i {
    color: var(--accent-color);
}

/* Portfolio page */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-item img {
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.portfolio-item .tag {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Courses and Services Tabs & Cards */
.courses-nav .nav-link {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border-color);
    margin: 5px;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.courses-nav {
    flex-wrap: wrap;
}

.courses-nav .nav-link.active {
    background-color: var(--accent-color);
    color: var(--bg-color) !important;
    border-color: var(--accent-color);
    font-weight: 600;
}

.course-card {
    background: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.course-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.coming-soon-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Footer */
footer {
    background-color: #121221;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Sticky Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #FFF;
}

/* DevRobo Labs Promotion Section */ 
.promo-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.55)), url('./images/Stem.jpg') no-repeat center center;
    background-size: cover;
    border: 1px solid var(--card-border-color);
    color: #fff;
    position: relative;
}

/* Ensure text and links inside are white / high contrast */
.promo-section h1,
.promo-section h2,
.promo-section h3,
.promo-section h4,
.promo-section h5,
.promo-section h6,
.promo-section p,
.promo-section li,
.promo-section a,
.promo-section .section-title p {
    color: #ffffff !important;
}

/* Buttons inside promo keep good contrast */
.promo-section .btn-accent {
    color: #141313 !important;
}

.promo-section .btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: transparent;
}

.promo-section .btn-accent {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.promo-section img {
    max-height: 350px;
    border: 3px solid var(--card-border-color);
}