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

:root {
    /* Professional Corporate Blue Palette */
    --primary-color: #0B3D91;
    --primary-dark: #072A6B;
    --primary-light: #1E5FC4;
    --secondary-color: #6B7280;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-color: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-section: #FFFFFF;
    --border-color: #E5E7EB;
    --accent-color: #0891B2;
    --accent-light: #06B6D4;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --shadow-sm: 0 1px 2px 0 rgba(11, 61, 145, 0.05);
    --shadow: 0 4px 6px -1px rgba(11, 61, 145, 0.1), 0 2px 4px -1px rgba(11, 61, 145, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(11, 61, 145, 0.1), 0 10px 10px -5px rgba(11, 61, 145, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(11, 61, 145, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-light);
    font-size: 16px;
}

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

/* Navigation */
.navbar {
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

.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::after {
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, #1E5FC4 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 12px;
    opacity: 0.95;
    line-height: 1.5;
}

.location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 48px;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.header-stat {
    text-align: center;
}

.header-stat-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1;
}

.header-stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.header-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

/* Main Content */
.main {
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.section {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.section-header {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    margin-top: 8px;
}

/* Summary Section */
.summary {
    background: linear-gradient(135deg, #ffffff 0%, #F9FAFB 100%);
    border: 2px solid var(--primary-color);
    border-top: 6px solid var(--primary-color);
}

.summary-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 24px;
}

.summary-text:last-child {
    margin-bottom: 0;
}

.summary-cta {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Experience Section */
.job {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    padding-left: 24px;
}

.job::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.job:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.job-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
    margin-top: -8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.job-header:hover {
    background-color: rgba(11, 61, 145, 0.05);
}

.toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0;
}

.toggle-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.job-content {
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
}

.job-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.job-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-right: 12px;
}

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

.company::after {
    content: '•';
    margin: 0 12px;
    color: var(--text-light);
    font-weight: 400;
}

.period {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-left: auto;
    font-weight: 500;
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 6px;
}

.job .location {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.job-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.tech-stack {
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #F3F4F6 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 16px;
    font-weight: 500;
}

.tech-stack strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.skill {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.skill:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill:hover::before {
    left: 100%;
}

/* Certifications & Languages */
.cert-list,
.lang-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.cert-list li,
.lang-list li {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.cert-list li:hover,
.lang-list li:hover {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    transform: translateX(8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.cert-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.cert-school {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Education Section */
.education-item {
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.education-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.school {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.education-item .period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    background: none;
    padding: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-light));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-links h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-cta {
    margin-top: 24px;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 16px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.cta-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.cta-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cta-primary-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.cta-primary-large:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: all 0.3s ease;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.floating-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.5);
}

.floating-cta-icon {
    font-size: 1.25rem;
}

.floating-cta-text {
    font-size: 1rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 25px 50px -12px rgba(11, 61, 145, 0.4);
    }
    50% {
        box-shadow: 0 25px 50px -12px rgba(11, 61, 145, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.25rem;
    }

    .header {
        padding: 60px 0 80px;
    }

    .header-stats {
        gap: 32px;
    }

    .section {
        padding: 32px 24px;
    }

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

    .job {
        padding-left: 16px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .company::after {
        display: none;
    }

    .period {
        margin-left: 0;
        margin-top: 8px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-links {
        align-items: stretch;
    }

    .header-cta {
        flex-direction: column;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .summary-cta {
        padding: 24px;
    }

    .cta-text {
        font-size: 1.1rem;
    }

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

    .floating-cta {
        bottom: 16px;
        right: 16px;
        padding: 12px 20px;
    }

    .floating-cta-text {
        display: none;
    }

    .footer-cta {
        text-align: center;
    }

    .cta-primary-large {
        width: 100%;
    }
}

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

    .header {
        padding: 40px 0 60px;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .header-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section {
        padding: 24px 16px;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nav-links a {
        text-align: center;
        padding: 8px;
    }
}
