@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-dark: #0b0c10;
    --secondary-dark: #1f2833;
    --pure-white: #ffffff;
    --accent-red: #ff0000;
}

body {
    font-family: 'Poppins', sans-serif;
}

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
    z-index: 1030;
}

.main-header.sticky {
    background-color: var(--primary-dark);
}

/* Mobile Header Navigation */
@media (max-width: 991.98px) {
    .main-header .navbar-collapse {
        background-color: rgba(11, 12, 16, 0.98);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        border-radius: 12px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }
}

.bg_red {
    background-color: var(--accent-red);
    color: var(--pure-white);
    border: none;
}

.bg_red:hover {
    background-color: #cc0000;
    color: var(--pure-white);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-red), #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section {
    background-color: var(--primary-dark);
    color: var(--pure-white);
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-form-container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-custom {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.btn {
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Floating Parallax Cubes */
.cube {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    animation: float 15s infinite linear;
    z-index: 1;
}

.cube:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.cube:nth-child(2) { width: 120px; height: 120px; left: 25%; animation-duration: 22s; animation-delay: 2s; }
.cube:nth-child(3) { width: 60px; height: 60px; left: 60%; animation-duration: 14s; animation-delay: 5s; }
.cube:nth-child(4) { width: 90px; height: 90px; left: 80%; animation-duration: 19s; animation-delay: 1s; }
.cube:nth-child(5) { width: 150px; height: 150px; left: 50%; animation-duration: 25s; animation-delay: 4s; }

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Stars Background */
.star-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    max-width: 100%;
}

.star {
    position: absolute;
    background-color: #fff9e6;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 249, 230, 0.8);
    bottom: -30px;
    opacity: 0;
    animation: floatAndTwinkle infinite linear;
}

@keyframes floatAndTwinkle {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    30% {
        opacity: 1; /* Twinkle bright */
    }
    70% {
        opacity: 0.4; /* Twinkle dim */
    }
    100% {
        transform: translateY(-120vh); /* Drift upward past the top */
        opacity: 0;
    }
}

/* Individual Star Properties (Varied Sizes, Durations, and Delays) */
.star:nth-child(1) { width: 5px; height: 5px; left: 12%; animation-duration: 14s; animation-delay: 0s; }
.star:nth-child(2) { width: 3px; height: 3px; left: 28%; animation-duration: 18s; animation-delay: 2s; }
.star:nth-child(3) { width: 7px; height: 7px; left: 45%; animation-duration: 12s; animation-delay: 1s; }
.star:nth-child(4) { width: 4px; height: 4px; left: 60%; animation-duration: 20s; animation-delay: 4s; }
.star:nth-child(5) { width: 6px; height: 6px; left: 78%; animation-duration: 15s; animation-delay: 2.5s; }
.star:nth-child(6) { width: 5px; height: 5px; left: 88%; animation-duration: 19s; animation-delay: 5s; }
.star:nth-child(7) { width: 8px; height: 8px; left: 35%; animation-duration: 13s; animation-delay: 0.5s; }
.star:nth-child(8) { width: 3px; height: 3px; left: 15%; animation-duration: 22s; animation-delay: 6s; }
.star:nth-child(9) { width: 6px; height: 6px; left: 70%; animation-duration: 17s; animation-delay: 3s; }
.star:nth-child(10){ width: 4px; height: 4px; left: 52%; animation-duration: 16s; animation-delay: 1.5s; }

.grayscale-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.grayscale-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo {
    max-height: 60px;
    width: auto !important;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease-in-out;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.text-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1f2833;
    letter-spacing: 1px;
    white-space: nowrap;
}

.text-logo:hover {
    color: #ff0000;
}

/* Service Cards */
#services .card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#services .card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

#services .icon-wrapper {
    color: var(--accent-red) !important;
}

/* Portfolio Advanced Hover Effects */
.inner-box {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.image-box {
    height: 100%;
    width: 100%;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.overlay-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.9);
    opacity: 0;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* CRITICAL: Allows click to pass to portfolio-img */
}

.overlay-inner {
    text-align: center;
    color: white;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.inner-box:hover .image-box img {
    transform: scale(1.1);
}

.inner-box:hover .overlay-box {
    opacity: 1;
}

.inner-box:hover .overlay-inner {
    transform: translateY(0);
}

.overlay-inner i {
    color: var(--accent-red);
    margin-top: 15px;
    font-size: 1.5rem;
}

/* Custom Lightbox */
#customLightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    text-align: center;
    padding-top: 5vh;
}

#customLightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: 0 auto;
}

#customLightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 2.5rem;
    color: var(--pure-white);
    background: transparent;
    border: none;
    cursor: pointer;
}

.no-scroll {
    overflow: hidden;
}

/* Pricing Cards & Hover Effects */
.pricing-table .card {
    background-color: var(--pure-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease-in-out;
}

.pricing-table .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Middle Card Highlights */
.pricing-table .popular-card {
    border: 2px solid var(--accent-red) !important;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.15) !important;
}

.pricing-table .popular-badge {
    position: absolute;
    top: -16px;
    right: 24px;
    background-color: var(--accent-red);
    color: var(--pure-white);
    font-weight: bold;
    border-radius: 20px;
    padding: 5px 16px;
}

/* Pricing Typography */
.pricing-table .text-muted.text-decoration-line-through {
    text-decoration: line-through !important;
    font-size: 0.9rem !important;
    color: #888888 !important;
}

.pricing-table .display-6 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #0b0c10 !important;
}

/* Pricing List Styling */
.pricing-table ul {
    list-style: none;
    padding-left: 0;
}

.pricing-table ul li i {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745 !important;
}

/* Testimonial Cards */
.testimonial-section .card {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
}

/* Footer Styling */
.main-footer, .main-footer p, .main-footer li {
    color: #cccccc !important;
}

.main-footer a {
    color: var(--pure-white) !important;
    text-decoration: none !important;
    transition: color 0.3s ease-in-out;
}

.main-footer a:hover {
    color: var(--accent-red) !important;
}

/* Secure Image Attributes */
.secure-img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
    
    .text-logo {
        font-size: 0.9rem;
        height: 40px;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .inner-box {
        height: 250px;
    }
}