:root {
    --color-white: #ffffff;
    --color-light-bg: #f9f9f9;
    --color-about-bg: #c1b8c8;
    --color-text-dark: #484652;
    --color-text-secondary: #8f8fa6;
    --color-text-quote: #6c739d;
    --color-button-dark: #393741;
    --color-button-light: rgba(57, 55, 65, 0.1);
    --color-date-bg: #efefef;
    --color-card-bg: #f1eded;
    --color-skill-bg: #8b84d4;
    --color-contact-bg: #6c739d;

    --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Google Sans Font Definitions */
.google-sans-regular {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}

.google-sans-medium {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}

.google-sans-bold {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    border-bottom: none;
    padding: 0 40px;
    height: 76px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.navbar-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.navbar-logo {
    height: 30px;
    width: auto;
    max-width: 200px;
    display: block;
}

.navbar-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar-menu a {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--color-text-dark);
}

.navbar.scrolled .navbar-menu a {
    color: var(--color-text-secondary);
}

.navbar.scrolled .navbar-menu a:hover {
    color: var(--color-text-dark);
}

.cv-container {
    width: 100%;
}

/* Hero Section */
.hero {
    width: 100%;
    background-color: var(--color-light-bg);
    background-image: url('../images/eefc148d8984a3eea5a8998d9d75c4a8ac9b8e75.png');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    min-height: 800px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    margin-top: -76px;
    padding-top: calc(40px + 76px);
}

.hero-wrapper {
    width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    display: flex;
    gap: 23px;
    align-items: flex-end;
    margin-bottom: 40px;
    width: 100%;
}

.hero-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 23px;
    position: relative;
}

.hero-quote {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--color-text-quote);
    letter-spacing: -0.44px;
    width: 100%;
    max-width: 50%;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 50%;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 22px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--color-button-light);
    color: rgba(57, 55, 65, 0.7);
}

.btn-secondary:hover {
    background-color: rgba(57, 55, 65, 0.15);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.hero-image-block {
    flex: 1;
    height: 207px;
    overflow: hidden;
    border-radius: 8px;
    display: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.hero-signature {
    width: 213px;
    height: 120px;
    margin-top: 16px;
}

.hero-signature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 50%;
    font-size: 16px;
    margin-top: auto;
}

.footer-left {
    font-size: 16px;
    font-weight: 500;
    color: #393741;
    letter-spacing: 0.16px;
    width: 100%;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #8f8fa6;
    letter-spacing: 0.16px;
    width: 100%;
}

.footer-icon {
    width: 16px;
    height: 16px;
}

/* Sections */
.section {
    width: 100%;
    padding: 80px 0;
    display: flex;
    justify-content: center;
}

.about-section {
    background-color: var(--color-about-bg);
}

.experience-section {
    background-color: var(--color-light-bg);
    padding: 60px 0;
}

.education-section {
    background-color: var(--color-light-bg);
    padding: 60px 0;
}

.courses-section {
    background-color: var(--color-light-bg);
    padding: 60px 0;
}

.contact-section {
    background-color: var(--color-contact-bg);
    padding: 60px 0;
}

.section-wrapper {
    width: 1200px;
}

.section-wrapper.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.24px;
    color: var(--color-text-dark);
    line-height: 1.7;
}

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

.section-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-text-dark);
    letter-spacing: 0.16px;
}

/* Cards Grid */
/* Carousel Container */
.experience-wrapper {
    position: relative;
}

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

.slider-control {
    display: flex;
    gap: 12px;
    shrink: 0;
}

.carousel-container {
    margin-bottom: 40px;
}

.cards-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.cards-carousel:active {
    cursor: grabbing;
}

.cards-carousel::-webkit-scrollbar {
    height: 0;
}

