/* 
 * NEON GLASSMORPHISM RESUME THEME
 * Designed for High-Impact Visuals & Interactive UX
 */

:root {
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Light Mode Variables */
    --bg-color: #f0f2f5;
    --text-color: #2d3748;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --input-border: rgba(0, 0, 0, 0.15);
    --primary-color: #6c5ce7;
    /* Neon Purple */
    --secondary-color: #00cec9;
    /* Neon Cyan */
    --nav-bg: rgba(255, 255, 255, 0.85);
    --card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --glow-color: rgba(108, 92, 231, 0.3);
}

/* Dark Mode Variables (Default) */
body.dark-mode {
    --bg-color: #0a0a0a;
    --text-color: #e2e8f0;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.08);
    --primary-color: #a29bfe;
    --secondary-color: #81ecec;
    --nav-bg: rgba(15, 15, 15, 0.85);
    --card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    --glow-color: rgba(162, 155, 254, 0.2);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Main page only: Hide default cursor */
}

body.has-custom-cursor,
body.has-custom-cursor *,
body.has-custom-cursor *::before,
body.has-custom-cursor *::after {
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    cursor: auto; /* Ensure system cursor by default */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Custom Cursor */
#cursor {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    mix-blend-mode: difference;
}

#cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
}

#cursor-blur {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

body.has-custom-cursor #cursor,
body.has-custom-cursor #cursor-blur {
    display: block;
}

body.dark-mode #cursor {
    border-color: #fff;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: padding 0.3s ease;
}

.glass-nav.scrolled {
    padding: 0.8rem 5%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

.calendar-card {
    display: grid;
    gap: 2rem;
    padding: 2rem;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .calendar-card {
    border-color: rgba(0, 0, 0, 0.22);
}

.calendar-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 206, 201, 0.2), transparent 65%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.calendar-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.16), transparent 65%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.calendar-hero {
    display: grid;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.calendar-hero h1 {
    font-size: clamp(2.3rem, 4vw, 3rem);
    line-height: 1.05;
}

.calendar-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.calendar-info,
.calendar-badge-row,
.calendar-stat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.calendar-stat-grid {
    margin-top: 0.5rem;
}

.calendar-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
    color: var(--text-color);
    backdrop-filter: blur(12px);
}

body:not(.dark-mode) .calendar-pill {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.78);
}

.calendar-controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    position: relative;
    z-index: 1;
}

body:not(.dark-mode) .calendar-controls-bar {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.calendar-stat-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.stat-card {
    flex: 1 1 180px;
    min-width: 180px;
    border-radius: 22px;
    padding: 1rem 1.15rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

body:not(.dark-mode) .stat-card {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.68);
}

.stat-card span {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

body:not(.dark-mode) .stat-card span {
    color: rgba(0, 0, 0, 0.75);
}

.stat-card strong {
    font-size: 1.2rem;
    color: var(--text-color);
}

.calendar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}

body:not(.dark-mode) .view-toggle {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.74);
}

.view-toggle button {
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.view-toggle button.active,
.view-toggle button:hover {
    background: rgba(255,255,255,0.12);
    color: var(--secondary-color);
}

.calendar-date-nav {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.nav-btn,
.view-toggle button {
    border-radius: 999px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-color);
    cursor: pointer;
}

body:not(.dark-mode) .nav-btn {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.74);
}

.nav-btn:hover {
    background: rgba(0,206,201,0.12);
    color: var(--secondary-color);
}

.calendar-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.5rem;
}

.calendar-left-panel,
.calendar-right-panel {
    position: relative;
    min-width: 0;
}
    .calendar-left-header {
        display: flex;
        align-items: center;
        margin-bottom: 0.85rem;
        padding: 0.25rem 0.3rem;
    }
    .calendar-left-header h3 {
        margin: 0;
        font-size: clamp(1.25rem, 2.4vw, 1.6rem);
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: var(--text-color);
    }

