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

/* Custom Text Selection Color - Removed */
::selection {
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
}

::-moz-selection {
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #111;
    background: #fff;
    overflow-x: hidden;
}

/* Global Link Styles */
a {
    color: #6c757d !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e91e63 !important;
    text-decoration: none;
}

a:active {
    color: #c2185b !important;
    text-decoration: none;
}

a:visited {
    color: #495057 !important;
    text-decoration: none;
}

/* Top Color Bar - Removed */
.top-color-bar {
    display: none;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo a {
    font-weight: 700;
    font-size: 1.5rem;
    color: #111;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #111;
}

.nav-links a.active {
    color: #111;
    font-weight: 400;
}

/* Page Hero Styles */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 100px;
    text-align: center;
}

.page-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #111;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 400;
}

/* About Page Styles */
.about-content {
    padding: 3rem 0 4rem 0;
    margin-top: 40px;
}

/* About Title - Same font as Selected Works title */
.about-title {
    font-family: "Bodoni Moda", serif !important;
    font-optical-sizing: auto !important;
    font-weight: 600 !important;
    font-style: normal !important;
    font-size: 3rem !important;
    margin-bottom: 3rem;
    text-align: left;
    letter-spacing: -0.01em !important;
    color: #111;
}

/* Profile Photo Container */
.profile-photo-container {
    margin-bottom: 1.5rem;
    text-align: left;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bio Section */
.bio-section {
    margin-bottom: 2rem;
}

.bio-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #111;
    position: relative;
    padding-bottom: 1rem;
}

.bio-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #e9ecef;
}

.bio-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.5rem;
}

.about-main {
    margin-bottom: 4rem;
}

.large-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 3rem;
    padding: 0;
    border: none;
    text-align: center;
}

.about-story h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #111;
}

.about-story p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.5rem;
}

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

.about-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111;
}

.detail-section p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    color: #6c757d;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.detail-section li:before {
    content: '•';
    color: #111;
    position: absolute;
    left: 0;
}

/* Skills in About Details */
.detail-section .skills-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section .skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111;
}

.detail-section .skills-subcategory {
    margin-bottom: 1.5rem;
}

.detail-section .skills-subcategory h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #666;
}

.publications-projects-header {
    grid-column: 1 / -1;
    margin-top: 2rem;
    margin-bottom: 0;
}


.detail-section.publications-projects {
    grid-column: 1 / -1;
}

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

.publications-section h4,
.projects-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111;
}

.publications-section ul,
.projects-section ul {
    list-style: none;
    padding: 0;
}

.publications-section li,
.projects-section li {
    color: #6c757d;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.publications-section li:before,
.projects-section li:before {
    content: '•';
    color: #111;
    position: absolute;
    left: 0;
}

.technical-expertise-header {
    grid-column: 1 / -1;
    margin-top: 0rem;
    margin-bottom: 0;
}

/* Publications and Projects Links */
.publications-projects li a {
    color: #e91e63 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.publications-projects li a:hover {
    color: #c2185b !important;
}


.detail-section .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Skills Section */
.skills-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.skills-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

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

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* Works Page Styles */
.featured-works {
    padding: 4rem 0;
}

.works-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.work-category {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 3rem;
}

.work-category:last-child {
    border-bottom: none;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #111;
}

.project-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-item.featured {
    border-color: #111;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
}

.project-year {
    color: #6c757d;
    font-weight: 500;
}

.project-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #111;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Collaboration Section */
.collaboration-section {
    padding: 4rem 0;
    background: #111;
    color: #fff;
    text-align: center;
}

.collaboration-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.collaboration-content p {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #111;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding-top: 82px;
}


/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShapes 8s ease-in-out infinite;
}

.shape-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #111;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #111;
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.shape-square {
    width: 50px;
    height: 50px;
    border: 2px solid #111;
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

.shape-hexagon {
    width: 40px;
    height: 23px;
    background: #111;
    position: relative;
    top: 25%;
    right: 25%;
    animation-delay: 6s;
}

.shape-hexagon:before,
.shape-hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
}

