/*
    File: main.css
    Purpose: Global stylesheet for GenCon SG - Contains CSS variables, base styles, and utility classes
    Author: to be assigned
    Date: December 2025
    Description: This is the main stylesheet that defines:
                 - CSS custom properties (colors, fonts, spacing)
                 - Base typography and layout
                 - Reusable utility classes
                 - Common component styles (buttons, cards, forms)
                 - Responsive design utilities
*/

/* ==================== CSS CUSTOM PROPERTIES (VARIABLES) ==================== */
:root {
    /* ============ WHIMSICAL & FUN COLOR PALETTE ============ */

    /* Primary Brand Colors - Candy-inspired */
    --primary-color: #FF6B9D;        /* Bubblegum pink - playful primary */
    --primary-hover: #FF4785;        /* Deeper pink for hover */
    --secondary-color: #A855F7;      /* Grape purple - fun accent */
    --success-color: #10B981;        /* Mint green - fresh success */
    --warning-color: #FBBF24;        /* Sunny yellow - cheerful warning */
    --danger-color: #F43F5E;         /* Coral red - soft danger */
    --info-color: #06B6D4;           /* Cyan splash - bright info */

    /* Senior-specific Colors (warm, friendly, accessible) */
    --senior-primary: #F97316;       /* Tangerine orange - warm & inviting */
    --senior-secondary: #22C55E;     /* Leaf green - natural & calming */
    --senior-accent: #FACC15;        /* Sunflower yellow - cheerful */
    --senior-gradient: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FED7AA 100%);
    --senior-card-glow: rgba(249, 115, 22, 0.15);

    /* Youth-specific Colors (vibrant, energetic, fun) */
    --youth-primary: #8B5CF6;        /* Electric violet - modern & cool */
    --youth-secondary: #3B82F6;      /* Ocean blue - refreshing */
    --youth-accent: #EC4899;         /* Hot pink - exciting */
    --youth-gradient: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 50%, #DDD6FE 100%);
    --youth-card-glow: rgba(139, 92, 246, 0.15);

    /* Admin-specific Colors (professional but friendly) */
    --admin-primary: #475569;        /* Slate - professional */
    --admin-secondary: #14B8A6;      /* Teal pop - modern */
    --admin-accent: #F59E0B;         /* Amber accent */

    /* Fun Gradient Presets */
    --gradient-rainbow: linear-gradient(90deg, #FF6B9D, #A855F7, #3B82F6, #10B981, #FBBF24);
    --gradient-sunset: linear-gradient(135deg, #F97316 0%, #EC4899 50%, #8B5CF6 100%);
    --gradient-ocean: linear-gradient(135deg, #06B6D4 0%, #3B82F6 50%, #8B5CF6 100%);
    --gradient-candy: linear-gradient(135deg, #FF6B9D 0%, #A855F7 100%);
    --gradient-nature: linear-gradient(135deg, #22C55E 0%, #10B981 50%, #06B6D4 100%);

    /* Neutral Colors - Softer, warmer tones */
    --white: #FFFFFF;
    --black: #1E1E2E;                /* Soft black - easier on eyes */
    --gray-100: #FAFAFA;             /* Warm white - backgrounds */
    --gray-200: #F4F4F5;             /* Soft gray - borders */
    --gray-300: #E4E4E7;             /* Light gray */
    --gray-400: #D4D4D8;             /* Medium gray */
    --gray-500: #A1A1AA;             /* Mid gray - muted text */
    --gray-600: #71717A;             /* Dark gray - secondary text */
    --gray-700: #52525B;             /* Darker gray */
    --gray-800: #3F3F46;             /* Very dark gray */
    --gray-900: #27272A;             /* Near black - primary text */

    /* Playful Accent Colors */
    --peach: #FFDAB9;
    --lavender: #E6E6FA;
    --mint: #98FB98;
    --coral: #FF7F7F;
    --sky: #87CEEB;

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;          /* Base font size */
    --font-size-sm: 14px;            /* Small text */
    --font-size-lg: 18px;            /* Large text */
    --font-size-xl: 20px;            /* Extra large text */
    --font-size-xxl: 24px;           /* Heading size */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing Scale (based on 8px grid) */
    --spacing-xs: 0.25rem;           /* 4px */
    --spacing-sm: 0.5rem;            /* 8px */
    --spacing-md: 1rem;              /* 16px */
    --spacing-lg: 1.5rem;            /* 24px */
    --spacing-xl: 2rem;              /* 32px */
    --spacing-xxl: 3rem;             /* 48px */

    /* Border Radius - Extra rounded for playfulness */
    --border-radius-sm: 0.5rem;      /* 8px - small elements */
    --border-radius-md: 0.75rem;     /* 12px - default */
    --border-radius-lg: 1.25rem;     /* 20px - cards */
    --border-radius-xl: 2rem;        /* 32px - special elements */
    --border-radius-pill: 50rem;     /* Pill-shaped (fully rounded) */
    --border-radius-blob: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Fun blob shape */

    /* Shadows - Softer, more colorful */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow-pink: 0 4px 20px rgba(255, 107, 157, 0.3);
    --shadow-glow-purple: 0 4px 20px rgba(168, 85, 247, 0.3);
    --shadow-glow-blue: 0 4px 20px rgba(59, 130, 246, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==================== GLOBAL RESETS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default link underlines */
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

/* Consistent image rendering */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== BASE STYLES ==================== */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-100);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Main content container */
.main-content {
    min-height: calc(100vh - 200px); /* Ensure footer stays at bottom */
    padding: var(--spacing-xl) 0;
}

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

h1 { font-size: 2.5rem; }   /* 40px */
h2 { font-size: 2rem; }     /* 32px */
h3 { font-size: 1.75rem; }  /* 28px */
h4 { font-size: 1.5rem; }   /* 24px */
h5 { font-size: 1.25rem; }  /* 20px */
h6 { font-size: 1rem; }     /* 16px */

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

/* Text utility classes */
.text-muted {
    color: var(--gray-600) !important;
}

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

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    font-weight: var(--font-weight-medium);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-base);
    line-height: 1.5;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button variants */
/* Playful Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34D399 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #FB7185 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #FCD34D 100%);
    color: var(--black);
    border: none;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

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

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

/* Button sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-lg);
}

/* ==================== CARDS ==================== */
/* Playful Card Styles */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.2);
}

.card-header {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gray-200);
}

.card-body {
    padding: var(--spacing-md) 0;
}

.card-footer {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
    margin-top: var(--spacing-md);
}

/* ==================== FORMS ==================== */
.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-control:disabled {
    background-color: var(--gray-200);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form validation states */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--danger-color);
}

