/* CSS Variables */
:root {
    --black-deep: #0a0a0f;
    --black-mid: #12121a;
    --black-light: #1a1a25;
    --black-surface: #22222f;
    
    --green-neon: #00ff88;
    --green-bright: #00e67a;
    --green-mid: #00cc6b;
    --green-dark: #00995a;
    --green-glow: rgba(0, 255, 136, 0.3);
    
    --blue-neon: #00d4ff;
    --blue-bright: #00b8e6;
    --blue-mid: #0099cc;
    --blue-dark: #007799;
    --blue-glow: rgba(0, 212, 255, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    --gradient-main: linear-gradient(135deg, var(--green-neon), var(--blue-neon));
    --gradient-dark: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--black-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--green-neon);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 8s infinite;
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1);
    }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--green-glow);
    top: -100px;
    left: -100px;
    animation: orb-float 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--blue-glow);
    top: 50%;
    right: -100px;
    animation: orb-float 12s ease-in-out infinite reverse;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(0, 255, 136, 0.15);
    bottom: -150px;
    left: 30%;
    animation: orb-float 18s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

/* Corner Decorations */
.corner-decor {
    position: fixed;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 100;
}

.corner-decor::before,
.corner-decor::after {
    content: '';
    position: absolute;
    background: var(--gradient-main);
}

.corner-decor.top-left {
    top: 20px;
    left: 20px;
}
.corner-decor.top-left::before {
    width: 60px;
    height: 2px;
    top: 0;
    left: 0;
}
.corner-decor.top-left::after {
    width: 2px;
    height: 60px;
    top: 0;
    left: 0;
}

.corner-decor.top-right {
    top: 20px;
    right: 20px;
}
.corner-decor.top-right::before {
    width: 60px;
    height: 2px;
    top: 0;
    right: 0;
}
.corner-decor.top-right::after {
    width: 2px;
    height: 60px;
    top: 0;
    right: 0;
}

.corner-decor.bottom-left {
    bottom: 20px;
    left: 20px;
}
.corner-decor.bottom-left::before {
    width: 60px;
    height: 2px;
    bottom: 0;
    left: 0;
}
.corner-decor.bottom-left::after {
    width: 2px;
    height: 60px;
    bottom: 0;
    left: 0;
}

.corner-decor.bottom-right {
    bottom: 20px;
    right: 20px;
}
.corner-decor.bottom-right::before {
    width: 60px;
    height: 2px;
    bottom: 0;
    right: 0;
}
.corner-decor.bottom-right::after {
    width: 2px;
    height: 60px;
    bottom: 0;
    right: 0;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section - Talking Head */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.talking-head-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.head-glow {
    position: absolute;
    width: 450px;
    height: 700px;
    background: radial-gradient(ellipse, var(--green-glow), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: head-glow-pulse 3s ease-in-out infinite;
}

@keyframes head-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.head-wrapper {
    position: relative;
    width: 350px;
    height: 603px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: head-idle 4s ease-in-out infinite;
}

@keyframes head-idle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

.face-top {
    position: absolute;
    top: 0;
    width: 350px;
    height: 485px; /* Cut lower at the lips */
    overflow: hidden;
    z-index: 2;
    transform-origin: bottom center;
    animation: talk-top 0.25s ease-in-out infinite;
}

.face-bottom {
    position: absolute;
    top: 485px; /* Starts where top ends - at the lips */
    width: 350px;
    height: 118px; /* Remaining height: 603 - 485 */
    overflow: hidden;
    z-index: 1;
    transform-origin: top center;
    animation: talk-bottom 0.25s ease-in-out infinite;
}

/* Smooth but still opens from both sides */
@keyframes talk-top {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-0.5deg); }
}

@keyframes talk-bottom {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(8px) rotate(0.5deg); }
}

.face-image {
    width: 350px;
    height: auto;
    display: block;
}

.face-top .face-image {
    position: absolute;
    top: 0;
}

.face-bottom .face-image {
    position: absolute;
    top: -485px; /* Negative of the cut position */
}

/* Chat Bubble */
.chat-bubble {
    position: absolute;
    right: -280px;
    top: 20px;
    z-index: 10;
    animation: bubble-float 3s ease-in-out infinite;
}

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

.bubble-content {
    background: var(--black-surface);
    border: 2px solid var(--green-neon);
    border-radius: 20px;
    padding: 20px 25px;
    position: relative;
    max-width: 250px;
    box-shadow: 
        0 0 20px var(--green-glow),
        inset 0 0 30px rgba(0, 255, 136, 0.05);
}

.bubble-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--green-glow);
    letter-spacing: 1px;
    line-height: 1.5;
}

