:root {
    --primary-color: #ff6b00;
    --primary-hover: #ff8533;
    --bg-dark: #0a0e14;
    --bg-surface: #121820;
    --bg-surface-glass: rgba(18, 24, 32, 0.6);
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --radius: 16px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .section-badge, .btn-primary, .btn-secondary {
    font-family: 'Cairo', sans-serif;
}

.display-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.text-gradient {
    background: linear-gradient(135deg, #ff6b00, #ffba00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.w-100 { width: 100%; }

/* Mesh Gradient Background */
.mesh-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 186, 0, 0.05) 0%, transparent 40%);
    z-index: 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #e05e00);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(255, 107, 0, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Apple-style Frosted Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 12px 0;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05), 0 4px 30px rgba(0,0,0,0.3);
    transition: padding 0.3s;
}

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

.logo img {
    height: 45px;
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -10%; left: 0; right: 0; bottom: -10%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(10, 14, 20, 0.95) 0%, rgba(10, 14, 20, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Badges */
.section-badge {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Asymmetrical About Grid */
.about-asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.bullet {
    width: 8px; height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.about-images {
    position: relative;
    height: 600px;
}

.img-wrapper {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.img-wrapper:hover img { transform: scale(1.05); }

.main-img {
    width: 80%; height: 80%;
    right: 0; bottom: 0;
    z-index: 1;
}

.floating-img {
    width: 50%; height: 50%;
    left: 0; top: 10%;
    z-index: 2;
    border: 8px solid var(--bg-dark);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Services 3D Tilt Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1px; /* space for gradient border effect */
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card-glow {
    position: absolute;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover .card-glow { opacity: 1; }

.card-content {
    background: var(--bg-surface);
    border-radius: calc(var(--radius) - 1px);
    padding: 50px 30px;
    height: 100%;
    position: relative;
    z-index: 1;
    transform: translateZ(30px); /* 3D pop out effect */
    transition: transform 0.1s;
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(255,107,0,0.3));
}

/* Gallery Hover Reveal */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.item-overlay span {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover .item-overlay span {
    transform: translateY(0);
}

/* Glass Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.icon-box {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item a, .contact-item span {
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover { color: var(--primary-color); }

.glass-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.input-group { margin-bottom: 25px; }

.input-group input, .input-group textarea {
    width: 100%;
    padding: 18px 24px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--white);
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0,0,0,0.4);
}

/* Footer */
.footer {
    background-color: #05070a;
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .display-title { font-size: 3.5rem; }
    .about-asymmetric-grid { grid-template-columns: 1fr; }
    .about-images { height: 500px; margin-top: 50px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-surface-glass);
        backdrop-filter: blur(20px);
        flex-direction: column; padding: 30px;
        border-bottom: 1px solid var(--border-glass);
        display: none;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .display-title { font-size: 2.5rem; }
    .hero { min-height: 100vh; }
    .gallery-grid { grid-template-columns: 1fr; }
    .glass-form { padding: 30px; }
    .section { padding: 80px 0; }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        .scroll-animate {
            opacity: 1; transform: none; transition: none;
            animation: slideUpFade auto forwards cubic-bezier(0.16, 1, 0.3, 1);
            animation-timeline: view(block);
            animation-range: entry 5% cover 25%;
        }
        @keyframes slideUpFade {
            from { opacity: 0; transform: translateY(60px); }
            to { opacity: 1; transform: translateY(0); }
        }
    }
}
