/* ============================================
   EDGE-SERVE - High-Tech Premium Stylesheet
   UAE Market - Sleek & Modern
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111111;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --color-gold: #c9a45a;
    --color-gold-light: #d4b76d;
    --color-gold-dark: #b08d42;
    --color-gold-glow: rgba(201, 164, 90, 0.12);
    --color-gold-glow-strong: rgba(201, 164, 90, 0.25);
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #9a9a9a;
    --color-text-muted: #666666;
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(201, 164, 90, 0.4);
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-glow: 0 0 80px rgba(201, 164, 90, 0.15);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle Tech Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(201, 164, 90, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(201, 164, 90, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -2;
}

/* Ambient Glow Effects */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(201, 164, 90, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(201, 164, 90, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-medium);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

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

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

.logo img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: var(--color-gold-glow);
    border: 1px solid rgba(201, 164, 90, 0.25);
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    animation: pulse 2s ease infinite;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero h1 .highlight {
    color: var(--color-gold);
}

.hero p {
    font-size: 1.2rem;
    max-width: 560px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(201, 164, 90, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Decorative Line */
.hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.3;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1.25rem;
}

.section-header p {
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    padding: 12rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-header h1 {
    margin-bottom: 1.25rem;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 600px;
}

/* ============================================
   CARDS & FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 2.25rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.feature-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Info Sections */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.info-section.reverse {
    direction: rtl;
}

.info-section.reverse > * {
    direction: ltr;
}

.info-content h2 {
    margin-bottom: 1.5rem;
}

.info-content p {
    margin-bottom: 1.25rem;
}

.info-content p:last-of-type {
    margin-bottom: 2rem;
}

.info-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.info-image:hover img {
    transform: scale(1.03);
}

.info-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-border);
    z-index: 1;
    pointer-events: none;
}

.info-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    z-index: 1;
    pointer-events: none;
}

/* List Styles */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    margin-top: 8px;
}

/* Approach Cards */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.approach-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 2rem;
    transition: all var(--transition-medium);
}

.approach-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
}

.approach-card h4 {
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.approach-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Quote Block */
.quote-block {
    background: var(--color-bg-card);
    border-left: 2px solid var(--color-gold);
    padding: 2.5rem 3rem;
    position: relative;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: var(--font-display);
    color: var(--color-gold);
    opacity: 0.15;
    line-height: 1;
}

.quote-block p {
    font-size: 1.35rem;
    font-family: var(--font-display);
    color: var(--color-text-primary);
    font-weight: 400;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Differentiators */
.diff-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.diff-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.15rem;
    font-family: var(--font-display);
}

.diff-item .strike {
    color: var(--color-text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--color-text-muted);
}

.diff-item .highlight {
    color: var(--color-gold);
    font-weight: 500;
}

.diff-item .arrow {
    color: var(--color-gold);
    font-size: 1.25rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1.25rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
    color: var(--color-text-secondary);
}

.contact-item svg {
    width: 22px;
    height: 22px;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    color: var(--color-text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.6rem;
}

.form-group label .required {
    color: var(--color-gold);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold);
}

.form-checkbox span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.form-submit {
    margin-top: 0.5rem;
}

.form-submit .btn {
    width: 100%;
    padding: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo img {
    height: 52px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.footer-contact a {
    color: var(--color-gold);
    font-weight: 500;
    font-size: 1rem;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    max-width: 550px;
    text-align: right;
    line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 164, 90, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 164, 90, 0.4);
    }
}

/* Scroll Animations - Content visible by default, enhanced when JS loads */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Only hide elements when JS is ready to animate them */
.js-ready .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
}

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

/* Stagger delays for grid items */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .info-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .info-section.reverse {
        direction: ltr;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-medium);
        border-left: 1px solid var(--color-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 7rem 0 4rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-contact {
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-legal {
        text-align: left;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .quote-block {
        padding: 2rem;
    }
    
    .quote-block p {
        font-size: 1.15rem;
    }
    
    .page-header {
        padding: 9rem 0 4rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .page-header {
        padding: 8rem 0 3rem;
    }
    
    .contact-form-wrapper {
        padding: 1.75rem;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
}

/* Dark section backgrounds */
.section-dark {
    background: var(--color-bg-secondary);
}

/* CTA Section specific */
.cta-section {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}