/* ==========================================
   WEARABLE LEARNING - OFFICIAL BRAND COLORS
   Based on WearableLearning Branding Guidelines.pdf
   ========================================== */

/* CSS Variables - Official Brand Colors */
:root {
    /* Primary Brand Colors - Purple Theme */
    --color-primary: #7C3AED;
    /* Primary Purple */
    --color-primary-dark: #6D28D9;
    /* Darker Purple */
    --color-primary-light: #8B5CF6;
    /* Lighter Purple */

    --color-secondary: #E5700D;
    /* Orange/Amber */
    --color-secondary-dark: #C4610B;
    --color-secondary-light: #EF8934;

    --color-accent: #00A8A3;
    /* Teal/Turquoise */
    --color-accent-dark: #008B87;

    /* Neutral Colors */
    --color-dark: #1B1B1B;
    /* Almost Black */
    --color-gray-900: #2D2D2D;
    --color-gray-800: #3F3F3F;
    --color-gray-700: #5C5C5C;
    --color-gray-600: #7A7A7A;
    --color-gray-500: #969696;
    --color-gray-400: #B5B5B5;
    --color-gray-300: #D4D4D4;
    --color-gray-200: #E8E8E8;
    --color-gray-100: #F5F5F5;
    --color-white: #FFFFFF;

    /* Semantic Colors */
    --color-success: #00A8A3;
    --color-warning: #E5700D;
    --color-error: #D5312B;
    --color-info: #005EA2;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 3.75rem);

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --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;

    /* Layout */
    --container-max: 1280px;
    --container-padding: var(--space-6);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

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

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    max-width: 70ch;
}

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

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

strong {
    font-weight: 600;
    color: var(--color-dark);
}

em {
    font-style: italic;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: var(--space-20) 0;
}

.section-light {
    background-color: var(--color-white);
}

.section-gray {
    background-color: var(--color-gray-100);
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

/* ==========================================
   MODERN HEADER & NAVIGATION
   ========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.site-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-6);
    align-items: center;
}

.nav-link {
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-primary);
    background-color: var(--color-gray-100);
    text-decoration: none;
}

.nav-cta {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--color-gray-700);
    cursor: pointer;
    padding: var(--space-2);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--space-4);
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 70vh;
    /* Reduced from 85vh */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    overflow: hidden;
    padding: var(--space-12) 0;
    /* Added padding to ensure content fits */
}

/* ... (keep existing styles) ... */

.hero-carousel-container {
    position: relative;
    width: 500px;
    /* Increased from 400px */
    height: 500px;
    /* Increased from 400px */
    transform: rotate(5deg);
    border-radius: var(--radius-2xl);
    border: 8px solid var(--color-white);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    background: var(--color-gray-200);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(229, 112, 13, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 163, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    color: var(--color-white);
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: var(--text-xl);
    opacity: 0.95;
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-carousel-container {
    position: relative;
    width: 400px;
    height: 400px;
    transform: rotate(5deg);
    border-radius: var(--radius-2xl);
    border: 8px solid var(--color-white);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    background: var(--color-gray-200);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel img.active {
    opacity: 1;
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide on mobile for better layout, or adjust size */
    }
}

/* ==========================================
   FEATURE ROWS (Alternating Layout)
   ========================================== */

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    margin-bottom: var(--space-16);
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
    /* Simple way to reverse grid order */
}

.feature-row.reverse>* {
    direction: ltr;
    /* Reset direction for content */
}

.feature-text h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    color: var(--color-primary-dark);
}

.feature-text p {
    font-size: var(--text-lg);
    color: var(--color-gray-700);
}

.feature-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-base);
}

.feature-img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--space-8);
        text-align: center;
    }

    .feature-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

.rounded {
    border-radius: var(--radius-xl);
}

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

.py-12 {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* ==========================================
   CARDS & CONTENT BLOCKS
   ========================================== */

.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-4);
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

/* ==========================================
   SECTION TITLES
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-subtitle {
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   FOOTER - IMPROVED DESIGN
   ========================================== */

.site-footer {
    background: var(--color-dark);
    color: var(--color-gray-300);
    padding: var(--space-20) 0 var(--space-8);
    border-top: 4px solid var(--color-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
    font-weight: 700;
}

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

.footer-section li {
    margin-bottom: var(--space-3);
}

.footer-section a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
    font-size: var(--text-sm);
}

.footer-section a:hover {
    color: var(--color-primary-light);
    text-decoration: none;
}

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

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--color-gray-400);
    margin-top: var(--space-4);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--color-gray-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
    list-style: none;
}

.footer-bottom-links a {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

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

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

.text-white {
    color: var(--color-white);
}

.text-muted {
    color: var(--color-gray-600);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
    }

    .hero {
        min-height: 70vh;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

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

/* ==========================================
   ANIMATIONS
   ========================================== */

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

html {
    scroll-padding-top: 80px;
}