/*
 * Grafia - Custom Style System
 * Designed with a Luxury Dark Automotive Aesthetic
 * Primary Colors: #111111, #181818, Accent Red: #ff2d55, Accent Blue: #0099ff
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: #181818;
    --accent-red: #ff2d55;
    --accent-blue: #0099ff;
    --text-white: #ffffff;
    --text-gray: #aaaaaa;
    --text-muted: #666666;
    --glass-bg: rgba(18, 18, 18, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
    --neon-shadow-red: 0 0 15px rgba(255, 45, 85, 0.4);
    --neon-shadow-blue: 0 0 15px rgba(0, 153, 255, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #252525;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Reset and Core Styles */
html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title h2 {
    overflow-wrap: break-word;
    word-break: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-futuristic {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-red);
}

/* Preloader Overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-red);
    border-right: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 3px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-logo span {
    color: var(--accent-red);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Header & Navigation */
.navbar-custom {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    padding: 20px 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(0px);
}

.navbar-custom.scrolled {
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand-img {
    height: 45px;
    transition: var(--transition-smooth);
}

.navbar-custom.scrolled .navbar-brand-img {
    height: 38px;
}

.nav-link-custom {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px !important;
    position: relative;
    color: var(--text-gray) !important;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    transition: var(--transition-smooth);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: calc(100% - 40px);
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--text-white) !important;
    text-shadow: 0 0 10px rgba(255, 45, 85, 0.3);
}

.navbar-toggler-custom {
    border: none;
    outline: none !important;
    padding: 5px;
}

.navbar-toggler-icon-custom {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    margin: 6px 0;
    transition: var(--transition-smooth);
}

.navbar-toggler-custom:not(.collapsed) .navbar-toggler-icon-custom:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.navbar-toggler-custom:not(.collapsed) .navbar-toggler-icon-custom:nth-child(2) {
    opacity: 0;
}

.navbar-toggler-custom:not(.collapsed) .navbar-toggler-icon-custom:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--accent-red), #d61840);
    color: var(--text-white);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
    box-shadow: var(--neon-shadow-red);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    z-index: -1;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 45, 85, 0.7);
}

.btn-outline-premium {
    background: transparent;
    color: var(--text-white);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 13px 31px;
    border: 2px solid var(--accent-blue);
    border-radius: 4px;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
    box-shadow: var(--neon-shadow-blue);
}

.btn-outline-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-blue);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-outline-premium:hover::before {
    width: 100%;
}

.btn-outline-premium:hover {
    color: #000;
    font-weight: 800;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.7);
}

/* Sections */
.section-padding {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bg-dark-secondary {
    background-color: var(--bg-secondary);
}

.section-title {
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
}

.section-title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    margin: 15px 0 0;
    border-radius: 2px;
}

.text-center .section-title-line {
    margin: 15px auto 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(26, 4, 10, 0.3) 0%, rgba(0, 0, 0, 0.95) 90%);
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    animation: fadeInDown 0.8s both;
}

.hero-title {
    font-size: 65px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 25px;
    animation: fadeInUp 1s 0.2s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s 0.6s both;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1.2s 0.3s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 10s ease;
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.08);
}

.hero-glow-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
    z-index: -1;
    border-radius: 16px;
    opacity: 0.3;
    filter: blur(10px);
}

/* Hero Banner Carousel Custom */
.carousel-indicators-hero {
    bottom: 12px !important;
    margin-bottom: 0;
    z-index: 10;
}

.carousel-indicators-hero [data-bs-target] {
    width: 24px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: none !important;
    margin: 0 4px !important;
    transition: all 0.3s ease;
}

.carousel-indicators-hero .active {
    width: 32px !important;
    background-color: var(--accent-red) !important;
    box-shadow: 0 0 10px var(--accent-red);
}

#heroBannerCarousel .carousel-control-prev,
#heroBannerCarousel .carousel-control-next {
    width: 12%;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#heroBannerCarousel:hover .carousel-control-prev,
#heroBannerCarousel:hover .carousel-control-next {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Service Grid & Cards */
.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 45, 85, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 45, 85, 0.05);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95), transparent 70%);
}

.service-card-icon {
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-white);
    box-shadow: var(--neon-shadow-red);
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-icon {
    background-color: var(--accent-blue);
    box-shadow: var(--neon-shadow-blue);
    transform: rotate(360deg);
}

.service-card-body {
    padding: 25px;
}

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card-text {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
}

.service-card-link i {
    margin-left: 8px;
    transition: var(--transition-smooth);
}

.service-card-link:hover {
    color: var(--accent-red);
}

.service-card-link:hover i {
    transform: translateX(5px);
}

/* Our Process Timeline */
.process-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 15px;
    width: 2px;
    height: calc(100% + 40px);
    background-color: #252525;
}

.process-step:last-child::before {
    display: none;
}

.process-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background-color: var(--bg-primary);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-red);
    box-shadow: var(--neon-shadow-red);
    z-index: 1;
}

.process-step:nth-child(even) .process-number {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: var(--neon-shadow-blue);
}