.shape-hexagon:before {
    bottom: 100%;
    border-bottom: 12px solid #111;
}

.shape-hexagon:after {
    top: 100%;
    border-top: 12px solid #111;
}

.shape-waveform {
    width: 80px;
    height: 4px;
    background: #111;
    position: relative;
    top: 70%;
    right: 10%;
    animation-delay: 1s;
}

.shape-waveform:before,
.shape-waveform:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 4px;
    background: #111;
}

.shape-waveform:before {
    left: -25px;
    top: -8px;
}

.shape-waveform:after {
    right: -25px;
    top: 8px;
}

@keyframes floatShapes {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-30px) rotate(360deg); opacity: 0.3; }
}

/* Hero Interactive Section - Desktop Layout */
.hero-interactive-section {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    width: 100%;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInBlurReveal .4s ease-out .5s forwards;
}

.interactive-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: fit-content;
}

/* Sound Wave Visualizer */
.sound-wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 200px;
    width: clamp(80px, 15vw, 200px);
    margin: 0 auto;
}

/* Dynamic Titles */
.dynamic-titles {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    overflow: hidden;
}

/* Slot Machine Container */
.slot-machine {
    display: flex;
    gap: 0.5rem;
    opacity: 1;
}

/* Individual Rollers */
.roller {
    overflow: hidden;
    height: 80px;
    display: flex;
    align-items: flex-start;
}

.roller-strip {
    display: flex;
    flex-direction: column;
}

.roller-word {
    height: 80px;
    display: flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: #111;
    white-space: nowrap;
}

/* First Roller Animation */
.roller-first .roller-word {
    justify-content: flex-end;
}

.roller-first .roller-strip {
    animation: firstRollerSpin 8s infinite;
}

.roller-second .roller-strip {
    animation: secondRollerSpin 8s infinite;
}