.calendar-panel {
    min-height: 560px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: rgba(10, 10, 10, 0.12);
    padding: 1.5rem;
    overflow: hidden;
}

body:not(.dark-mode) .calendar-panel {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.56);
}

.calendar-grid,
.week-view-grid,
.day-view-list {
    display: grid;
    gap: 0.85rem;
}

.calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
}

.calendar-weekday {
    color: var(--secondary-color);
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
}

.calendar-day {
    min-height: 118px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 0.95rem;
    color: var(--text-color);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.calendar-day:hover {
    transform: translateY(-3px);
    border-color: rgba(0,206,201,0.3);
    background: rgba(255,255,255,0.1);
}

.calendar-day-muted {
    opacity: 0.4;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    background: rgba(108, 92, 231, 0.15);
}

body:not(.dark-mode) .calendar-day.today {
    border-color: rgba(108, 92, 231, 0.75);
    background: rgba(108, 92, 231, 0.18);
}

.calendar-day.active {
    border: 2px solid var(--secondary-color);
    background: rgba(0, 206, 201, 0.15);
}

body:not(.dark-mode) .calendar-day.active {
    border-color: rgba(0, 173, 166, 0.82);
    background: rgba(0, 206, 201, 0.2);
}

.day-number {
    font-size: 1.05rem;
    font-weight: 700;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--secondary-color);
    color: #0a0a0a;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.event-preview {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.week-view-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.week-column {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 1.5rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body:not(.dark-mode) .week-column {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.15);
}

body:not(.dark-mode) .week-column.today {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.12);
}

.week-column.selected {
    border-color: var(--secondary-color);
    background: rgba(0,206,201,0.12);
}

body:not(.dark-mode) .week-column.selected {
    border-color: rgba(0, 173, 166, 0.78);
    background: rgba(0, 206, 201, 0.2);
}

.week-column.today {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.08);
}

.week-column.today.selected {
    border-color: var(--secondary-color);
    background: rgba(0,206,201,0.12);
}

body:not(.dark-mode) .week-column.today.selected {
    border-color: rgba(0, 173, 166, 0.82);
    background: rgba(0, 206, 201, 0.22);
}

.week-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body:not(.dark-mode) .week-column-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.week-column-header strong {
    font-size: 1.1rem;
}

.empty-day {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    text-align: center;
}

body:not(.dark-mode) .empty-day {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.6);
}

.calendar-event-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    color: var(--text-color);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

body:not(.dark-mode) .calendar-event-card {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3);
}

.calendar-event-card:hover,
.calendar-event-card.active {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    background: rgba(0,206,201,0.1);
}

body:not(.dark-mode) .calendar-event-card.active {
    border-color: rgba(0, 173, 166, 0.82);
    background: rgba(0, 206, 201, 0.2);
    box-shadow: 0 8px 18px rgba(0, 173, 166, 0.14);
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

body:not(.dark-mode) .event-card-meta {
    color: rgba(0, 0, 0, 0.72);
}

.calendar-right-panel {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.calendar-widget {
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.25rem;
    background: rgba(255,255,255,0.04);
    min-height: 220px;
}

body:not(.dark-mode) .calendar-widget {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.5);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.widget-header h3 {
    margin-bottom: 0.25rem;
}

.widget-header span {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.event-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.85rem;
}

body:not(.dark-mode) .event-panel-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.event-panel-header p {
    margin-bottom: 0.35rem;
    opacity: 0.8;
    color: var(--text-color);
}

.event-panel-header h3 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.event-panel {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.event-panel::-webkit-scrollbar {
    width: 8px;
}

.event-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
}

body:not(.dark-mode) .event-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.event-count {
    background: rgba(255,255,255,0.08);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
}

body:not(.dark-mode) .event-count {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

.event-detail-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 1.2rem;
    background: rgba(255,255,255,0.06);
}

body:not(.dark-mode) .event-detail-card {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3);
}

.event-detail-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-detail-title h4 {
    font-size: 1.1rem;
}

.event-detail-meta p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

body:not(.dark-mode) .event-detail-meta p {
    color: rgba(0, 0, 0, 0.78);
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.event-map-link {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.event-map-link:hover {
    color: var(--primary-color);
}

.timezone-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 0.9rem;
    backdrop-filter: blur(12px);
}

.timezone-control span {
    color: inherit;
    opacity: 0.85;
    font-weight: 600;
}

body:not(.dark-mode) .timezone-control {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.78);
}

.event-link:hover {
    color: var(--primary-color);
}

.event-panel-list {
    display: grid;
    gap: 0.8rem;
}

.event-panel-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
    align-items: start;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.event-panel-item span {
    color: rgba(255,255,255,0.78);
}

body:not(.dark-mode) .event-panel-item {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3);
}

