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

html {
    scroll-behavior: smooth !important;
}

.right-panel {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 25px;
}

:root {
    --bg-primary: #151313;
    --bg-secondary: #222120;
    --text-primary: #fff;
    --text-secondary: #cecccc;
    --accent: #d6a25d;
    --accent-hover: #ff8000;
    --left-panel-width: 500px;
    --profile-pic-max: 450px;
}

/* 🌞 Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #fffcf8;
    --bg-secondary: #f4f2ef;
    --text-primary: #020202;
    --text-secondary: #4a4a4a;

    /* Accent colors from old site */
    --accent: #d6a25d;
    --accent-hover: #ff8000;

    /* Borders / separators */
    --panel-border: #e5b574;
    --card-border: #e0b184;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}


/* Fixed Left Panel */
.left-panel {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 2px dotted var(--panel-border);
    padding: 40px 30px;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: var(--left-panel-width);
    flex: 0 0 var(--left-panel-width);
    /* prevents flex shrink issues */
    /* Ensures padding doesn't add to width */
}

.left-panel::-webkit-scrollbar {
    width: 3px;
    display: none !important;

}

.left-panel::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
    display: none !important;
}


/* Profile Section */
.profile-picture {
    max-width: var(--profile-pic-max);
}

.profile-picture img {
    display: block;
    width: 100%;
    border-radius: 3%;
    margin-left: 1px;
    box-shadow: 0 8px 10px rgba(77, 41, 1, 0.3);
    max-width: var(--profile-pic-max);
    content: url("images/gate_bridge.png");
}

[data-theme="dark"] .profile-picture img {
    content: url("images/snowman.JPG");
}

.profile-name {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--accent);
    text-align: center;
    margin-top: 20px;
}

.profile-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* Remove underline + dashed marker from the links */
.social-links a {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.social-links a::before,
.social-links a::after {
    content: none !important;
}

/* Icon styles */
.social-links a i {
    font-size: 24px;
    color: var(--accent);
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover i {
    transform: scale(1.15);
    color: var(--accent-hover);
}

.location-time-info {
    width: 100%;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--accent);
    width: 20px;
}

/* Navigation */
.sidebar-nav {
    width: 100%;
    margin-top: 20px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 128, 0, 0.1);
    color: var(--accent-hover);
}

/* Theme Toggle */
.theme-toggle {
    margin-top: auto;
    padding-top: 20px;
}

.theme-switch input[type="checkbox"] {
    display: none;
}

.theme-switch .slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #040018;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.theme-switch .slider:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    transform: translateX(24px);
}

.slider i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.fa-moon {
    right: 8px;
    color: #fff;
}

.fa-sun {
    left: 8px;
    color: #ffd08a;
}

/* Scrollable Right Panel */
.right-panel {
    margin-left: var(--left-panel-width);
    flex: 1;

    display: flex;
    flex-direction: column;

    height: 100vh;
    /* Chrome-friendly */
    min-height: 0;

    padding: 60px 0;
    overflow-y: auto;
    box-sizing: border-box;

    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.right-content {
    max-width: 1100px;
    /* sweet spot for reading */
    margin: 0 auto;
    /* center horizontally */
    padding: 0 30px;
    /* inner horizontal padding */
}


.right-panel::-webkit-scrollbar {
    width: 4px;
}

.right-panel::-webkit-scrollbar-thumb {
    border-radius: 5px;
}

/* WebKit scrollbar (Chrome / Safari) */
.right-panel::-webkit-scrollbar {
    width: 4px;
}

.right-panel::-webkit-scrollbar-track {
    background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

/* Optional hover for dark mode */
.right-panel::-webkit-scrollbar-thumb:hover {
    background: #777;
}

[data-theme="light"] .right-panel::-webkit-scrollbar-thumb {
    background-color: #fabc6a;
}


/* Section Styling */
section {
    margin-bottom: 80px;
    max-width: 900px;
}

section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--accent);
    border-bottom: 2px dotted var(--accent-hover);
    padding-bottom: 10px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p,
.card .content .description,
.card .content .duration {
    color: var(--text-secondary);
}

/* Card Styling */
.card {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px dotted var(--card-border);
}

.card:last-child {
    border-bottom: none;
}

.card .logo {
    flex-shrink: 0;
}

.card .logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 5%;
}

.card .content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.card .content .duration {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 8px;
}

.card .content .description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tech Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s;
    position: relative;
}

.tech-item:hover {
    transform: scale(1.05);
}