.sound-wave {
    opacity: 0.8;
    width: 100%;
    height: auto;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.animated-name {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(6rem, 12vw, 16rem);
    line-height: .85;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 3rem;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInBlurReveal .2s ease-out 0.3s forwards;
    text-shadow: 0px 0px 2px rgb(0, 0, 0);
    /* white-space: nowrap; */
}

.name-line {
    display: block;
}


@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-location {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.social-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(108, 117, 125, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.social-link:hover {
    color: #111;
    border-color: #111;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness for social icons */
@media (max-width: 768px) {
    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1rem;
        max-width: 240px;
        margin: 0 auto;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Proof Section */
.social-proof {
    padding: 8rem 0;
    background: #f8f9fa;
}

.social-proof h2 {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.testimonial-carousel {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-track {
    display: flex;
    animation: scroll 60s linear infinite;
    gap: 2rem;
}

.testimonial {
    flex: 0 0 500px;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-500px * 4 - 8rem)); /* Move by 4 cards + gaps */
    }
}

.stars {
    margin-bottom: 1.5rem;
}

.stars span {
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 1.5rem;
    display: block;
}

.testimonial blockquote {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #495057;
    margin: 0 0 1.5rem 0;
    font-style: normal;
    flex-grow: 1;
}

/* Dynamic font sizes will be applied via JavaScript based on content length */


.testimonial cite {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    font-style: normal;
    margin-top: auto;
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

/* Audio Player Section */
.audio-player {
    padding: 8rem 0;
    background: #fff;
}

.audio-player h2 {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.player-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.player-container iframe {
    border-radius: 12px;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: #fff;
}

/* Company Logo Carousel */
.company-logos {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-carousel {
    overflow: hidden;
    width: 100%;
}

.logo-track {
    display: flex;
    align-items: center;
    animation: scroll-logos 20s linear infinite;
    width: max-content;
}

.logo-item {
    flex: 0 0 auto;
    margin-right: 2rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 7rem));
    }
}

/* Mobile adjustments for logo carousel */
@media (max-width: 768px) {
    .company-logos {
        padding: 2rem 0;
    }
    
    .logo-item img {
        height: 30px;
    }
    
    .logo-item {
        margin-right: 1.5rem;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-intro p {
    font-size: 1.5rem;
    color: #111;
    line-height: 1.4;
    font-weight: 400;
}

.about-details p {
    font-size: 1.2rem;
    color: #111;
    line-height: 1.6;
    font-weight: 500;
}

/* Work Section */
.work {
    padding: 8rem 0;
    background: #f8f9fa;
}

.work h2,
.works-grid-section h2,
.about-content > .container > h2:first-of-type {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: left;
    letter-spacing: -0.01em;
}

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

.work-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.work-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111;
}

.work-item p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: #111;
    color: #fff;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.company-logos h2,
.social-proof h2 {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 3rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    color: #111;
    text-align: center;
}

.contact p {
    font-size: 1.125rem;
    color: #9ca3af;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #333;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #fff;
    color: #111;
    transform: translateY(-2px);
}

/* Contact Trigger Button */
.contact-trigger {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-trigger:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.contact-trigger:hover .button-arrow {
    transform: translateX(4px);
}

.button-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: #111;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 600px;
    background: #111;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-modal.active .modal-container {
    transform: translateX(-50%) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 2rem;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Form Styles */
.contact-form {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-input {
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-input:focus {
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-input:hover {
    border-color: #555;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'DM Sans', sans-serif;
}

.contact-submit {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: center;
    min-width: 200px;
}

.contact-submit:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

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

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About Title Responsive */
    .about-title {
        font-size: clamp(3rem, 10vw, 5rem);
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .profile-photo-container {
        text-align: left;
        margin-bottom: 3rem;
    }
    
    .profile-photo {
        float: none;
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }
    
    .about h2,
    .work h2,
    .works-grid-section h2,
    .contact h2,
    .company-logos h2,
    .social-proof h2 {
        font-size: 2.5rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 200px;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        max-width: 100%;
        gap: 1.25rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .contact-submit {
        width: 100%;
        min-width: auto;
        padding: 1rem;
    }
    
    /* Modal Mobile */
    .modal-container {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* Form Validation and Success States */
.form-input:valid {
    border-color: #333;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Success Message */
.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    border-radius: 6px;
    padding: 1rem;
    color: #22c55e;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

/* Error Message */
.form-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 1rem;
    color: #dc3545;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .testimonial {
        flex: 0 0 min(90vw, 500px);
        padding: 2rem;
        min-height: auto;
    }
    
    .testimonial-carousel {
        padding: 0 1rem;
    }
    
    /* Keep same side-by-side layout on tablet */
    .interactive-content-wrapper {
        gap: 2rem;
        max-width: 500px;
        flex-wrap: wrap;
        
    }
    
    /* Sound wave now scales automatically */
    
    /* Primary title now scales automatically with clamp() */
    
    .secondary-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .animated-name {
        font-size: clamp(4rem, 20vw, 8rem);
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .testimonial {
        padding: 2rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .about,
    .work,
    .contact {
        padding: 4rem 0;
    }
    
    /* Mobile Hero Adjustments */
    .animated-name {
        font-size: clamp(2.8rem, 12vw, 4rem) !important;
        margin-bottom: 1.5rem;
    }
    
    
    /* Keep same side-by-side layout on mobile */
    .interactive-content-wrapper {
        gap: 1.5rem;
        max-width: 350px;
        padding: 0 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    /* Sound wave now scales automatically */
    
    /* Primary title now scales automatically with clamp() */
    
    .secondary-title {
        font-size: 1.1rem;
    }
    
    /* Adjust floating shapes for mobile */
    .shape {
        transform: scale(0.7);
    }
    
    .shape-circle {
        width: 40px;
        height: 40px;
    }
    
    .shape-square {
        width: 35px;
        height: 35px;
    }
    
    .shape-waveform {
        width: 60px;
    }
}

/* Slot Machine Keyframe Animations */

/* First Roller Animation (Composer → Sound → Creative → Composer) */
@keyframes firstRollerSpin {
    0%, 15% { transform: translateY(0); } /* Composer */
    20.1% { 
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    25% { transform: translateY(-80px); } /* Roll to Sound */
    25.1%, 40% { transform: translateY(-80px); } /* Sound for Sound Designer */
    40.1% { 
        transform: translateY(-80px);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    45% { transform: translateY(-80px); } /* Stay on Sound */
    45.1%, 52.5% { transform: translateY(-80px); } /* Sound Technologist (2x speed) */
    52.6% { 
        transform: translateY(-80px);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    57.5% { transform: translateY(-160px); } /* Roll to Creative */
    57.6%, 65% { transform: translateY(-160px); } /* Creative Designer (2x speed) */
    65.1% { 
        transform: translateY(-160px);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    70% { transform: translateY(-160px); } /* Stay on Creative */
    70.1%, 85% { transform: translateY(-160px); } /* Creative Technologist (full duration) */
    85.1% { 
        transform: translateY(-160px);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    90% { transform: translateY(0); } /* Roll back to Composer */
    90.1%, 100% { transform: translateY(0); } /* Composer */
}

/* Second Roller Animation (Empty → Designer ↔ Technologist → Empty) */
@keyframes secondRollerSpin {
    0%, 15% { transform: translateY(0); } /* Empty for Composer */
    20.1% { 
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    25% { transform: translateY(-80px); } /* Roll to Designer */
    25.1%, 40% { transform: translateY(-80px); } /* Designer for Sound Designer */
    40.1% { 
        transform: translateY(-80px);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    45% { transform: translateY(-160px); } /* Roll to Technologist for Sound Technologist */
    45.1%, 52.5% { transform: translateY(-160px); } /* Technologist (2x speed) */
    52.6% { 
        transform: translateY(-160px);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    57.5% { transform: translateY(-80px); } /* Roll back to Designer for Creative Designer */
    57.6%, 65% { transform: translateY(-80px); } /* Designer (2x speed) */
    65.1% { 
        transform: translateY(-80px);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    70% { transform: translateY(-160px); } /* Roll to Technologist for Creative Technologist */
    70.1%, 85% { transform: translateY(-160px); } /* Technologist (full duration) */
    85.1% { 
        transform: translateY(-160px);
        animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    90% { transform: translateY(0); } /* Roll back to Empty */
    90.1%, 100% { transform: translateY(0); } /* Empty for Composer */
}

/* Works Grid Section */
.works-grid-section {
    padding: 6rem 0;
    background: #fff;
}

.works-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Work Tile */
.work-tile {
    position: relative;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.work-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.work-tile:hover .video-thumbnail {
    transform: scale(1.05);
}

/* Tile Overlay */
.tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.work-tile:hover .tile-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Tile Info */
.tile-info {
    text-align: center;
    color: white;
}

.tile-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.role {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.year {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Expanded State */
.work-tile.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 800px;
    height: 60vh;
    z-index: 1000;
    aspect-ratio: 16/9;
}

.work-tile.expanded .video-thumbnail {
    transform: scale(1);
}

.work-tile.expanded iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.work-tile.expanded .tile-overlay {
    opacity: 0;
}

/* Backdrop for expanded video */
.video-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-backdrop.active {
    opacity: 1;
}

/* Close button for expanded video */
.close-video {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-video:hover {
    background: white;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .works-tiles {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .work-tile.expanded {
        width: 95vw;
        height: 50vh;
    }
    
    .tile-info h3 {
        font-size: 1.2rem;
    }
    
    .role {
        font-size: 0.9rem;
    }
}

/* Left-to-Right Slide In Animation */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Left-to-Right Blur Reveal Animation */
@keyframes slideInBlurReveal {
    0% {
        opacity: 0;
        transform: translateX(-100px);
        filter: blur(20px);
    }
    20% {
        opacity: 1;
        filter: blur(15px);
    }
    60% {
        transform: translateX(-10px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0px);
    }
}