/* 
   ZAK THOBE - Luxury Saudi Brand Landing Page Stylesheet
   Designed & Developed for a premium front-end experience.
*/

/* -------------------------------------------------------------
   1. Design Tokens & Variables
------------------------------------------------------------- */
:root {
    /* Color Palette */
    --dark-bg: #050E1E;
    --navy-deep: #0A1C36;
    --navy-mid: #0C2347;
    
    /* Gradients */
    --royal-gradient: linear-gradient(135deg, #0A2A66 0%, #154EA5 50%, #2A6BFF 100%);
    --overlay-gradient: linear-gradient(135deg, rgba(5, 14, 30, 0.95) 0%, rgba(10, 42, 102, 0.85) 50%, rgba(5, 14, 30, 0.95) 100%);
    --gold-gradient: linear-gradient(135deg, #B58F3D 0%, #D4AF37 50%, #F5E0A3 100%);

    /* Accent Colors */
    --accent-gold: #D4AF37;
    --accent-gold-glow: rgba(212, 175, 55, 0.35);
    
    /* WhatsApp Colors */
    --whatsapp-green: #25D366;
    --whatsapp-hover: #20BA5A;
    --whatsapp-glow: rgba(37, 211, 102, 0.4);
    
    /* Text Colors */
    --text-white: #FFFFFF;
    --text-muted: #B0C4DE;
    --text-light: #E6EEFA;

    /* Glassmorphism Details */
    --glass-bg: rgba(10, 28, 54, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* -------------------------------------------------------------
   2. Base Reset & Typography
------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    z-index: -1;
    pointer-events: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-mid);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------------------
   3. Main Utilities & Typography
------------------------------------------------------------- */
h1, h2, h3, h4 {
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

p {
    font-family: 'Tajawal', sans-serif;
}

.gold-text {
    color: var(--accent-gold);
}

/* Section Header styling */
.section-header {
    margin-bottom: 45px;
}

.section-header.center-align {
    text-align: center;
}

.section-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 4px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 5px;
    line-height: 1.3;
}

.title-line {
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    margin-top: 20px;
    border-radius: 2px;
}

.title-line.center {
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------
   4. Buttons System
------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    outline: none;
}

/* WhatsApp Button styling (Header) */
.btn-whatsapp-header {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--whatsapp-green);
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-whatsapp-header:hover {
    background-color: var(--whatsapp-green);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--whatsapp-glow);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-whatsapp-header i {
    font-size: 1.1rem;
}

/* WhatsApp Button styling (Hero) */
.btn-whatsapp-hero {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #1db854 100%);
    color: #030c1a;
    font-size: 1.25rem;
    padding: 18px 45px;
    box-shadow: 0 10px 30px var(--whatsapp-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--whatsapp-glow);
    background: linear-gradient(135deg, #2ae773 0%, var(--whatsapp-green) 100%);
}

.btn-whatsapp-hero i {
    font-size: 1.5rem;
}

/* Floating Action Button (FAB) */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
    text-decoration: none;
    box-shadow: 0 10px 30px var(--whatsapp-glow);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-floating-btn:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px var(--whatsapp-glow);
}

.floating-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--navy-deep);
    color: var(--text-white);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    pointer-events: none;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
}

.whatsapp-floating-btn:hover .floating-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* -------------------------------------------------------------
   5. Sticky Header Section
------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

.brand-logo {
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
    transition: all 0.4s ease;
}

.main-header.scrolled .brand-logo {
    height: 44px;
    width: 44px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link:hover .brand-logo {
    transform: scale(1.04);
}

/* -------------------------------------------------------------
   6. Hero Section
------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
    background: transparent;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.badge-line {
    display: inline-block;
    width: 50px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.badge-luxury .badge-line:last-child {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.badge-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 45px;
    line-height: 1.9;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Hero scroll indicator mouse wheel */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.mouse-scroll {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 1.8s infinite ease-in-out;
}

/* -------------------------------------------------------------
   7. About Section
------------------------------------------------------------- */
.about-section {
    padding: 120px 0;
    background-color: transparent;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-text:last-of-type {
    margin-bottom: 0;
}

/* Luxury card graphic decors */
.luxury-card-decorative {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 42, 102, 0.5) 0%, rgba(21, 78, 165, 0.15) 100%);
    border-radius: 28px;
    padding: 45px;
    border: var(--glass-border);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(42, 107, 255, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

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

.decorative-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--accent-gold-glow));
}

.luxury-card-decorative h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
}

