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

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --text-tertiary: #888888;
    --accent-color: #0066cc;
    --accent-hover: #004499;
    --border-color: #e5e5e5;
}

[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #e5e5e5;
    --text-secondary: #d0d0d0;
    --text-tertiary: #b5b5b5;
    --accent-color: #4a9eff;
    --accent-hover: #6bb3ff;
    --border-color: #333333;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
}

.nav {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link.active {
    font-weight: 600;
}

.theme-toggle {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: var(--text-color);
}

.theme-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.theme-icon {
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon svg {
    width: 18px;
    height: 18px;
}

.content {
    font-size: 1rem;
    line-height: 1.7;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.hero-content {
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    border-radius: 2px;
    opacity: 0.6;
}



.name {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.rotating-greeting {
    display: inline-block;
    position: relative;
    text-align: left;
    color: var(--text-color);
    font-weight: 700;
}

.rotating-greeting.fade-out {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotating-greeting.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: appleHighlight 1.2s ease-out;
}

@keyframes appleHighlight {
    0% {
        background: transparent;
        box-shadow: none;
    }
    20% {
        background: rgba(128, 128, 128, 0.08);
        box-shadow: 0 0 0 8px rgba(128, 128, 128, 0.04);
        border-radius: 8px;
    }
    100% {
        background: transparent;
        box-shadow: none;
    }
}

.wave-emoji {
    display: inline-block;
    transform-origin: 70% 70%;
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.wave-emoji:hover {
    animation: wave 0.6s ease-in-out;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(14deg); }
    75% { transform: rotate(-8deg); }
}

.call-me {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-tertiary);
    font-style: italic;
    font-weight: 300;
    opacity: 0.8;
}

.intro {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 650px;
    font-weight: 400;
}

.current-work {
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.current-work p {
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 650px;
}

.current-work p:last-child {
    margin-bottom: 0;
}

.current-work strong {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.bio-intro {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.section-heading {
    color: var(--text-color);
    font-weight: 600;
    margin: 3rem 0 1rem 0;
    font-size: 1.2rem;
}

.section-heading:first-of-type {
    margin-top: 2rem;
}

.bio-paragraph {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 600px;
}

.project-paragraph {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

.contact-paragraph {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 600px;
}

.email-copy-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
}

.email-copy-btn:hover {
    color: var(--accent-hover);
}

.email-copy-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.email-copy-btn:hover::after {
    width: 100%;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Remove underline effect from navigation links */
.nav-link::after {
    display: none;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 2rem 1.5rem;
        max-width: 700px;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .intro {
        font-size: 1.2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    

    
    .nav {
        flex-direction: row;
        gap: 1.5rem;
        margin-bottom: 3rem;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    

    
    .name {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .rotating-greeting {
        font-size: inherit;
    }
    
    .intro {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .bio-intro {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .current-work p,
    .bio-paragraph,
    .project-paragraph {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.1rem;
        margin: 2.5rem 0 1rem 0;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .hero-content::before {
        display: none;
    }
    

    
    .nav {
        margin-bottom: 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .theme-toggle {
        top: 1rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
    }
    
    .theme-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .name {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .rotating-greeting {
        font-size: inherit;
    }
    
    .call-me {
        font-size: 1rem;
    }
    
    .intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .bio-intro {
        font-size: 1.1rem;
    }
    
    .current-work p,
    .bio-paragraph,
    .project-paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    
    .section-heading {
        font-size: 1rem;
        margin: 2rem 0 0.8rem 0;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0.75rem 0.5rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .rotating-greeting {
        font-size: inherit;
    }
    
    .call-me {
        font-size: 0.9rem;
    }
    
    .intro {
        font-size: 0.9rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .current-work p,
    .bio-paragraph,
    .project-paragraph {
        font-size: 0.9rem;
    }
}
