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

html {
    scroll-behavior: smooth;
    overflow: auto;
}

body.home-page {
    background: var(--hero-bg) center/cover no-repeat fixed;
    height: 100vh;
    overflow: hidden;
}

body.home-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 62, 80, 0.5);
    z-index: 0;
    pointer-events: none;
}

/* Fixed scroll container for homepage elements */
.home-scroll-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    z-index: 1;
}

.home-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
}

.home-page .navbar {
    background: transparent;
    box-shadow: none;
}

body.about-page .navbar {
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none !important;
}

body.about-page .nav-links a {
    color: #fff !important;
}

body.about-page .nav-links a:hover {
    color: #e94560 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

body.private-site {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    position: relative;
}

.private-navbar {
    background: #16213e;
    z-index: 100;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2%;
    max-width: 100%;
    margin: 0;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #ccc;
    transition: color 0.3s;
    font-weight: 600;
}

.nav-links a:hover {
    color: #fff;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 80px;
}

/* Full-page sections */
.full-section {
    scroll-snap-align: start;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hero - background removed, now on body */
.hero-section {
    color: #fff;
    background: transparent;
    padding-top: 60px;
}

.hero-section::before {
    display: none;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    opacity: 0.4;
    margin-bottom: 2rem;
}

.hero-btn-wrapper {
    text-align: center;
}

.hero-content {
    text-align: center;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255,255,255,0.4);
}

/* Section backgrounds for full-page layout */
.skills-section {
    background: transparent;
}

.skills-section .section-title {
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.skills-section .skill-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.skills-section .skill-card h3 {
    color: #fff;
}

.changelog-section {
    background: transparent;
}

.changelog-section .section-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.changelog-section .project-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

.changelog-section .project-item h3 {
    color: #fff;
}

/* Scroll arrow */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-arrow span {
    display: inline-block;
    color: rgba(255,255,255,0.7);
}

.scroll-arrow.dark span {
    color: rgba(255,255,255,0.7);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title,
.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

body.private-site .page-title {
    color: #e94560;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-4px);
}

.skill-card h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* Projects */
.projects {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.project-item {
    background: #f9f9f9;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.project-item h3 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.project-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* About */
.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-text h2 {
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.contact-list {
    padding-left: 1.5rem;
}

.contact-list li {
    list-style: disc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #e94560;
    color: #fff;
}

.btn-secondary:hover {
    background: #c0392b;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Auth */
.auth-container {
    max-width: 400px;
    padding: 3rem 0;
}

.auth-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

body.private-site .auth-card {
    background: #16213e;
    color: #e0e0e0;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

body.private-site .auth-card h2 {
    color: #e94560;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: #3498db;
}

/* Alerts */
.alert {
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fee;
    color: #c0392b;
    border: 1px solid #fcc;
}

/* Dashboard */
.welcome-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.welcome-text:first-of-type {
    margin-top: 0;
}

.dashboard-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: #16213e;
    border: 1px solid #0f3460;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem;
}

.dashboard-card {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-card h3 {
    color: #e94560;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    margin-bottom: 1rem;
    color: #aaa;
}

/* Notes */
.section-desc {
    text-align: center;
    margin-bottom: 2rem;
    color: #aaa;
}

.notes-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 1.5rem;
}

.note-item h3 {
    color: #e94560;
    margin-bottom: 0.3rem;
}

.note-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Drive */
.drive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.drive-actions {
    display: flex;
    gap: 0.5rem;
}

.breadcrumbs {
    background: #16213e;
    border: 1px solid #0f3460;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #3498db;
}

.breadcrumbs .current {
    color: #e0e0e0;
}

.drive-section {
    margin-bottom: 2rem;
}

.drive-section-title {
    color: #e94560;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #0f3460;
}

.drive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.drive-item {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.drive-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.drive-item-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.file-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.drive-item-info {
    width: 100%;
}

.drive-item-name {
    display: block;
    color: #e0e0e0;
    font-weight: 500;
    word-break: break-all;
    margin-bottom: 0.3rem;
}

.drive-item-meta {
    font-size: 0.75rem;
    color: #888;
}

.drive-item-delete {
    color: #e94560;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
}

.drive-item-delete:hover {
    color: #c0392b;
}

.drive-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    background: #3498db;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.btn-small:hover {
    background: #2980b9;
}

.empty-drive {
    text-align: center;
    color: #888;
    padding: 2rem;
}

/* Upload form */
.upload-form {
    max-width: 500px;
    margin: 0 auto;
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 2rem;
}

.upload-form .form-group {
    margin-bottom: 1.5rem;
}

.upload-form label {
    display: block;
    margin-bottom: 0.3rem;
    color: #e0e0e0;
}

.form-select,
.form-file {
    width: 100%;
    padding: 0.6rem;
    background: #1a1a2e;
    border: 1px solid #0f3460;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
}

.upload-actions {
    display: flex;
    gap: 1rem;
}

/* Alert variants */
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Changelog */
.note-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0.3rem;
}

.note-item-header h3 {
    color: #e94560;
    margin-bottom: 0;
}

.note-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.note-content {
    color: #ccc;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Textarea */
.upload-form textarea {
    width: 100%;
    padding: 0.6rem;
    background: #1a1a2e;
    border: 1px solid #0f3460;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

/* Title input */
.title-input {
    background: #1a1a2e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    color: #e0e0e0;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.title-input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.4);
}
.title-input::placeholder {
    color: #666;
    font-style: italic;
}

/* Back button */
.back-btn {
    position: fixed;
    bottom: 6rem;
    right: 5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.back-btn:hover {
    color: #fff;
}
.back-arrow {
    display: inline-block;
    animation: arrow-move 1s ease-in-out infinite;
}
@keyframes arrow-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* File input */
.file-input {
    background: #1a1a2e;
    border: 1px dashed #0f3460;
    border-radius: 8px;
    padding: 6rem 2rem;
    font-size: 1rem;
    color: #666;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    display: block;
    min-height: 200px;
}
.file-input:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.05);
}
.file-input-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    pointer-events: none;
}
.file-input::file-selector-button {
    display: none;
}

/* Footer */
.footer {
    background: rgba(233, 69, 96, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    text-align: center;
    padding: 0.6rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.private-footer {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(10px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.private-footer p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 0.6rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}
