/* ============================================
   DESIGN SYSTEM: Minimalist Elegance Portfolio
   Typography: Poppins for display, Inter for body
   Color: Clean white bg, deep charcoal text, vibrant teal accents
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #17b8a0;
    --primary-light: #d9f4f0;
    --foreground: #3c3c3c;
    --background: #ffffff;
    --border: #e8e8e8;
    --text-light: #6b7280;
    --accent: #17b8a0;
    --accent-foreground: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease-out;
}

a:hover {
    color: var(--foreground);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 42rem;
    margin: 1.5rem auto 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease-out;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.logo-text {
    display: none;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s ease-out;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-out;
    position: relative;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease-out;
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.w-full {
    width: 100%;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663309876597/RcRTZ9V5UJHdNDBV3j7gXz/hero-background-Yt65PxJBBxxJbqFFhEcJB8.webp' );
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: var(--foreground);
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background-color: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.highlight-dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.highlight-dot::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-section {
    background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663309876597/RcRTZ9V5UJHdNDBV3j7gXz/skills-background-aqq6oW8M6HMN5CqbwmxXSg.webp' );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.skills-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
}

.skills-section .container {
    position: relative;
    z-index: 10;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease-out;
}

.skill-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1rem);
}

.skill-card h3 {
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   TIMELINE (Learning Journey)
   ============================================ */

.journey-section {
    background-color: var(--background);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3rem;
    bottom: -2rem;
    width: 2px;
    background: var(--primary-light);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    font-size: 2rem;
    flex-shrink: 0;
    position: absolute;
    left: -1.5rem;
    top: 0;
}

.timeline-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.timeline-content p {
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================
   PROJECTS SECTION (What I'm Building)
   ============================================ */

.building-section {
    background-color: var(--background);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease-out;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1rem);
}

.project-placeholder {
    width: 100%;
    height: 12rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f7f4 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   WHY HIRE ME SECTION
   ============================================ */

.why-section {
    background-color: var(--primary-light);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease-out;
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-0.5rem);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.why-card p {
    margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background-color: var(--primary-light);
}

.contact-content {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}

.contact-content h2 {
    margin-bottom: 1.5rem;
}

.contact-content > p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .contact-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.contact-email {
    font-size: 0.95rem;
}

.contact-email a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--foreground);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.footer-logo .logo-icon {
    background-color: var(--primary);
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease-out;
}

.footer-links a:hover {
    color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-child {
    animation-fill-mode: forwards;
}

.stagger-child:nth-child(1) { animation-delay: 0ms; }
.stagger-child:nth-child(2) { animation-delay: 50ms; }
.stagger-child:nth-child(3) { animation-delay: 100ms; }
.stagger-child:nth-child(4) { animation-delay: 150ms; }
.stagger-child:nth-child(5) { animation-delay: 200ms; }

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-heading {
    position: relative;
    display: inline-block;
}

.heading-accent {
    position: relative;
}

.heading-accent::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

.heading-accent:hover::after {
    width: 100%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        min-height: 80vh;
    }

    .navbar-content {
        height: 4rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}