/* =================================
   CSS Variables
   ================================= */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #f1f5f9;
    --text-dark: #1e293b;
    --text-gray: #334155;
    --text-light: #64748b;
    --accent-blue: #2563eb;
    --accent-teal: #0891b2;
    --border-light: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
}

/* =================================
   Global Styles
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =================================
   Hero Section
   ================================= */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    padding: 80px 20px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content h1 {
    color: var(--text-dark);
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    color: var(--accent-blue);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-content .tagline {
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 1rem;
}

.hero-content .location {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary-custom {
    background: var(--accent-blue);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary-custom:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: var(--accent-blue);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--accent-blue);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-outline-custom:hover {
    background: var(--accent-blue);
    color: white;
}

/* =================================
   Sections
   ================================= */
section {
    padding: 80px 20px;
}

section:nth-child(even) {
    background: var(--bg-lighter);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Text */
.about-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.8;
}

/* =================================
   Cards
   ================================= */
.card-custom {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: none;
}

.stat-card .value {
    color: var(--accent-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =================================
   Timeline
   ================================= */
.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 2px solid var(--accent-blue);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--bg-lighter);
}

.timeline-item h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-item .company {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1rem;
}

.timeline-item .period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: block;
}

.timeline-item ul {
    margin-top: 0.5rem;
    color: var(--text-gray);
    padding-left: 1.25rem;
}

.timeline-item ul li {
    margin-bottom: 0.25rem;
}

/* =================================
   Skills
   ================================= */
.skill-category {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.skill-tag {
    display: inline-block;
    background: var(--bg-lighter);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 4px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* =================================
   Projects
   ================================= */
.project-card {
    cursor: pointer;
}

.project-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* =================================
   Contact Section
   ================================= */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* =================================
   Footer
   ================================= */
footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
}

.footer-links {
    margin-top: 1rem;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* =================================
   Responsive Design
   ================================= */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 20px;
    }

    section {
        padding: 60px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .emoji {
        font-size: 3rem;
    }

    .stat-card .emoji {
        font-size: 2rem;
    }

    .project-emoji {
        font-size: 2.5rem;
    }
}