﻿/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #647dee;
    --secondary-color: #7f53ac;
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --accent-color: #38bdf8;
    --glass-bg: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.contact-btn {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(100, 125, 238, 0.5);
}

/* Sections Common */
section {
    min-height: 80vh;
    /* Adjust height as needed */
    padding: 6rem 5% 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Hero Section (Section 1) */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(100, 125, 238, 0.1), transparent 40%);
}

.text-content {
    flex: 1;
}

.text-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.text-content p {
    font-size: 1.25rem;
    color: #94a3b8;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-content img {
    max-width: 100%;
    width: 400px;
    /* Base width */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-content img:hover {
    transform: scale(1.02) rotate(1deg);
}

/* Info Sections */
.info-section {
    flex-direction: column;
    text-align: center;
}

.info-section .content-wrapper {
    flex-direction: column;
    gap: 2rem;
}

.alt-bg {
    background-color: rgba(255, 255, 255, 0.02);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background-color: #020617;
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.footer-right {
    flex: 0 0 auto;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin: 1.5rem 0;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.3s ease;
    gap: 0.5rem;
}

.social-icon i {
    font-size: 2rem;
}

.social-icon:hover {
    color: var(--accent-color);
}

/* Part 3: Section 2 (About) */
.about-section {
    /* Inherit basic section properties */
}

.about-section .content-wrapper {
    flex-direction: row;
    /* Force row layout */
    gap: 4rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 300px;
    /* Increased size for desktop */
    height: auto;
    border-radius: 15px;
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.4);
    /* Shadow */
    transform: rotate(-10deg);
    /* Rotate < 25 degrees */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.about-image img:hover {
    transform: scale(1.1) rotate(-5deg);
    /* Zoom in and slight rotation change */
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    font-size: 3rem;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

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

    .image-content {
        margin-top: 2rem;
    }

    .image-content img {
        width: 80%;
    }

    .about-section .content-wrapper {
        flex-direction: column !important;
    }

    .about-image img {
        margin-bottom: 2rem;
    }
}

/* Running Time Widget */
.running-time-widget {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.5rem;
    width: 300px;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.running-time-widget:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.widget-header i {
    color: #fb7185;
    /* Soft rose red */
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(251, 113, 133, 0.5));
}

.time-main {
    background: rgba(251, 113, 133, 0.1);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(251, 113, 133, 0.2);
}

.time-main span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fb7185;
    margin: 0 0.1rem;
    font-variant-numeric: tabular-nums;
}

.time-sub {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 1;
    }

    .running-time-widget {
        width: 100%;
        max-width: 320px;
        padding: 1.2rem;
    }
}

/* Light Theme Variables */
:root.light-theme {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --accent-color: #0284c7;
    --glass-bg: rgba(0, 0, 0, 0.05);
}

.light-theme .site-header {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .hero-section {
    background: radial-gradient(circle at top right, rgba(100, 125, 238, 0.05), transparent 40%);
}

.light-theme .alt-bg {
    background-color: rgba(0, 0, 0, 0.02);
}

.light-theme .site-footer {
    background-color: #f1f5f9;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .social-icon {
    color: #64748b;
}

.light-theme .running-time-widget {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .time-sub {
    color: #1e293b;
}

/* Theme Switch Slider */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: rgba(255, 255, 255, 0.1);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider i {
    font-size: 14px;
    z-index: 1;
    transition: .4s;
}

.sun-icon {
    color: #f6e05e;
}

.moon-icon {
    color: #cbd5e0;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 24px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 24px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: #000;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.light-theme .slider {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .slider:before {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.light-theme body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Navigation Separator */
.nav-separator {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.light-theme .nav-separator {
    background-color: rgba(0, 0, 0, 0.1);
}

.lang-container {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    transition: all 0.3s ease;
}