.valid-feedback {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--success-color);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius-pill);
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-success {
    background-color: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--gray-900);
}

.badge-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

/* ==================== ALERTS ==================== */
.alert {
    position: relative;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
}

.alert-success {
    background-color: #D4EDDA;
    border-color: #C3E6CB;
    color: #155724;
}

.alert-danger {
    background-color: #F8D7DA;
    border-color: #F5C6CB;
    color: #721C24;
}

.alert-warning {
    background-color: #FFF3CD;
    border-color: #FFEAA7;
    color: #856404;
}

.alert-info {
    background-color: #D1ECF1;
    border-color: #BEE5EB;
    color: #0C5460;
}

/* ==================== MODALS ==================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: var(--z-modal);
}

/* Custom Confirmation Modal (Prevents Bootstrap Conflict) */
.custom-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7); /* Darker backdrop */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-confirm-modal {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    z-index: 10001;
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

.modal-close:hover {
    color: var(--gray-900);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) 0;
}

.navbar-brand {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

/* ==================== UTILITY CLASSES ==================== */
/* Spacing utilities */
.m-0 { margin: 0; }
.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); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font weight */
.fw-light { font-weight: var(--font-weight-light); }
.fw-normal { font-weight: var(--font-weight-normal); }
.fw-medium { font-weight: var(--font-weight-medium); }
.fw-semibold { font-weight: var(--font-weight-semibold); }
.fw-bold { font-weight: var(--font-weight-bold); }

