@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --header-text-start: #ffffff;
    --header-text-end: #94a3b8;
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-text: #ffffff;
    --placeholder: #94a3b8;
}

.light-mode {
    --dark: #f8fafc;
    --light: #0f172a;
    --gray: #64748b;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --header-text-start: #0f172a;
    --header-text-end: #64748b;
    --input-bg: rgba(0, 0, 0, 0.05);
    --input-text: #0f172a;
    --placeholder: #64748b;
}

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

body {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    background-color: var(--bg);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg);
    background-image: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, var(--bg) 100%);
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

@keyframes move {
    from {
        transform: translate(-10%, -10%);
    }

    to {
        transform: translate(10%, 10%);
    }
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.top-actions {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 1000;
}

.desktop-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem;
    z-index: 1000;
    padding: 0.5rem 1rem;
    transition: all 0.4s ease;
}

.desktop-nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.desktop-nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.desktop-nav a:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.action-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    z-index: 1001;
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--glass-border);
}

.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--primary);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

section {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--header-text-start), var(--header-text-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.multiline-text {
    white-space: pre-line;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

#submitBtn {
    min-width: 260px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--light);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--light);
}

.header-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.header-actions .btn {
    min-width: 260px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.timeline {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
}

.timeline-header {
    width: 100%;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    font: inherit;
}

.timeline-header-info {
    flex: 1;
}

.timeline-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--light);
}

.timeline-header .date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-icon {
    font-size: 1rem;
    color: var(--gray);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.active .timeline-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.timeline-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    padding: 0 2rem;
}

.timeline-item.active .timeline-content {
    max-height: 2000px;
    opacity: 1;
    padding-bottom: 2rem;
}

.timeline-item ul {
    list-style: none;
    color: var(--gray);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.timeline-item li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.timeline-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--primary);
}

.skill-category p {
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-methods a {
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.contact-methods a:hover {
    color: var(--primary);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--input-text);
    font-family: inherit;
    transition: border-color 0.3s;
    resize: vertical;
}

textarea {
    min-height: 120px;
    max-height: 400px;
}

input::placeholder,
textarea::placeholder {
    color: var(--placeholder);
    opacity: 0.8;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.success-msg {
    color: #4ade80;
    margin-top: 1rem;
    display: none;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 1rem 1.25rem;
    }

    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    header {
        height: auto;
        min-height: 80vh;
        padding-top: 6rem;
    }

    .top-actions {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .action-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.8rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        min-width: unset;
    }

    section {
        margin-bottom: 3rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-header {
        padding: 1rem;
        min-height: 48px;
    }

    .timeline-content {
        padding: 0 1rem;
    }

    .blob {
        opacity: 0.1;
        filter: blur(60px);
    }

    input,
    textarea {
        font-size: 16px;
    }

    .contact-methods {
        flex-direction: column;
        gap: 1rem;
    }

    #submitBtn {
        width: 100%;
    }

    .skill-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    section {
        opacity: 1;
        transform: none;
    }
}