/* =========================================
   VARIABLES & THEME (Frost & Glass / Ultra-Clean Tech)
   ========================================= */
:root {
    /* TYPOGRAPHY */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* COLORS - LIGHT MODE (Japanese Sakura Aesthetic) */
    --bg-color: #FFF6F8;
    /* Soft Cherry Blossom White/Pink */
    --bg-secondary: #FFFFFF;
    --text-primary: #2d2024;
    /* Dark Plum / Ink */
    --text-secondary: #7a6368;
    /* Muted Rose Gray */
    --accent-color: #FF7AA2;
    /* Vibrant Sakura Pink */
    --accent-glow: rgba(255, 122, 162, 0.15);
    /* Soft pink glow */
    --border-color: rgba(255, 122, 162, 0.2);
    /* Soft pink borders */

    /* FROST GLASSMORPHISM */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 122, 162, 0.15);
    /* Soft pink frost border */
    --shadow-soft: none;
    --shadow-hover: none;



    /* LOGO/BRANDS */
    --gold-color: #D4AF37;

    /* ANIMATIONS */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    --bg-image: none;
}

/* DARK MODE VARIABLES (Night Cherry Blossom / Yozakura) */
[data-theme="dark"] {
    --bg-color: #0d0a0b;
    /* Updated dark background for all */
    --bg-secondary: #1a1516;
    --bg-image: url('../assets/sakura_hero_bg.jpg');
    --text-primary: #FCEBF0;
    /* Soft moonlight pink/white */
    --text-secondary: #d1b8c0;
    /* Muted light rose */
    --accent-color: #FFB3C6;
    /* Luminous soft pink */
    --accent-glow: rgba(255, 179, 198, 0.15);
    --border-color: rgba(255, 179, 198, 0.2);

    --glass-bg: rgba(38, 24, 30, 0.65);
    --glass-border: rgba(255, 179, 198, 0.1);
    --shadow-soft: none;
    --shadow-hover: none;
}

/* =========================================
   GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    background-image: var(--bg-image, none);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    /* Tighter tracking for premium feel */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: padding var(--transition-smooth), background var(--transition-smooth);
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.8);
}

.navbar.scrolled {
    padding: 15px 5%;
    box-shadow: var(--shadow-soft);
}

.logo {
    font-size: 1.8rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links li a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--text-primary);
    transition: width var(--transition-fast);
}

.nav-links li a:hover:not(.btn-contact)::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--text-primary);
}

.btn-contact {
    background: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 10px 24px;
    border-radius: 8px;
    /* Bento box softer corners */
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.1);
}

/* Theme Switcher */
#theme-switch {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-fast);
}

#theme-switch:hover {
    transform: scale(1.1);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.greeting {
    font-family: var(--font-primary);
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: none;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: none;
    color: var(--bg-color);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 13px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: none;
}

/* SAKURA PETAL ANIMATIONS */
@keyframes fall {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

@keyframes sway {
    0% {
        transform: translateX(0px) rotate(0deg);
    }

    100% {
        transform: translateX(30px) rotate(45deg);
    }
}

/* Global Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN (Globals)
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        background-image: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-soft);
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.subsection-title {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--accent-color);
}

.languages-list {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.languages-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.languages-list i {
    color: var(--accent-color);
}

.glass-card {
    background: transparent;
    border: none;
    padding: 15px 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: visible;
}

/* Subtle glow inside the card for premium feel */
.glass-card::before {
    display: none;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border: none;
    background: transparent;
}

.about-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 10px 20px;
    background: transparent;
    border-radius: 0;
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-box h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.bg-alt {
    background-color: var(--bg-secondary);
}

/* =========================================
   TIMELINE (Experience & Education)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--text-primary);
    border: 3px solid var(--bg-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background-color: var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    position: relative;
    border-radius: 15px;
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent-color);
    color: #1a1516;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-dot {
        left: 21px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
}

/* =========================================
   TECHNOLOGY WATCH (RSS FEED)
   ========================================= */
.rss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.rss-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 15px 0;
    box-shadow: none;
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.rss-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border: none;
}

.rss-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.rss-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rss-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.rss-link:hover {
    color: var(--accent-color);
}

/* =========================================
   PROJECT IMAGES STYLES
   ========================================= */
.project-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: block;
    margin: 0 auto;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.project-img:hover {
    border-color: var(--accent-color);
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .project-images-grid {
        grid-template-columns: 1fr;
    }
}

.archi-img {
    width: 35%;
    min-width: 280px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: block;
    margin: 20px 0;
    transition: border-color var(--transition-smooth);
}

.archi-img:hover {
    border-color: var(--accent-color);
}

/* =========================================
   PROJECT TECH BADGES & DETAILS (Sakura Aesthetic)
   ========================================= */
.project-tech-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 25px 0 35px 0;
}

@media (max-width: 768px) {
    .project-tech-container {
        flex-wrap: wrap;
    }
}

.project-tech-badge {
    background: rgba(255, 122, 162, 0.06);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: none; /* Disables hover transitions */
}

/* Ensure no hover movements/zooms */
.project-tech-badge:hover {
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255, 122, 162, 0.06) !important;
    border-color: var(--border-color) !important;
    color: var(--accent-color) !important;
}

[data-theme="dark"] .project-tech-badge {
    background: rgba(255, 179, 198, 0.08);
    border-color: var(--border-color);
    color: var(--accent-color);
}

[data-theme="dark"] .project-tech-badge:hover {
    background: rgba(255, 179, 198, 0.08) !important;
    border-color: var(--border-color) !important;
    color: var(--accent-color) !important;
}

.tech-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.tech-detail-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: none; /* Disables hover transitions */
}

.tech-detail-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border-color) !important;
}

.tech-detail-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-detail-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}