:root {
    --primary: #0a0a1a;
    --secondary: #12122b;
    --accent: #e91e63; /* Pink from logo */
    --accent-blue: #2196f3; /* Blue from logo */
    --accent-green: #8bc34a; /* Green from logo */
    --text: #ffffff;
    --text-muted: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Outfit', 'Cairo', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: inherit;
}

body {
    background-color: var(--primary);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gradient-text {
    background: linear-gradient(45deg, #e91e63, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #e91e63, #2196f3, #e91e63);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(26, 26, 46, 0.9);
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
/* Advanced Premium Effects */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float { animation: float 6s ease-in-out infinite; }

/* Refined Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 45px rgba(233, 30, 99, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.card:hover::before {
    transform: translateX(100%);
}

/* Scroll Reveal Placeholder */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent), var(--accent-blue));
    border-radius: 10px;
}

/* Section Dividers */
.section-divider {
    height: 100px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

/* Hero Refinement */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(10, 10, 26, 0.6), rgba(10, 10, 26, 0.8)), url('../img/hero-bg.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect for desktop */
    text-align: center;
    padding: 100px 0;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Disable parallax for mobile to fix image issues */
        height: auto;
        min-height: 80vh;
        padding: 120px 0 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Balanced size */
        padding: 0 10px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 30px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #0f0f1f;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Mobile Responsive Refinements */
@media (max-width: 768px) {
    .logo img {
        height: 35px !important;
    }
    
    nav {
        padding: 10px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        transform: translateX(100%); /* Hidden by default */
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0); /* Shown */
    }

    .hamburger {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: var(--text);
        margin: 5px;
        transition: 0.4s;
    }

    .grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        margin-right: 0 !important;
        padding: 20px;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 20px;
        background: var(--accent);
        padding: 15px;
        border-radius: 50%;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

/* PWA Splash/Theme */
:root {
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

body {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}