body:not(.dark-mode) .event-panel-item span {
    color: rgba(0, 0, 0, 0.68);
}

.event-panel-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0,206,201,0.3);
}

.event-panel-empty {
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
}

body:not(.dark-mode) .event-panel-empty {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.6);
}

.upcoming-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-event-item {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

body:not(.dark-mode) .upcoming-event-item {
    border-color: rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.56);
}

.upcoming-event-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-color);
    padding: 0.72rem 1rem 0.9rem;
    text-align: left;
    display: grid;
    gap: 0.3rem;
    align-content: start;
    cursor: pointer;
}

.upcoming-event-btn > * {
    margin: 0;
}

.upcoming-event-btn:hover {
    background: rgba(0,206,201,0.08);
}

.upcoming-event-time {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.calendar-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.calendar-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.loading-card {
    background: rgba(10,10,10,0.9);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 2rem;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.loading-card p {
    margin: 0;
    font-size: 0.95rem;
}

.view-transition {
    animation: viewSwitch 0.36s ease;
}

.animate-fade {
    animation: fadeIn 0.35s ease;
}

.slide-in {
    animation: slideIn 0.35s ease;
}

.animate-pop {
    animation: popIn 0.28s ease;
}

.day-view-list {
    display: grid;
    gap: 1rem;
}

.day-event-list {
    display: grid;
    gap: 0.8rem;
}

.day-event-item {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 1rem;
    text-align: left;
    color: var(--text-color);
    display: grid;
    gap: 0.45rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.day-event-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0,206,201,0.38);
    background: rgba(0,206,201,0.1);
}

body:not(.dark-mode) .day-event-item {
    border-color: rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.6);
}

.day-view-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

body:not(.dark-mode) .day-view-header {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.16);
}

.day-view-header strong {
    display: block;
    font-size: 1.25rem;
}

.day-view-timeline {
    --timeline-hour-col: 66px;
    position: relative;
    display: grid;
    gap: 0;
    padding-left: 0;
    min-height: 700px;
}

.timeline-slot {
    position: relative;
    min-height: 58px;
}

.timeline-slot::after {
    content: '';
    position: absolute;
    left: var(--timeline-hour-col);
    right: 0;
    top: 0;
    transform: translateY(-50%);
    border-top: 1px solid rgba(255,255,255,0.12);
}

body:not(.dark-mode) .timeline-slot {
    border-top-color: transparent;
}

body:not(.dark-mode) .timeline-slot::after {
    border-top-color: rgba(0, 0, 0, 0.12);
}

.timeline-hour {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-50%);
    width: var(--timeline-hour-col);
    padding-right: 0.45rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    text-align: right;
    white-space: nowrap;
    line-height: 1;
}

body:not(.dark-mode) .timeline-hour {
    color: rgba(0, 0, 0, 0.6);
}

.timeline-events-layer {
    position: absolute;
    inset: 0 0 0 var(--timeline-hour-col);
    pointer-events: none;
    z-index: 2;
}

.timeline-now-indicator {
    position: absolute;
    left: var(--timeline-hour-col);
    right: 0;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 3;
}

