:root {
    --primary-yellow: #FFA726;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.7);
    --text-white: #f5f5f5;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 215, 0, 0.1);
}

/* Ensure any top camera PNG is hidden */
img[src="camera.png"],
img[src="./camera.png"],
img[src="/camera.png"] {
    display: none !important;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
}
h2, h3 {
    font-family: 'Poppins', sans-serif;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background: url('hero_bg.png') center/cover no-repeat;
    overflow: hidden;
    perspective: 1400px; /* enable 3D perspective for children */
}

/* subtle cinematic vignette + dust — unified, 3D-aligned top/bottom frame */
.hero-bg-overlay {
    /* hide overlay to make the hero background static and fully opaque */
    display: none;
}

/* Layered planes for depth */
.hero-planes {
    /* disable layered moving planes so the background remains static */
    display: none;
}

.hero-plane {
    /* keep definition but keep hidden in case markup expects it */
    display: none;
}

/* use same hero image but varied tint and depth */
.hero-plane.plane-back {
    background-image: url('hero_bg.png');
    opacity: 0.12;
    transform: translate(-50%, -50%) translateZ(-180px) scale(1.12);
    filter: blur(10px) brightness(0.6);
}

.hero-plane.plane-mid {
    background-image: url('hero_bg.png');
    opacity: 0.14;
    transform: translate(-50%, -50%) translateZ(-80px) scale(1.06);
    filter: blur(6px) brightness(0.75);
}

.hero-plane.plane-front {
    background-image: url('hero_bg.png');
    opacity: 0.18;
    transform: translate(-50%, -50%) translateZ(-20px) scale(1.02);
    filter: blur(2px) brightness(0.9);
}

/* Dynamic rim and spot lights */
.hero-lights .rim-left,
.hero-lights .spot-right {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
}

.hero-lights .rim-left {
    left: -10%;
    top: 20%;
    width: 40%;
    height: 80%;
    background: radial-gradient(60% 40% at 20% 20%, rgba(255,200,80,0.12), transparent 20%);
    transform: translateZ(40px);
    filter: blur(24px);
}

.hero-lights .spot-right {
    right: -6%;
    bottom: 6%;
    width: 28%;
    height: 60%;
    background: radial-gradient(closest-side, rgba(255,160,40,0.08), transparent 40%);
    transform: translateZ(60px);
    filter: blur(30px);
}

/* content sits above layers */
.hero .content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1);
    will-change: transform;
    pointer-events: auto;
}

/* stronger 3D headline with depth, bevel and subtle animation (now for logo) */
.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transform: translateZ(80px) rotateX(0.6deg);
    transition: transform 0.3s ease;
    text-shadow:
        0 40px 90px rgba(0,0,0,0.78),
        0 10px 30px rgba(255,140,0,0.05),
        0 0 40px rgba(255,180,60,0.08);
}

/* Logo inside hero: scale responsively and keep decorative pointer-events disabled */
.hero-logo {
    /* Increased min/max and viewport scaling so the logo is bigger than surrounding text */
    width: clamp(360px, 44vw, 840px);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 48px rgba(0,0,0,0.72));
    image-rendering: -webkit-optimize-contrast;
    pointer-events: none;
    transform: translateZ(20px);
}

/* smaller screens: limit logo size and depth */
@media (max-width: 768px) {
    /* Mobile: keep logo large but constrained for small screens */
    .hero-logo { width: clamp(220px, 60vw, 520px); transform: translateZ(12px); }
}

/* keep highlight style but give it slight gradient emboss */
.ah-highlight {
    background: linear-gradient(90deg, #FFD54F, #FFA726);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 0 rgba(0,0,0,0.25);
}

/* subtitle and tagline float in 3D plane */
.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--primary-yellow);
    font-weight: 300;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.95;
    transform: translateZ(48px);
}

.tagline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.tagline-container .line {
    height: 1px;
    width: 50px;
    background: linear-gradient(to right, transparent, var(--primary-yellow));
}

.tagline-container .line:last-child {
    background: linear-gradient(to left, transparent, var(--primary-yellow));
}

.tagline {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    transform: translateZ(36px);
}

/* small screen adjustments keep depth but reduce intensity */
@media (max-width: 768px) {
    .hero-plane { display: none; }
    .hero-lights { display: none; }
    .hero { perspective: 900px; }
    .hero-title { transform: translateZ(36px); font-size: 4rem; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-yellow);
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Pricing Section */
.pricing {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}

.accent-line {
    width: 80px;
    height: 2px;
    background: var(--primary-yellow);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--primary-yellow);
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: stretch;
}

