/*
--------------------------------------------------------------------------
MODERNEEX STUDIO | SOFTWARE DEVELOPMENT & SOLUTIONS
--------------------------------------------------------------------------
Project Name    : Moderneex Studio Website – Main Stylesheet
Project ID      : MXSWEB-2026-X003
Description     :
This file contains all the global styles, variables, and layout definitions for the website.
It implements a dark, glassmorphism-inspired design theme.
Technologies: CSS3.

OFFICIAL DETAILS:
- Entity        : Moderneex Studio
- Country       : Saudi Arabia 🇸🇦
- Environment   : Production / Development
- License       : Proprietary & Confidential

LEGAL NOTICE:
Copyright (c) 2026 Moderneex Studio. All rights reserved.
--------------------------------------------------------------------------
*/

/* 
   --------------------------------------------------------------------------
   Global Variables
   --------------------------------------------------------------------------
   Defining color palette and layout constants for consistent theming.
*/
:root {
    --bg: #000000;
    --card-bg: rgba(18, 18, 18, 0.6);
    --text: #ffffff;
    --muted: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 18px;
    --container: 1100px;
}

/* 
   --------------------------------------------------------------------------
   Typography Reset & Font Assignment
   --------------------------------------------------------------------------
   Ensuring 'Cairo' font is applied universally while preserving FontAwesome icons.
*/
body, h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea {
    font-family: 'Cairo', sans-serif !important;
}

/* FontAwesome specific override to prevent font conflict */
.fa, .fas, .far, .fal, .fab, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* 
   --------------------------------------------------------------------------
   Base Styles
   --------------------------------------------------------------------------
   Setting up the fundamental page structure, background, and scrolling behavior.
*/
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 40%);
    color: var(--text);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 
   --------------------------------------------------------------------------
   Animations
   --------------------------------------------------------------------------
   Classes for scroll-triggered reveal animations.
*/
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 
   --------------------------------------------------------------------------
   Navigation Bar
   --------------------------------------------------------------------------
   Styles for the fixed, glass-effect navigation bar.
*/
.nav-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
}

.nav-glass {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
}

.nav-brand a { display: flex; align-items: center; text-decoration: none; }
.nav-brand img { height: 35px; vertical-align: middle; transition: 0.3s; }
.nav-brand img:hover { transform: scale(1.05); }

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

.btn-glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* 
   --------------------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------------------
   Styles for the main landing area, including the decorative background image.
*/
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

/* Decorative background element for the Hero section */
.hero-tech-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background-image: url('https://wallpapers.com/images/featured-full/coding-background-9izlympnd0ovmpli.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    filter: blur(4px) grayscale(100%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
    position: relative;
}

.hero p { color: var(--muted); font-size: 1.2rem; letter-spacing: 1px; }

/* 
   --------------------------------------------------------------------------
   Layout & Components
   --------------------------------------------------------------------------
   General container styles, section titles, and grid layouts.
*/
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section-title { text-align: center; margin: 80px 0 40px; }
.section-title h2 { font-size: 2.2rem; display: inline-block; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }

.section-description {
    max-width: 800px;
    margin: 20px auto;
    color: #ccc;
}

.section-gap {
    margin-bottom: 100px;
}

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

/* 
   --------------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------------
   Styles for the glass-effect cards used for projects and content.
*/
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.glass-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }

.card-logo { height: 70px; margin-bottom: 20px; object-fit: contain; }
.card-logo-rounded { border-radius: 50%; }

.card-desc { color: var(--muted); margin-bottom: 25px; font-size: 1rem; line-height: 1.8; }

/* 
   --------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------
   Styles for primary action buttons and outline buttons.
*/
.btn-action {
    background: var(--text);
    color: #000;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn-action:hover { background: #e0e0e0; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn-outline:hover { background: var(--glass); border-color: #fff; }

/* 
   --------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------
   Styles for the site footer.
*/
footer {
    max-width: var(--container);
    margin: 60px auto 40px;
    padding: 30px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer-group {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover { color: #fff; }

.small-text { font-size: 13px; color: #666; }

/* 
   --------------------------------------------------------------------------
   Terms & Conditions Page Styles
   --------------------------------------------------------------------------
*/
.content-container {
    max-width: 900px;
    margin: 140px auto 60px;
    text-align: right;
    padding: 0 24px;
}
.content-container h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}
.content-container h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #fff;
    border-right: 4px solid #fff;
    padding-right: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding-top: 10px;
    padding-bottom: 10px;
}
.content-container h3 {
    font-size: 19px;
    color: #efefef;
    margin-top: 30px;
    text-decoration: underline;
}
.content-container p, .content-container li {
    color: var(--muted);
    font-size: 16px;
    line-height: 2.2;
    margin-bottom: 18px;
}
.content-container strong { color: #fff; }
.legal-notice {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
}
.update-date {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0.8;
}

/* 
   --------------------------------------------------------------------------
   Responsive Design
   --------------------------------------------------------------------------
   Media queries for adapting the layout to smaller screens (mobile/tablet).
*/
@media (max-width: 768px) {
    .nav-glass { 
        flex-direction: column; 
        gap: 15px; 
        border-radius: 20px; 
        padding: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 120px; /* More space for stacked nav */
    }

    .hero h1 { 
        font-size: 2.2rem; 
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .footer-group { 
        flex-direction: column; 
        gap: 15px; 
    }
    
    .hero-tech-bg { 
        width: 300px; 
        height: 300px; 
    }

    .glass-card {
        padding: 25px;
    }

    /* Terms Page Responsive */
    .content-container {
        margin-top: 180px; /* Adjust for taller nav */
        padding: 0 20px;
    }
    
    .content-container h1 {
        font-size: 28px;
    }
    
    .content-container h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn-glass {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        width: 100%;
        flex-direction: column;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .content-container {
        margin-top: 220px; /* Even more space if nav wraps more */
    }
}