/* 
   Modern Academic Portfolio
   Color System & Variables
*/
:root {
    /* Colors */
    --primary: #1e5078;
    /* Atlantic Crest */
    --primary-light: #dae4f3;
    /* Pale Blue */
    --accent: #a6bfd3;
    /* Harbor Mist */
    --accent-light: #e3e3e3;
    /* Silver */

    --bg-main: #f8fbff;
    /* Very light tint of Pale Blue */
    --bg-light: #dae4f3;
    /* Pale Blue for alternate sections */
    --bg-card: #ffffff;
    /* Keeping cards white for contrast, but borders will change */

    --text-main: #1e5078;
    /* Atlantic Crest for main text */
    --text-muted: #4a7799;
    /* Lighter version of Atlantic Crest */
    --text-light: #7a9cb8;
    /* Even lighter for less emphasis */

    --border: #a6bfd3;
    /* Harbor Mist for structural borders */

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --max-width: 1100px;
    --nav-height: 80px;
    --section-padding: 100px 0;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --radius: 12px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-small {
    max-width: 800px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #153c5a 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #153c5a 0%, #0d273c 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 80, 120, 0.4);
}

.btn-secondary {
    background-color: var(--bg-light);
    border-color: var(--border);
    color: var(--primary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.nav-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

.nav-field {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* HERO SECTION BENTO */
.hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    background: var(--bg-light);
    /* Softer background to highlight cards */
}

.hero-bento-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.bento-intro {
    grid-column: 1 / 3;
    grid-row: 1;
    background: radial-gradient(circle at top left, var(--bg-card) 40%, var(--primary-light) 200%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-photo {
    grid-column: 3;
    grid-row: 1 / 3;
    padding: 0;
    min-height: 480px;
}

.bento-photo .hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--border);
    /* Grey block where image goes */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.bento-status-primary {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    color: white;
}

.bento-status-primary h3,
.bento-status-primary p {
    color: white;
}

.bento-status-primary .bento-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.bento-status-secondary {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-main) 100%);
}

.bento-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.bento-status-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.bento-status-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.bento-status-primary .bento-status-content p {
    color: rgba(255, 255, 255, 0.7);
}

.pulse-icon i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Base icon for photo placeholder */
.hero-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* ACADEMIC PROOF */
.social-proof {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.proof-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.single-column-proof {
    width: 100%;
}

.proof-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    /* Increased margin for breathing room */
    text-align: center;
    /* Centered visually */
}

.logo-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 25s linear infinite;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.logo-track:hover {
    opacity: 1;
    filter: grayscale(0%);
    animation-play-state: paused;
}

.logo-set {
    display: flex;
    align-items: center;
    gap: 8rem;
    padding-right: 8rem;
    /* Matches the gap to ensure the loop is seamless */
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

.logo-custom {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    /* Force consistent height for all logos */
}

.company-logo {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Helps remove white backgrounds on the light grey container */
}

.schenker-logo {
    font-family: Arial, sans-serif;
    letter-spacing: -1px;
}

.poulaillon-logo {
    font-family: 'Georgia', serif;
    /* Simulating their serif/classic look */
    font-style: italic;
    font-size: 1.8rem;
    text-transform: capitalize;
}

.beaune-logo {
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chanez-logo {
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}

.logo-placeholder {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.testimonial {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    position: relative;
    border: 1px solid var(--border);
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    padding: 8px;
    border-radius: 50%;
}

.quote-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--border);
}

.author-info strong {
    display: block;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* COMPETENCIES */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.title-icon {
    color: var(--text-muted);
}

.skill-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.primary-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.accent-icon {
    background: var(--accent-light);
    color: var(--accent);
}

.skill-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.skill-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FEATURED PROJECTS */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.project-content {
    padding: 2rem;
    flex: 1;
    position: relative;
}

.project-mini-logo {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.project-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    max-width: calc(100% - 55px);
    /* Ensures it doesn't overlap the logo */
    line-height: 1.4;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    padding-right: 55px;
    /* Ensures text doesn't overlap the logo */
}

.project-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-bullets {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-bullets li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.project-bullets li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ACADEMIC JOURNEY */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 19px;
    height: 100%;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.timeline-org {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* INTERESTS GRID (3 EQUAL CARDS) */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.interest-card-equal {
    background: linear-gradient(135deg, var(--bg-card) 40%, var(--bg-main) 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.interest-card-equal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.interest-card-equal h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    /* Pushes content down equally */
}

.card-list li {
    display: flex;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    align-items: flex-start;
    line-height: 1.5;
}

.card-list li svg {
    color: var(--primary);
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* FINAL CTA */
.final-cta {
    background: var(--primary);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 2.5rem;
}

.cta-btn {
    background: white;
    color: var(--primary);
}

.cta-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateY(-2px);
}

/* FOOTER */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-link:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-bento-container {
        grid-template-columns: 1fr 1fr;
    }

    .bento-intro {
        grid-column: 1 / 3;
    }

    .bento-photo {
        grid-column: 1 / 3;
        grid-row: 3;
        min-height: 350px;
    }

    .bento-status-primary {
        grid-column: 1;
        grid-row: 2;
    }

    .bento-status-secondary {
        grid-column: 2;
        grid-row: 2;
    }

    .tiers-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .tier-highlight {
        transform: none;
    }

    .tier-highlight:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
        /* In a real project, implement a hamburger menu */
    }

    .hero-bento-container {
        grid-template-columns: 1fr;
    }

    .bento-intro,
    .bento-photo,
    .bento-status-primary,
    .bento-status-secondary {
        grid-column: 1;
        grid-row: auto;
    }

    .proof-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 20px);
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}