/* ========================================
   NEXT Soft Technologies - Main Stylesheet
   Arabic RTL Responsive Design
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors */
    --primary-color: #0066CC;
    --primary-dark: #004B99;
    --primary-light: #3385DB;
    --secondary-color: #00A8E8;
    --accent-color: #FF6B35;
    
    /* Grayscale */
    --dark-bg: #1A2332;
    --dark-surface: #2C3E50;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gray-100: #F7FAFC;
    --gray-200: #EDF2F7;
    --gray-300: #E2E8F0;
    --gray-400: #CBD5E0;
    --gray-500: #A0AEC0;
    --gray-600: #718096;
    --gray-700: #4A5568;
    --gray-800: #2D3748;
    --gray-900: #1A202C;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Tajawal', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}


/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-600);
}

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

a:hover {
    color: var(--primary-dark);
}

/* ========== Navigation ========== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1.05rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 119, 54, 0.3), transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(72, 219, 251, 0.3), transparent 50%);
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    padding: var(--spacing-2xl) 0;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    color: var(--secondary-color);
}

.hero-subtitle {
    color: var(--gray-200);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-visual {
    position: relative;
    height: 400px;
    animation: fadeInRight 1s ease 0.8s both;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--gray-800);
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: 5%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 15%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    z-index: 10;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
    animation: mouse-scroll 2s infinite;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 50%;
    transform: translateX(50%);
    width: 3px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes mouse-scroll {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 20px; }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    font-family: var(--font-secondary);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========== Sections ========== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
}

/* ========== Features Section ========== */
.features {
    background: var(--gray-100);
}

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

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== Portal Preview ========== */
.portal-preview {
    background: var(--white);
}

.preview-grid {
    display: grid;
    gap: var(--spacing-xl);
}

.preview-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--gray-100);
    border-radius: var(--radius-xl);
}

.preview-item:nth-child(even) {
    direction: ltr;
}

.preview-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-content h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

/* ========== Stats Section ========== */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ========== CTA Section ========== */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: var(--gray-200);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Footer ========== */
.footer {
    background: var(--dark-bg);
    color: var(--gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

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

.footer-logo {
    height: 50px;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.footer h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 1.125rem;
    margin-top: 3px;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-surface);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--dark-surface);
    color: var(--gray-500);
}

/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-2xl);
}

.page-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

.page-subtitle {
    color: var(--gray-200);
    font-size: 1.25rem;
}

/* ========== About Page Styles ========== */
.about-content {
    padding: var(--spacing-2xl) 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 5rem;
}

.mission-vision {
    background: var(--gray-100);
    padding: var(--spacing-2xl) 0;
}

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

.mv-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 2.5rem;
    color: var(--white);
}

.what-we-do {
    padding: var(--spacing-2xl) 0;
}

.services-list {
    display: grid;
    gap: var(--spacing-xl);
}

.service-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--primary-color);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: var(--font-secondary);
}

.service-content h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.why-choose {
    background: var(--gray-100);
    padding: var(--spacing-2xl) 0;
}

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

.reason-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.reason-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.reason-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.reason-card h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.reason-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.team-section {
    padding: var(--spacing-2xl) 0;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ========== Services Page ========== */
.main-service {
    padding: var(--spacing-2xl) 0;
}

.main-service-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.service-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.service-features {
    margin: var(--spacing-lg) 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.feature-item i {
    color: var(--success);
    font-size: 1.25rem;
}

.main-service-visual {
    position: relative;
}

.portal-showcase {
    position: relative;
}

.portal-screen {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 8px solid var(--gray-300);
    background: var(--white);
}

.screen-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 4rem;
}

.portal-modules {
    background: var(--gray-100);
    padding: var(--spacing-2xl) 0;
}

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

.module-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.module-features {
    list-style: none;
    margin-top: var(--spacing-md);
}

.module-features li {
    padding: var(--spacing-xs) 0;
    color: var(--gray-600);
    position: relative;
    padding-right: var(--spacing-md);
}

.module-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success);
    font-weight: bold;
}

.additional-services {
    padding: var(--spacing-2xl) 0;
}

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

