:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #f8e192; /* Light Gold */
    --bg-dark: #080808;
    --bg-darker: #000000;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(212, 175, 55, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* We use custom cursor */
}

html {
    scroll-behavior: smooth;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
}

.cursor.hovered {
    width: 0;
    height: 0;
}
.cursor-follower.hovered {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.2);
    border-color: transparent;
}

/* Typography & Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(15, 15, 17, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo i {
    animation: pulse 2s infinite;
}

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

.nav-links a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../assets/hero-bg.png') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax Depth Effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: none; /* override default cursor for custom one */
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-darker);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-gray);
    animation: bounce 2s infinite;
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.4s ease; /* Adjusted for JS 3D tilt */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d; /* 3D Depth */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transition: var(--transition);
    transform: translateZ(-1px); /* Push behind the content */
}

.service-card:hover {
    border-color: var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 1), 0 0 20px rgba(212, 175, 55, 0.2);
    z-index: 2;
}

.service-card:hover::before {
    left: 100%;
    transition: 0.8s;
}

.service-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transform: translateZ(30px); /* Pop out effect */
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transform: translateZ(20px); /* Pop out effect */
}

.service-card p {
    color: var(--text-gray);
    transform: translateZ(10px); /* Pop out effect */
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: url('../assets/hero-bg.png') fixed center/cover;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
}

.glassmorphism {
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-gray);
    margin-bottom: 40px;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.contact-item:hover i {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: scale(1.1);
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--text-gray);
    transition: var(--transition);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

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

.whatsapp-link {
    color: #25D366 !important;
    font-weight: bold;
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
    background: #1a1a1a;
}

.map-visual {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
}

.map-visual i {
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.btn-map {
    background: var(--primary-color);
    color: var(--bg-darker);
    border: none;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 30px 0;
    text-align: center;
    color: var(--text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); text-shadow: 0 0 10px var(--primary-color); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .glassmorphism {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile for now, can be expanded to hamburger menu */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .cursor, .cursor-follower {
        display: none; /* Disable custom cursor on mobile */
    }
    body {
        cursor: auto;
    }
    .btn {
        cursor: pointer;
    }
}
