/* ===== IBM Carbon Design System Variables ===== */
:root {
    /* IBM Carbon Colors */
    --primary-color: #0f62fe;
    --primary-hover: #0353e9;
    --secondary-color: #393939;
    --text-color: #161616;
    --text-secondary: #525252;
    --text-light: #4d5358;
    --bg-color: #ffffff;
    --bg-light: #f4f4f4;
    --bg-dark: #161616;
    --border-color: #e0e0e0;
    --ui-01: #f4f4f4;
    --ui-02: #ffffff;
    --ui-03: #e0e0e0;
    --ui-04: #8d8d8d;
    --ui-05: #161616;
    --interactive: #0f62fe;
    --hover-ui: #e8e8e8;
    --active-ui: #c6c6c6;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.11s cubic-bezier(0.2, 0, 0.38, 0.9);
    --card-bg: #ffffff;
    --text-primary: #161616;
    --background-secondary: #e8e8e8;
}

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

html {
    scroll-behavior: smooth;
    background: var(--ui-05);
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: linear-gradient(90deg, #0f172a 0%, #10192f 55%, #0b1220 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

section {
    padding: 80px 0;
    color: var(--ui-02);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--ui-02);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 16px auto 0;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--ui-02);
    border-bottom: 1px solid var(--ui-03);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
}

.logo h2 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    background: var(--ui-05);
    color: white;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.1) 0%, rgba(15, 98, 254, 0.05) 100%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.professional-hero {
    min-height: calc(100vh - 48px);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-content-left {
    text-align: left;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a6c8ff;
    margin-bottom: 20px;
}

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.hero-panel-card {
    width: 100%;
    max-width: 380px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

.hero-panel-label {
    color: #a6c8ff;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-panel-card h2 {
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-panel-list {
    list-style: none;
    display: grid;
    gap: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-subtitle,
.hero-description {
    max-width: 1120px;
    margin-left: 0;
    text-indent: 0;
    padding-left: 0;
}

.hero-description {
    display: block;
    margin-top: 0;
}

.hero-panel-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}

.hero-panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.highlight {
    color: #78a9ff;
    font-weight: 600;
}

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

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-content-left .hero-buttons {
    justify-content: flex-start;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    min-width: 12rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    letter-spacing: 0.16px;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(15, 98, 254, 0.08);
}

/* ===== About Section ===== */
.about {
    background: var(--bg-light);
    color: var(--text-color);
}

.about .section-title {
    color: var(--text-color);
}

.about-content {
    display: grid;
    gap: 50px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 20px;
}

.section-kicker {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-kicker-center {
    text-align: center;
}

.section-title-left {
    text-align: left;
    margin-bottom: 24px;
}

.section-title-left::after {
    margin: 16px 0 0;
}

.professional-summary,
.current-role-section,
.professional-cta-section {
    background: var(--ui-02);
}

.professional-summary .section-title,
.current-role-section .section-title,
.professional-cta-section .section-title {
    color: var(--text-color);
}

.expertise-section,
.professional-links-section {
    background: var(--ui-01);
    color: var(--text-color);
}

.expertise-section .section-title,
.professional-links-section .section-title {
    color: var(--text-color);
}

.summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
    gap: 40px;
    align-items: start;
}

.summary-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 640px;
}

.summary-stats {
    margin-top: 0;
}

.expertise-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1440px;
    margin: 0 auto;
}

.skill-card-left {
    text-align: left;
}

.experience-card {
    background: var(--ui-02);
    border: 1px solid var(--ui-03);
    padding: 32px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 8px;
    font-size: 1.5rem;
}

.experience-date {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.experience-description,
.experience-description p,
.experience-description li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.experience-description ul {
    margin-top: 16px;
    padding-left: 20px;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--ui-03);
    box-shadow: var(--shadow-lg);
}

.download-card h3,
.download-card ul,
.download-card li {
    color: var(--text-primary);
}

.role-highlight-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--ui-02);
    padding: 48px;
    border: 1px solid var(--ui-03);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.role-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.role-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0353e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-title {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text-color);
}

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

.role-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.role-tags span {
    padding: 8px 14px;
    background: var(--ui-01);
    border: 1px solid var(--ui-03);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.professional-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.professional-link-card {
    background: var(--ui-02);
    border: 1px solid var(--ui-03);
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: block;
}

.professional-link-card:hover {
    background: var(--hover-ui);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.professional-link-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.professional-link-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.professional-cta {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 16px 0;
}

.professional-cta h2 {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.professional-cta p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 32px;
    background: var(--ui-02);
    border: 1px solid var(--ui-03);
    transition: var(--transition);
}

.stat:hover {
    background: var(--hover-ui);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat p {
    color: var(--text-secondary);
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--ui-02);
    padding: 32px 24px;
    border: 1px solid var(--ui-03);
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    background: var(--hover-ui);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.skill-card p {
    color: var(--text-secondary);
}

/* ===== Projects Section ===== */
.projects {
    background: var(--bg-light);
    color: var(--text-color);
}

.projects .section-title {
    color: var(--text-color);
}

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

.project-card {
    background: var(--ui-02);
    border: 1px solid var(--ui-03);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    background: var(--hover-ui);
}

.project-image {
    height: 200px;
    background: var(--ui-05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--ui-03);
}

.project-placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tags span {
    background: var(--ui-01);
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-color);
    border: 1px solid var(--ui-03);
    letter-spacing: 0.32px;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.project-link:hover {
    gap: 10px;
}

/* ===== Experience Section ===== */
.experience .section-title {
    color: var(--text-color);
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-01);
    border: 1px solid var(--ui-03);
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--hover-ui);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== Contact Form ===== */
.contact-form {
    background: var(--ui-01);
    padding: 32px;
    border: 1px solid var(--ui-03);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-bottom: 1px solid var(--ui-04);
    background: var(--ui-01);
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    border-bottom-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.footer p {
    margin-bottom: 10px;
}

.footer i {
    color: #ef4444;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 30px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-layout,
    .summary-grid,
    .professional-links-grid,
    .expertise-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        justify-content: flex-start;
    }

    .hero-content-left,
    .section-title-left,
    .section-kicker-center,
    .professional-cta {
        text-align: left;
    }

    .section-title-left::after {
        margin-left: 0;
    }

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

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

    .section-title,
    .professional-cta h2,
    .role-title {
        font-size: 2rem;
    }

    .role-highlight-card {
        padding: 32px 24px;
    }

    .role-header,
    .experience-header {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title,
    .professional-cta h2,
    .role-title {
        font-size: 1.8rem;
    }

    .skills-grid,
    .projects-grid,
    .professional-links-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .hero-panel-card,
    .role-highlight-card,
    .professional-link-card,
    .skill-card,
    .stat {
        padding-left: 20px;
        padding-right: 20px;
    }
}