/* ===========================
   BOOST EVENTS - Custom CSS
   ========================== */

/* Root Variables */
:root {
    --navy-dark: #0D1B2A;
    --navy-medium: #1a2d45;
    --blue-accent: #4A90D9;
    --white: #FFFFFF;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: var(--navy-dark);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
}

/* Loading State */
body.loaded {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===========================
   NAVBAR STYLES
   ========================== */

#navbar {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===========================
   HERO SECTION
   ========================== */

#home {
    position: relative;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 50%, var(--navy-dark) 100%);
}

/* Circuit Pattern Background */
.circuit-pattern {
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Particles Animation */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(74, 144, 217, 0.6);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* CTA Button */
.cta-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(74, 144, 217, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ===========================
   GLASS CARD EFFECT
   ========================== */

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

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 144, 217, 0.3);
    box-shadow: 0 8px 32px 0 rgba(74, 144, 217, 0.2);
}

/* ===========================
   HOVER LIFT EFFECT
   ========================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(74, 144, 217, 0.3);
}

/* ===========================
   SECTION STYLES
   ========================== */

section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(74, 144, 217, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ===========================
   WHATSAPP FLOATING BUTTON
   ========================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    margin: 0;
}

/* ===========================
   FORM STYLES
   ========================== */

input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

button[type="submit"] {
    box-shadow: 0 10px 30px rgba(74, 144, 217, 0.3);
}

button[type="submit"]:hover {
    box-shadow: 0 15px 40px rgba(74, 144, 217, 0.5);
}

/* ===========================
   SCROLL ANIMATIONS
   ========================== */

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   SCROLLBAR STYLING
   ========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--navy-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a7ec0;
}

/* ===========================
   RESPONSIVE DESIGN
   ========================== */

/* Mobile Devices */
@media (max-width: 768px) {
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .glass-card {
        padding: 24px !important;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    h2 {
        font-size: 3rem !important;
    }
}

/* ===========================
   UTILITY CLASSES
   ========================== */

.text-gradient {
    background: linear-gradient(135deg, var(--blue-accent) 0%, #6ab4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background-image: 
        linear-gradient(var(--navy-dark), var(--navy-dark)),
        linear-gradient(135deg, var(--blue-accent), #6ab4ff);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

/* ===========================
   LOADING STATES
   ========================== */

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 25%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===========================
   PRINT STYLES
   ========================== */

@media print {
    .whatsapp-float,
    #navbar,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===========================
   ACCESSIBILITY
   ========================== */

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--blue-accent);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-card {
        border: 2px solid white;
    }
    
    .cta-button {
        border: 2px solid white;
    }
}

/* ===========================
   RTL SPECIFIC ADJUSTMENTS
   ========================== */

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 30px;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

@media (max-width: 768px) {
    [dir="rtl"] .whatsapp-float {
        right: 20px;
        left: auto;
    }
}

/* ===========================
   ANIMATIONS & TRANSITIONS
   ========================== */

/* Pulse Animation for Icons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.glass-card:hover i {
    animation: pulse 1s ease-in-out infinite;
}

/* Bounce Animation for Scroll Indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(10px) translateX(-50%);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;


.fade-in,
.animate-fade-in,
.hero-content,
.section-header,
.why-card,
.service-card,
.idea-card,
.about-container,
.contact-container {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

}

/* ===========================
   END OF CUSTOM CSS
   ========================== */