/* Fonts & Variables */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-secondary: #bf00ff;
    /* Neon Purple */
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Playfair Display', serif;
    --transition: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 18px;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    * {
        cursor: auto !important;
    }
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease-out;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.header-profile {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.header-profile-pic:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.header-profile-pic.hidden {
    display: none;
}

.nav-link {
    margin-left: 2rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    position: relative;
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #2e003e 0%, #000000 80%);
    /* Purple Gradient */
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: conic-gradient(from 180deg at 50% 50%, #000000 0deg, var(--accent-secondary) 90deg, #000000 180deg);
    filter: blur(120px);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-greeting {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    color: #cccccc;
}

.hero-name {
    font-size: 7vw;
    line-height: 1;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-color);
    font-weight: 700;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(54px, 9999px, 18px, 0);
    }

    40% {
        clip: rect(21px, 9999px, 86px, 0);
    }

    60% {
        clip: rect(98px, 9999px, 15px, 0);
    }

    80% {
        clip: rect(65px, 9999px, 5px, 0);
    }

    100% {
        clip: rect(32px, 9999px, 64px, 0);
    }
}

.hero-role {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    opacity: 0;
    animation: slideUp 1s forwards 1s;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.7;
    font-family: 'Playfair Display', serif;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: var(--text-color);
}

/* Section Common */
section {
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
        min-height: auto;
        /* Allow content to dictate height on mobile */
    }

    .hero {
        min-height: 100vh;
        /* Keep hero full height */
    }
}

.container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 5rem;
    text-align: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text .lead {
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.1rem;
    color: #bbbbbb;
}

.geometric-shape {
    width: 400px;
    height: 400px;
    border: 1px solid var(--accent-color);
    transform: rotate(45deg);
    position: relative;
    margin: 0 auto;
}

.geometric-shape::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--accent-secondary);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.year {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-secondary);
    width: 45%;
    text-align: center;
    opacity: 0.5;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Contact Form */
.fashion-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group.full-width {
    width: 100%;
}

input,
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 1.3rem;
    outline: none;
}

textarea {
    resize: none;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s ease;
    font-size: 1.1rem;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -25px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: 0.4s ease;
}

.input-group input:focus~.underline,
.input-group textarea:focus~.underline {
    width: 100%;
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    padding: 1.5rem 4rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.submit-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.form-feedback {
    margin-top: 2rem;
    text-align: center;
    color: var(--accent-color);
}

.hidden {
    display: none;
}

.footer-links {
    margin-top: 6rem;
    text-align: center;
}

.footer-email {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-bottom: 1px solid transparent;
}

.footer-email:hover {
    border-color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-name {
        font-size: 15vw;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-content {
        width: 100%;
    }

    .year {
        width: 100%;
        text-align: left;
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    /* Additional Mobile Fixes */
    .header {
        padding: 1.5rem 5%;
        background: rgba(5, 5, 5, 0.9);
        /* Add background for readability */
        backdrop-filter: blur(10px);
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-link {
        margin-left: 1rem;
        font-size: 0.7rem;
    }

    .hero-name {
        font-size: 13vw;
        /* Slightly smaller to ensure fit */
        word-wrap: break-word;
    }

    .hero-greeting {
        font-size: 1.2rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .about-text .lead {
        font-size: 1.8rem;
    }

    .geometric-shape {
        width: 250px;
        height: 250px;
        margin-top: 3rem;
    }

    .form-row {
        gap: 2rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1.2rem;
        font-size: 1rem;
    }
}

/* Vault Section */
.vault-interface {
    margin-top: 4rem;
}

.vault-input-area {
    margin-bottom: 4rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.vault-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Gold border low opacity */
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vault-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(191, 0, 255, 0.15);
    /* Purple glow */
    border-color: var(--accent-color);
}

.vault-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--accent-secondary);
}

.vault-card h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.vault-card p {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    word-break: break-all;
}

.vault-card .delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

/* Cloud Drive Section */
.cloud-toolbar {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.cloud-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cloud-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.6);
}

.crumb {
    cursor: pointer;
    transition: color 0.2s;
}

.crumb:hover {
    color: var(--accent-color);
}

.crumb::after {
    content: '/';
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.crumb:last-child {
    color: #fff;
    cursor: default;
}

.crumb:last-child::after {
    display: none;
}

.cloud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2rem;
}

.cloud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.cloud-item:hover {
    transform: translateY(-5px);
}

.cloud-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.cloud-item[data-type="folder"] .cloud-icon {
    color: var(--accent-color);
}

.cloud-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
}

/* Admin Trigger & Modal */
.admin-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

.admin-trigger:hover {
    color: var(--accent-secondary);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #111;
    border: 1px solid var(--accent-secondary);
    padding: 3rem;
    text-align: center;
    /* Center content */
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(191, 0, 255, 0.2);
}

.modal-content h3 {
    color: var(--accent-secondary);
    margin-bottom: 2rem;
}

.modal-content input {
    width: 100%;
    padding: 1rem;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.2rem;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.modal-actions button {
    flex: 1;
    padding: 1rem;
    border: 1px solid #333;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.modal-actions button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hidden {
    display: none !important;
}

.vault-card .delete-btn:hover {
    color: #ff4444;
}

.vault-btn {
    margin-top: 2rem;
    width: auto;
    padding: 1rem 3rem;
}

/* Note Editor (Fullscreen) */
.note-editor {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border: none !important;
    border-radius: 0 !important;
    top: 0;
    left: 0;
    margin: 0;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: #050505 !important;
    /* Deep black bg */
    position: fixed;
    /* Ensure it covers everything */
    z-index: 20000;
    /* Above everything */
}

.note-title-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    font-size: 2.5rem;
    /* Larger */
    font-family: var(--font-heading);
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.note-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #e0e0e0;
    padding: 2rem;
    font-family: monospace;
    font-size: 1.1rem;
    resize: none;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.note-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.note-editor .modal-actions {
    justify-content: flex-end;
}

.note-editor .modal-actions button {
    flex: 0 0 auto;
    width: auto;
    padding: 1rem 3rem;
}

/* Time Table Modal Refined */
.time-table-modal {
    width: 90vw;
    max-width: 600px;
    /* Menu Size */
    /* View size will toggle via JS toggling classes if needed, or keep responsive */
    background: #050505;
    border: 1px solid var(--accent-color);
    padding: 3rem;
    transition: all 0.3s ease;
}

.time-table-modal.view-mode {
    width: 98vw;
    height: 98vh;
    max-width: none;
    padding: 1rem;
}

.close-cross {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-cross:hover {
    color: red;
}

.tt-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.full-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.2rem;
    padding: 1.5rem;
}

.delete-action {
    border-color: #ff4444;
    color: #ff4444;
    margin-top: 1rem;
}

.delete-action:hover {
    background: rgba(255, 68, 68, 0.1);
}

.tt-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tt-view .tt-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    /* Allow scroll if super huge, or strict contain */
    border: none;
    background: black;
}

/* Ensure controls are hidden properly */
.hidden {
    display: none !important;
}