/* Font Faces */
@font-face {
    font-family: 'Aptos';
    src: url('../fonts/Aptos-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('../fonts/Aptos.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('../fonts/Aptos-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plantin';
    src: url('../fonts/Plantin Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plantin', Georgia, 'Times New Roman', serif;
    background-color: #F3F3F3;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
}

h2 {
    font-size: 2.5rem;
    font-weight: 300;
}

h3 {
    font-size: 1.8rem;
    font-weight: 400;
}

h4 {
    font-size: 1.5rem;
    font-weight: 400;
}

h5 {
    font-size: 1.2rem;
    font-weight: 400;
}

h6 {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    font-family: 'Plantin', Georgia, 'Times New Roman', serif;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

em {
    font-style: italic;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #002e55;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
}

.intro-content {
    text-align: center;
}

.intro-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.intro-logo svg {
    width: 100%;
    height: auto;
    max-width: 400px;
    padding: 1rem;
}

.intro-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
    padding: 1rem;
}

.intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.main-nav.visible {
    opacity: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo img {
    height: 40px;
    max-height: 40px;
    width: auto;
}

/* Hamburger Button */
.hamburger {
    position: relative;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Hamburger Animation - Open State */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F3F3F3;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.menu-content {
    text-align: center;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.menu-legal {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.menu-legal-link {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
}

.menu-legal-link:hover {
    opacity: 0.7;
}

/* Legal pages - match Willkommen layout exactly */
.legal-section {
    align-items: flex-end;
    padding: 5rem 0;
    padding-top: 8rem;
    background-color: #F3F3F3;
}

.legal-section .section-title {
    margin: 5rem auto 4rem auto;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    max-width: 800px;
    width: 100%;
}

.legal-section .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.legal-section .hero-text {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.legal-text h3 {
    font-family: 'Aptos', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.legal-text h3:first-of-type {
    margin-top: 0;
}

.legal-text h4 {
    font-family: 'Aptos', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.legal-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.nav-menu li {
    overflow: hidden;
}

.nav-link {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #004e91;
}

/* Main Content */
.main-content {
    padding-top: 0;
}

/* Section Titles */
.section-title {
    margin: 0 auto 4rem auto;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    max-width: 800px;
    width: 100%;
}

.section-title-svg {
    width: 100%;
    max-width: 300px;
    height: 65px;
    padding: 1rem;
}

/* Section Diagonal Transitions - Schräg von links unten nach rechts oben */
.section-diagonal {
    position: relative;
    overflow: hidden;
}

.section-diagonal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    z-index: 1;
}

.section-diagonal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

/* Hero Image Section */
.hero-image-section {
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/hero_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #F3F3F3;
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    min-height: auto;
    display: flex;
    align-items: flex-end;
    padding: 5rem 0;
    background-color: #F3F3F3;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Sections with diagonal divider need extra bottom space */
.section-with-diagonal {
    --diagonal-height: 180px;
    padding-bottom: calc(5rem + (var(--diagonal-height) / 2));
}

/* Stacking order for sections */
#welcome.hero-section { z-index: 4; }
#leistungen.hero-section { z-index: 3; }
#karriere.hero-section { z-index: 2; }
#kontakt.hero-section { z-index: 1; }

/* Schräger Übergang am unteren Ende - zeigt Farbe der NÄCHSTEN Section */
#welcome.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: var(--diagonal-height);
    background-color: #fff;
    transform: skewY(-3deg) translateY(50%);
    transform-origin: center;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Welcome section specific - no skills list, no illustration */
#welcome .hero-content {
    grid-template-columns: 1fr;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Leistungen section specific - centered like welcome */
#leistungen.hero-section {
    padding: 5rem 0;
    padding-bottom: calc(5rem + (var(--diagonal-height) * 0.9));
    background-color: #fff;
    overflow: visible;
}

/* Schräger Übergang am unteren Ende - zeigt Farbe der NÄCHSTEN Section (Karriere = grau) */
#leistungen.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: var(--diagonal-height);
    background-color: #F3F3F3;
    transform: skewY(-3deg) translateY(50%);
    transform-origin: center;
    z-index: 0;
    pointer-events: none;
}

#leistungen .hero-content {
    grid-template-columns: 1fr;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

#leistungen .accordion-wrapper {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Karriere section specific - centered like welcome */
#karriere.hero-section {
    background-color: #F3F3F3;
    overflow: visible;
}

/* Schräger Übergang am unteren Ende - zeigt Farbe der NÄCHSTEN Section (Kontakt = weiß) */
#karriere.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: var(--diagonal-height);
    background-color: #fff;
    transform: skewY(-3deg) translateY(50%);
    transform-origin: center;
    z-index: 0;
    pointer-events: none;
}

#karriere .hero-content {
    grid-template-columns: 1fr;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.career-section {
    margin-top: 3rem;
}

.career-section:first-of-type {
    margin-top: 2rem;
}

.career-heading {
    font-family: 'Aptos', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.career-contact {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.career-email {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.career-email a {
    color: #004e91;
    text-decoration: none;
    transition: color 0.3s ease;
}

.career-email a:hover {
    color: #003366;
    text-decoration: underline;
}

/* Kontakt section specific - centered like welcome */
#kontakt.hero-section {
    background-color: #fff;
    overflow: visible;
}

/* Keine schrägen Übergänge für Kontakt - ist die letzte Section */
#kontakt.hero-section::after {
    display: none;
}

#kontakt .hero-content {
    grid-template-columns: 1fr;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.contact-info {
    margin-top: 3rem;
}

.contact-address {
    margin-bottom: 3rem;
    text-align: center;
}

.contact-address p {
    font-family: 'Aptos', sans-serif;
    line-height: 1.8;
    margin-bottom: 0;
}

.contact-address strong {
    font-family: 'Aptos', sans-serif;
    font-weight: 400;
}

.contact-details {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    stroke: #1a1a1a;
}

.contact-text {
    text-align: center;
    width: 100%;
}

.contact-text p {
    font-family: 'Aptos', sans-serif;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.contact-text strong {
    font-family: 'Aptos', sans-serif;
    font-weight: 400;
}

.contact-text a {
    color: #004e91;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #003366;
    text-decoration: underline;
}

/* Accordion */
.accordion-wrapper {
    max-width: 800px;
    margin: 4rem auto 0;
    width: 100%;
}

.accordion-section-title {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
}

.accordion-container {
    max-width: 100%;
}

.accordion-wrapper + .accordion-wrapper {
    margin-top: 3rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: #004e91;
}

.accordion-title {
    flex: 1;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    height: 0;
    overflow: hidden;
}

.accordion-body {
    padding: 0 0 1.5rem 0;
    font-family: 'Plantin', Georgia, 'Times New Roman', serif;
}

.accordion-body p {
    margin-bottom: 1rem;
}

.accordion-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

.accordion-body strong {
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills-list h5 {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-text {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.hero-text h2 {
    margin-bottom: 2rem;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.gem-illustration {
    text-align: center;
}

.gem-illustration img {
    max-width: 100%;
    height: auto;
}

/* Work Section (Gems) */
.work-section {
    padding: 6rem 0;
    padding-top: 10rem;
    background-color: #fff;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.work-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    z-index: 1;
}

.work-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #fff;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

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

.work-item {
    background-color: #F3F3F3;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-5px);
    background-color: #e8e8e8;
}

.work-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.work-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.work-content h4 {
    font-size: 2rem;
    margin: 1rem 0;
}

.work-content h6 {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.work-content p {
    font-family: 'Plantin', Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.read-more {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* Profile Section */
.profile-section {
    padding: 6rem 0;
    padding-top: 10rem;
    background-color: #F3F3F3;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #F3F3F3;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    z-index: 1;
}

.profile-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #F3F3F3;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.profile-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-content > p {
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.awards-section,
.books-section,
.press-section {
    margin-bottom: 4rem;
}

.awards-section h4,
.books-section h4,
.press-section h4 {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.awards-list,
.books-list,
.press-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.award-item,
.book-item,
.press-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.award-item h5,
.book-item h5,
.press-item h5 {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.award-item p,
.book-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.6;
}

/* Workflow Section */
.workflow-section {
    padding: 6rem 0;
    padding-top: 10rem;
    text-align: center;
    background-color: #fff;
    position: relative;
    z-index: 4;
    overflow: hidden;
}

.workflow-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    z-index: 1;
}

.workflow-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #fff;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.workflow-headline {
    max-width: 100%;
    height: auto;
    margin-bottom: 3rem;
}

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

.workflow-horizontal {
    max-width: 100%;
    height: auto;
    display: block;
}

.workflow-vertical {
    max-width: 100%;
    height: auto;
    display: none;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    padding-top: 10rem;
    text-align: center;
    background-color: #fff;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    z-index: 1;
}

.contact-content h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.contact-content h3 a {
    font-size: inherit;
}

.social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-links a {
    display: block;
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.imprint-link {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(243, 243, 243, 0.98);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body h3 {
    margin-bottom: 1.5rem;
}

.modal-body h5 {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-body p {
    font-family: 'Plantin', Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-body a {
    text-decoration: underline;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-legal {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .menu-legal-link {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }

    .main-nav {
        padding: 1rem 0;
    }
    
    .nav-logo {
        left: 1rem;
        transform: translateX(0);
    }
    
    .hamburger {
        right: 1rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .work-section,
    .profile-section,
    .workflow-section,
    .contact-section {
        padding: 4rem 0;
    }

    .work-content h1 {
        font-size: 2rem;
    }

    .workflow-horizontal {
        display: none;
    }

    .workflow-vertical {
        display: block;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .modal-content {
        padding: 2rem;
    }
}

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

    h1 {
        font-size: 2rem;
    }

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

    .awards-list,
    .books-list,
    .press-list {
        grid-template-columns: 1fr;
    }
}