/* Border radius */
.rounded { border-radius: var(--border-radius-md); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-circle { border-radius: 50%; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

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

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

/* Animation utility classes */
.fade-in {
    animation: fadeIn var(--transition-base);
}

.slide-up {
    animation: slideUp var(--transition-base);
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Tablets and below (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

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

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

/* Mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    .modal {
        width: 95%;
        padding: var(--spacing-lg);
    }
}

/* ==================== ACCESSIBILITY ==================== */
/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Default Avatar */
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Default Purple/Blue */
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50%;
    overflow: hidden;
    font-size: 1.2rem; /* Adjust based on size */
}

/* Specific Sizes */
.avatar-placeholder.sm { width: 40px; height: 40px; font-size: 1rem; }
.avatar-placeholder.md { width: 80px; height: 80px; font-size: 2rem; }
.avatar-placeholder.lg { width: 150px; height: 150px; font-size: 4rem; }

/* Senior specific color */
.senior-theme .avatar-placeholder {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
}

/* Youth specific color */
.youth-theme .avatar-placeholder {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
}

/* ==================== NOTIFICATIONS ==================== */
/* Ensure notifications text fits */
.notification-dropdown {
    width: 350px !important;
}

.notification-item {
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    border-bottom: 1px solid var(--gray-200);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: var(--gray-100);
}

/* ==================== SOCIAL MEDIA BUTTONS ==================== */
.social-media-icons {
  display: flex;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}

.social-media-icons li {
  list-style: none;
}

.social-media-icons li a {
  width: 40px;
  height: 40px;
  background-color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  margin: 0 10px 0 0;
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid #ddd;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-media-icons li a .icon {
  position: relative;
  color: #262626;
  transition: .5s;
  z-index: 3;
}

.social-media-icons li a:hover .icon {
  color: #fff;
  transform: rotateY(360deg);
}

.social-media-icons li a:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f00;
  transition: .5s;
  z-index: 2;
}

.social-media-icons li a:hover:before {
  top: 0;
}

.social-media-icons li:nth-child(1) a:before{
  background: #3b5999;
}

.social-media-icons li:nth-child(2) a:before{
  background: #55acee;
}

.social-media-icons li:nth-child(3) a:before {
  background: #0077b5;
}

.social-media-icons li:nth-child(4) a:before {
  background: #dd4b39;
}
/* ==================== REVIEWS SECTION ==================== */
.reviews-container {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 3rem;
}

.reviews-list {
    position: relative;
    transform-style: preserve-3d;
    perspective: 500px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: 500ms;
    padding: 0;
    width: 450px;
}

.reviews-list:hover {
    gap: 20px;
}

.reviews-list li {
    position: relative;
    list-style: none;
    width: 100%;
    height: 120px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 0 12px rgba(0, 0, 0, .24);
    transition: 500ms;
    transition-delay: calc(var(--i) * 50ms);
    cursor: pointer;
    text-align: left;
}

.reviews-list li:nth-child(1) {
    transform: translateZ(-75px) translateY(20px);
    opacity: .6;
    filter: blur(4px);
}

.reviews-list li:nth-child(2) {
    opacity: .8;
    filter: blur(2px);
}

.reviews-list li:nth-child(3) {
    transform: translateZ(65px) translateY(-30px);
}

.reviews-list li:nth-child(4) {
    transform: translateZ(125px) translateY(-68px);
    filter: blur(1px);
}

.reviews-list:hover li {
    opacity: 1;
    filter: blur(0);
    transform: translateZ(0) translateY(0);
}

.reviews-list li img {
    max-width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.reviews-list li .content {
    width: 100%;
}

.reviews-list li .content h3 {
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1;
    font-size: 1.125rem;
    color: #212529;
}

.reviews-list li .content .stars {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.reviews-list li .content p {
    opacity: .8;
    line-height: 1.4;
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
    font-style: italic;
}

/* ==================== LANDING SPLIT LAYOUT ==================== */
.landing-split-layout {
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically align centers */
    gap: 8rem; /* Increased gap to prevent overlapping */
    flex-wrap: wrap;
    margin-top: 4rem;
    width: 100%;
    max-width: 1400px; /* Increased max-width to accommodate spacing */
    margin-left: auto;
    margin-right: auto;
}

/* Techy Header Style */
.tech-header {
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Courier New', Courier, monospace; /* Monospace for tech feel */
    letter-spacing: -4px;
    font-size: 8rem; /* Much larger and prominent */
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ==================== GLASS CARDS (New Features Section) ==================== */
.glass-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 700px; /* Increased for 300px cards */
}

.glass-cards-container .box {
    position: relative;
    width: 300px; /* Increased size */
    height: 300px; /* Increased size */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    transition: 0.5s;
}

.glass-cards-container .box::before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
}

.glass-cards-container .box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
    filter: blur(30px);
}

.glass-cards-container .box:hover:before,
.glass-cards-container .box:hover:after {
    transform: skewX(0deg);
    left: 20px;
    width: calc(100% - 40px);
}

/* Card Gradients */
.glass-cards-container .box:nth-child(1):before,
.glass-cards-container .box:nth-child(1):after {
    background: linear-gradient(315deg, #ffbc00, #ff0058);
}

.glass-cards-container .box:nth-child(2):before,
.glass-cards-container .box:nth-child(2):after {
    background: linear-gradient(315deg, #03a9f4, #ff0058);
}

.glass-cards-container .box:nth-child(3):before,
.glass-cards-container .box:nth-child(3):after {
    background: linear-gradient(315deg, #4dff03, #00d0ff);
}

.glass-cards-container .box:nth-child(4):before,
.glass-cards-container .box:nth-child(4):after {
    background: linear-gradient(315deg, #f1c40f, #8e44ad);
}

.glass-cards-container .box span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.glass-cards-container .box span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.1s;
    animation: animate 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.glass-cards-container .box:hover span::before {
    top: -40px; /* Adjusted for smaller size */
    left: 40px;
    width: 80px;
    height: 80px;
    opacity: 1;
}

.glass-cards-container .box span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.5s;
    animation: animate 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    animation-delay: -1s;
}

.glass-cards-container .box:hover span:after {
    bottom: -40px; /* Adjusted for smaller size */
    right: 40px;
    width: 80px;
    height: 80px;
    opacity: 1;
}

@keyframes animate {
    0%, 100% { transform: translateY(10px); }
    50% { transform: translate(-10px); }
}

.glass-cards-container .box .content {
    position: relative;
    left: 0;
    padding: 15px 20px; /* Reduced padding */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1;
    transition: 0.5s;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-cards-container .box:hover .content {
    left: -15px; /* Reduced shift */
    padding: 20px 20px;
}

.glass-cards-container .box .content h2 {
    font-size: 1.4em; /* Smaller font */
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.glass-cards-container .box .content p {
    font-size: 0.9em; /* Smaller font */
    margin-bottom: 15px;
    line-height: 1.3em;
    color: rgba(255,255,255,0.9);
}

.glass-cards-container .box .content a {
    display: inline-block;
    font-size: 0.9em;
    color: #111;
    background: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
    align-self: flex-start;
}

.glass-cards-container .box .content a:hover {
    background: #ffcf4d;
    border: 1px solid rgba(255, 0, 88, 0.4);
    box-shadow: 0 1px 15px rgba(1, 1, 1, 0.2);
}

/* Override Reviews Container when in split layout */
.landing-split-layout .reviews-container {
    margin-top: 0;
    width: auto;
    transform: scale(1.0); /* Restore to full size */
    margin-left: 0; 
    flex-shrink: 0; /* Prevent shrinking too much */
}