.timeline-now-line {
    display: block;
    width: 100%;
    border-top: 2px solid #ff5a5f;
}

.timeline-now-dot {
    position: absolute;
    left: -5px;
    top: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5a5f;
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.2);
}

.timeline-now-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.22rem 0.42rem;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid rgba(255, 90, 95, 0.28);
    color: #ff8a8f;
}

body:not(.dark-mode) .timeline-now-line {
    border-top-color: #d13f44;
}

body:not(.dark-mode) .timeline-now-dot {
    background: #d13f44;
    box-shadow: 0 0 0 3px rgba(209, 63, 68, 0.16);
}

body:not(.dark-mode) .timeline-now-label {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(179, 52, 58, 0.35);
    color: #b3343a;
}

@media (max-width: 950px) {
    .timeline-now-label {
        right: 0.55rem;
        font-size: 0.69rem;
    }
}

@media (max-width: 760px) {
    .day-view-timeline {
        --timeline-hour-col: 60px;
    }

    .timeline-now-indicator {
        left: var(--timeline-hour-col);
    }

    .timeline-now-dot {
        left: -4px;
        width: 8px;
        height: 8px;
    }

    .timeline-now-label {
        right: 0.35rem;
        font-size: 0.66rem;
        padding: 0.2rem 0.38rem;
    }
}

@media (max-width: 480px) {
    .day-view-timeline {
        --timeline-hour-col: 56px;
    }

    .timeline-now-indicator {
        left: var(--timeline-hour-col);
    }

    .timeline-now-label {
        right: 0.2rem;
        font-size: 0.62rem;
        letter-spacing: 0.01em;
    }
}

.timeline-event-card {
    position: absolute;
    left: 0.45rem;
    width: calc(100% - 0.9rem);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,206,201,0.14);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    color: var(--text-color);
    cursor: pointer;
    pointer-events: auto;
    display: grid;
    gap: 0.45rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.timeline-event-card.active-event {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.25);
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.35);
}

body:not(.dark-mode) .timeline-event-card {
    background: rgba(0, 206, 201, 0.18);
    border-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .timeline-event-card.active-event {
    background: rgba(108, 92, 231, 0.18);
    border-color: rgba(108, 92, 231, 0.6);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.timeline-event-card strong,
.timeline-event-card span {
    display: block;
    line-height: 1.3;
}

.slide-in {
    animation: slideIn 0.35s ease;
}

.animate-pop {
    animation: popIn 0.28s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 950px) {
    .calendar-main-grid {
        grid-template-columns: 1fr;
    }

    .calendar-left-panel {
        order: 2;
    }

    .calendar-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-actions,
    .calendar-badge-row,
    .calendar-stat-grid {
        width: 100%;
    }

    .calendar-actions {
        justify-content: space-between;
    }

    .calendar-date-nav {
        flex-wrap: wrap;
    }

    .timezone-control {
        width: 100%;
        justify-content: space-between;
        border-radius: 16px;
    }

    #timezone-select {
        max-width: 60%;
        min-width: 0;
    }

    .calendar-right-panel {
        order: 1;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .calendar-main-grid {
        grid-template-columns: 1fr;
    }

    .calendar-left-panel {
        order: 2;
    }

    .calendar-right-panel {
        order: 1;
    }
}

@media (max-width: 760px) {
    .container {
        padding: 0 1rem;
    }

    .calendar-card {
        padding: 1rem;
        border-radius: 24px;
    }

    .calendar-controls-bar {
        padding: 1rem;
        border-radius: 18px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(62px, 1fr));
        min-width: 520px;
    }

    .calendar-panel {
        min-height: auto;
        padding: 0.85rem;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .calendar-day {
        min-height: 90px;
        padding: 0.65rem;
    }

    .calendar-weekday {
        font-size: 0.78rem;
    }

    .calendar-date-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .view-toggle {
        width: 100%;
    }

    .view-toggle button {
        flex: 1 1 0;
        padding: 0.8rem 0.7rem;
    }

    .calendar-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .day-view-header,
    .event-panel-header,
    .event-detail-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-widget {
        min-height: auto;
        padding: 1rem;
    }

    #timezone-select {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.85rem;
    }

    .calendar-card {
        padding: 0.85rem;
        border-radius: 18px;
    }

    .calendar-controls-bar {
        padding: 0.85rem;
    }

    .calendar-pill,
    .timezone-control {
        width: 100%;
        border-radius: 14px;
        font-size: 0.85rem;
    }

    .calendar-date-nav .neon-button {
        width: 100%;
        text-align: center;
    }
}

/* Navigation */
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-left: 1.5rem;
    transition: transform 0.3s ease;
    padding-left: 20px;
    padding-right: 20px;
    cursor: pointer;
}

