/* ============================================
   ARISE TECH ACADEMY - Professional Styles
   ============================================ */

/* CSS Variables */
:root {
    --maroon-primary: #8B2635;
    --maroon-dark: #6B1E2B;
    --maroon-deep: #4A1219;
    --maroon-light: #CB2D55;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BASE & RESET
   ============================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--gray-950);
}
::-webkit-scrollbar-thumb {
    background: var(--maroon-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--maroon-primary);
}

/* Selection */
::selection {
    background: var(--maroon-primary);
    color: white;
}

/* Pulse slow animation */
.animate-pulse-slow {
    animation: pulseSlow 6s ease-in-out infinite;
}
@keyframes pulseSlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ============================================
   GLASS MORPHISM
   ============================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(139, 38, 53, 0.3);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.glass-card-maroon {
    background: linear-gradient(
        135deg,
        rgba(139, 38, 53, 0.15) 0%,
        rgba(139, 38, 53, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 38, 53, 0.25);
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card-maroon:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 38, 53, 0.15);
}

/* ============================================
   3D & FLOAT EFFECTS
   ============================================ */
.perspective-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.float-3d {
    animation: float3d 6s ease-in-out infinite;
}
@keyframes float3d {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-12px) translateZ(10px); }
}

/* ============================================
   GRADIENTS
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-200) 50%, var(--maroon-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animated-gradient-bg {
    background: linear-gradient(-45deg,
        var(--gray-950),
        var(--maroon-deep),
        var(--gray-900),
        var(--maroon-dark)
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    position: relative;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-dark) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 4px 15px rgba(139, 38, 53, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(139, 38, 53, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    position: relative;
    padding: 14px 28px;
    background: transparent;
    border: 1.5px solid rgba(139, 38, 53, 0.6);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--maroon-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    border-color: var(--maroon-primary);
    color: white;
}
.btn-secondary:hover::before {
    width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--maroon-primary);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* ============================================
   CODE ANIMATION
   ============================================ */
.code-block {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27ca40; }

.code-content {
    padding: 20px;
    font-size: 13px;
    line-height: 1.9;
}

.code-line {
    opacity: 0;
    transform: translateX(-20px);
}
.code-line.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
}

.code-keyword { color: #c792ea; }
.code-function { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-variable { color: #f78c6c; }
.code-comment { color: #546e7a; }
.code-bracket { color: #89ddff; }

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--maroon-primary);
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ============================================
   LAPTOP
   ============================================ */
.laptop-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    perspective: 1500px;
}

.laptop-screen {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 16px 16px 0 0;
    border: 3px solid #333;
    border-bottom: none;
    padding: 20px;
    transform-origin: bottom center;
}

.laptop-base {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    height: 20px;
    border-radius: 0 0 16px 16px;
    position: relative;
}
.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #444;
    border-radius: 0 0 4px 4px;
}

.laptop-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

/* ============================================
   CHART BARS
   ============================================ */
.chart-bar {
    background: linear-gradient(180deg, var(--maroon-primary) 0%, var(--maroon-deep) 100%);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.chart-bar.animated {
    transform: scaleY(1);
}

/* ============================================
   FLOATING ICONS
   ============================================ */
.floating-icon {
    position: absolute;
    animation: floatIcon 6s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139,38,53,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.testimonial-card:hover {
    transform: translateY(-6px);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 100px;
    font-family: Georgia, serif;
    color: var(--maroon-primary);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,38,53,0.4), transparent);
    margin: 0 auto;
    max-width: 600px;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gray-950);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}
.loader-logo {
    margin-bottom: 20px;
}
.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}
.loader-progress {
    height: 100%;
    background: var(--maroon-primary);
    border-radius: 2px;
    animation: loading 1.5s ease-in-out;
}
@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ============================================
   FAQ DETAILS
   ============================================ */
details summary {
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}
details[open] .group-open\:rotate-180 {
    transform: rotate(180deg);
}

/* ============================================
   FORM STYLES
   ============================================ */
input, select, textarea {
    font-family: 'Inter', sans-serif;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--maroon-primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.15);
}

/* Select arrow override */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ============================================
   MODAL ANIMATION
   ============================================ */
#inquiry-modal.active {
    display: flex !important;
}

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

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon-primary), var(--maroon-light));
    z-index: 9999;
    transition: width 0.1s ease;
    pointer-events: none;
}

/* ============================================
   MOBILE STICKY BAR SPACING
   ============================================ */
@media (max-width: 1023px) {
    body {
        padding-bottom: 72px;
    }
    
    /* Hide sticky bar when modal is open */
    body.modal-open #mobile-sticky-bar {
        display: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    .laptop-container {
        transform: scale(0.8);
    }
    .floating-icon {
        display: none;
    }
    
    /* Testimonial cards - smaller quote mark */
    .testimonial-card::before {
        font-size: 60px;
        top: -5px;
    }
}

@media (max-width: 640px) {
    /* Stack modal form fields */
    #modal-inquiry-form .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

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

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* ============================================
   GLOW
   ============================================ */
.glow {
    box-shadow: 0 0 40px rgba(139, 38, 53, 0.2);
}

/* ============================================
   PROCESS STEP CONNECTOR (desktop)
   ============================================ */
@media (min-width: 768px) {
    .process-step + .process-step {
        margin-top: 0;
    }
}

/* ============================================
   FIX: PROCESS STEPS VISIBILITY
   ============================================ */
.process-step {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.process-step .glass-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Ensure all section content is visible */
section {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Process grid specific fix */
#process .grid {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Number badges always on top */
.process-step .absolute.-top-4 {
    z-index: 30;
}