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

:root {
    --background: #ffffff;
    --foreground: #000000;
    --secondary: #f5f5f5;
    --muted-foreground: #737373;
    --accent: #C00013;
    --accent-light: #EF0020;
    /*--accent: #b69b6a;
    --accent-light: #c9b48a;*/
    --border: #e5e5e5;
    
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

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

.accent {
    color: var(--accent);
}

/* Hero Section - Dark Background with Rectangular Image */
.hero {
    position: relative;
}

.hero-background {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    background-color: var(--foreground);
    padding-bottom: 12rem;
}

@media (min-width: 1024px) {
    .hero-background {
        padding-bottom: 14rem;
    }
}

.hero-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--background);
    text-align: center;
    text-transform: uppercase;
    margin-top: 100px;
    z-index: 20;
}

@media (min-width: 1024px) {
    .hero-name {
        font-size: 7rem;
        margin-top: 130px;
    }
}

.hero-image-wrapper {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(0%);
    z-index: 0;
}

.hero-image-container {
    /*width: 28rem;*/
    width: 23rem;
    height: 36rem;
    overflow: hidden;
    /*border-radius: 0.5rem;*/
    /*box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);*/
}

@media (min-width: 1024px) {
    .hero-image-container {
        /*width: 40rem;*/
        width: 36rem;
        height: 48rem;
    }
}

.hero-image,
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.section-title {
    font-size: 1.875rem;
    font-weight: 500;
    text-align: center;
    display: block;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--background);
    position: relative;
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.75;
    margin-top: 3rem;
}

/* CV Timeline Section */
.cv-section {
    padding: 8rem 0;
    background-color: rgba(235, 235, 235, 0.3);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 5rem;
}

.cv-section .section-title {
    display: inline-block;
    margin-bottom: 0;
}

.timeline {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    display: none;
}

@media (min-width: 1024px) {
    .timeline-line {
        display: block;
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background-color: var(--border);
        transform: translateX(-50%);
    }
}

.timeline-entry {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translateY(5px);
    z-index: 10;
}

@media (min-width: 1024px) {
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%) translateY(5px);
    }
}

.timeline-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2rem;
}

@media (min-width: 1024px) {
    .timeline-content-wrapper {
        flex-direction: row;
        padding-left: 0;
    }
    
    .timeline-content-wrapper.reverse {
        flex-direction: row-reverse;
    }
}

.timeline-content {
    flex: 1;
}

@media (min-width: 1024px) {
    .timeline-content {
        padding: 0 3rem;
    }
    
    .timeline-content-wrapper.reverse .timeline-content {
        padding-left: 3rem;
        padding-right: 0;
    }
    
    .timeline-content-wrapper:not(.reverse) .timeline-content {
        padding-right: 3rem;
        padding-left: 0;
    }
}

.timeline-spacer {
    display: none;
}

@media (min-width: 1024px) {
    .timeline-spacer {
        display: block;
        flex: 1;
    }
}

.text-right {
    text-align: left;
}

@media (min-width: 1024px) {
    .text-right {
        text-align: right;
    }
}

.timeline-year {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-position {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--foreground);
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .timeline-position {
        font-size: 1.5rem;
    }
}

.timeline-company-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.justify-end {
    justify-content: flex-start;
}

@media (min-width: 1024px) {
    .justify-end {
        justify-content: flex-end;
    }
}