.process-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.process-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Stats Counter */
.stat-box {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 153, 255, 0.2);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 45px;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-white);
}

/* Works / Portfolio Filter */
.portfolio-filters {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 24px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: var(--neon-shadow-red);
}

.portfolio-item {
    margin-bottom: 30px;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.portfolio-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 10%, rgba(10, 10, 10, 0.3) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition-smooth);
}

.portfolio-wrapper:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-wrapper:hover .portfolio-hover-overlay {
    opacity: 1;
}

.portfolio-cat {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.portfolio-view-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid var(--accent-red);
    padding-bottom: 2px;
    width: fit-content;
}

.portfolio-view-link i {
    margin-left: 6px;
    font-size: 10px;
    transition: var(--transition-smooth);
}

.portfolio-view-link:hover {
    color: var(--accent-red);
}

.portfolio-view-link:hover i {
    transform: translateX(4px);
}

/* Before / After Slider Component */
.ba-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.ba-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 2;
    width: 50%;
    /* initial split */
}

.ba-slider-bar {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-red), var(--accent-blue));
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.8);
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
    transition: border-color 0.2s;
}

.ba-slider-handle i {
    color: var(--text-white);
    font-size: 14px;
}

.ba-slider-bar:hover .ba-slider-handle,
.ba-slider-handle:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.5);
}

.ba-label {
    position: absolute;
    bottom: 20px;
    z-index: 4;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 6px 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    pointer-events: none;
    border: 1px solid var(--glass-border);
}

.ba-label-before {
    left: 20px;
    border-left: 2px solid var(--accent-red);
}

.ba-label-after {
    right: 20px;
    border-right: 2px solid var(--accent-blue);
}

/* Lightbox Modal */
.lightbox-modal .modal-content {
    background-color: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.lightbox-modal .modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
}

.lightbox-modal .modal-title {
    font-size: 18px;
    text-transform: uppercase;
}

.lightbox-modal .btn-close {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-white) !important;
    opacity: 0.8;
    filter: invert(1);
}

.lightbox-modal .modal-body {
    padding: 10px 30px 30px;
    text-align: center;
}

.lightbox-img-wrapper {
    max-height: 70vh;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-meta {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Modern Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-red), var(--accent-blue));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

@media (max-width: 767.98px) {
    .timeline::after {
        left: 31px;
    }
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

@media (max-width: 767.98px) {
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    right: -9px;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-red);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--neon-shadow-red);
}

.timeline-item:nth-child(even)::after {
    border-color: var(--accent-blue);
    box-shadow: var(--neon-shadow-blue);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

@media (max-width: 767.98px) {
    .timeline-item.right {
        left: 0%;
    }

    .timeline-item::after {
        left: 22px;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 22px;
    }
}

.timeline-item.left::after {
    right: -9px;
}

.timeline-item.right::after {
    left: -9px;
}

.timeline-content {
    padding: 25px;
    background-color: var(--bg-card);
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.timeline-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 5px;
}

.timeline-item:nth-child(even) .timeline-year {
    color: var(--accent-blue);
}

.timeline-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Glassmorphism Forms */
.form-glass {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.form-group-custom {
    margin-bottom: 25px;
    position: relative;
}

.form-control-custom {
    background-color: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 14px 20px;
    color: var(--text-white) !important;
    font-size: 14px;
    width: 100%;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    background-color: rgba(10, 10, 10, 0.8);
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 45, 85, 0.2);
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

textarea.form-control-custom {
    resize: none;
    height: 150px;
}

.form-label-custom {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin-bottom: 8px;
    display: block;
}

/* Alert Notification Banner */
.alert-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-white);
    padding: 15px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.alert-custom-success {
    border-left: 4px solid var(--accent-blue);
}

.alert-custom-error {
    border-left: 4px solid var(--accent-red);
}

.alert-custom-icon {
    font-size: 20px;
    margin-right: 15px;
}

.alert-custom-success .alert-custom-icon {
    color: var(--accent-blue);
}

.alert-custom-error .alert-custom-icon {
    color: var(--accent-red);
}

/* Contact Info Cards */
.contact-info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.contact-info-card:hover {
    border-color: rgba(0, 153, 255, 0.2);
    transform: translateY(-3px);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--accent-blue);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info-card:nth-child(even) .contact-info-icon {
    background-color: rgba(255, 45, 85, 0.1);
    border-color: rgba(255, 45, 85, 0.2);
    color: var(--accent-red);
}

.contact-info-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.contact-info-card:nth-child(even) .contact-info-title {
    color: var(--accent-red);
}

.contact-info-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
}

/* Map Section */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Floating Elements */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-white) !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: var(--neon-shadow-red);
    transform: translateY(-3px);
}

/* Testimonials Carousel Custom */
.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    margin: 20px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
}

.testimonial-quote {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-quote::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: -15px;
    font-size: 40px;
    color: rgba(255, 45, 85, 0.08);
    z-index: -1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    box-shadow: var(--neon-shadow-blue);
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--accent-blue);
}