.icon-btn:hover {
    transform: rotate(20deg);
    color: var(--primary-color);
}

.mobile-only {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-color);
    width: 100%;
    height: 100vh;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    gap: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links a {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
}

#close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-color);
}

.glitch-text {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-color);
    mix-blend-mode: screen;
}

body:not(.dark-mode) .glitch-text {
    mix-blend-mode: normal;
}

.typing-wrapper {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    min-height: 1.6em;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--primary-color);
    font-weight: 700;
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--glow-color);
}

.location {
    font-size: 0.9rem;
    opacity: 0.8;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-color);
    animation: bounce 2s infinite;
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--glow-color);
    z-index: -1;
    transform: skewX(-10deg);
}

/* Experience - Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid var(--glass-border);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -3.6rem;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    transition: background 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.job-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.job-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.company {
    font-weight: 600;
}

.date {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

.cert-link {
    font-size: 0.8rem;
    text-decoration: underline;
}

.job-body ul {
    list-style-position: outside;
    margin-left: 1.5rem;
    opacity: 0.9;
}

.separator-line {
    margin: 1rem 0;
    border-top: 1px dashed var(--glass-border);
}

/* Education Grid */
.education-grid {
    display: grid;
    /* This forces exactly 2 equal columns */
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    /* Centers the grid container itself */
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}

.portfolio-link-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.neon-button {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent; /* Ensure it stays transparent on <button> tags */
    cursor: pointer;
}

.edu-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.score {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card h3 a {
    color: var(--text-color);
    transition: color 0.3s;
}

.project-card:hover h3 {
    color: var(--primary-color);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.project-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
    transform: translateX(5px);
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.project-year {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.project-desc {
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Extra Curriculars */
.activities-list ul {
    list-style: none;
}

.activities-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.activities-list li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.activities-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* References */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ref-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.email-link {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: block;
}

/* Footer */
.main-footer {
    padding: 3rem 0;
    background: var(--nav-bg);
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
}

.footer-socials {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-color);
    font-size: 1.5rem;
}

.footer-socials a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Reveal on Scroll Helpers */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .mobile-only {
        display: block;
    }

    .glitch-text {
        font-size: 2.2rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2.6rem;
    }

    .date {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 0.2rem;
    }

    #cursor,
    #cursor-blur {
        display: none;
        /* Disable custom cursor on touch devices */
    }

    *,
    *::before,
    *::after {
        cursor: auto;
    }
}

/* Custom Prompts (Toast & Modal) */
.custom-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    color: var(--text-color);
}
.custom-toast.show {
    bottom: 30px;
}
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}
.custom-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.custom-modal {
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-modal-overlay.show .custom-modal {
    transform: translateY(0) scale(1);
}

#timezone-select {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 8px;
    color: var(--text-color);
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
    outline: none;
    max-width: 260px;
    min-width: 0;
}

#timezone-select:focus {
    border-color: var(--secondary-color);
}
body:not(.dark-mode) #timezone-select {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.22);
    color: rgba(0, 0, 0, 0.82);
}