.tech-item img {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.tech-name {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(245, 176, 72, 0.8);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: pre;
}

.tech-item:hover {
    transform: scale(1.1);
}

.tech-item:hover .tech-name {
    opacity: 1;
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.confetti-particle {
    position: absolute;
    width: 10px;
    height: 20px;
    border-radius: 50%;
    animation: confetti-fall 5s ease-out;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Links */
a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px dotted var(--accent-hover);
    transition: color 0.3s;
}

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

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --left-panel-width: 300px;
    }

    .right-panel {
        margin-left: 300px;
        padding: 40px 40px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: 100vh;
        min-height: 0;
    }

    .layout {
        display: flex;
        flex-direction: column;
    }


    .left-panel {
        position: static;
        width: 100%;
        flex: 0 0 auto;
        /* <-- prevents squishing */
        height: auto;
        padding-bottom: 20px;
        /* optional spacing below */
    }

    .right-panel {
        height: auto;
        min-height: unset;
        overflow-y: visible;
        /* stop trapping scroll */
        -webkit-overflow-scrolling: auto;
        margin-left: 0;
        padding: 30px 20px;
    }

    .profile-picture {
        width: 400px;
        height: auto;

    }

    section h2 {
        font-size: 26px;
    }

    .card {
        flex-direction: column;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
}


/* Stars Background */
.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: white;
    opacity: 0;
    animation: blink 3s infinite alternate ease-in-out;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.see-more {
    margin-top: 20px;
}

.panel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.panel-btn {
    padding: 6px 10px;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    background: none;
    border: none;
    padding-bottom: 20px;
    transition: transform 0.15s cubic-bezier(1, 0, 0, 1);
    cursor: pointer;
}

/* Hover effect — orange dashed underline only */
.panel-btn:hover {
    transform: translateY(-1px);
    text-decoration: underline dashed #ff9900;
    text-underline-offset: 4px;
    color: var(--text-primary);
    background: none;

}

.theme-icon-btn {
    padding-bottom: 18px !important;
    background: none;
    border: none;
    padding: 6px 4px;
    cursor: pointer;
    color: #e4dddd;
    font-size: 18px;
    transition: transform .15s ease, opacity .15s ease;
}

.theme-icon-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.theme-icon-btn i {
    transition: transform .18s ease;
}

.theme-icon-btn:active i {
    transform: scale(0.9);
}

/* Default icon color (dark mode) */
.theme-icon-btn i {

    color: #ffb84a;
}

[data-theme="light"] .theme-icon-btn i {
    color: #010137;
}



a {
    color: var(--text-secondary);
    border-bottom: 2px dotted var(--accent-hover);
}

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

[data-theme="light"] section h2 {
    color: var(--text-primary);
}

[data-theme="light"] .stars {
    display: none !important;
}

/* Falling star container */
.falling-star {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    /* Glow effect */
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: rotate(-45deg);
    /* Tilted movement */
    z-index: -1;
}

/* Animation for falling star */
@keyframes fall {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    80% {
        opacity: 1;
        transform: translate(300px, 150px) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translate(500px, 250px) scale(0);
    }
}

[data-theme="light"] .falling-star {
    display: none !important;
}

.info-item {
    font-size: medium;
}

.location-time-info {
    display: flex;
    gap: 50px;
    width: fit-content;

}

/* Starlink train dots */
.starlink-sat {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px #fff, 0 0 24px rgba(173, 216, 255, 0.7);
    pointer-events: none;
    z-index: -1;
    /* START VISIBLE */
    opacity: 1;
}

.starlink-label {
    position: fixed;
    font-size: 10px;
    font-family: monospace;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 6px #000;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    pointer-events: none;
    z-index: -1;
    /* START VISIBLE */
    opacity: 1;
}

/* Hide in light mode */
[data-theme="light"] .starlink-sat,
[data-theme="light"] .starlink-label {
    display: none !important;
}

/* Keyframes for train movement */
@keyframes moveTrain {
    0% {
        opacity: 0.3;
        transform: translate(0, 0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Horizontal decoration with floating satellite */
.panel-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
    width: 100%;
}

.panel-decor::before,
.panel-decor::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--accent);
}

/* Satellite icon styling */
.sat-icon {
    display: inline-block;
    font-size: 18px;
    color: var(--accent);
    animation: float 2s ease-in-out infinite alternate;
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Optional: adjust color in light mode */
[data-theme="light"] .sat-icon {
    color: var(--accent-hover);
}

[data-theme="light"] .panel-decor::before,
[data-theme="light"] .panel-decor::after {
    background: var(--accent-hover);
}

@media (min-width: 1440px) {
    :root {
        --left-panel-width: 560px;
    }
}

@media (min-width: 1800px) {
    :root {
        --left-panel-width: 700px;
    }
}

@media (min-width: 2200px) {
    :root {
        --left-panel-width: 820px;
    }
}

@media (min-width: 1440px) {
    :root {
        --profile-pic-max: 500px;
    }
}

@media (min-width: 1800px) {
    :root {
        --profile-pic-max: 560px;
    }
}

@media (min-width: 2200px) {
    :root {
        --profile-pic-max: 620px;
    }
}