.card {
    flex: 1 1 340px;
    max-width: 450px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.4);
}

.card-image {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--dark-bg) 0%, transparent 100%);
}

.card-content {
    padding: 2.5rem;
    text-align: center;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.price {
    font-size: 2rem;
    color: var(--primary-yellow);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.dynamic-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arabic {
    font-size: 1.4rem;
    opacity: 0.8;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 200;
}

/* Footer Section */
footer {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, transparent, #050505);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.footer-item .label {
    display: block;
    color: var(--primary-yellow);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}

.footer-item p {
    font-size: 1.2rem;
    font-weight: 300;
}

.footer-bottom {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

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

.reveal-text {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 2s forwards ease-out;
}

.reveal-text-delay {
    opacity: 0;
    animation: fadeIn 2s forwards ease-out 0.5s;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 4rem; }
    .hero .subtitle { font-size: 0.9rem; }
    .pricing { padding: 4rem 1.5rem; }
    .section-header h2 { font-size: 2.5rem; }
    .card-image { height: 300px; }
}

/* Cinematic 3D visuals: global perspective and element depth */
main {
    perspective: 1200px;
    transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Give hero content a subtle 3D pop */
.hero .content {
    transform: translateZ(40px) scale(1);
    transition: transform 0.9s cubic-bezier(.2,.9,.2,1);
    transform-style: preserve-3d;
    will-change: transform;
    text-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.5);
}

/* 3D-styled headline with layered glow */
.hero h1 {
    transform: translateZ(60px);
    text-shadow:
        0 30px 60px rgba(0,0,0,0.75),
        0 6px 30px rgba(255,140,0,0.06),
        0 0 40px rgba(255,180,60,0.08);
}

/* Depth and subtle parallax inside cards */
.card {
    background: linear-gradient(180deg, rgba(25,25,25,0.8), rgba(10,10,10,0.6));
    border: 1px solid rgba(255,215,0,0.06);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 -6px 20px rgba(255,140,0,0.02);
    transform-origin: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), box-shadow 0.6s ease;
}

/* Stronger lift on hover for cinematic depth */
.card:hover {
    transform: translateY(-18px) translateZ(30px) rotateX(1.2deg);
    box-shadow: 0 50px 120px rgba(0,0,0,0.8), 0 6px 30px rgba(0,0,0,0.4);
    border-color: rgba(255,180,60,0.18);
}

/* Reduced 3D depth for specific smaller-3d cards (e.g., last pack) */
.card.small-3d {
    transform: none; /* keep base flat */
}
.card.small-3d .card-image {
    transform: translateZ(-8px) scale(1.01);
}
.card.small-3d:hover {
    transform: translateY(-8px) translateZ(6px) rotateX(0.4deg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    border-color: rgba(255,180,60,0.12);
}

/* Card image is put slightly behind the content plane for layered feel */
.card-image {
    transform: translateZ(-20px) scale(1.03);
    will-change: transform;
}

/* Ensure small-3d card images sit much closer to the content plane */
.card.small-3d .card-image {
    transform: translateZ(-8px) scale(1.01);
}



/* Make tagline feel like a floating plaque */
.tagline {
    transform: translateZ(30px);
    color: #cfcfcf;
}

/* Slight 3D pop for pricing numbers */
.price {
    transform: translateZ(28px);
    text-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* Top-left fixed logo */
.top-logo {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    width: 220px;
    height: auto;
    z-index: 1100;
    pointer-events: none; /* keep it decorative and not intercept clicks */
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.65));
    image-rendering: -webkit-optimize-contrast;
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 167, 38, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 167, 38, 0.3);
    border-radius: 50px;
    color: var(--primary-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-contact-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 167, 38, 0.2);
    border-color: var(--primary-yellow);
}

.floating-contact-btn svg {
    transition: transform 0.4s ease;
}

.floating-contact-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* Responsive adjustments keep 3D subtle on small screens */
@media (max-width: 768px) {
    main { perspective: 900px; }
    .hero .content { transform: translateZ(30px); }
    .hero h1 { transform: translateZ(36px); font-size: 4rem; }
    .card:hover { transform: translateY(-10px) translateZ(12px) rotateX(0.5deg); }
    
    .floating-contact-btn {
        top: auto;
        bottom: 2rem;
        right: 1.5rem;
        padding: 0.8rem 1.2rem;
    }
}