/* ==================== VARIABLES ==================== */
:root {
    /* Colors */
    --primary-blue: #0057b8;
    --primary-blue-bright: #4da6ff;
    --primary-blue-light: #1976d2;
    --secondary-purple: #6b21a8;
    --secondary-purple-bright: #a855f7;
    --secondary-purple-light: #7c3aed;
    --accent-orange: #d97706;
    --accent-orange-bright: #ffb347;
    --accent-orange-light: #ff8c42;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --text-light-muted: #e0e0e0;
    --text-medium: #4b5563;
    --bg-light: #ffffff;
    --bg-light-alt: #f8f9fa;
    --bg-dark: #0f0f23;
    --bg-dark-alt: #1a1a35;
    --border-light: #e0e0e0;
    --border-light-dark: #d0d0d0;
    --border-dark: #333333;
    --border-dark-bright: #555555;
    --success: #059669;
    --success-bright: #34d399;
    --success-light: #10b981;
    --warning: #d97706;
    --warning-bright: #fbbf24;
    --warning-light: #f59e0b;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Outfit', sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg-light: var(--bg-dark);
    --text-dark: var(--text-light);
    --border-light: var(--border-dark-bright);
    --primary-blue: var(--primary-blue-bright);
    --secondary-purple: var(--secondary-purple-bright);
    --accent-orange: var(--accent-orange-bright);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-serif);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: var(--line-height);
    transition: var(--transition);
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-purple);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2,
h3 {
    color: var(--accent-orange);
}

h4,
h5,
h6 {
    color: var(--primary-blue);
}

body.dark-mode h1 {
    background: linear-gradient(135deg, var(--primary-blue-bright), var(--secondary-purple-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode h2,
body.dark-mode h3 {
    color: var(--accent-orange-bright);
}

body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--primary-blue-bright);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ==================== BUTTONS ==================== */
button {
    font-family: var(--font-serif);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button,
.hub-button,
.footer-contact-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: white !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
}

.cta-button:hover,
.hub-button:hover,
.footer-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.6), 0 0 20px rgba(106, 27, 154, 0.4);
}

/* ==================== DROPDOWNS ==================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-light);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1100;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    padding: 10px 0;
    border: 1px solid var(--border-light);
    animation: fadeInScale 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Bridge the gap between toggle and content */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

body.dark-mode .dropdown-content {
    background-color: rgba(15, 15, 35, 0.95);
    border-color: var(--border-dark);
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    display: block !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
}

body.dark-mode .dropdown-content a {
    color: var(--text-light) !important;
}

.dropdown-content a:hover {
    background-color: rgba(0, 87, 184, 0.1) !important;
    color: var(--primary-blue) !important;
    padding-left: 25px !important;
}

.featured-item {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 5px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown display logic is handled in the components section */

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

body.dark-mode .header {
    background: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: var(--primary-blue);
}

body.dark-mode .nav-link {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
}

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

.nav-controls {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.theme-toggle,
.lang-toggle {
    background: rgba(0, 0, 0, 0.05);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid transparent;
    color: var(--text-dark);
}

body.dark-mode .theme-toggle,
body.dark-mode .lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: var(--border-light);
    transform: scale(1.1);
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

body.dark-mode .hamburger span {
    background: var(--text-light);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(124, 58, 237, 0.1));
    padding: var(--spacing-2xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(124, 58, 237, 0.05));
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(26, 26, 46, 0.7);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .hero-subtitle {
    color: #e0e0e0;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

body.dark-mode .services {
    background: var(--bg-dark);
}

.section-title {
    text-align: center !important;
    margin: 0 auto 3rem auto !important;
    display: block !important;
    position: relative;
    padding-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .section-title {
    color: var(--accent-orange-bright);
    background: none;
    -webkit-text-fill-color: var(--accent-orange-bright);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-blue));
    border-radius: 2px;
}

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

.service-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .service-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.2);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    color: var(--secondary-purple);
    margin-bottom: var(--spacing-sm);
}

body.dark-mode .service-card h3 {
    color: var(--primary-blue-bright);
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

body.dark-mode .service-card p {
    color: #e0e0e0;
}

/* ==================== AEO HUB SECTION ==================== */
.aeo-hub {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.05), rgba(124, 58, 237, 0.05));
}

body.dark-mode .aeo-hub {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.02), rgba(124, 58, 237, 0.02));
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.hub-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .hub-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(255, 140, 66, 0.3);
    border-color: var(--primary-blue);
}

.hub-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.hub-card h3 {
    color: var(--secondary-purple);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

body.dark-mode .hub-card h3 {
    color: var(--accent-orange-bright);
}

.hub-card p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

body.dark-mode .hub-card p {
    color: #e0e0e0;
}

.hub-button {
    background: linear-gradient(135deg, var(--accent-orange), #ff6b35);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.hub-button:hover {
    background: linear-gradient(135deg, #ff6b35, var(--accent-orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6);
}

/* ==================== HOW-TO SECTION ==================== */
.howto {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(124, 58, 237, 0.05));
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.guide-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border-left: 5px solid var(--primary-blue);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .guide-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.guide-card:nth-child(2) {
    border-left-color: var(--secondary-purple);
}

.guide-card:nth-child(3) {
    border-left-color: var(--accent-orange);
}

.guide-card:nth-child(4) {
    border-left-color: var(--primary-blue);
}

.guide-card:nth-child(5) {
    border-left-color: var(--secondary-purple);
}

.guide-card:nth-child(6) {
    border-left-color: var(--accent-orange);
}

.guide-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.2);
}

.guide-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--secondary-purple);
}

