:root {
    /* Core Palette: Red, White, Black */
    --primary-red: #DC143C;
    /* Crimson Red */
    --hover-red: #B00B29;
    --pure-black: #000000;
    --off-black: #0a0a0a;
    --pure-white: #ffffff;

    /* Light Mode Glass */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);

    /* Text Colors - Light Mode */
    --text-primary: #000000;
    --text-secondary: #333333;
    --glass-blur: 10px;
}

body {
    background-color: var(--pure-white);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.15);
}

/* Colors & Buttons */
.text-red {
    color: var(--primary-red) !important;
}

.btn-primary-red {
    background-color: var(--primary-red);
    color: var(--pure-white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-red:hover {
    background-color: var(--hover-red);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.4);
    transform: scale(1.05);
}

/* Navbar */
.navbar-glass {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red) !important;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 60% 50%, rgba(220, 20, 60, 0.05) 0%, rgba(255, 255, 255, 1) 70%);
    overflow: hidden;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

/* Floating Shapes Animation */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-red);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #550000;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {

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

    50% {
        transform: translate(30px, 50px);
    }
}

/* Services */
.service-icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover .service-icon-box {
    background: var(--primary-red);
    color: var(--pure-white);
    transform: rotateY(360deg);
}

/* Contact Form */
.form-glass {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.form-glass:focus {
    background: white;
    border-color: var(--primary-red);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
}

.form-glass::placeholder {
    color: #888;
}

/* Service Animation - Minimalist Timeline */
.hero-visual {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

.animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* Animated Service Display */
.service-display {
    width: 100%;
    padding: 0;
}

.service-header {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeSlideIn 0.8s forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.service-category-badge {
    display: inline-block;
    background: rgba(220, 20, 60, 0.15);
    color: #DC143C;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.service-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #000000;
    /* Black for Light Theme */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #000000 0%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.8);
    /* Light background */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Dark border */
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Add depth */
    opacity: 0;
    animation: cardSlideIn 0.6s forwards;
}

.info-card:nth-child(1) {
    animation-delay: 0.2s;
}

.info-card:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.info-card-label {
    font-size: 0.75rem;
    color: #666666;
    /* Dark gray for light theme */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #DC143C;
    font-family: 'Montserrat', sans-serif;
}

.info-card-sub {
    font-size: 0.85rem;
    color: #666666;
    /* Dark gray for light theme */
    margin-top: 0.25rem;
}

/* Features Timeline */
.features-timeline {
    position: relative;
    padding-left: 2rem;
}

.features-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #DC143C, transparent);
    animation: timelineGrow 1.5s forwards;
    animation-delay: 0.4s;
}

@keyframes timelineGrow {
    to {
        height: 100%;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: timelineItemIn 0.5s forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes timelineItemIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: #DC143C;
    border-radius: 50%;
    border: 2px solid #ffffff;
    /* White border for light theme */
}

.timeline-item-text {
    color: #000000;
    /* Black for light theme */
    font-size: 1rem;
    line-height: 1.6;
}

/* Progress Indicator */
.service-progress {
    display: flex;
    gap: 8px;
    margin-top: 2rem;
    justify-content: center;
}

.progress-bar {
    height: 4px;
    flex: 1;
    background: rgba(0, 0, 0, 0.1);
    /* Dark for light theme */
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar.active {
    background: rgba(220, 20, 60, 0.3);
}

.progress-bar.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #DC143C;
    animation: progressFill 5s linear;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Transitions */
.service-display.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .service-name {
        font-size: 2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .info-card-value {
        font-size: 1.5rem;
    }
}

/* Service Explorer & Premium Card Tweaks */
.bg-red-soft {
    background: rgba(220, 20, 60, 0.1);
}

.hover-red:hover {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: white !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

#categoryFilters button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
}

#categoryFilters button.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

/* Premium Category Cards */
.category-card {
    background: var(--pure-white);
    border-radius: 24px;
    padding: 0;
    /* Content padding handled inside */
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.category-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: transform 0.6s ease;
}

.category-card:hover .category-bg-pattern {
    transform: translate(20%, -20%) scale(1.2);
    background: radial-gradient(circle, rgba(220, 20, 60, 0.08) 0%, transparent 70%);
}

.category-icon-wrapper {
    padding: 2.5rem 2.5rem 1rem 2.5rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: #fdfdfd;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.category-content {
    padding: 0 2.5rem 2.5rem 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 20, 60, 0.1);
    box-shadow: 0 25px 50px rgba(220, 20, 60, 0.08);
}

.category-card:hover .category-icon {
    background: var(--primary-red);
    color: var(--pure-white);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.2);
}

.category-action {
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-action {
    opacity: 1;
    transform: translateY(0);
}

/* Explorer Modal Styles */
.explorer-header {
    background: var(--pure-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.explorer-search-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    max-width: 600px;
}

.explorer-search-group input {
    background: transparent;
    font-size: 0.95rem;
}

.explorer-sidebar {
    width: 320px;
    height: calc(100vh - 85px);
    overflow-y: auto;
    background: #fdfdfd;
}

.explorer-content {
    height: calc(100vh - 85px);
    overflow-y: auto;
    background: var(--pure-white);
}

.explorer-nav-item {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.explorer-nav-item:hover {
    background: rgba(220, 20, 60, 0.03);
    color: var(--primary-red);
    padding-left: 1.5rem;
}

.explorer-nav-item.active {
    background: rgba(220, 20, 60, 0.08);
    color: var(--primary-red);
    border-color: rgba(220, 20, 60, 0.1);
    font-weight: 600;
}


/* Deeply Nested Sidebar Items */
.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #adb5bd;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.sub-tier-container {
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 2px solid rgba(0, 0, 0, 0.03);
    margin-left: 0.8rem;
}

.explorer-nav-item.tier-2 {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.explorer-nav-item.tier-3 {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    color: var(--text-secondary);
}

.explorer-nav-item.tier-3:hover,
.explorer-nav-item.tier-3.active {
    color: var(--primary-red);
    background: transparent;
    padding-left: 1.25rem;
}

.op-25 {
    opacity: 0.25;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .service-name {
        font-size: 2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .info-card-value {
        font-size: 1.5rem;
    }

    .explorer-sidebar {
        width: 100%;
        height: auto;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .explorer-content {
        height: auto;
    }


    .op-5 {
        opacity: 0.5;
    }
}

/* Drill-Down Cards */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.description-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explorer-nav-item:hover i {
    transform: translateX(3px);
    opacity: 1;
}

/* Custom Scrollbar for Explorer */
.explorer-sidebar::-webkit-scrollbar,
.explorer-content::-webkit-scrollbar {
    width: 6px;
}

.explorer-sidebar::-webkit-scrollbar-track,
.explorer-content::-webkit-scrollbar-track {
    background: transparent;
}

.explorer-sidebar::-webkit-scrollbar-thumb,
.explorer-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.explorer-sidebar::-webkit-scrollbar-thumb:hover,
.explorer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 20, 60, 0.2);
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}
/* Slim Scroll for Cards */
.slim-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.slim-scroll::-webkit-scrollbar {
    width: 4px;
}
.slim-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.slim-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.slim-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(220, 20, 60, 0.4);
}

/* Floating Surface Card Design */
.floating-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateZ(0);
}

.floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(220, 20, 60, 0.1) !important;
}

.floating-card .service-title {
    color: #2c3e50;
    font-size: 1.1rem;
}
