/* =============================================
   Kareem Ghazal - Personal Website
   Design system inherited from kaygee.tech
   ============================================= */

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

:root {
    /* Corporate Color Palette (from kaygee.tech) */
    --primary-navy: #1e293b;
    --primary-blue: #0f172a;
    --secondary-blue: #334155;
    --accent-blue: #3b82f6;
    --light-blue: #e0f2fe;
    --accent-gold: #fbbf24;
    --accent-orange: #fb923c;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Corporate Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --gradient-subtle: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-gold) 100%);

    /* Professional Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   Header
   ============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition-base);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--primary-blue);
}

.logo .accent {
    color: var(--accent-gold);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-email {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.nav-email::after {
    display: none;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
    animation: subtleFloat 15s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
    color: white;
    padding: 6rem 0 4rem;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15), var(--shadow-xl);
    animation: fadeInUp 0.8s ease;
}

.hero-text {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-headline {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-blue);
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* =============================================
   Section Styles
   ============================================= */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* =============================================
   Profile / About Section
   ============================================= */
.about {
    background: white;
    padding: 6rem 0 5rem;
}

.profile-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto 3rem;
}

.profile-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.badge:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.badge-gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--primary-navy);
}

/* Education Cards */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.education-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

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

.education-card .degree {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.education-card .school {
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

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

/* =============================================
   Impact / Metrics Section
   ============================================= */
.impact {
    background: var(--bg-light);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.metric-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-top: 3px solid transparent;
    border-image: var(--gradient-accent) 1;
    border-image-slice: 1 0 0 0;
    transition: var(--transition-base);
}

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

.metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.metric-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* =============================================
   Career Timeline
   ============================================= */
.experience {
    background: white;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Vertical center line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-entry {
    position: relative;
    width: 50%;
    padding: 0 3rem 3rem;
}

/* Left entries */
.timeline-entry:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

/* Right entries */
.timeline-entry:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 3rem;
    padding-right: 0;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-gray);
    border: 3px solid var(--border-color);
    z-index: 2;
}

.timeline-entry:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-entry:nth-child(even) .timeline-dot {
    left: -8px;
}

/* Current role dot - accent gradient */
.timeline-entry.current .timeline-dot {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.timeline-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

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

.timeline-entry.current .timeline-card {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.03), var(--bg-light));
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-role {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.timeline-achievements {
    list-style: none;
    padding: 0;
}

.timeline-achievements li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0.2rem 0;
    position: relative;
}

.timeline-entry:nth-child(odd) .timeline-achievements li {
    padding-right: 1rem;
}

.timeline-entry:nth-child(odd) .timeline-achievements li::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-gold);
}

.timeline-entry:nth-child(even) .timeline-achievements li {
    padding-left: 1rem;
}

.timeline-entry:nth-child(even) .timeline-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-gold);
}

/* =============================================
   Skills Section
   ============================================= */
.skills {
    background: var(--gradient-subtle);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-light);
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.skill-pill:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
    background: rgba(251, 191, 36, 0.05);
}

/* Domain Expertise */
.domain-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.domain-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   Current Work / Projects Section
   ============================================= */
.projects {
    background: white;
}

.project-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-role {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-badge {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =============================================
   Work With Me / Hire Section
   ============================================= */
.hire {
    background: var(--bg-light);
}

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

.hire-message {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hire-areas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hire-area {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.hire-area:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(251, 191, 36, 0.3);
}

.hire-area-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.hire-area h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.hire-cta {
    display: flex;
    justify-content: center;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    background: var(--gradient-hero);
    color: white;
}

.contact .section-header h2 {
    color: white;
}

.contact .underline {
    background: var(--accent-gold);
}

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

.contact-content > p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--accent-gold);
}

/* =============================================
   Footer
   ============================================= */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

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

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 7rem 0 3rem;
    }

    .hero-photo img {
        width: 160px;
        height: 160px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-headline {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Sections */
    .section-header h2 {
        font-size: 2rem;
    }

    /* Education */
    .education-grid {
        grid-template-columns: 1fr;
    }

    /* Metrics */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Timeline - collapse to single column */
    .timeline::before {
        left: 20px;
    }

    .timeline-entry,
    .timeline-entry:nth-child(odd),
    .timeline-entry:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-entry:nth-child(odd) .timeline-dot,
    .timeline-entry:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }

    /* Fix bullet dots for mobile - all on left */
    .timeline-entry:nth-child(odd) .timeline-achievements li {
        padding-right: 0;
        padding-left: 1rem;
    }

    .timeline-entry:nth-child(odd) .timeline-achievements li::after {
        display: none;
    }

    .timeline-entry:nth-child(odd) .timeline-achievements li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--accent-gold);
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Hire */
    .hire-areas {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Project */
    .project-card {
        padding: 2rem;
    }

    .project-links {
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 12px;
    }

    .header-content {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .nav-email {
        display: none;
    }

    /* Hero */
    .hero-content {
        padding: 5rem 0 2rem;
    }

    .hero-photo img {
        width: 130px;
        height: 130px;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-headline {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Sections */
    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    /* About */
    .about {
        padding: 3rem 0 2.5rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .profile-card p {
        font-size: 1rem;
    }

    /* Metrics */
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .metric-card {
        padding: 1.2rem 0.8rem;
    }

    .metric-number {
        font-size: 1.8rem;
    }

    .metric-label {
        font-size: 0.85rem;
    }

    /* Timeline */
    .timeline::before {
        left: 12px;
    }

    .timeline-entry,
    .timeline-entry:nth-child(odd),
    .timeline-entry:nth-child(even) {
        padding-left: 36px;
        padding-bottom: 2rem;
    }

    .timeline-entry:nth-child(odd) .timeline-dot,
    .timeline-entry:nth-child(even) .timeline-dot {
        left: 5px;
        width: 14px;
        height: 14px;
    }

    .timeline-card {
        padding: 1rem;
    }

    .timeline-company {
        font-size: 1rem;
    }

    .timeline-role {
        font-size: 0.9rem;
    }

    .timeline-achievements li {
        font-size: 0.85rem;
    }

    /* Skills */
    .skill-category {
        padding: 1.2rem;
    }

    /* Hire */
    .hire-areas {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .hire-area {
        padding: 1rem 0.8rem;
    }

    .hire-message {
        font-size: 1.05rem;
    }

    /* Project */
    .project-card {
        padding: 1.5rem;
    }

    .project-badge {
        top: 12px;
        right: 12px;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .project-title {
        font-size: 1.6rem;
        margin-top: 0.3rem;
    }

    /* Contact */
    .contact-content > p {
        font-size: 1rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 0 0.5rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 0.8rem;
    }
}

@media (max-width: 320px) {
    .hero-name {
        font-size: 1.5rem;
    }

    .hero-headline {
        font-size: 1rem;
    }

    .hero-photo img {
        width: 110px;
        height: 110px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .hire-areas {
        grid-template-columns: 1fr;
    }
}