/* ============================================================
   ROZITECH FRONTEND - Brand Design System (Blue, White, & Black)
   ============================================================ */

:root {
    /* Brand Colors (Dominant Blue, White, and Black) */
    --dark-bg: #ffffff;
    --dark-bg-gradient: radial-gradient(circle at 50% 50%, #f8fafc 0%, #ffffff 100%);
    --dark-card: #EDEFFB; /* Soft lavender card matching shader-learning */
    --dark-card-hover: #e2e5f8;
    
    /* Borders */
    --dark-border: rgba(67, 97, 238, 0.08);
    --dark-border-hover: rgba(67, 97, 238, 0.28);
    
    /* Branding Colors */
    --primary-color: #4361EE; /* Royal Blue Accent same as shader-learning */
    --accent-blue: #4361EE;
    --accent-white: #ffffff;
    --accent-black: #0f172a;
    
    /* Typography & Text */
    --text-light: #0f172a;
    --text-muted: #475569;
    
    /* UI Glassmorphism & Shadow */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-blur: blur(20px);
    --shadow-neon: 0 0 25px rgba(67, 97, 238, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(67, 97, 238, 0.06);
    
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* ===== PRE-ANIMATION STATES (Anime.js compatibility) ===== */
.anime-fade-up,
.anime-fade-left,
.anime-fade-right,
.anime-scale-in,
.anime-stagger-wrap .anime-stagger-item {
    opacity: 0;
    will-change: transform, opacity;
}

/* ===== GLOBAL BODY RESET ===== */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    background-image: var(--dark-bg-gradient);
    background-attachment: fixed;
    color: var(--text-muted);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override selection colors */
::selection {
    background: var(--primary-color, var(--accent-blue));
    color: #ffffff;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light) !important;
}

p {
    color: var(--text-muted) !important;
}

/* Dynamic text gradient helper */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color, var(--accent-blue)), #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== OVERRIDE DEFAULTS FOR THEMES ===== */
.bg-light {
    background-color: #f8fafc !important;
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.bg-white {
    background-color: #ffffff !important;
}

.text-dark, .text-black {
    color: #0f172a !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.border {
    border-color: var(--dark-border) !important;
}

.shadow-sm, .shadow, .shadow-lg {
    box-shadow: var(--shadow-glass) !important;
}

/* ===== BUTTON STYLE WEB 3.0 ===== */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px !important;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color, var(--accent-blue)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.5), 0 0 15px var(--primary-color, var(--accent-blue));
    color: #ffffff !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-light {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-light:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

/* ===== FLOATING GLASS NAVBAR ===== */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--dark-border);
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--dark-border-hover);
    box-shadow: var(--shadow-neon);
}

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    color: var(--text-light) !important;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    margin: 0 4px;
    border-radius: 50px !important; /* Perfect rounded pill capsule */
    transition: var(--transition);
    position: relative;
}

/* Premium Web 3.0 Capsule Hover & Active States */
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(67, 97, 238, 0.05) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important; /* White text on solid blue active capsule */
    background-color: var(--primary-color) !important; /* Solid royal blue capsule */
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.25) !important;
}

/* Dropdown toggle styles when open or active */
.navbar-nav .nav-link.dropdown-toggle.show {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.25) !important;
}

/* Custom Rotating Carets for Dropdowns without underline conflict */
.navbar-nav .nav-link.dropdown-toggle::after {
    display: inline-block !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 4px solid var(--text-muted) !important;
    border-right: 4px solid transparent !important;
    border-left: 4px solid transparent !important;
    border-bottom: 0 !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    transition: transform 0.25s ease, border-color 0.25s ease !important;
}

.navbar-nav .nav-link.dropdown-toggle:hover::after {
    border-top-color: var(--primary-color) !important;
}

.navbar-nav .nav-link.dropdown-toggle.show::after {
    border-top-color: #ffffff !important; /* White caret when active blue capsule */
    transform: rotate(180deg);
}

/* Premium Solid Dropdown Menu */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(67, 97, 238, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.08) !important;
    padding: 8px 0 !important;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    max-height: 380px;
    overflow-y: auto;
}

/* Custom Scrollbar for Dropdown Menu */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(67, 97, 238, 0.15);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 97, 238, 0.3);
}