.gold-subtitle {
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.luxury-bullet-list {
    list-style: none;
    padding: 0;
    text-align: right;
    display: inline-block;
    max-width: 320px;
}

.luxury-bullet-list li {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.luxury-bullet-list li:last-child {
    margin-bottom: 0;
}



/* -------------------------------------------------------------
   9. Technologies Section
------------------------------------------------------------- */
.tech-section {
    padding: 120px 0;
    background-color: transparent;
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* 7 Cards Styling (We want a grid. On large screens, 3 or 4 columns. On tablet 2, mobile 1) */
.tech-card {
    background: rgba(10, 28, 54, 0.4);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(42, 107, 255, 0.3);
    background: rgba(10, 28, 54, 0.85);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(42, 107, 255, 0.1);
}

.tech-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 16px;
    border: 1px solid var(--accent-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: var(--accent-gold);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-card:hover .tech-icon-container {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    transform: scale(1.08) rotate(6deg);
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.tech-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.4;
}

.tech-details {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* -------------------------------------------------------------
   10. Call to Action (CTA) Section
------------------------------------------------------------- */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(5, 20, 46, 0.8) 0%, rgba(13, 50, 109, 0.8) 50%, rgba(5, 14, 30, 0.8) 100%);
    border-top: 1px solid rgba(42, 107, 255, 0.15);
    border-bottom: 1px solid rgba(42, 107, 255, 0.15);
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 107, 255, 0.22) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cta-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 45px;
    opacity: 0.9;
}

.btn-whatsapp-cta {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #1db854 100%);
    color: #030c1a;
    font-size: 1.35rem;
    padding: 20px 50px;
    font-weight: 800;
    box-shadow: 0 10px 30px var(--whatsapp-glow);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-whatsapp-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px var(--whatsapp-glow);
    background: linear-gradient(135deg, #2ae773 0%, var(--whatsapp-green) 100%);
}

.btn-whatsapp-cta i {
    font-size: 1.6rem;
}

/* -------------------------------------------------------------
   11. Footer Section
------------------------------------------------------------- */
.main-footer {
    background-color: rgba(2, 7, 16, 0.92);
    border-top: var(--glass-border);
    padding: 70px 0 40px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.footer-logo {
    height: 58px;
    width: 58px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.08));
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-actions {
    display: flex;
    justify-content: center;
}

.btn-whatsapp-footer {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: var(--whatsapp-green);
    font-size: 0.95rem;
    padding: 12px 28px;
}

.btn-whatsapp-footer:hover {
    background-color: var(--whatsapp-green);
    color: #020710;
    border-color: transparent;
    box-shadow: 0 5px 20px var(--whatsapp-glow);
    transform: translateY(-2px);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    margin-top: 10px;
}

.copyright-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.35);
}

.copyright-text strong {
    color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------
   12. Micro-Animations & Scroll Effects
------------------------------------------------------------- */

/* Scroll indicator wheel motion */
@keyframes scroll-dot {
    0% {
        opacity: 0;
        top: 8px;
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 24px;
    }
}

/* Bounce for floating WhatsApp button */
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.whatsapp-floating-btn.animate-bounce-subtle {
    animation: bounce-subtle 3s infinite ease-in-out;
}

/* Pulse animation for high-conversion buttons */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

/* Reveal transition styles triggered by Intersection Observer */
.fade-up-init {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up-init.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for sequential animations */
.tech-card:nth-child(1) { transition-delay: 0.05s; }
.tech-card:nth-child(2) { transition-delay: 0.1s; }
.tech-card:nth-child(3) { transition-delay: 0.15s; }
.tech-card:nth-child(4) { transition-delay: 0.2s; }
.tech-card:nth-child(5) { transition-delay: 0.25s; }
.tech-card:nth-child(6) { transition-delay: 0.3s; }
.tech-card:nth-child(7) { transition-delay: 0.35s; }

/* -------------------------------------------------------------
   13. Responsive Media Queries
------------------------------------------------------------- */

/* 1440px + High Resolution */
@media (min-width: 1440px) {
    html {
        font-size: 17px;
    }
    .container {
        max-width: 1300px;
    }
}

/* 1024px - 1439px Desktop */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

/* 768px - 1023px Tablet Devices */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .main-header {
        padding: 16px 0;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-desc {
        font-size: 1.15rem;
        margin-bottom: 35px;
    }
    
    .btn-whatsapp-hero {
        padding: 16px 36px;
        font-size: 1.15rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-graphic {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .cta-title {
        font-size: 2.4rem;
    }
    
    .btn-whatsapp-cta {
        padding: 16px 40px;
        font-size: 1.2rem;
    }
}

/* 425px - 767px Large Mobile Screens */
@media (max-width: 425px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .luxury-card-decorative {
        padding: 30px 20px;
    }
    
    .feature-card {
        padding: 30px 24px;
    }
    
    .feature-title-en {
        font-size: 1.75rem;
    }
    
    .tech-card {
        padding: 24px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .whatsapp-floating-btn {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }
}

/* 375px - 424px Mid Mobile Screens */
@media (max-width: 375px) {
    html {
        font-size: 14.5px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-whatsapp-header span {
        display: none; /* Hide header text to preserve spacing on small phones */
    }
    
    .btn-whatsapp-header {
        padding: 10px 14px;
    }
    
    .btn-whatsapp-header i {
        font-size: 1.2rem;
        margin: 0;
    }
}

/* 320px Smallest Mobile Screens */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .brand-logo {
        height: 40px;
    }
    
    .tech-card {
        padding: 20px;
    }
}
