@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --clr-primary: #3b82f6;      /* Electric Blue */
    --clr-primary-dark: #2563eb;
    --clr-secondary: #8b5cf6;    /* Vibrant Purple */
    --clr-accent: #06b6d4;       /* Cyan */
    
    /* Backgrounds & Surfaces (Dark Theme Default) */
    --bg-base: #0f172a;          /* Deep Slate */
    --bg-surface: #1e293b;
    --bg-surface-glass: rgba(30, 41, 59, 0.7);
    --bg-surface-glass-light: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Borders & Shadows */
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animation Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-accent);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.glass-card {
    background: var(--bg-surface-glass-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Gradients & Highlights */
.text-gradient {
    /* fallback */
    color: var(--clr-primary);
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
}

/* Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    background: var(--clr-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-modern:hover {
    transform: translateY(-2px);
    background: var(--clr-primary-dark);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--text-primary) !important;
    box-shadow: none;
}

.btn-modern-outline:hover {
    background: var(--clr-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Utility Layouts */
.section-padding {
    padding: 6rem 0;
}

.container-modern {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Fixes for template overrides */
.rd-navbar-wrap { height: auto !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base); 
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary); 
}

/* =========================================
   HEADER & NAVBAR
========================================= */
.header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.m-navbar {
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    border-radius: 50px;
}

.m-navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.m-navbar-brand img {
    height: 36px !important;
    width: auto !important;
    max-width: none !important;
}

.m-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.m-nav-link {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    display: inline-block;
}

.m-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-primary);
    transition: width var(--transition-fast);
}

.m-nav-link:hover {
    color: var(--text-primary);
}

.m-nav-link:hover::after {
    width: 100%;
}

.m-navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   FOOTER
========================================= */
.footer-modern {
    background: #0f172a; /* Deep slate */
    color: var(--text-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.m-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    width: 100%;
}

.footer-modern h5 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--clr-primary);
    transform: translateX(3px);
}

.footer-brand img {
    margin-bottom: 1rem;
    opacity: 0.9;
    height: 36px !important;
    width: auto !important;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .m-navbar-toggler {
        display: block;
    }
    
    .m-nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 1.5rem;
        border-radius: 1rem;
        box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.4));
        gap: 1rem;
        margin-top: 1rem;
        z-index: 1010;
    }
    
    .m-nav-links.show {
        display: flex;
    }
}

/* =========================================
   HERO SECTION
========================================= */
.hero-modern {
    position: relative;
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: -100px; /* Offset the header */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* =========================================
   UTILITIES & COMPONENTS
========================================= */
.m-grid-1-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 992px) {
    .m-grid-1-2 { grid-template-columns: 1fr 1fr; }
}

.m-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .m-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .m-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.badge-modern {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--clr-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   PAGE BREADCRUMBS
========================================= */
.breadcrumbs-modern {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -100px; /* Offset the header */
    position: relative;
}

.breadcrumbs-modern h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.breadcrumbs-path {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.breadcrumbs-path li {
    color: var(--text-secondary);
}

.breadcrumbs-path li a {
    color: var(--clr-primary);
}

.breadcrumbs-path li a:hover {
    color: var(--clr-accent);
}

.breadcrumbs-path li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-muted);
}



