:root {
    --bg-dark: #000000;
    --bg-dark-alt: #0a0a0a;
    --bg-card: #121212;
    --bg-card-hover: #181818;
    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.3);
    --primary: #ffffff;
    --text-white: #ffffff;
    --text-slate: #a1a1aa;
    --text-muted: #71717a;
    --red: #ff2a4b;
    --red-hover: #e6002b;
    --red-soft: rgba(255, 42, 75, 0.12);
    --red-glow: rgba(255, 42, 75, 0.4);

    /* Backward compatibility aliases */
    --cyan: var(--red);
    --cyan-glow: var(--red-glow);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark) !important;
    color: var(--text-white);
    scroll-behavior: smooth;
}

/* Base Utilities */
.text-red,
.text-cyan {
    color: var(--red) !important;
}

.text-white-custom {
    color: #ffffff !important;
}

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

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

.bg-dark-alt {
    background-color: var(--bg-dark-alt) !important;
}

.bg-red,
.bg-cyan {
    background-color: var(--red) !important;
}

.bg-red-soft,
.bg-cyan-soft {
    background-color: var(--red-soft) !important;
    border: 1px solid rgba(255, 42, 75, 0.3);
}

/* Gradient text with high contrast Black/White/Red feel */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating red color gradient moving across text position */
.floating-red-text {
    background: linear-gradient(90deg, #ff2a4b 0%, #ffffff 25%, #ff2a4b 50%, #ff6b84 75%, #ff2a4b 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: floatRedColor 3.5s linear infinite;
    font-weight: 700;
    display: inline;
    text-shadow: 0 0 30px rgba(255, 42, 75, 0.3);
}

@keyframes floatRedColor {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Buttons */
.btn-red,
.btn-cyan {
    background: linear-gradient(135deg, #ff2a4b 0%, #d61c38 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-red:hover,
.btn-cyan:hover {
    box-shadow: 0 0 25px var(--red-glow);
    transform: translateY(-2px) scale(1.03);
    color: #ffffff !important;
}

.btn-outline-red,
.btn-outline-cyan {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-red:hover,
.btn-outline-cyan:hover,
.btn-outline-red.active,
.btn-outline-cyan.active {
    border-color: var(--red);
    background-color: var(--red);
    color: #ffffff !important;
    box-shadow: 0 0 20px var(--red-glow);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000 !important;
    border-color: #ffffff;
}

.btn-outline-red-sm,
.btn-outline-cyan-sm {
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-outline-red-sm:hover,
.btn-outline-cyan-sm:hover {
    background-color: var(--red);
    color: #ffffff;
    box-shadow: 0 0 15px var(--red-glow);
}

.shadow-glow {
    box-shadow: 0 10px 30px -5px var(--red-glow);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(16px);
    background-color: rgba(0, 0, 0, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.2rem 0;
}

.navbar.shadow-lg {
    background-color: rgba(0, 0, 0, 0.95) !important;
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.9) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.brand-dot {
    color: var(--red);
    font-size: 2rem;
    line-height: 0;
    vertical-align: middle;
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 6px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 22px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

/* Section styling */
section {
    padding: 110px 0;
    position: relative;
}

.hero-section {
    min-height: 85vh;
    padding-top: 100px;
    padding-bottom: 90px;
    background: radial-gradient(circle at 50% 40%, rgba(255, 42, 75, 0.09) 0%, rgba(10, 10, 10, 0.95) 75%);
    border-top: 1px solid rgba(255, 42, 75, 0.25);
    border-bottom: 1px solid rgba(255, 42, 75, 0.25);
    position: relative;
}

/* Professional Top & Bottom Hero Separators */
.hero-top-divider,
.hero-bottom-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 4;
}

.hero-top-divider {
    top: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 42, 75, 0.2) 20%, var(--red) 50%, rgba(255, 42, 75, 0.2) 80%, transparent 100%);
    box-shadow: 0 0 15px var(--red-glow);
}

.hero-bottom-divider {
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 42, 75, 0.2) 20%, var(--red) 50%, rgba(255, 42, 75, 0.2) 80%, transparent 100%);
    box-shadow: 0 0 15px var(--red-glow);
}

/* Brand Logo Box Styling */
.logo-box {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 42, 75, 0.4) !important;
    box-shadow: 0 0 15px rgba(255, 42, 75, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-brand:hover .logo-box {
    border-color: var(--red) !important;
    box-shadow: 0 0 20px var(--red-glow);
    transform: scale(1.05);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), var(--red-glow), rgba(255, 255, 255, 0.12), transparent);
    width: 100%;
}

/* Cards */
.card-custom {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 42, 75, 0.5);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 42, 75, 0.15);
}

.tech-card {
    position: absolute;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
    z-index: 3;
}

.card-laravel {
    top: 10%;
    left: -5%;
}

.card-wp {
    bottom: 15%;
    left: 0%;
}

.card-vue {
    top: 40%;
    right: -5%;
}

/* Background Blobs */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--red);
    filter: blur(170px);
    opacity: 0.08;
    z-index: 0;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    right: -10%;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-custom:hover .portfolio-overlay {
    opacity: 1;
}

.card-custom:hover img {
    transform: scale(1.08);
}

.transition-transform {
    transition: transform 0.5s ease;
}

/* Video / YouTube Cards */
.video-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--red);
    box-shadow: 0 20px 40px -10px var(--red-glow);
}

/* Testimonial Card */
.testimonial-card {
    background: #121212;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    transition: border-color 0.3s ease !important;
    transform: none !important;
    box-shadow: none !important;
    min-height: 400px;
}

.testimonial-card:hover {
    transform: none !important;
    border-color: rgba(255, 42, 75, 0.4) !important;
}

.rounded-circle-custom {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1;
}

/* Portfolio Filters */
.portfolio-filters .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.portfolio-filters .btn.active {
    background-color: var(--red);
    color: #ffffff;
    box-shadow: 0 0 15px var(--red-glow);
    border-color: var(--red);
}

.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* Form Inputs */
.form-control,
.form-select {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 12px var(--red-glow) !important;
}

.form-check-input:checked {
    background-color: var(--red) !important;
    border-color: var(--red) !important;
}

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

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

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

.hover-red:hover,
.hover-cyan:hover {
    color: var(--red) !important;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.floating-animation {
    animation: floating 3.5s ease-in-out infinite;
}

.floating-animation-slow {
    animation: floating 5.5s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-16px);
    }

    100% {
        transform: translateY(0px);
    }
}