:root {
    /* Van Gogh Starry Night (Dark Mode) */
    --bg-color: #0c1427; /* Deep night sky */
    --text-primary: #e6eef5;
    --text-secondary: #8aa2c7;
    --accent-1: #ffd700; /* Star yellow */
    --accent-2: #79c1d1; /* Swirl cyan */
    --hero-bg: radial-gradient(circle at top right, #1a3258 0%, #0c1427 100%);
    --footer-bg: #070c18;
    --btn-bg: rgba(255, 215, 0, 0.05);
    --btn-border: rgba(255, 215, 0, 0.2);
    --btn-hover-bg: rgba(255, 215, 0, 0.15);
    --btn-hover-border: rgba(255, 215, 0, 0.4);
    
    /* Subtle texture simulation */
    --bg-texture: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 0h40v40H0z' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
}

[data-theme="light"] {
    /* Van Gogh Sunflowers/Almond Blossom (Light Mode) */
    --bg-color: #fdfbf7; /* Canvas cream */
    --text-primary: #2c3e50;
    --text-secondary: #5d6d7e;
    --accent-1: #d48806; /* Sunflower orange/gold */
    --accent-2: #59828f; /* Almond branch blue/green */
    --hero-bg: radial-gradient(circle at center, #ffffff 0%, #f6f3eb 100%);
    --footer-bg: #ebe5d9;
    --btn-bg: rgba(212, 136, 6, 0.05);
    --btn-border: rgba(212, 136, 6, 0.2);
    --btn-hover-bg: rgba(212, 136, 6, 0.15);
    --btn-hover-border: rgba(212, 136, 6, 0.4);
    --bg-texture: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 0h40v40H0z' fill='rgba(0,0,0,0.015)'/%3E%3C/svg%3E");
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Theme Switch */
.theme-switch-wrapper {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 100;
}
.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 64px;
}
.theme-switch input {
    display: none;
}
.slider {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    backdrop-filter: blur(5px);
}
[data-theme="light"] .slider {
    background-color: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}
.slider.round {
    border-radius: 34px;
}
.slider:before {
    background-color: var(--accent-1);
    bottom: 3px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
input:checked + .slider:before {
    transform: translateX(28px);
    background-color: var(--text-primary);
}
.sun, .moon {
    width: 15px;
    height: 15px;
    z-index: 1;
}
.sun {
    color: #e39b0e;
}
.moon {
    color: #8aa2c7;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    background: var(--hero-bg);
    background-image: var(--bg-texture), var(--hero-bg);
    transition: background 0.5s ease;
}

.content {
    max-width: 800px;
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

.welcome {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-1);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-shadow: 0px 10px 30px rgba(0,0,0,0.1);
}

.intro {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 45px;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.intro strong {
    color: var(--text-primary);
    font-weight: 600;
}

.write-line {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    animation: writeWipe 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.line-1 { animation-delay: 0.5s; }
.line-2 { animation-delay: 1.3s; }
.line-3 { animation-delay: 2.1s; }

@keyframes writeWipe {
    to {
        clip-path: inset(0 0 0 0);
    }
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.github-link:hover {
    background: var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    color: var(--accent-1);
}

/* Details Section */
.details-section {
    height: 250vh;
    position: relative;
    background-color: var(--bg-color);
    background-image: var(--bg-texture);
    transition: background-color 0.5s ease;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
}

.detail-card {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    
    /* Variables controlled by JS scroll */
    --scroll-x: 100vw;
    --scroll-opacity: 0;
    
    transform: translateX(var(--scroll-x));
    opacity: var(--scroll-opacity);
    
    /* Smooth transition for mouse wheel steps and hover */
    transition: transform 0.1s linear, opacity 0.1s linear, background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.detail-card:hover {
    transform: translateX(var(--scroll-x)) translateY(-10px);
    background: var(--btn-hover-bg);
    border-color: var(--accent-2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.detail-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: rotate(-5deg);
    transition: transform 0.4s;
}

.detail-card:hover .detail-icon {
    transform: rotate(5deg) scale(1.1);
}

.detail-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-info p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Final Section (Hobbies & Signature) */
.final-section {
    height: 500vh;
    position: relative;
    background-color: var(--bg-color);
    background-image: var(--bg-texture);
    transition: background-color 0.5s ease;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hobbies-container, .signature-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.hobbies-container {
    z-index: 1;
    padding: 0 20px;
}

.signature-container {
    z-index: 2;
    background-color: var(--bg-color);
    background-image: var(--bg-texture);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.greeting-box {
    position: absolute;
    top: 5%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.greeting-box h2 {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    color: var(--accent-1);
    letter-spacing: 2px;
}

.daisy-icon {
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

.section-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    text-align: center;
    color: var(--accent-1);
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.hobby-card {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s, border-color 0.4s, box-shadow 0.4s, opacity 0.8s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
}

.hobby-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.hobby-card:hover {
    transform: translateY(-10px);
    background: var(--btn-hover-bg);
    border-color: var(--accent-2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hobby-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hobby-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.hobby-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}



#signature {
    width: 90%;
    max-width: 800px;
    height: auto;
    margin-top: 10px;
    transform: translateX(40px);
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
}

.sig-path {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--footer-bg);
    transition: background-color 0.5s ease;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.2rem;
    }
    .intro {
        font-size: 1.1rem;
    }
    .github-link {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}
