/**
 * EduPassify - Modern Educational Platform
 * Main Stylesheet for Public Pages
 * Colors: Primary Blue (#0c64e7), Golden Yellow (#e7c20c), Dark (#171508), White (#ffffff)
 */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-blue: #0c64e7;
    --golden-yellow: #e7c20c;
    --dark-bg: #171508;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --gradient-blue: linear-gradient(135deg, #0c64e7 0%, #0952be 100%);
    --gradient-yellow: linear-gradient(135deg, #e7c20c 0%, #d4b00a 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(12, 100, 231, 0.9) 0%, rgba(231, 194, 12, 0.8) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

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

/* Performance optimizations */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent white flash on page load */
html,
body {
    background-color: #171508;
}

body {
    /* Enable hardware acceleration for smoother scrolling */
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--dark-bg);
    line-height: 1.6;
    background: var(--white);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-bg);
}

h1 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h2 { font-size: clamp(1.2rem, 2.8vw, 1.6rem); }
h3 { font-size: clamp(1rem, 2.2vw, 1.3rem); }
h4 { font-size: clamp(0.95rem, 1.8vw, 1.15rem); }

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

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

a:hover {
    color: var(--golden-yellow);
}

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

/* ==================== UTILITY CLASSES ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-lg {
    padding: 120px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-blue) !important; }
.text-yellow { color: var(--golden-yellow) !important; }
.text-dark { color: var(--dark-bg) !important; }
.text-white { color: var(--white) !important; }

.bg-primary { background: var(--primary-blue); }
.bg-yellow { background: var(--golden-yellow); }
.bg-dark { background: var(--dark-bg); }
.bg-white { background: var(--white); }
.bg-light { background: var(--light-gray); }

.bg-gradient-blue { background: var(--gradient-blue); }

/* Blue background sections - ensure p elements have proper color */
section[style*="background: linear-gradient"][style*="primary-blue"] p,
section[style*="background"][style*="primary-blue"] p {
    color: var(--golden-yellow) !important;
}

section[style*="background: linear-gradient"][style*="primary-blue"] a:not(.btn),
section[style*="background"][style*="primary-blue"] a:not(.btn) {
    color: var(--golden-yellow);
}
.bg-gradient-yellow { background: var(--gradient-yellow); }

/* Animation Delays */
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }
.anim-delay-7 { animation-delay: 0.7s; }
.anim-delay-8 { animation-delay: 0.8s; }
.anim-delay-10 { animation-delay: 1s; }

/* Spacing Utilities */
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mr-8 { margin-right: 8px; }
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }

/* Width Utilities */
.w-100 { width: 100%; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.max-w-900 { max-width: 900px; margin-left: auto; margin-right: auto; }

/* Feature List Styles */
.feature-list {
    list-style: none;
    padding: 12px 0 0 0;
    color: var(--dark-gray);
    font-size: clamp(0.7rem, 1vw, 0.8rem);
}

.feature-list li {
    padding: 5px 0;
}

.feature-list .check-icon {
    color: var(--primary-blue);
    margin-right: 8px;
    font-size: 0.75rem;
}

/* Goals List */
.goals-list {
    list-style: none;
    padding: 0;
    text-align: left;
    color: var(--dark-gray);
    font-size: clamp(0.75rem, 1vw, 0.85rem);
}

.goals-list li {
    padding: 8px 0;
}

.goals-list .check-circle-icon {
    color: var(--primary-blue);
    margin-right: 10px;
}

/* Border Utilities */
.border-top-blue { border-top: 4px solid var(--primary-blue); }
.border-top-yellow { border-top: 4px solid var(--golden-yellow); }

/* Background Utilities */
.bg-blue-light { background: rgba(12, 100, 231, 0.1); }
.bg-yellow-light { background: rgba(231, 194, 12, 0.1); }

/* Text Size Utilities */
.text-sm { font-size: clamp(0.7rem, 1vw, 0.8rem); }
.text-xs { font-size: clamp(0.65rem, 0.9vw, 0.75rem); }

/* Font Style */
.text-italic { font-style: italic; }
.font-semibold { font-weight: 600; }

/* Float Icons */
.float-icon-lg {
    font-size: clamp(60px, 10vw, 80px);
}

.float-icon-md {
    font-size: clamp(50px, 9vw, 70px);
}

.float-icon-yellow { color: #e7c20c; }
.float-icon-blue { color: #0c64e7; }

/* Team/About Cards */
.team-description {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: var(--dark-gray);
    margin-top: 10px;
}

.founder-title {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.founder-role {
    color: var(--golden-yellow);
    font-weight: 600;
    margin-bottom: 20px;
}

.founder-quote {
    font-style: italic;
    color: var(--dark-gray);
    margin-top: 20px;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes bobble {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(-5deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(5deg); 
    }
}

@keyframes popupBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(30px);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg);
    }
}

@keyframes flipInY {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

@keyframes slideRotate {
    from {
        opacity: 0;
        transform: translateX(-100px) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rollIn {
    from {
        opacity: 0;
        transform: translateX(-100%) rotate(-120deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out; }
.animate-fade-in-down { animation: fadeInDown 0.8s ease-out; }
.animate-fade-in-left { animation: slideInLeft 0.8s ease-out; }
.animate-fade-in-right { animation: slideInRight 0.8s ease-out; }
.animate-slide-left { animation: slideInLeft 0.8s ease-out; }
.animate-slide-right { animation: slideInRight 0.8s ease-out; }
.animate-slide-top { animation: slideInTop 0.8s ease-out; }
.animate-slide-bottom { animation: slideInBottom 0.8s ease-out; }
.animate-scale-in { animation: scaleIn 0.6s ease-out; }
.animate-zoom-in { animation: zoomIn 0.6s ease-out; }
.animate-popup { animation: popupBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.animate-flip-x { animation: flipInX 0.8s ease-out; }
.animate-flip-y { animation: flipInY 0.8s ease-out; }
.animate-slide-rotate { animation: slideRotate 0.9s ease-out; }
.animate-bounce-in { animation: bounceIn 0.7s ease-out; }
.animate-roll-in { animation: rollIn 0.9s ease-out; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-bobble { animation: bobble 2s ease-in-out infinite; }
.animate-swing { animation: swing 1s ease-in-out; }
.animate-shake { animation: shake 0.5s ease-in-out; }

/* Animation paused state for scroll trigger */
.scroll-animate {
    opacity: 0;
    animation-play-state: paused;
}

.scroll-animate.active {
    opacity: 1;
    animation-play-state: running;
}

/* Visible state for scroll-triggered animations */
.animate-visible {
    opacity: 1 !important;
    visibility: visible !important;
    animation-fill-mode: forwards !important;
}

/* Navbar Menu Animation */
.nav-item-animated {
    opacity: 0;
    animation: slideInTop 0.5s ease-out forwards;
}

.navbar-menu.active .nav-item-animated {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(23, 21, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    transition: var(--transition-base);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    position: sticky;
    background: rgba(23, 21, 8, 1);
    box-shadow: var(--shadow-md);
}

.navbar-main {
    padding: 20px 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--white);
}

.navbar-brand img {
    width: 100%;
    height: 42px;
    border-radius: 8px;
}

.navbar-brand span {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.navbar-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    position: relative;
    padding: 5px 0;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--golden-yellow);
    transition: var(--transition-base);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--golden-yellow);
}

.navbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-only {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-toggle:hover {
    color: var(--golden-yellow);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(12, 100, 231, 0.4);
    color: var(--white);
}

.btn-yellow {
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    border-color: var(--golden-yellow);
}

.btn-yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 194, 12, 0.4);
    color: var(--dark-bg);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

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

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

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2715 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(12, 100, 231, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(231, 194, 12, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--golden-yellow);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

/* Floating elements */
.hero-float-1,
.hero-float-2,
.hero-float-3 {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.hero-float-1 {
    top: 10%;
    right: 10%;
    animation: float 4s ease-in-out infinite;
}

.hero-float-2 {
    bottom: 20%;
    left: 5%;
    animation: float 5s ease-in-out infinite;
}

.hero-float-3 {
    top: 40%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    position: relative;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(12, 100, 231, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    color: var(--dark-gray);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    border-radius: 16px;
    margin-bottom: 25px;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card:nth-child(even) .feature-icon {
    background: var(--gradient-yellow);
    color: var(--dark-bg);
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark-bg);
    font-weight: 600;
}

.feature-description {
    color: var(--dark-gray);
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Welcome Section - Image on Right */
.welcome-section {
    grid-template-columns: 1fr 1fr;
}

/* What We Stand For Section - Image on Left (reversed) */
.stand-for-section {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.stand-for-section > * {
    direction: ltr;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-blue);
    border-radius: 20px;
    z-index: -1;
}

.about-text ul {
    list-style: none;
    margin: 30px 0;
}

.about-text li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: var(--dark-gray);
}

.about-text li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ==================== TEAM SECTION ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

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

.team-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--gradient-overlay);
    transition: var(--transition-base);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary-blue);
    transition: var(--transition-base);
}

.team-social a:hover {
    background: var(--golden-yellow);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.team-role {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==================== SERVICES ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover .service-title,
.service-card:hover .service-description {
    color: var(--white);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    color: var(--golden-yellow);
    transform: scale(1.2);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition-base);
}

.service-description {
    color: var(--dark-gray);
    line-height: 1.7;
    transition: var(--transition-base);
}

/* ==================== PRICING SECTION ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 2px solid transparent;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 30px;
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.pricing-price span {
    font-size: 1.2rem;
    color: var(--dark-gray);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.pricing-features li.disabled {
    opacity: 0.4;
}

/* ==================== FAQ SECTION ==================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--white);
    transition: var(--transition-base);
}

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

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-bg);
}

.faq-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--golden-yellow);
    color: var(--dark-bg);
}

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

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--dark-gray);
    line-height: 1.7;
}

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

/* ==================== CONTACT SECTION ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.contact-info-item:hover {
    background: var(--primary-blue);
    transform: translateX(10px);
}

.contact-info-item:hover .contact-info-icon,
.contact-info-item:hover .contact-info-title,
.contact-info-item:hover .contact-info-text {
    color: var(--white);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    color: var(--primary-blue);
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.contact-info-content {
    flex: 1;
}

.contact-info-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-bg);
    transition: var(--transition-base);
}

.contact-info-text {
    color: var(--dark-gray);
    transition: var(--transition-base);
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-bg);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--dark-bg);
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(12, 100, 231, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding-top: 80px;
}

.footer-cta {
    background: var(--gradient-blue);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-cta-text h3 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.footer-cta-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo img {
    height: 60px;
    border-radius: 8px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--golden-yellow);
    transition: var(--transition-base);
}

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

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--golden-yellow);
    transform: translateX(5px);
}

.footer-app {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.app-download {
    display: inline-block;
    transition: var(--transition-base);
}

.app-download img {
    height: 45px;
    border-radius: 8px;
}

.app-download:hover {
    transform: scale(1.05);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-bottom-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-base);
}

.footer-bottom-links a:hover {
    color: var(--golden-yellow);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gradient-yellow);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

/* ==================== LOADER ==================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--golden-yellow);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb-section {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2715 100%);
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(12, 100, 231, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(231, 194, 12, 0.1) 0%, transparent 50%);
}

.breadcrumb-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.breadcrumb-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 20px;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
}

.breadcrumb-nav li {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-nav a {
    color: var(--golden-yellow);
}

/* ==================== RESPONSIVE ==================== */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .navbar-brand {
        font-size: 1.35rem;
    }

    .navbar-brand img {
        width: 100%;
        height: 48px;
    }

    .navbar-menu a {
        font-size: 1rem;
    }

    .btn {
        font-size: 1.05rem;
        padding: 15px 36px;
    }

    .btn-sm {
        font-size: 0.95rem;
        padding: 12px 28px;
    }

    .btn-lg {
        font-size: 1.15rem;
        padding: 16px 40px;
    }

    h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
    h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
    h3 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
    p, body { font-size: clamp(0.85rem, 1.3vw, 0.95rem); }

    .container {
        max-width: 1320px;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand img {
        width: 100%;
        height: 42px;
    }

    .navbar-menu a {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 12px 28px;
    }

    .btn-sm {
        font-size: 0.85rem;
        padding: 10px 22px;
    }

    .btn-lg {
        font-size: 1.05rem;
        padding: 14px 32px;
    }

    h1 { font-size: clamp(1.35rem, 3.2vw, 1.85rem); }
    h2 { font-size: clamp(1.15rem, 2.7vw, 1.55rem); }
    h3 { font-size: clamp(0.95rem, 2.1vw, 1.25rem); }
    p, body { font-size: clamp(0.8rem, 1.2vw, 0.9rem); }
}

@media (max-width: 768px) {
    .navbar-main {
        padding: 10px 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        width: 100%;
        height: 40px;
    }

    .mobile-only {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(100vw, 320px);
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 80px 25px 30px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 1000;
        display: none;
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu li.mobile-nav-buttons {
        border-bottom: none;
        margin-top: 8px;
    }

    .navbar-menu a {
        display: block;
        padding: 14px 0;
        font-size: 0.95rem;
    }

    .mobile-nav-btn {
        display: block;
        width: 100%;
        padding: 12px 20px !important;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem !important;
        margin-top: 5px;
        transition: var(--transition-base);
    }

    .mobile-nav-btn.btn-outline {
        border: 2px solid var(--primary-blue);
        color: var(--primary-blue);
        background: transparent;
    }

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

    .mobile-nav-btn.btn-primary-mobile {
        background: var(--gradient-blue);
        color: var(--white);
        border: 2px solid transparent;
    }

    .mobile-nav-btn.btn-primary-mobile:hover {
        background: var(--primary-blue);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(12, 100, 231, 0.4);
    }

    .navbar-menu a::after {
        display: none;
    }

    .navbar-menu.active {
        right: 0;
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .navbar-actions {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-lg {
        padding: 80px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 11px 24px;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 9px 20px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 12px 28px;
    }

    h1 { font-size: clamp(1.2rem, 2.8vw, 1.6rem); }
    h2 { font-size: clamp(1.05rem, 2.4vw, 1.4rem); }
    h3 { font-size: clamp(0.9rem, 2vw, 1.15rem); }
    h4 { font-size: clamp(0.85rem, 1.7vw, 1rem); }
    p, body { font-size: clamp(0.75rem, 1.1vw, 0.85rem); }

    .feature-list { font-size: clamp(0.65rem, 0.95vw, 0.75rem); }
    .goals-list { font-size: clamp(0.7rem, 0.95vw, 0.8rem); }

    /* Stack all 2-column grid sections vertically at 768px */
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Reset RTL direction for stand-for-section */
    .stand-for-section {
        direction: ltr !important;
    }

    /* Control content order for specific sections */
    .welcome-section .about-text {
        order: 1;
    }

    .welcome-section .about-image {
        order: 2;
    }

    .stand-for-section .about-text {
        order: 1;
    }

    .stand-for-section .about-image {
        order: 2;
    }

    .about-edupassify-section .about-text {
        order: 2;
    }

    .about-edupassify-section .about-image {
        order: 1;
    }

    .download-app-section .about-text {
        order: 1;
    }

    .download-app-section .about-image {
        order: 2;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-cta {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid,
    .services-grid,
    .pricing-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .navbar-menu {
        max-width: 100%;
        padding: 75px 20px 20px;
    }

    .navbar-menu a {
        font-size: 0.9rem;
        padding: 12px 0;
    }

    .mobile-nav-btn {
        font-size: 0.85rem !important;
        padding: 11px 18px !important;
    }

    .navbar-brand {
        font-size: 1.05rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .btn-lg {
        font-size: 0.9rem;
        padding: 11px 24px;
    }

    h1 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
    h2 { font-size: clamp(0.95rem, 2.2vw, 1.25rem); }
    h3 { font-size: clamp(0.85rem, 1.8vw, 1.05rem); }
    h4 { font-size: clamp(0.8rem, 1.5vw, 0.95rem); }
    p, body { font-size: clamp(0.7rem, 1vw, 0.8rem); }

    .feature-list { font-size: 0.7rem; }
    .goals-list { font-size: 0.72rem; }
    .team-description { font-size: 0.72rem; }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .page-loader {
        display: none;
    }
}