.bubble-tail {
    position: absolute;
    left: -20px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid var(--green-neon);
}

.bubble-tail::after {
    content: '';
    position: absolute;
    left: 4px;
    top: -12px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 16px solid var(--black-surface);
}

.bubble-glow {
    position: absolute;
    inset: -5px;
    background: var(--green-neon);
    filter: blur(20px);
    opacity: 0.2;
    border-radius: 25px;
    z-index: -1;
    animation: bubble-glow-pulse 2s ease-in-out infinite;
}

@keyframes bubble-glow-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Schedule Section */
.schedule-section {
    margin-top: 60px;
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.header-line {
    flex: 1;
    max-width: 200px;
    height: 2px;
    background: var(--gradient-main);
    position: relative;
}

.header-line::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--green-neon);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.header-line.left::before {
    right: 0;
}

.header-line.right::before {
    left: 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    font-size: 1.5rem;
    -webkit-text-fill-color: var(--green-neon);
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Calendar Container */
.calendar-container {
    background: var(--black-mid);
    border: 1px solid var(--black-surface);
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 136, 0.05);
}

.calendar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.calendar-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(ellipse, var(--green-glow), transparent);
    filter: blur(40px);
    opacity: 0.3;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: var(--black-surface);
    border: 1px solid var(--green-dark);
    border-radius: 12px;
    color: var(--green-neon);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--green-dark);
    border-color: var(--green-neon);
    box-shadow: 0 0 20px var(--green-glow);
    transform: scale(1.05);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

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

.month-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    letter-spacing: 3px;
}

.year-display {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--blue-neon);
    letter-spacing: 5px;
}

/* Calendar Weekdays */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--black-surface);
}

.weekday {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.weekday.weekend {
    color: var(--text-muted);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--black-surface);
    border: 1px solid transparent;
}

.calendar-day:not(.empty):not(.disabled):not(.past):hover {
    background: var(--green-dark);
    border-color: var(--green-neon);
    color: var(--text-primary);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--green-glow);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    background: rgba(30, 30, 40, 0.5);
}

.calendar-day.past {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.today {
    border-color: var(--blue-neon);
    box-shadow: 0 0 15px var(--blue-glow);
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    background: var(--blue-neon);
    border-radius: 50%;
}

.calendar-day.selected {
    background: var(--gradient-main);
    color: var(--black-deep);
    border-color: transparent;
    box-shadow: 0 0 25px var(--green-glow);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.time-modal {
    background: var(--black-mid);
    border: 1px solid var(--green-dark);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 50px var(--green-glow);
}

.modal-overlay.active .time-modal {
    transform: scale(1) translateY(0);
}

.time-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 20px 20px 0 0;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.selected-date {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--green-neon);
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    background: var(--black-surface);
    border: 1px solid var(--black-light);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.time-slot {
    padding: 15px 10px;
    background: var(--black-surface);
    border: 1px solid var(--black-light);
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.time-slot:hover {
    border-color: var(--blue-mid);
    color: var(--blue-neon);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--blue-dark);
    border-color: var(--blue-neon);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--blue-glow);
}

/* Confirm Button */
.confirm-btn {
    width: 100%;
    padding: 18px;
    background: var(--black-surface);
    border: 2px solid var(--green-dark);
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: not-allowed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
}

.confirm-btn:not(:disabled) {
    background: var(--gradient-main);
    border-color: transparent;
    color: var(--black-deep);
    cursor: pointer;
}

.confirm-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--green-glow);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
}

.confirm-btn:not(:disabled) .btn-glow {
    animation: btn-shimmer 2s infinite;
}

@keyframes btn-shimmer {
    100% { transform: translateX(100%); }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--black-surface);
    border: 1px solid var(--green-neon);
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1002;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--green-glow);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: var(--green-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--black-deep);
    font-weight: bold;
}

.toast-message {
    display: flex;
    flex-direction: column;
}

.toast-message strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--green-neon);
    letter-spacing: 1px;
}

.toast-message span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .chat-bubble {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 30px;
    }
    
    .bubble-tail {
        display: none;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .title-icon {
        font-size: 1rem;
    }
    
    .header-line {
        max-width: 50px;
    }
    
    .calendar-container {
        padding: 20px 15px;
    }
    
    .calendar-weekdays,
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    .month-name {
        font-size: 1.3rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .head-wrapper {
        width: 250px;
        height: 431px;
    }
    
    .face-top {
        width: 250px;
        height: 346px; /* 485 * (250/350) */
    }
    
    .face-bottom {
        width: 250px;
        height: 85px; /* 118 * (250/350) */
        top: 346px;
    }
    
    .face-image {
        width: 250px;
    }
    
    .face-bottom .face-image {
        top: -346px;
    }
}