.timeline-logo {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    /*width: 100%;
    height: 100%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 -7px;
}

.timeline-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-top: 0.75rem;
    line-height: 1.625;
}

.timeline-bullets {
    list-style: none;
    margin-top: 0.75rem;
    padding: 0;
}

.timeline-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted-foreground);
    line-height: 1.625;
    margin-bottom: 0.5rem;
}

.timeline-bullets li:last-child {
    margin-bottom: 0;
}

.timeline-bullets li::before {
    content: '•';
    color: var(--accent);
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .text-right .timeline-bullets li {
        justify-content: flex-end;
        text-align: left;
    }
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background-color: var(--background);
}

.contact-wrapper {
    max-width: 42rem;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-subtitle {
    color: var(--muted-foreground);
    margin-top: 2rem;
}

.contact-form {
     position: relative;
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
 }

 /* Overlay alerts for the form (instead of browser alerts) */
 .form-overlay {
     position: absolute;
     inset: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 1rem;
     background: rgba(255, 255, 255, 0.35);
     backdrop-filter: blur(2px);
     z-index: 5;
     margin-top: -10px;
 }

 .form-overlay[hidden] {
     display: none;
 }

 .form-overlay-card {
     position: relative;
     width: min(520px, 100%);
     background: var(--background);
     border: 1px solid var(--border);
     border-radius: 0.5rem;
     padding: 1.25rem 3rem 1.25rem 1.25rem;
     box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.35);
 }

 .form-overlay-message {
     color: var(--foreground);
 }

 .form-overlay-close {
     position: absolute;
     right: 0.75rem;
     top: 0.5rem;
     border: 0;
     background: transparent;
     color: var(--muted-foreground);
     font-size: 1.5rem;
     line-height: 1;
     cursor: pointer;
 }

 .form-overlay-close:hover {
     color: var(--foreground);
 }

 .form-row {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1.5rem;
 }

 @media (min-width: 768px) {
     .form-row {
         grid-template-columns: 1fr 1fr;
     }
 }

 /* Honeypot field - hidden from humans */
 .hp-field {
     position: absolute;
     left: -9999px;
     opacity: 0;
     height: 0;
     width: 0;
     overflow: hidden;
     pointer-events: none;
 }

 /* Floating Label Styles */
 .floating-input {
     position: relative;
     width: 100%;
 }

 .floating-input input,
 .floating-input textarea {
     width: 100%;
     padding: 1.25rem 1rem 0.75rem;
     font-size: 1rem;
     font-family: var(--font-body);
     border: 1px solid var(--border);
     border-radius: 1rem;
     background-color: var(--background);
     transition: border-color 0.2s, box-shadow 0.2s;
 }

 .floating-input label {
     position: absolute;
     left: 1rem;
     top: 50%;
     transform: translateY(-50%);
     font-size: 1rem;
     font-weight: 400;
     color: var(--muted-foreground);
     pointer-events: none;
     background-color: var(--background);
     padding: 0 0.25rem;
     transition: all 0.2s ease;
 }

 .floating-input textarea ~ label {
     top: 1.25rem;
     transform: translateY(0);
 }

 .floating-input input:focus,
 .floating-input textarea:focus {
     outline: none;
     border-color: var(--accent);
     box-shadow: 0 0 0 3px rgba(182, 155, 106, 0.1);
 }

 /* Use JS-driven state (has-value) for maximum browser compatibility */
 .floating-input input:focus ~ label,
 .floating-input input.has-value ~ label,
 .floating-input textarea:focus ~ label,
 .floating-input textarea.has-value ~ label {
     top: 0;
     transform: translateY(-50%);
     font-size: 0.75rem;
     font-weight: 500;
     color: var(--foreground);
 }

 .floating-input textarea {
     resize: none;
     min-height: 150px;
 }

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: #ffffff;
    background-color: var(--accent);
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: var(--accent-light);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--foreground);
    color: var(--background);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background);
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
}

.legal-btn {
    background: none;
    border: none;
    color: var(--background);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: color 0.3s;
}

.legal-btn:hover {
    color: var(--accent);
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--background);
    border-radius: 0.5rem;
    max-width: 42rem;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--foreground);
}

.modal-body {
    padding: 1.5rem;
    color: var(--muted-foreground);
}

.modal-body h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    line-height: 1.75;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* montserrat-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/montserrat-v31-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/montserrat-v31-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/montserrat-v31-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/montserrat-v31-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/montserrat-v31-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/inter-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/inter-v20-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}