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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #fff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.profile-section {
    flex-shrink: 0;
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.name {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.job-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.tagline {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-btn {
    padding: 0.7rem 1.4rem;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section h2 {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
    color: #1e3a8a;
    position: relative;
    padding-left: 1.25rem;
}

.section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

/* About */
.about {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.4rem;
    color: #475569;
    max-width: 800px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Experience */
.experience {
    background: #fff;
}

.job-card {
    border-left: 4px solid #2563eb;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}

.job-card header h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

.company {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.company a {
    color: #2563eb;
    text-decoration: none;
}

.company a:hover {
    text-decoration: underline;
}

.dates {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.job-card ul {
    margin-top: 1.25rem;
    padding-left: 1.25rem;
}

.job-card li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #475569;
}

.job-card li:last-child {
    margin-bottom: 0;
}

/* Projects */
.projects {
    background: #f8fafc;
}

.project-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.project-card h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: #475569;
    line-height: 1.8;
}

.arch-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background: #eef2ff;
    color: #4338ca;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.arch-link:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}

/* Skills */
.skills {
    background: #fff;
}

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

.skill-category h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid #2563eb;
}

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

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.18);
}

.key-competencies {
    margin-top: 2rem;
}

.key-competencies h3 {
    font-size: 1.4rem;
    color: #1e3a8a;
    margin-bottom: 1.25rem;
}

.bars {
    display: grid;
    gap: 1rem;
}

.bar-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.bar-bg {
    background: #e5e7eb;
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Education */
.education {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.edu-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.edu-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.edu-card h3 {
    font-size: 1.15rem;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

.edu-institute {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.edu-date {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Contact */
.contact {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 1.75rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        width: 100%;
    }

    .contact-links {
        justify-content: center;
    }

    .name {
        font-size: 2.5rem;
    }

    .job-title {
        font-size: 1.3rem;
    }

    .tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .job-card:hover {
        transform: translateX(0);
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .name {
        font-size: 2rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}

/* Gopher Mascot */
/*
.gopher {
    position: fixed;
    right: auto;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    pointer-events: none;
    transition: top 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
*/
/* Gopher Mascot — hidden for now */
.gopher { display: none; }

.gopher.dropping {
    transition: top 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gopher-body {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.gopher-shadow {
    width: 60px;
    height: 10px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
    margin: -4px auto 0;
    animation: shadow-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes shadow-pulse {
    from { transform: scaleX(1); opacity: 0.6; }
    to   { transform: scaleX(1.2); opacity: 0.3; }
}

.gopher.idle .gopher-body {
    animation: idle-float 2s ease-in-out infinite;
}

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

.gopher.running .gopher-body {
    animation: run-bob .22s ease-in-out infinite alternate;
}

@keyframes run-bob {
    from { transform: translateY(0); }
    to   { transform: translateY(-4px); }
}

.left-arm, .right-arm {
    transform-box: fill-box;
}

.gopher.running .left-arm {
    transform-origin: 90% 10%;
    animation: arm-swing .22s ease-in-out infinite alternate;
}

.gopher.running .right-arm {
    transform-origin: 10% 10%;
    animation: arm-swing .22s ease-in-out infinite alternate-reverse;
}

@keyframes arm-swing {
    from { transform: rotate(-12deg); }
    to   { transform: rotate(12deg); }
}

.gopher.running .left-foot {
    animation: foot-run .22s ease-in-out infinite alternate;
    transform-origin: center top;
}

.gopher.running .right-foot {
    animation: foot-run .22s ease-in-out infinite alternate-reverse;
    transform-origin: center top;
}

@keyframes foot-run {
    from { transform: rotate(-8deg); }
    to   { transform: rotate(8deg); }
}

@media (max-width: 900px) {
    .gopher { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

@media print {
    .navbar, .contact-btn, .main-footer, .gopher {
        display: none;
    }
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    .job-card:hover, .project-card:hover, .edu-card:hover {
        transform: none;
        box-shadow: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