.testimonial-info h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.testimonial-info p {
    font-size: 11px;
    color: var(--accent-red);
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.carousel-indicators-custom {
    bottom: -40px !important;
}

.carousel-indicators-custom [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: var(--text-muted) !important;
    border: none !important;
    margin: 0 6px !important;
}

.carousel-indicators-custom .active {
    background-color: var(--accent-red) !important;
    box-shadow: var(--neon-shadow-red);
}

/* Footer Section */
.footer-section {
    background-color: #060606;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: block;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-desc {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-social-icon:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: var(--neon-shadow-red);
    transform: translateY(-3px);
}

.footer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-gray);
    font-size: 13px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-icon {
    color: var(--accent-blue);
    font-size: 14px;
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-text {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}

/* Admin Styling */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #181818 0%, #0a0a0a 100%);
    padding: 20px;
}

.admin-login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.admin-login-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-logo span {
    color: var(--accent-red);
}

.admin-dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: #060606;
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .admin-dashboard-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 20px;
    }
}

.admin-sidebar-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    display: block;
    text-align: center;
}

.admin-sidebar-logo span {
    color: var(--accent-red);
}

.admin-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-gray);
    border-radius: 6px;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-sidebar-link i {
    margin-right: 15px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background-color: var(--bg-card);
    color: var(--text-white);
    border-left: 3px solid var(--accent-red);
}

.admin-sidebar-link.logout {
    border-left-color: var(--accent-red);
}

.admin-sidebar-link.logout:hover {
    background-color: rgba(255, 45, 85, 0.1);
    color: var(--accent-red);
}

.admin-main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: var(--bg-primary);
    overflow-y: auto;
}

@media (max-width: 575.98px) {
    .admin-main-content {
        padding: 20px;
    }
}

.admin-page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-page-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

.admin-user-badge {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.admin-user-badge i {
    color: var(--accent-blue);
    margin-right: 8px;
}

.admin-stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.admin-stat-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 5px;
    color: var(--text-white);
}

.admin-stat-info p {
    color: var(--text-gray);
    font-size: 13px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    margin: 0;
}

.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 45, 85, 0.1);
    color: var(--accent-red);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.admin-stat-card.blue .admin-stat-icon {
    background-color: rgba(0, 153, 255, 0.1);
    color: var(--accent-blue);
}

/* Admin Tables */
.admin-table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    background-color: #121212;
    border-bottom: 2px solid var(--glass-border) !important;
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 13px;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-white);
}

.admin-btn-action {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    border: none;
    transition: var(--transition-smooth);
}

.admin-btn-view {
    background-color: rgba(0, 153, 255, 0.1);
    color: var(--accent-blue);
}

.admin-btn-view:hover {
    background-color: var(--accent-blue);
    color: #000;
}

.admin-btn-delete {
    background-color: rgba(255, 45, 85, 0.1);
    color: var(--accent-red);
}

.admin-btn-delete:hover {
    background-color: var(--accent-red);
    color: var(--text-white);
}

/* Modal Custom Admin styling */
.admin-modal .modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-white);
}

.admin-modal .modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 30px;
}

.admin-modal .modal-header h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.admin-modal .modal-body {
    padding: 30px;
}

.admin-modal .modal-footer {
    border-top: 1px solid var(--glass-border);
    padding: 20px 30px;
}

.message-detail-group {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 15px;
}

.message-detail-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.message-detail-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.message-detail-val {
    font-size: 14px;
    color: var(--text-white);
    line-height: 1.6;
}

/* 404 Page Styling */
.error-page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.error-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.error-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.error-desc {
    color: var(--text-gray);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness System
   ========================================================================== */

/* Large Tablets & Mobile Landscape (< 992px) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(12, 12, 12, 0.96);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        backdrop-filter: blur(20px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    }

    .nav-link-custom {
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link-custom::after {
        display: none;
    }

    .navbar-collapse .btn-premium {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    .hero-section {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-image-container {
        margin-top: 35px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .ba-container {
        height: 340px;
    }

    .form-glass {
        padding: 30px 24px;
    }
}

/* Medium Mobile / Standard Smartphones (< 767.98px) */
@media (max-width: 767.98px) {
    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .hero-tagline {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-box {
        padding: 25px 15px;
    }

    .portfolio-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .ba-container {
        height: 280px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .footer-section {
        padding: 50px 0 20px;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: left;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Small Mobile Screens / Very Narrow Viewports (< 575.98px e.g., 318px - 480px) */
@media (max-width: 575.98px) {
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        padding-top: 95px;
        padding-bottom: 45px;
    }

    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 25px;
        letter-spacing: 0.5px;
    }

    .hero-tagline {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .btn-premium, .btn-outline-premium {
        padding: 12px 20px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .section-title h2 {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .section-subtitle {
        font-size: 10.5px;
        letter-spacing: 2px;
    }

    .hero-glow-1, .hero-glow-2 {
        width: 250px;
        height: 250px;
        opacity: 0.12;
    }

    .service-card-body {
        padding: 18px;
    }

    .service-card-title {
        font-size: 16px;
    }

    .ba-container {
        height: 220px;
    }

    .map-container {
        height: 280px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 20px;
    }
}