/* Modern Card-Based Design System */
:root {
    --primary-hue: 210;
    /* Apple Blue */
    --primary: hsl(var(--primary-hue), 100%, 50%);
    --primary-dark: hsl(var(--primary-hue), 100%, 40%);
    --primary-light: hsl(var(--primary-hue), 100%, 96%);

    --accent-gradient: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --backdrop-blur: 20px;

    --bg-body: #F5F5F7;
    --bg-card: #FFFFFF;

    --text-main: #1D1D1F;
    --text-muted: #86868B;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 24px;
    --spacing-5: 48px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 60px;
    /* Space for footer */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-3);
}

/* --- Navigation (Floating Panel) --- */
.nav-panel {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    gap: 30px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 4px;
    transition: transform 0.2s;
}

.nav-link i {
    font-size: 1.2rem;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link:hover i {
    color: var(--primary);
}

/* --- Hero Section Redesign (Two-Col) --- */
.hero {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ebf4ff 100%);
    overflow: hidden;
}

/* Background Accents */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

/* Name Typography */
.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1a1a1a;
    margin-bottom: 24px;
    background: linear-gradient(to right, #1a1a1a, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Role Pill Badge */
.hero-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 30px;
    transform-origin: left;
    animation: fade-in-up 0.8s ease-out;
}

.role-icons {
    font-size: 1.2rem;
    display: flex;
    gap: 8px;
}

/* Summary Card */
.hero-summary-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.02),
        0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 550px;
}

.hero-summary-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* Right Column (Visual/Actions) */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* --- Enhanced Resume Card for Right Col --- */
.resume-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 24px;
    gap: 20px;
    box-shadow:
        0 20px 50px rgba(0, 122, 255, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 340px;
}

.resume-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 122, 255, 0.18);
}

.resume-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007AFF 0%, #005ec4 100%);
    color: white;
    font-size: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.25);
}

.resume-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.resume-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-role-badge {
        margin: 0 auto 30px;
    }

    .hero-summary-card {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* --- General Section Styles --- */
section {
    margin-bottom: var(--spacing-5);
    position: relative;
    scroll-margin-top: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
    position: relative;
}

/* --- Cards Grid System --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-3);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-3);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-3);
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-3);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 122, 255, 0.1);
}

/* --- About Card --- */
.about-card {
    padding: var(--spacing-4);
    font-size: 1.1rem;
    color: #444;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Skill Cards --- */
/* --- Redesigned Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.skill-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy hover */
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    overflow: hidden;
    height: 180px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.skill-card:hover::after {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s;
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(5deg);
}

.skill-info {
    width: 100%;
}

.skill-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 5px;
    display: block;
}

.skill-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    width: 60%;
    margin: 0 auto;
}

.skill-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary);
}

/* --- Tool Cards --- */
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-4) var(--spacing-2);
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.tool-name {
    font-weight: 600;
}

/* --- Experience & Education Cards --- */
.timeline-card {
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--primary);
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-company {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.timeline-date {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f8ff;
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* --- Blog Magazine Cards --- */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.blog-body {
    padding: var(--spacing-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-cat {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.blog-meta {
    font-size: 0.8rem;
    color: #aaa;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* --- Contact Strip as Cards --- */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.contact-card i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-panel {
        bottom: 20px;
        top: auto;
        padding: 12px 20px;
        gap: 20px;
        width: 90%;
        justify-content: space-around;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-link span {
        display: none;
    }

    /* Show only icons on mobile */
    .nav-link i {
        font-size: 1.5rem;
    }
}