/* ===================================
   Apple Style Theme
   =================================== */

/* ===================================
   Navigation Bar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0 12px;
    font-size: 12px;
    transition: color var(--transition-fast);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 48px;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link.active {
    color: var(--accent-blue);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    gap: 5px;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-normal);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 48px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        padding: var(--spacing-sm) 0;
        gap: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 12px var(--spacing-md);
        line-height: 1.47059;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-primary);
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent);
}

.hero-content {
    max-width: 800px;
    padding: 0 var(--spacing-md);
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-title {
    margin-bottom: var(--spacing-sm);
}

.hero-greeting {
    display: block;
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.hero-name {
    display: block;
    font-size: 64px;
    line-height: 1.0835;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.6;
}

.scroll-indicator .arrow {
    margin-top: var(--spacing-xs);
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--text-secondary);
    border-bottom: 1.5px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-8px);
    }
    60% {
        transform: rotate(45deg) translateY(-4px);
    }
}

/* ===================================
   Section Backgrounds
   =================================== */
.about {
    background: var(--bg-primary);
}

.skills {
    background: var(--bg-secondary);
}

.projects {
    background: var(--bg-primary);
}

.experience {
    background: var(--bg-secondary);
}

.contact {
    background: var(--bg-primary);
}

/* ===================================
   Section Title Underline (Removed)
   =================================== */
/* .section-title::after {
    content: '';
    position: absolute;
    bottom: var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
} */

/* ===================================
   Hero Text Gradient (Optional)
   =================================== */
.hero-name-gradient {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===================================
   Card Hover Effects Enhancement
   =================================== */
.skill-card,
.project-card,
.timeline-content {
    will-change: transform, box-shadow;
}

/* ===================================
   Navigation Active State Indicator
   =================================== */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

@media (min-width: 769px) {
    .nav-link:hover::after,
    .nav-link.active::after {
        width: calc(100% - 24px);
    }
}

/* ===================================
   Scrollbar Styling (Webkit)
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ===================================
   Focus Styles (Accessibility)
   =================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===================================
   Smooth Page Transitions
   =================================== */
.fade-in-page {
    animation: fadeInPage 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===================================
   Large Typography
   =================================== */
@media (min-width: 1440px) {
    .hero-name {
        font-size: 80px;
    }

    .section-title {
        font-size: 64px;
    }
}

/* ===================================
   Dark Mode Support (Optional - for future)
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
    /* Currently using light theme as per Apple's default */
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-cta {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
}

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