.carousel-button {
    background-color: var(--color-white);
    border: none;
    border-radius: 20px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.carousel-button:hover {
    background-color: #f0f0f0;
}

.carousel-button-prev {
}

.carousel-button-next {
}

.carousel-button i {
    width: 16px;
    height: 16px;
    color: var(--color-text-dark);
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    flex: 1 1 282px;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 310px;
}

.cards-carousel .card {
    flex: 0 0 var(--card-w, 282px);
    width: var(--card-w, 282px);
    min-width: 0;
    scroll-snap-align: start;
}

.card-date {
    display: inline-block;
    width: fit-content;
    background-color: var(--color-date-bg);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.card-content {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.4;
}

.card-company {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.card-details {
    font-size: 12px;
    color: var(--color-text-dark);
    line-height: 1.4;
    letter-spacing: 0.12px;
}

.card-detail-item {
    margin-bottom: 12px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--color-button-dark);
}

/* Education */
.education-block {
    display: flex;
    flex-direction: column;
    gap: 23px;
    height: 100%;
}

.education-card {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.education-date {
    background-color: var(--color-white);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    width: fit-content;
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.education-degree {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.4;
}

.education-institution {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Skills */
.skills-block {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-block;
    background-color: #8f86cc;
    color: var(--color-white);
    padding: 8px 12px;
    border-radius: 36px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    width: fit-content;
}

/* Courses */
.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 24px;
}

.courses-slider {
    overflow-x: auto;
    scroll-behavior: smooth;
    margin-bottom: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.courses-slider:active {
    cursor: grabbing;
}

.courses-slider::-webkit-scrollbar {
    height: 0;
}

.courses-track {
    display: flex;
}

.courses-page {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    scroll-snap-align: start;
}

.course-card {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 170px;
    flex: 1 0 0;
    min-width: 282px;
}

.course-year {
    display: inline-block;
    background-color: var(--color-date-bg);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    width: fit-content;
}

.course-content {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.4;
}

.course-institution {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    line-height: 1;
}

/* Contact Section */
.contact-section {
    color: var(--color-white);
}

.contact-wrapper {
    width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.contact-form-block {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.contact-title {
    color: var(--color-white);
    text-align: center;
}

.contact-subtitle {
    text-align: center;
    color: var(--color-white);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-white);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    border-radius: 16px;
    height: 120px;
    resize: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-submit {
    background-color: var(--color-white);
    color: var(--color-contact-bg);
    border: none;
    border-radius: 22px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
    letter-spacing: 0.16px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: rgba(255, 255, 255, 0.92);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
    line-height: 1.5;
}

.form-status.success {
    color: rgba(200, 255, 200, 1);
}

.form-status.error {
    color: rgba(255, 180, 180, 1);
}

/* Contact details */
.contact-details-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23px;
}

.contact-pills {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(57, 55, 65, 0.2);
    padding: 12px 20px;
    border-radius: 22px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.14px;
    white-space: nowrap;
}

.contact-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    color: var(--color-white);
}

.contact-license {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.16px;
    text-align: center;
}

/* Mobile-only About elements (hidden on desktop) */
.about-signature-mobile,
.about-footer-mobile {
    display: none;
}

/* Hamburger button (hidden on desktop) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    line-height: 0;
    flex-shrink: 0;
}

.hamburger-btn i {
    width: 24px;
    height: 24px;
}

/* Mobile slide-up menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: 24px 24px 0 0;
    z-index: 1200;
    padding: 12px 28px 44px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-panel.active {
    transform: translateY(0);
}

.mobile-menu-handle {
    width: 36px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 0 auto 28px;
    flex-shrink: 0;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s ease;
    letter-spacing: 0.18px;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-wrapper,
    .section-wrapper,
    .contact-wrapper {
        width: 90%;
    }
}

@media (max-width: 768px) {
    /* Navbar: hamburger instead of links */
    .navbar {
        height: auto;
        padding: 24px 28px;
    }

    .navbar-logo {
        width: 161px;
        height: 16px;
    }

    .navbar-menu {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .hamburger-btn i {
        width: 20px;
        height: 20px;
    }

    /* Hero: full-screen, image right-positioned, text at bottom */
    .hero {
        background-position: 60% top;
        background-size: cover;
        min-height: 100svh;
        min-height: 100vh; /* fallback */
        align-items: flex-end;
        padding-top: 0;
        padding-bottom: 40px;
    }

    .hero::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 13.73%, rgba(0, 0, 0, 0.5) 100%);
    }

    .hero-wrapper {
        width: 100%;
        padding: 0 28px;
        justify-content: flex-end;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 23px;
        margin-bottom: 0;
    }

    .hero-quote {
        font-size: 24px;
        color: #c9cde9;
        max-width: 100%;
        width: 100%;
        letter-spacing: -0.24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        gap: 12px;
    }

    /* Let's talk button: semi-transparent white on mobile hero */
    .hero .btn-secondary {
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.6);
    }

    .hero-signature,
    .hero-footer,
    .hero-image-block {
        display: none;
    }

    /* Section wrappers: 28px horizontal padding instead of percentage width */
    .section-wrapper,
    .contact-wrapper {
        width: 100%;
        padding: 0 28px;
    }

    .hero-image-block {
        width: 100%;
        height: 250px;
    }

    .section-wrapper.two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cards-grid {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sliders: hide navigation arrows on mobile */
    .slider-control {
        display: none;
    }

    /* 20px gap between cards/pages when dragging */
    .cards-carousel {
        gap: 20px;
    }

    .courses-track {
        gap: 20px;
    }

    /* Experience carousel: 1 card at a time, full width */
    .cards-carousel .card {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0;
    }

    /* Courses: remove min-width constraint so cards fill the page */
    .course-card {
        min-width: unset;
        flex: 1 1 100%;
    }

    /* Education card: stack content from top on mobile */
    .education-card {
        justify-content: flex-start;
        gap: 23px;
        flex: none;
        height: auto;
    }

    /* About section mobile layout */
    .about-section {
        padding: 60px 0;
    }

    .about-section .section-wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .about-text-block {
        display: flex;
        flex-direction: column;
        gap: 23px;
    }

    .about-section .section-title {
        font-size: 20px;
        letter-spacing: 0.2px;
    }

    .about-section .section-text {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.14px;
    }

    .about-signature-mobile {
        display: block;
    }

    .about-signature-mobile img {
        width: 177px;
        height: 100px;
        object-fit: cover;
        display: block;
    }

    .about-footer-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .about-name-mobile {
        font-size: 14px;
        font-weight: 500;
        color: #393741;
        line-height: 1.7;
        letter-spacing: 0.14px;
    }

    .about-location-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        color: #717183;
        letter-spacing: 0.14px;
    }

}

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

    .section-title {
        font-size: 20px;
    }

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