.dropdown-item {
    color: #475569 !important; /* High contrast text on solid white */
    padding: 10px 20px !important;
    transition: var(--transition) !important;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(67, 97, 238, 0.06) !important;
    color: var(--primary-color, var(--accent-blue)) !important;
    transform: translateX(6px);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== CARDS / GLASSMORPHISM CONTAINER ===== */
.service-card,
.service-card-modern,
.project-card,
.project-item,
.testimonial-item,
.team-item,
.value-item,
.statistic-item,
.blog-card {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-border) !important;
    border-radius: var(--border-radius) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition) !important;
    box-shadow: var(--shadow-glass);
}

.service-card:hover,
.service-card-modern:hover,
.project-card:hover,
.project-item:hover,
.testimonial-item:hover,
.team-item:hover,
.value-item:hover,
.statistic-item:hover,
.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--dark-border-hover) !important;
    box-shadow: var(--shadow-glass), var(--shadow-neon);
}

/* Card Text Readability Overrides */
.service-card *,
.service-card-modern *,
.project-card *,
.project-item *,
.testimonial-item *,
.team-item *,
.value-item *,
.statistic-item *,
.blog-card * {
    color: var(--text-light);
}

.service-card p,
.service-card-modern p,
.project-card p,
.project-item p,
.testimonial-item p,
.team-item p,
.value-item p,
.statistic-item p,
.blog-card p,
.service-card li,
.value-item li {
    color: var(--text-muted) !important;
}

.service-card h1, .service-card h2, .service-card h3, .service-card h4, .service-card h5, .service-card h6,
.project-card h1, .project-card h2, .project-card h3, .project-card h4, .project-card h5, .project-card h6,
.testimonial-item h1, .testimonial-item h2, .testimonial-item h3, .testimonial-item h4, .testimonial-item h5, .testimonial-item h6,
.team-item h1, .team-item h2, .team-item h3, .team-item h4, .team-item h5, .team-item h6,
.value-item h1, .value-item h2, .value-item h3, .value-item h4, .value-item h5, .value-item h6,
.statistic-item h1, .statistic-item h2, .statistic-item h3, .statistic-item h4, .statistic-item h5, .statistic-item h6,
.blog-card h1, .blog-card h2, .blog-card h3, .blog-card h4, .blog-card h5, .blog-card h6 {
    color: var(--text-light) !important;
}

/* ===== HERO CAROUSEL ADAPTATIONS ===== */
.carousel-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%) !important;
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption h4,
.carousel-caption h5,
.carousel-caption h6,
.carousel-caption p,
.carousel-caption span,
.carousel-caption a,
.carousel-caption * {
    color: #ffffff !important;
}

.carousel-caption h1 {
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    font-size: 3.8rem !important;
}

.carousel-caption .lead {
    color: var(--text-light) !important;
    opacity: 0.9;
}

