/* Custom CSS for Aslan Digital Solution */

:root {
    --primary-orange: #ff6b00;
    --primary-orange-hover: #ff8533;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

/* Typography & Utilities */
.text-orange { color: var(--primary-orange) !important; }
.bg-orange { background-color: var(--primary-orange) !important; }
.text-gray { color: var(--text-gray) !important; }
.bg-black { background-color: var(--dark-bg) !important; }
.bg-darker { background-color: var(--darker-bg) !important; }
.bg-orange-subtle { background-color: rgba(255, 107, 0, 0.1) !important; }

.py-100 { padding-top: 100px; padding-bottom: 100px; }
.max-w-700 { max-width: 700px; }
.tracking-wide { letter-spacing: 2px; }

/* Buttons */
.btn-orange {
    background: linear-gradient(135deg, var(--primary-orange), #e65100);
    border: none;
    transition: all 0.3s ease;
}
.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    background: linear-gradient(135deg, #e65100, var(--primary-orange));
    color: white;
}
.btn-outline-orange {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    background: transparent;
}
.btn-outline-orange:hover {
    background: var(--primary-orange);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}
.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.05); }
.hover-orange:hover { color: var(--primary-orange) !important; }

/* Navbar & Megamenu */
.custom-navbar {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.custom-navbar.scrolled {
    background: rgba(10, 10, 10, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.navbar-brand { font-size: 1.8rem; }
.logo-subtext { font-size: 0.8rem; letter-spacing: 2px; display: block; margin-top: -8px; font-family: 'Outfit', sans-serif;}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-orange) !important;
}

/* Megamenu styling */
@media (min-width: 992px) {
    .has-megamenu { position: static !important; }
    .has-megamenu:hover .megamenu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    .megamenu {
        display: none;
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 0;
        border-radius: 0 0 15px 15px;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
        border: none;
        border-bottom: 3px solid var(--primary-orange);
    }
}
.bg-dark-glass {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
}
.megamenu-list li { margin-bottom: 8px; }
.megamenu-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}
.megamenu-list a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 80px;
}
.text-gradient-orange {
    background: linear-gradient(90deg, #fff, var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title {
    line-height: 1.1;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* Background Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 10s infinite alternate ease-in-out;
}
.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-orange) 0%, transparent 70%);
}
.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.5) 0%, transparent 70%);
    animation-delay: -5s;
}
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glass Cards & Graphics */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.glass-card-hover:hover {
    border-color: rgba(255, 107, 0, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.1);
}

.hero-graphics { height: 500px; }
.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 250px;
    z-index: 2;
}
.circle { width: 12px; height: 12px; border-radius: 50%; }
.code-lines .line {
    height: 8px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 15px;
    border-radius: 4px;
}
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    z-index: 3;
    background: rgba(20, 20, 20, 0.8);
}
.float-1 { top: 20%; right: 0; animation: floatUp 4s infinite alternate ease-in-out; }
.float-2 { bottom: 15%; left: 0; animation: floatUp 5s infinite alternate ease-in-out reverse; }

@keyframes floatUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* About Section */
.glow-box {
    position: absolute;
    inset: 0;
    background: var(--primary-orange);
    filter: blur(50px);
    opacity: 0.2;
    border-radius: 50%;
    transform: translate(10px, 10px);
}
.image-fx {
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Infinite Marquee */
.marquee-container {
    height: 60px;
    width: 100%;
}
.marquee-content {
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CTA Section */
.cta-section {
    position: relative;
}
.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Footer */
.social-links a {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--primary-orange) !important;
    transform: translateY(-3px);
}
.footer-links a {
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary-orange) !important;
    transform: translateX(5px);
}

/* Responsive fixes */
@media (max-width: 991px) {
    .megamenu {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background: transparent !important;
        padding-left: 1rem;
    }
    .dropdown-menu.show {
        display: block;
    }
    .navbar-collapse {
        background: var(--dark-bg);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}


/* Custom Accordion Styles */
.custom-accordion .accordion-button {
    color: #fff !important;
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-orange) !important;
    background-color: transparent;
    box-shadow: none;
}
.custom-accordion .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(56%) sepia(93%) saturate(3070%) hue-rotate(352deg) brightness(101%) contrast(106%); /* Orange equivalent */
}

/* Transform Scale */
.transform-scale-105 {
    transform: scale(1.05);
}
@media (max-width: 992px) {
    .transform-scale-105 {
        transform: scale(1);
    }
}
.group:hover .group-hover-scale {
    transform: scale(1.1);
}
