/* ===========================
   Global Styles & Variables
   =========================== */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    
    /* Dark theme (default) */
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-overlay: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

/* Light theme (winter) */
[data-theme="light"] {
    --primary-color: #4338ca;
    --secondary-color: #6d28d9;
    --accent-color: #be185d;
    --dark-bg: #dbeafe;
    --darker-bg: #eff6ff;
    --text-primary: #0c0a09;
    --text-secondary: #44403c;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(100, 116, 139, 0.3);
    --gradient-overlay: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    pointer-events: none;
    z-index: 0;
}

/* Mouse-follow light effect container */
#mouse-light {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    z-index: 1;
    opacity: 0;
}

/* Flying stars background effect */
.background-star {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(99, 102, 241, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 4px rgba(99, 102, 241, 0.6),
                0 0 8px rgba(139, 92, 246, 0.4);
    animation: twinkle 3s ease-in-out infinite;
}

/* Hide stars in light mode */
[data-theme="light"] .background-star {
    display: none;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===========================
   Navigation
   =========================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Snowflake effect */
.snowflake {
    position: fixed;
    top: -10px;
    color: #38bdf8;
    font-size: 1em;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    animation: fall linear infinite;
    opacity: 0;
}

@keyframes fall {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateX(var(--drift)) translateY(100vh) rotate(360deg);
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--primary-color);
}

.lang-separator {
    color: var(--text-secondary);
    font-weight: 400;
    user-select: none;
}

/* ===========================
   Main Container
   =========================== */

main {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .cta-button {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===========================
   Split Hero Section
   =========================== */

.hero-split {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    animation: fadeInLeft 0.8s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4)) 
            drop-shadow(0 0 40px rgba(236, 72, 153, 0.3));
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-image {
    animation: fadeInRight 0.8s ease;
}

/* VS Code Window Mockup */
.vscode-window {
    background: #1e1e1e;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.vscode-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.3);
}

.vscode-header {
    background: #323233;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vscode-buttons {
    display: flex;
    gap: 0.5rem;
}

.vscode-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.vscode-btn.red {
    background: #ff5f56;
}

.vscode-btn.yellow {
    background: #ffbd2e;
}

.vscode-btn.green {
    background: #27c93f;
}

.vscode-title {
    color: #cccccc;
    font-size: 0.9rem;
}

.vscode-content {
    padding: 1.5rem;
    background: #1e1e1e;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    overflow-x: auto;
}

.vscode-content pre {
    margin: 0;
    color: #d4d4d4;
    font-size: 0.95rem;
    line-height: 1.6;
}

.vscode-content code {
    display: block;
}

/* Code Syntax Highlighting */
.code-keyword {
    color: #569cd6;
    font-weight: 500;
}

.code-variable {
    color: #9cdcfe;
}

.code-property {
    color: #9cdcfe;
}

.code-string {
    color: #ce9178;
}

.code-function {
    color: #dcdcaa;
}

/* ===========================
   Alternating Sections
   =========================== */

.section-alternate {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    max-width: 1400px;
    margin: 4rem auto;
}

.section-alternate.left .section-content {
    order: 1;
}

.section-alternate.left .section-visual {
    order: 2;
}

.section-alternate.right .section-visual {
    order: 1;
}

.section-alternate.right .section-content {
    order: 2;
}

.section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4)) 
            drop-shadow(0 0 40px rgba(236, 72, 153, 0.3));
}

.section-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.skills-columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===========================
   Glass Cards
   =========================== */

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
    will-change: left;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2),
                0 0 30px rgba(99, 102, 241, 0.1);
}

.card:hover::before {
    left: 100%;
}

/* ===========================
   Buttons
   =========================== */

.cta-button,
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.cta-button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.cta-button:hover::before,
.btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===========================
   Grid Layouts
   =========================== */

.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===========================
   CV Section Styles
   =========================== */

.cv-section {
    margin-bottom: 3rem;
}

.cv-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-item {
    margin-bottom: 1.5rem;
}

.cv-item h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cv-item .date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.cv-item p,
.cv-item ul {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cv-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Profile card specific styles */
.profile-card {
    margin-bottom: 3rem;
}

.profile-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 1rem;
}