/* ===== STATISTICS UTILITIES ===== */
.statistic-number {
    background: linear-gradient(135deg, var(--primary-color, var(--accent-blue)), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ===== TEAM SLIDER & DETAILS ===== */
.team-img img {
    border: 4px solid var(--dark-border) !important;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.team-item:hover .team-img img {
    border-color: var(--primary-color, var(--accent-blue)) !important;
    transform: scale(1.05);
}

/* ===== PROMO MARQUEE STYLING ===== */
.promo-marquee {
    background-color: var(--marquee-bg, #4361EE) !important;
    color: var(--marquee-text, #ffffff) !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    z-index: 1040;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: inline-flex;
    animation: marqueeAnimation 35s linear infinite;
    gap: 3rem;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding-right: 2rem;
}

.marquee-item strong {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 2px 6px;
}

@keyframes marqueeAnimation {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ===== FORM CONTROLS & INPUTS (DARK MODE) ===== */
.form-control, .form-select, textarea {
    background-color: #ffffff !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--text-light) !important;
    border-radius: 8px !important;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus, textarea:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 12px rgba(67, 97, 238, 0.2) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

/* ===== BADGE PILLS ===== */
.badge-pill-primary {
    background: rgba(0, 119, 255, 0.1);
    color: var(--primary-color, var(--accent-blue));
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== IMAGE HOVER EFFECTS ===== */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.img-hover-zoom img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.img-hover-zoom:hover img {
    transform: scale(1.06);
}

/* ===== SECTION LABELS ===== */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color, var(--accent-blue));
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== COMPREHENSIVE PREMIUM FOOTER ===== */
footer {
    background: #ffffff !important;
    border-top: 1px solid var(--dark-border) !important;
    color: var(--text-muted);
    padding: 80px 0 0 0 !important;
    font-family: 'Inter', sans-serif;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-widget h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
    color: var(--text-light) !important;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-color) !important;
    border-radius: 2px;
}

.footer-description {
    line-height: 1.7;
    font-size: 0.95rem;
    margin-top: 20px;
    margin-bottom: 24px;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color) !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
}

/* Footer Quick Links & Lists */
.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 0.75rem;
    margin-right: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    transform: translateX(4px);
}

.footer-links a:hover i {
    color: var(--primary-color);
}

/* Contact Info list */
.contact-info {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info li i {
    color: var(--primary-color);
    margin-top: 4px;
    margin-right: 12px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-info li span {
    flex: 1;
}

/* Footer Bottom bar */
.footer-bottom {
    background: #f8fafc !important;
    border-top: 1px solid rgba(67, 97, 238, 0.08);
    padding: 24px 0 !important;
    margin-top: 60px;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 767.98px) {
    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 10px;
    }
}

/* ===== UTILITIES & SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 50px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color, var(--accent-blue));
}

/* Back to Top */
#backToTop {
    background: linear-gradient(135deg, var(--primary-color, var(--accent-blue)), #ffffff);
    border: none;
    box-shadow: var(--shadow-neon);
    color: var(--accent-black) !important;
}

#backToTop:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 119, 255, 0.5);
}

/* ===== PAGE SPECIFIC LAYOUT ADJUSTMENTS ===== */
.page-header {
    background: linear-gradient(135deg, #030712 0%, #0b132b 100%) !important;
    border-bottom: 1px solid var(--dark-border);
}

.section-padding {
    padding: 6rem 0;
}

/* ===== BOOTSTRAP ACCORDION (DARK THEME) ===== */
.accordion {
    --bs-accordion-bg: var(--dark-card) !important;
    --bs-accordion-color: var(--text-light) !important;
    --bs-accordion-btn-bg: var(--dark-card) !important;
    --bs-accordion-btn-color: var(--text-light) !important;
    --bs-accordion-active-bg: rgba(0, 119, 255, 0.08) !important;
    --bs-accordion-active-color: var(--primary-color, var(--accent-blue)) !important;
    --bs-accordion-btn-focus-box-shadow: 0 0 12px rgba(0, 119, 255, 0.25) !important;
    --bs-accordion-btn-focus-border-color: var(--primary-color, var(--accent-blue)) !important;
    border: 1px solid var(--dark-border) !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--dark-border) !important;
}

.accordion-item:last-child {
    border-bottom: none !important;
}

.accordion-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.accordion-button::after {
    filter: invert(1) !important; /* Makes the arrow white */
}

/* ===== LIST GROUPS ===== */
.list-group-item {
    background-color: var(--dark-card) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--dark-border) !important;
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-light) !important;
}

.list-group-item.active {
    background-color: var(--primary-color, var(--accent-blue)) !important;
    border-color: var(--primary-color, var(--accent-blue)) !important;
    color: #ffffff !important;
}

.list-group-item.active * {
    color: #ffffff !important;
}

/* ===== FAQ CONTENT STYLING ===== */
.faq-answer blockquote {
    border-left: 4px solid var(--primary-color, var(--accent-blue)) !important;
    padding: 1.2rem 1.8rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    margin: 1.5rem 0 !important;
    font-style: italic !important;
    color: var(--text-light) !important;
    border-radius: 0 8px 8px 0;
}

.faq-answer code {
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 4px !important;
    color: var(--primary-color, var(--accent-blue)) !important;
}

.faq-answer pre {
    background: #090e1a !important;
    border: 1px solid var(--dark-border) !important;
    border-radius: var(--border-radius) !important;
    padding: 1.2rem !important;
}

/* ===== BRAND LOGO RESPONSIVENESS ===== */
.navbar-brand img, .logo-container img {
    display: block;
    height: 52px;
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-brand img:hover, .logo-container img:hover {
    transform: scale(1.03);
}

/* ===== TOPBAR SOCIAL ICONS ===== */
.social-icon-top {
    width: 32px;
    height: 32px;
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--text-muted) !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon-top:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
}

@media (max-width: 1199.98px) {
    .navbar-brand img, .logo-container img {
        max-height: 48px;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand img, .logo-container img {
        max-height: 44px;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand img, .logo-container img {
        max-height: 40px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img, .logo-container img {
        max-height: 36px;
    }
}

/* ===== HERO SLIDER DOTS ===== */
.slider-dot-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(67, 97, 238, 0.2) !important;
    transition: var(--transition);
    cursor: pointer;
}

.slider-dot-btn.active {
    background-color: var(--primary-color) !important;
    width: 24px !important;
    border-radius: 4px !important;
}