/* Main CSS File - Core Styles */

:root {
    --primary-color: #D44D4D;
    --secondary-color: #1F1F1F;
    --accent-color: #E8906F;
    --accent-light: #F5C4A8;
    --text-primary: #1F1F1F;
    --text-secondary: #5E5E5E;
    --background: #FFFAF7;
    --surface: #FFFFFF;
    --border: #F5D4C4;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Navbar when menu is active - blend with menu background */
.navbar.menu-active {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* Hide logo when menu is active */
.logo.menu-active {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 27px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
    position: relative;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    box-shadow: 0 2px 4px rgba(212, 77, 77, 0.2);
}

/* HAMBURGER ANIMATION OPTION 1: X Cross (Default - Currently Active) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* HAMBURGER ANIMATION OPTION 2: Arrow Left (Add class 'hamburger-arrow' to hamburger button) */
.hamburger.hamburger-arrow.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    width: 50%;
}

.hamburger.hamburger-arrow.active span:nth-child(2) {
    transform: translateX(-10px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.hamburger-arrow.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    width: 50%;
}

/* HAMBURGER ANIMATION OPTION 3: Rotate 90° (Add class 'hamburger-rotate' to hamburger button) */
.hamburger.hamburger-rotate.active {
    transform: rotate(90deg);
}

.hamburger.hamburger-rotate.active span:nth-child(1) {
    transform: translateY(8px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

.hamburger.hamburger-rotate.active span:nth-child(3) {
    transform: translateY(-8px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* HAMBURGER ANIMATION OPTION 4: Minus/Collapse (Add class 'hamburger-minus' to hamburger button) */
.hamburger.hamburger-minus.active span:nth-child(1) {
    transform: translateY(11px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.hamburger-minus.active span:nth-child(2) {
    opacity: 1;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.hamburger-minus.active span:nth-child(3) {
    transform: translateY(-11px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* HAMBURGER ANIMATION OPTION 5: Spin X (Add class 'hamburger-spin' to hamburger button) */
.hamburger.hamburger-spin.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.hamburger-spin.active span:nth-child(2) {
    opacity: 0;
    transform: rotate(360deg);
}

.hamburger.hamburger-spin.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.hamburger-spin.active {
    transform: rotate(180deg);
}

/* HAMBURGER ANIMATION OPTION 6: Squeeze (Add class 'hamburger-squeeze' to hamburger button) */
.hamburger.hamburger-squeeze span {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), width 0.3s ease;
}

.hamburger.hamburger-squeeze.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    width: 80%;
}

.hamburger.hamburger-squeeze.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.hamburger-squeeze.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    width: 80%;
}

/* HAMBURGER ANIMATION OPTION 7: Elastic X (Add class 'hamburger-elastic' to hamburger button) */
.hamburger.hamburger-elastic span {
    transition: all 0.6s cubic-bezier(0.68, -1.55, 0.265, 2.55);
}

.hamburger.hamburger-elastic.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.hamburger-elastic.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0) rotate(720deg);
}

.hamburger.hamburger-elastic.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* HAMBURGER ANIMATION OPTION 8: Vortex (Add class 'hamburger-vortex' to hamburger button) */
.hamburger.hamburger-vortex.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.hamburger-vortex.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0.3) rotate(360deg);
}

.hamburger.hamburger-vortex.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger.hamburger-vortex.active {
    transform: rotate(90deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0.8) translateZ(0);
    will-change: opacity, transform, visibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-menu-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

/* ANIMATION OPTION 1: Slide & Fade (Default) */
.mobile-nav-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav-links a {
    text-decoration: none;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #FFFFFF;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.mobile-nav-links a:hover::before {
    width: 100%;
}

.mobile-nav-links a:hover {
    color: #FFFFFF;
    transform: translateX(20px) scale(1.05);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 60px rgba(255, 255, 255, 0.6);
}

.mobile-nav-links li:hover {
    transform: translateY(-5px);
}

/* ANIMATION OPTION 2: Rotate & Zoom (Add class 'anim-rotate' to mobile-menu) */
.mobile-menu.anim-rotate .mobile-nav-links li {
    opacity: 0;
    transform: rotate(-10deg) scale(0.5);
}

.mobile-menu.anim-rotate.active .mobile-nav-links li {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ANIMATION OPTION 3: Slide from Left (Add class 'anim-slide-left' to mobile-menu) */
.mobile-menu.anim-slide-left .mobile-nav-links li {
    opacity: 0;
    transform: translateX(-100px);
}

.mobile-menu.anim-slide-left.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

/* ANIMATION OPTION 4: Bounce In (Add class 'anim-bounce' to mobile-menu) */
.mobile-menu.anim-bounce .mobile-nav-links li {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu.anim-bounce.active .mobile-nav-links li {
    opacity: 1;
    transform: scale(1);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ANIMATION OPTION 5: Flip In (Add class 'anim-flip' to mobile-menu) */
.mobile-menu.anim-flip {
    perspective: 1000px;
}

.mobile-menu.anim-flip .mobile-nav-links li {
    opacity: 0;
    transform: rotateX(-90deg);
    transform-origin: top;
}

.mobile-menu.anim-flip.active .mobile-nav-links li {
    opacity: 1;
    transform: rotateX(0);
}

/* ANIMATION OPTION 6: Elastic Scale (Add class 'anim-elastic' to mobile-menu) */
.mobile-menu.anim-elastic .mobile-nav-links li {
    opacity: 0;
    transform: scale(0.3);
}

.mobile-menu.anim-elastic.active .mobile-nav-links li {
    opacity: 1;
    animation: elasticScale 0.8s cubic-bezier(0.68, -0.75, 0.265, 1.75) forwards;
}

@keyframes elasticScale {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.15); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--background);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 1;
    position: relative;
    width: 100%;
}

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

.hero-text {
    padding-right: 2rem;
}

.hero-gif-showcase {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
}

.hero-gif-showcase .gif-item {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
}

.hero-gif-showcase .gif-container {
    height: 100%;
    min-height: 400px;
}

.hero-gif-showcase .gif-media {
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.2s;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.4s;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(31, 31, 31, 0.4);
    background: var(--secondary-color);
    color: white;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background: var(--surface);
}

.section:last-child {
    padding-bottom: 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section - Fixed Layout */
.about-section-centered .about-grid {
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-section-centered .about-info {
    max-width: 800px;
}

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

/* Two column layout for intro with GIF */
.about-grid-two-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Intro GIF Showcase */
.intro-gif-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-gif-showcase .gif-item {
    width: 100%;
    max-width: 500px;
}

.about-info {
    padding: 1rem 0;
}

.about-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.about-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-info p:last-child {
    margin-bottom: 0;
}

.personal-details {
    margin: 1.5rem 0;
}

.personal-details p {
    margin-bottom: 0.5rem;
}

.personal-details strong {
    display: inline-block;
    min-width: 80px;
    color: var(--text-primary);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-item {
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: perspective(1500px) translateZ(0) scale(1);
    will-change: transform;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-item:hover {
    transform: perspective(1500px) translateZ(100px) scale(1.15);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.portfolio-gif-container {
    width: 100%;
    min-height: 300px;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.portfolio-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
    background: transparent;
    padding: 1rem;
    border-radius: 8px;
    z-index: 2;
    transition: transform 0.4s ease;
}

.portfolio-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-header {
    transform: translateY(-15px);
}

.portfolio-item:hover .portfolio-header h3 {
    letter-spacing: 1px;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.portfolio-hover-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
    transition: transform 0.4s ease, letter-spacing 0.4s ease;
}

.portfolio-item:hover .portfolio-gif {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-hover-title {
    transform: translateY(-15px);
    letter-spacing: 1px;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.portfolio-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--surface);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section - New Design */
.contact-section {
    background: var(--surface);
    padding: 4rem 2rem;
    color: var(--text-primary);
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info-simple {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
}

.contact-info-simple.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-email {
    font-size: 1.3rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    display: inline-block;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-email:hover::after {
    width: 100%;
}

.contact-email:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-location {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.contact-location:hover {
    transform: translateY(-3px);
}

.contact-location strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-location p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
}

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

.contact-social a {
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 50%;
    background: rgba(212, 77, 77, 0.1);
}

.contact-social a:hover {
    color: #FFFFFF;
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.2);
    box-shadow: 0 10px 25px rgba(212, 77, 77, 0.5);
}

/* Case Studies Section */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-study-item {
    background: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 2rem;
    min-height: 300px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transform: perspective(1500px) translateZ(0) scale(1);
    will-change: transform;
}

.case-study-item:hover {
    transform: perspective(1500px) translateZ(100px) scale(1.15);
    z-index: 10;
}

.case-study-header {
    margin-bottom: 0;
    background: transparent;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.case-study-item:hover .case-study-header {
    transform: translateY(-15px);
}

.case-study-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.5s ease;
}

.case-study-item:hover .case-study-header h3 {
    letter-spacing: 1px;
}

.case-study-project {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    z-index: 2;
}

.case-study-content {
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-study-item:hover .case-study-content {
    transform: translateX(-8px) translateY(-8px);
}

.case-study-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.case-study-challenge {
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.case-study-solution {
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.case-study-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.case-project-link {
    display: inline-block;
    margin-top: 1rem;
    color: #F4E04D;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
}

.case-project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F4E04D;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-study-item:hover .case-project-link {
    transform: translateX(15px);
}

.case-study-item:hover .case-project-link::after {
    width: 100%;
}

/* Experience and Education List (No Boxes) */
.experience-list {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    transition: none;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.experience-item p {
    font-size: 1rem;
}

.experience-item ul {
    margin-top: 0.8rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Remove hover effects from experience items */
.experience-item:hover {
    transform: none !important;
    box-shadow: none !important;
}

.experience-list .portfolio-item {
    transition: none !important;
}

.experience-list .portfolio-item:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Footer */
.site-footer {
    background: var(--surface);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.project-modal.active {
    display: block;
}

.project-modal > * {
    position: relative;
}

.project-modal-content {
    position: relative;
    background-color: var(--background);
    margin: 2rem auto;
    margin-left: 150px;
    margin-right: 2rem;
    width: calc(100% - 170px);
    max-width: 950px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.project-modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Large screens - more space and center content */
@media (min-width: 1400px) {
    .project-modal-content {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 250px);
        max-width: 1400px;
    }
}

/* Medium screens - adjust for smaller menu */
@media (max-width: 1024px) and (min-width: 901px) {
    .project-modal-content {
        margin-left: 160px;
        width: calc(100% - 180px);
    }
}

/* Small tablets and below - move menu to bottom */
@media (max-width: 900px) {
    .modal-side-menu {
        position: fixed;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center;
        border-radius: 16px 16px 0 0;
        padding: 0.75rem;
        gap: 0.5rem;
        z-index: 100001;
        width: 100%;
        margin-left: 0;
    }

    .modal-menu-btn {
        min-width: auto;
        flex: 1;
        max-width: 100px;
        padding: 0.7rem 0.5rem;
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.85rem;
    }

    .menu-icon {
        font-size: 1.3rem;
    }

    .menu-text {
        font-size: 0.75rem;
    }

    .project-modal-content {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 90% !important;
        max-width: 90% !important;
        margin-bottom: 120px !important;
    }
}

.project-modal-close,
.case-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 100;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-modal-close:hover,
.case-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Modal Side Menu */
.modal-side-menu {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100001;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-left: 0.25rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.project-modal.active .modal-side-menu {
    display: flex;
}

.modal-menu-btn {
    background: white;
    border: 2px solid #e8e8e8;
    color: #666;
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 115px;
}

.menu-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.menu-text {
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    font-size: 0.75rem;
}

.modal-menu-btn:hover {
    background: #f8f8f8;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(255, 71, 126, 0.2);
}

.modal-menu-btn:hover .menu-icon {
    transform: scale(1.2);
}

.modal-menu-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 71, 126, 0.35);
}

.modal-menu-btn.active .menu-icon {
    transform: scale(1.15);
}

/* Large desktop screens - slightly bigger menu */
@media (min-width: 1600px) {
    .modal-side-menu {
        margin-left: 0.5rem;
        padding: 0.6rem;
    }

    .modal-menu-btn {
        min-width: 130px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .menu-icon {
        font-size: 1.2rem;
    }

    .menu-text {
        font-size: 0.8rem;
    }
}

/* Smaller screens - even more compact menu */
@media (max-width: 1024px) {
    .modal-side-menu {
        margin-left: 0.15rem;
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .modal-menu-btn {
        min-width: 105px;
        padding: 0.5rem 0.65rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }

    .menu-icon {
        font-size: 1rem;
    }

    .menu-text {
        font-size: 0.7rem;
    }

    .modal-menu-btn:hover {
        transform: translateX(5px);
    }
}

/* Tablet portrait and smaller - move menu to bottom */
@media (max-width: 768px) {
    .modal-side-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        border-radius: 16px 16px 0 0;
        padding: 0.75rem;
        gap: 0.5rem;
        z-index: 100001;
    }

    .modal-menu-btn {
        min-width: auto;
        flex: 1;
        max-width: 90px;
        padding: 0.7rem 0.4rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .menu-icon {
        font-size: 1.2rem;
    }

    .menu-text {
        font-size: 0.75rem;
    }

    .modal-menu-btn:hover {
        transform: translateY(-3px);
    }
}

.project-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 3rem 3rem 2rem;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.project-modal-header h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.project-modal-body {
    padding: 3rem;
    background: var(--background);
}

.project-high-concept-section {
    width: 100%;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-trailer-section {
    width: 100%;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-main-media {
    width: 100%;
    margin-bottom: 2rem;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-main-media img {
    width: 100%;
    height: auto;
    display: block;
}

.project-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.project-thumbnail {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: all 0.3s ease;
    background: var(--surface);
}

.project-thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(212, 77, 77, 0.3);
}

.project-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.project-details {
    margin-top: 2rem;
}

.project-section {
    margin-bottom: 3rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #e0e0e0;
    border-left: 4px solid var(--primary-color);
}

.project-section-title {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 71, 126, 0.3);
}

.project-section-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.project-section-content p {
    margin-bottom: 1rem;
}

.project-section-content ul {
    margin-left: 3rem;
    padding-left: 1rem;
}

.project-section-content li {
    margin-bottom: 0.5rem;
}

.project-section-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.project-section-content em {
    font-style: italic;
    color: var(--text-primary);
}

/* WebGL Player */
.webgl-player-container {
    width: 100%;
    margin-bottom: 3rem;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border);
}

.webgl-controls {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.webgl-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.webgl-control-btn {
    background: white;
    color: var(--text-primary);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.webgl-control-btn:hover {
    background: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.webgl-player {
    width: 100%;
    height: 700px;
    display: block;
    border: none;
    background: #231F20;
}

/* Style for iframe content - Unity elements */
.webgl-player-container iframe {
    overflow: hidden;
}

/* Video Example Section */
.video-example-container {
    width: 100%;
    margin-bottom: 3rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #e0e0e0;
    border-left: 4px solid var(--primary-color);
}

.video-example-container .project-section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 71, 126, 0.3);
}

.video-wrapper {
    width: 100%;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid #444;
}

.case-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}

/* These rules apply if Unity content is directly embedded */
#unity-container {
    width: 100% !important;
    height: 100% !important;
}

#unity-canvas {
    width: 100% !important;
    height: 100% !important;
}

#unity-footer,
#unity-fullscreen-button,
.unity-footer,
.footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .webgl-player {
        height: 500px;
    }

    .webgl-controls::before {
        font-size: 1rem;
    }
}