body.dark-mode .guide-card h3 {
    color: var(--secondary-purple-bright);
}

.guide-card ol {
    margin-left: var(--spacing-md);
    line-height: 2;
}

.guide-card li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
}

body.dark-mode .guide-card li {
    color: #e0e0e0;
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

body.dark-mode .faq {
    background: var(--bg-dark);
}

.search-box {
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-serif);
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

body.dark-mode .search-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-dark);
    color: var(--text-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .faq-item {
    border-color: var(--border-dark);
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    background: var(--bg-light-alt);
    padding: var(--spacing-lg);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-weight: 600;
    color: var(--secondary-purple);
}

body.dark-mode .faq-question {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-orange-bright);
}

.faq-question:hover {
    background: var(--border-light-dark);
}

body.dark-mode .faq-question:hover {
    background: rgba(255, 140, 66, 0.1);
}

.faq-answer {
    background: transparent;
    padding: 0;
    color: var(--text-medium);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

body.dark-mode .faq-answer {
    background: transparent;
    color: #d0d0d0;
}

body.dark-mode .faq-question {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-orange);
}

.faq-question:hover {
    background: rgba(255, 140, 66, 0.05);
}

body.dark-mode .faq-question:hover {
    background: rgba(255, 140, 66, 0.1);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-toggle.open {
    transform: rotate(180deg);
}

.faq-answer {
    background: transparent;
    padding: 0;
    color: rgba(26, 26, 46, 0.7);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

body.dark-mode .faq-answer {
    background: transparent;
    color: #d0d0d0;
}

.faq-answer.open {
    max-height: 1000px;
    padding: var(--spacing-lg);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #0a0a12);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

body.dark-mode .footer {
    background: linear-gradient(135deg, #0a0a12, #000000);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

body.dark-mode .footer-section h4 {
    color: var(--accent-orange-bright);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-sm);
}

body.dark-mode .footer-section p {
    color: #d0d0d0;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-email-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.footer-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.6);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-orange);
}

/* ==================== FOOTER BAR ==================== */
.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 2.5rem 3.5rem;
    border-radius: 24px;
    margin-bottom: 4rem;
    border: 1px solid var(--border-light);
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.dark-mode .footer-bar {
    background: var(--bg-dark-alt);
    border-color: var(--border-dark);
}

.footer-bar-text h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

body.dark-mode .footer-bar-text h3 {
    color: var(--text-light);
}

/* ==================== SOCIAL ICONS ==================== */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--primary-blue) !important;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    text-decoration: none !important;
}

body.dark-mode .social-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.social-icon:hover {
    transform: translateY(-8px);
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0, 87, 184, 0.4);
    color: white !important;
}

/* ==================== RESOURCES GRID LIST ==================== */
.resources-grid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    list-style: none;
    padding: 0;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-mode .modal-content {
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-dark);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.rocket-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: rocketBounce 2s infinite ease-in-out;
}

@keyframes rocketBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.loader-bar {
    height: 4px;
    width: 100%;
    background: rgba(0, 87, 184, 0.1);
    border-radius: 2px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -50%;
    top: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    animation: loading 1.5s infinite linear;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* ==================== RTL MIRRORING ==================== */
html[dir="rtl"] .dropdown-toggle i {
    transform: scaleX(-1);
}

html[dir="rtl"] .dropdown-content {
    right: 0;
    left: auto;
    text-align: right;
}

html[dir="rtl"] .social-icon i {
    transform: scaleX(1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-light);
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-lg);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }

    body.dark-mode .nav-menu {
        background: var(--bg-dark);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: transparent !important;
        display: none;
        min-width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero {
        min-height: 50vh;
        padding: var(--spacing-xl) 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .footer-bar {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }

    .nav-controls {
        gap: var(--spacing-sm);
    }

    .cta-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-xl);
        color: var(--text-medium);
    }

    body.dark-mode .hero-subtitle {
        color: #e0e0e0;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .guide-card ol {
        padding-left: var(--spacing-md);
    }
}

/* ==================== RTL SUPPORT ==================== */
html[dir="rtl"] .nav-wrapper {
    flex-direction: row-reverse;
}

html[dir="rtl"] .logo {
    order: -1;
}

html[dir="rtl"] .nav-menu {
    gap: var(--spacing-lg);
}

html[dir="rtl"] .service-card h3 {
    text-align: right;
}

html[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

html[dir="rtl"] .guide-card {
    border-left: none;
    border-right: 5px solid var(--primary-blue);
}

html[dir="rtl"] .guide-card ol {
    margin-left: 0;
    margin-right: var(--spacing-md);
    direction: rtl;
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: var(--bg-dark);
        --text-dark: var(--text-light);
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .header,
    .footer,
    .nav-controls,
    .search-box {
        display: none;
    }

    body {
        color: black;
        background: white;
    }
}