/* Skills section styles */
.skills-category-title {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Reduce top margin for the first category title in skills section */
.skills-category-title:first-of-type {
    margin-top: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Skill bars for CV page */
.skills-with-levels {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.skill-level-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-left: auto;
}

.skill-bar-container {
    width: 75%;
    max-width: 600px;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: visible;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.skill-bar-fill::after {
    content: attr(data-level-text);
    position: absolute;
    right: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
    white-space: nowrap;
}

/* Visual hierarchy for skill levels */
.skill-item[data-skill-level="advanced"] .skill-bar-fill,
.skill-item[data-skill-level="expert"] .skill-bar-fill {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.7), 0 0 25px rgba(139, 92, 246, 0.5);
}

.skill-item[data-skill-level="advanced"] .skill-name,
.skill-item[data-skill-level="expert"] .skill-name {
    font-size: 1.1rem;
    color: var(--primary-color);
}



/* Language level styles */
.language-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.language-name {
    margin-bottom: 0.5rem;
}

.language-level {
    color: var(--text-secondary);
}

/* Download section styles */
.download-section {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Footer link spacing */
.footer-links {
    margin-top: 0.5rem;
}

/* ===========================
   Reusable Content Styles
   =========================== */

/* Text content styles */
.text-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 1rem;
}

.text-secondary {
    color: var(--text-secondary);
}

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

/* Card variations */
.card-clickable {
    cursor: pointer;
}

.card-no-padding {
    padding: 0;
    overflow: hidden;
}

.card-no-padding:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2),
                0 0 30px rgba(99, 102, 241, 0.1);
}

.card-spacing-large {
    margin-bottom: 3rem;
}

.card-spacing {
    margin-bottom: 1.5rem;
}

.card-cta {
    text-align: center;
    padding: 3rem 2rem;
}

.card-cta-spaced {
    margin-top: 4rem;
}

/* Project and hobby cards */
.project-description,
.hobby-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-description {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    font-size: 1.1rem;
}

/* Section titles */
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.section-spacing {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Category titles */
.category-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-title-large {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hobby card links */
.hobby-card-link {
    text-decoration: none;
}

.hobby-card-link:hover .card {
    transform: translateY(-5px) scale(1.02);
}

.hobby-link-text {
    color: var(--primary-color);
    margin-top: 1.5rem;
    font-weight: 600;
}

/* Tags and badges */
.tags-container {
    margin-bottom: 1.5rem;
}

.skill-tag-inline {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Quote styles */
.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.quote-author {
    margin-top: 1rem;
    color: var(--primary-color);
}

/* List styles */
.feature-list {
    color: var(--text-secondary);
    line-height: 2;
    margin-top: 1rem;
    list-style-position: inside;
}

/* Image styles */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

/* UwU easter egg trigger */
.uwu-trigger {
    opacity: 0.01;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* ===========================
   Contact Page Styles
   =========================== */

.contact-title {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-detail {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.social-section {
    margin-top: 3rem;
}

.faq-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.back-button-container {
    text-align: center;
    margin-top: 3rem;
}

/* ===========================
   Gallery (Hobbies Page)
   =========================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item .overlay h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* ===========================
   Contact Form
   =========================== */

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info .card {
    text-align: center;
}

.contact-info .card svg,
.contact-info .card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info .card h3 {
    margin-bottom: 0.5rem;
}

.contact-info .card a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ===========================
   Section Headers
   =========================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4)) 
            drop-shadow(0 0 40px rgba(236, 72, 153, 0.3));
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ===========================
   Footer
   =========================== */

footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

footer p {
    color: var(--text-secondary);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* UwU Mode Easter Egg */
#uwu-trigger {
    transition: opacity 0.3s ease;
    user-select: none;
}

#uwu-trigger:hover {
    opacity: 0.3 !important;
}

/* ===========================
   Social Links
   =========================== */

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.5rem;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.social-links-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ===========================
   Download Button
   =========================== */

.download-cv-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===========================
   FAQ Section
   =========================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   Scroll to Top Button
   =========================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    /* Split Hero - Mobile */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 6rem 2rem 2rem;
        min-height: auto;
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .vscode-content pre {
        font-size: 0.8rem;
    }

    /* Alternating Sections - Mobile */
    .section-alternate {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .section-alternate.left .section-content,
    .section-alternate.right .section-content {
        order: 1;
    }

    .section-alternate.left .section-visual,
    .section-alternate.right .section-visual {
        order: 2;
    }

    .section-content h2 {
        font-size: 2rem;
    }

    /* Original styles */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-header h1 {
        font-size: 2rem;
    }

    .grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .vscode-window {
        font-size: 0.85rem;
    }

    .vscode-content pre {
        font-size: 0.75rem;
    }

    .section-alternate {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .cta-button,
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===========================
   Accessibility - Reduced Motion
   =========================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card:hover {
        transform: translateY(-5px);
        /* Remove scale for motion sensitivity */
    }

    .vscode-window:hover {
        transform: none;
        /* Keep shadow but remove movement */
    }

    #mouse-light {
        display: none;
        /* Disable mouse-follow effect */
    }

    .background-star {
        display: none;
        /* Disable flying stars effect */
    }
}
