/* ==================== */
/* Reset & Base Styles  */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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-dark);
    background-color: var(--bg-white);
}

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

/* ==================== */
/* Navigation          */
/* ==================== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ==================== */
/* Hero Section         */
/* ==================== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    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(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.bio {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
    position: relative;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.hero .btn-secondary {
    color: #667eea;
}

.hero-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-social-icon svg {
    width: 24px;
    height: 24px;
}

.hero-social-icon:hover {
    background: white;
    color: #667eea;
    transform: scale(1.15) rotateZ(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.avatar-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    max-width: 300px;
    margin: 0 auto;
    animation: slideInRight 0.8s ease-out 0.3s both;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.avatar-placeholder svg {
    width: 70%;
    height: 70%;
    color: white;
}

.avatar-placeholder:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* ==================== */
/* Experience Section   */
/* ==================== */
.experience {
    padding: 80px 0;
    background: var(--bg-light);
}

.experience h2,
.skills h2,
.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.experience h2::after,
.skills h2::after,
.contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    margin: 0.8rem auto 0;
    border-radius: 2px;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.skills h2,
.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.6s ease-out both;
    border: 1px solid rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.15);
}

.experience-card:hover::before {
    transform: scaleX(1);
}

.experience-card--simple {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.company {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-cta {
    text-align: center;
    margin-top: 3rem;
}

.responsibilities {
    list-style: none;
}

.responsibilities li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
    animation: slideInRight 0.6s ease-out both;
}

.responsibilities li:hover {
    transform: translateX(8px);
    color: var(--text-dark);
}

.responsibilities li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== */
/* Skills Section       */
/* ==================== */
.skills {
    padding: 60px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.skill-category {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    border-left-color: #764ba2;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
}

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

.skill-tag {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==================== */
/* Contact Section      */
/* ==================== */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact h2 {
    color: white;
    position: relative;
    z-index: 1;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 12px 48px rgba(31, 38, 135, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 14px;
    background: white;
    color: #667eea;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.contact-form .btn-primary:hover {
    background: var(--bg-light);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    min-height: 1.5rem;
    font-weight: 500;
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: #ef4444;
}

.contact-form-wrapper .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out both;
}

.social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}

.social-link:hover {
    background: white;
    color: #667eea;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==================== */
/* Footer              */
/* ==================== */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin-bottom: 0.5rem;
    animation: fadeIn 0.8s ease-out;
}

.footer-credit {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==================== */
/* Responsive Design    */
/* ==================== */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        gap: 0;
        box-shadow: var(--shadow-md);
        z-index: 50;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .bio {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .avatar-placeholder {
        min-height: 250px;
    }

    .experience h2,
    .skills h2,
    .contact h2 {
        font-size: 2rem;
    }

    .experience,
    .skills,
    .contact {
        padding: 60px 0;
    }

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

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

    .contact-form-wrapper .social-links {
        flex-wrap: wrap;
    }

    .social-link {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .bio {
        font-size: 0.95rem;
    }

    .experience h2,
    .skills h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .experience,
    .skills,
    .contact {
        padding: 40px 0;
    }

    .experience-card,
    .skill-category,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .nav-links {
        top: 50px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .avatar-placeholder {
        min-height: 200px;
    }

    .contact-form-wrapper .social-links {
        flex-direction: column;
    }

    .social-link {
        width: 100%;
    }

    .experience-grid {
        gap: 1.5rem;
    }

    .responsibilities li {
        margin-bottom: 0.6rem;
    }
}