.additional-card {
    padding: var(--spacing-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.additional-card:hover {
    border-color: var(--primary-color);
    background: var(--gray-100);
}

.additional-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.additional-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-hint {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: var(--spacing-2xl) 0;
    text-align: center;
    color: var(--white);
}

.pricing-content i {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

.pricing-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.pricing-content p {
    color: var(--gray-200);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
}

/* ========== Demo Page ========== */
.demo-intro {
    padding: var(--spacing-2xl) 0;
}

.demo-intro-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.demo-features {
    margin-top: var(--spacing-xl);
    display: grid;
    gap: var(--spacing-md);
}

.demo-feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.demo-feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.demo-feature-item h4 {
    margin: 0 0 var(--spacing-xs);
    font-size: 1.125rem;
}

.demo-feature-item p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.demo-intro-visual {
    position: relative;
}

.demo-device {
    position: relative;
}

.device-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 10px solid var(--gray-800);
    background: var(--white);
}

.device-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 5rem;
}

.demo-access {
    background: var(--gray-100);
    padding: var(--spacing-2xl) 0;
}

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

.access-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
}

.access-card.featured {
    border: 3px solid var(--accent-color);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--accent-color);
    color: var(--white);
    padding: var(--spacing-xs) 50px;
    transform: rotate(-45deg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.access-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.access-header {
    background: var(--gray-100);
    padding: var(--spacing-xl);
    text-align: center;
}

.access-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2.5rem;
    color: var(--white);
}

.student-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.teacher-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.admin-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.access-body {
    padding: var(--spacing-xl);
}

.access-features {
    list-style: none;
    margin: var(--spacing-lg) 0;
}

.access-features li {
    padding: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.access-features i {
    color: var(--success);
}

.access-credentials {
    background: var(--gray-100);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.access-credentials h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.credential-label {
    font-weight: 600;
    color: var(--gray-700);
}

.credential-item code {
    background: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.screenshots {
    padding: var(--spacing-2xl) 0;
}

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

.screenshot-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: var(--spacing-md);
    background: var(--white);
}

.screenshot-caption h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
}

.screenshot-caption p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.demo-guide {
    background: var(--gray-100);
    padding: var(--spacing-2xl) 0;
}

.guide-content {
    max-width: 900px;
    margin: 0 auto;
}

.guide-content h2 {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.guide-steps {
    display: grid;
    gap: var(--spacing-lg);
}

.guide-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 900;
    font-family: var(--font-secondary);
}

.step-content h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.step-content p {
    margin: 0;
    color: var(--gray-600);
}

/* ========== FAQ Section ========== */
.faq-section {
    padding: var(--spacing-2xl) 0;
}

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

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition-base);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    margin: 0;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== Contact Page ========== */
.contact-section {
    padding: var(--spacing-2xl) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.contact-intro {
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-detail-item {
    display: flex;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.contact-text p,
.contact-text a {
    color: var(--gray-600);
    margin: 0;
}

.contact-text a:hover {
    color: var(--primary-color);
}

.social-connect h4 {
    margin-bottom: var(--spacing-md);
}

.social-links-large {
    display: grid;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.social-link i {
    font-size: 1.25rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.contact-form-wrapper > p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input {
    width: auto;
    cursor: pointer;
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: none;
}

.form-message.success {
    background: var(--success);
    color: var(--white);
    display: block;
}

.form-message.error {
    background: var(--error);
    color: var(--white);
    display: block;
}

.quick-actions {
    background: var(--gray-100);
    padding: var(--spacing-2xl) 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.quick-action-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.qa-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--white);
    font-size: 2rem;
}

.quick-action-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.quick-action-card p {
    color: var(--gray-600);
    margin: 0;
}

.qa-arrow {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition-base);
}

.quick-action-card:hover .qa-arrow {
    opacity: 1;
    left: var(--spacing-lg);
}

.map-section {
    padding: var(--spacing-2xl) 0;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========== Responsive Design ========== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-xl);
        transition: var(--transition-base);
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-intro,
    .demo-intro-content,
    .main-service-content {
        grid-template-columns: 1fr;
    }
    
    .preview-item {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .access-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
