@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  
  width: 100%;
  overflow-x: hidden;
}

body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #111;
  color: #f5f5f5;
  overflow-x: hidden;
}



a, button {
    color: #f5f5f5;
    transition: color 0.2s, border 0.2s, background 0.2s;
}

a:hover, button:hover {
    color: #fbb9b8;
}

.menu {
    transition: opacity 0.5s;
}

.menu, .nav-blur {
    background: rgba(0,0,0,0.96);
    border-bottom: 1px solid #222;
}

.logo-text {
    color: #fff;
    letter-spacing: 2px;
    font-weight: 800;
    transition: color 0.2s;
}

.logo-text:hover {
    color: #e53935;
}

.nav-link {
    position: relative;
    color: #f5f5f5;
    transition: color 0.2s;
}

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

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

.glass-panel {
    background: rgba(30,30,30,0.85);
    border: 1px solid #222;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    padding: 1.5rem;
    border-radius: 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.hero-title, .section-title {
    color: #bbb !important;
    text-shadow: 0 0 16px #000;
    letter-spacing: 1px;
}

.hero-title {
    font-weight: 900;
    font-size: 3rem;
    margin-top: 3rem;
}

.hero-subtitle {
    color: #bbb;
}

.cta-button {
    background: #111;
    color: #fff;
    border: 2px solid #e53935;
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
    background: #e53935;
    color: #fff;
}

.project-card {
    background: #181818;
    border: 1px solid #222;
    color: #f5f5f5;
    transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
    will-change: transform, box-shadow;
    max-width: 100%;
}

.project-card:hover {
    box-shadow: 0 8px 32px #6e6d6d33;
}

.project-card:hover .fa-play-circle {
    color: #fff;
    filter: drop-shadow(0 0 16px #535252cc);
    transform: scale(1.15);
    transition: color 0.2s, filter 0.2s, transform 0.2s;
}
.fa-play-circle {
    transition: color 0.2s, filter 0.2s, transform 0.2s;
}

.project-image {
    .about-image img, .animated-camera {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 100%;
}
.project-image img {
  width: 100%;
  height: auto;
  object-fit: contain; 
  display: block;
  max-width: 100%;
}




}

.progress-bar {
    background: #e53935;
}

.timeline-scrubber {
    background: #333;
}


.skills-grid, .formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  user-select: none;

  gap: 0;
  border: 1px solid #2a2a2a;  
}


.skills-grid > button, .formats-grid > button {
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;

  margin: 0;
  padding: 1.2rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #eee;
  cursor: pointer;
  transition: background-color 0.3s ease;

  opacity: 0;
  transform: translateX(20px);
  box-shadow: none;
}

.skills-grid > button:nth-child(3n),
.formats-grid > button:nth-child(3n) {
  border-right: none;
}

.skills-grid > button:nth-last-child(-n + 3),
.formats-grid > button:nth-last-child(-n + 3) {
  border-bottom: none;
}

.skills-grid > button:nth-child(1) { background-color: #2a2a2a; }
.skills-grid > button:nth-child(2) { background-color: #333333; }
.skills-grid > button:nth-child(3) { background-color: #3d3d3d; }
.skills-grid > button:nth-child(4) { background-color: #2c2c2c; }
.skills-grid > button:nth-child(5) { background-color: #353535; }
.skills-grid > button:nth-child(6) { background-color: #404040; }

.formats-grid > button:nth-child(1) { background-color: #232323; }
.formats-grid > button:nth-child(2) { background-color: #2d2d2d; }
.formats-grid > button:nth-child(3) { background-color: #383838; }
.formats-grid > button:nth-child(4) { background-color: #242424; }
.formats-grid > button:nth-child(5) { background-color: #2f2f2f; }

 .skills-grid > button:hover,
.skills-grid > button:focus,
.formats-grid > button:hover,
.formats-grid > button:focus {
  background-color: #555555;
  outline: none;
}

 .skills-grid > button.visible,
.formats-grid > button.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

 @media (max-width: 768px) {
  .skills-grid, .formats-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  .skills-grid > button, .formats-grid > button {
    border-right: none !important;
  }
  .skills-grid > button:last-child,
  .formats-grid > button:last-child {
    border-bottom: none !important;
  }
}



  .tab-btn.active {
    background-color: #363232 !important;  
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .tab-btn:not(.active):hover {
    background-color: #262626 !important;
    color: #fff !important;
    box-shadow: none !important;
  }




@media (max-width: 600px) {
  .skills-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.8rem !important;
    padding: 0 1rem !important;
  }
  .skill-btn {
    width: 100% !important;
    max-width: none !important;
    flex-direction: row !important; 
    align-items: center !important;
    white-space: normal !important;
    padding: 1rem 1.5rem !important;
    min-height: auto !important;
  }
  .skill-btn i {
    font-size: 1.0rem !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
  }
  .skill-text {
    font-size: 1rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

.format-columns {
  display: flex;
  justify-content: center;
  gap: 4rem;
  max-width: 700px;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.fancy-format-list {
  list-style: none;
  padding-left: 1rem;
  font-family: 'Inter', sans-serif;
  color: #eee;
  min-width: 200px;
}

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

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

.fancy-item {
  position: relative;
  margin-bottom: 1.8rem;
  padding-left: 1.5rem;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  cursor: default;
}

.fancy-dot {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #e53935 60%, #b32020 100%);
  border-radius: 50%;
  box-shadow:
    0 0 8px 2px #e53935aa;
  transition: transform 0.3s ease;
}

.fancy-item:hover .fancy-dot {
  transform: scale(1.4);
  box-shadow:
    0 0 12px 4px #ff6a6a;
}

.fancy-item.visible {
  opacity: 1;
  transform: translateX(0);
}


.contact-link, .social-link {
    color: #fff;
}

.contact-link:hover, .social-link:hover {
    color: #8d8c8c;
}

.social-link {
    background: #181818;
    border: 1px solid #222;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    will-change: transform, box-shadow;
}

.social-link:hover {
    background: #eea4a2;
    color: #fff;
    box-shadow: 0 0 20px #b6aeaecc;
}

.mobile-menu {
    background: #111;
    border-left: 2px solid #e53935;
}

.hero-box {
    background: #181818;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 48px 32px;
    max-width: 500px;
    width: 100%;
    margin: 40px auto;
    text-align: center;
    color: #fff;
    border: 1px solid #222;
    box-sizing: border-box;
}

.hero-box a {
    background: #111;
    color: #fff;
    border: 2px solid #e53935;
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.hero-box a:hover {
    background: #756b6b;
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #222;
}
::-webkit-scrollbar-thumb:hover {
    background: #e53935;
}

.film-grain, .timeline-overlay, .film-border, .film-perforations {
    filter: grayscale(1);
}

.animated-camera {
    animation: cameraPulse 3.2s ease-in-out infinite alternate, cameraMove 3.5s ease-in-out infinite alternate;
    filter: grayscale(1) brightness(0.85) contrast(120%);
}

@keyframes cameraPulse {
  0% { filter: grayscale(1) brightness(0.85) contrast(120%); }
  50% { filter: grayscale(1) brightness(1) contrast(140%) drop-shadow(0 0 16px #f6dfdf55); }
  100% { filter: grayscale(1) brightness(0.85) contrast(120%); }
}

@keyframes cameraMove {
  0% { transform: scale(1) translateY(0px);}
  100% { transform: scale(1.04) translateY(-12px);}
}

main {
  min-height: calc(100vh - 80px);  
  padding-bottom: 80px;  
  box-sizing: border-box;
}


footer {
  background: #111;
  border-top: 1px solid #222;
  padding: 1rem 0;
  color: #888;
  text-align: center;
  height: 5rem;
}




.cinematic-question {
    font-weight: 500;          
    font-family: 'Inter', sans-serif;   
    letter-spacing: 0.04em;    
    color: #f87171;            
    transition: transform 0.3s ease;
}

.cinematic-question:hover {
    transform: scale(1.05);
}


.glass-panel.cinematic-shadow {
    position: relative;
    overflow: hidden;
}
.glass-panel.cinematic-shadow::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    pointer-events: none;
    background: linear-gradient(to top, #e53935bb 60%, transparent 100%);
    filter: blur(8px);
    z-index: 2;
}

@media (max-width: 640px) {
  .mobile-menu .nav-link span {
    display: none !important;
  }
}

@media (max-width: 600px) {
    .glass-panel.cinematic-shadow::after {
        height: 10px;
        filter: blur(10px);
        background: linear-gradient(to top, #e5393588 70%, transparent 100%);
    }
}
@keyframes fadeInCine {
    to {
        opacity: 1;
    }
}


.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.7rem;
        margin-top: 2rem;
    }
     .nav-link {
        font-size: 0.7rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .glass-panel {
        padding: 1rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .hero-box {
        padding: 24px 12px;
        margin: 20px auto;
    }
    .project-card {
        padding: 1rem;
    }
    .cinematic-question {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
        margin-top: 1.2rem;
    }
    .section-title {
        font-size: 1rem;
    }
    .hero-box {
        padding: 12px 6px;
        margin: 12px auto;
    }
    .cta-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .nav-link {
        font-size: 0.7rem;
    }
    .glass-panel {
        padding: 0.7rem;
    }
    .cinematic-question {
        font-size: 1rem;
    }
    .project-card {
        padding: 0.7rem;
    }
}

.floating-elements {
    pointer-events: none;
    z-index: 10;
}
.adobe-element {
    transition: filter 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
    .floating-elements .adobe-element {
        scale: 0.7;
    }
    .floating-elements .premiere { top: 12%; left: 2%; }
    .floating-elements .after-effects { top: 70%; left: 10%; }
    .floating-elements .timeline-icon { top: 22%; right: 2%; }
    .floating-elements .fa-magic { top: 75%; right: 8%; }
}
@media (max-width: 480px) {
    .floating-elements .adobe-element {
        scale: 0.5;
    }
    .floating-elements .premiere { top: 8%; left: 5%; }
    .floating-elements .after-effects { top: 75%; left: 5%; }
    .floating-elements .timeline-icon { top: 18%; right: 5%; }
    .floating-elements .fa-magic { top: 80%; right: 10%; }
}

@keyframes heroFade {
    0% { opacity: 0; transform: translateY(40px) scale(0.95);}
    100% { opacity: 1; transform: translateY(0) scale(1);}
}
.animate-hero-fade {
    opacity: 0;
    animation: heroFade 1.2s cubic-bezier(.22,1,.36,1) 0.2s forwards;
}
.animate-hero-fade.delay-200 {
    animation-delay: 0.4s;
}
.drop-shadow-glow {
    filter: drop-shadow(0 0 16px #dfa8a7cc) drop-shadow(0 2px 8px #000a);
}
.hero-title span {
    letter-spacing: 0.06em;
    text-shadow: 0 2px 24px #e0767455, 0 1px 0 #fff;
}
@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .hero-title span { font-size: 2rem; }
    .hero-content { padding-top: 2.5rem; }
}

.netflix-stripes-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.netflix-stripe {
    position: absolute;
    left: 50%;
    width: 90%;
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, transparent 0%, #e50914cc 40%, #fff3 60%, transparent 100%);
    opacity: 0;
    filter: blur(2px);
    transform: translateX(-50%) scaleX(0.85);
    animation: stripe-appear 1.2s cubic-bezier(.77,0,.18,1) forwards;
}

.stripe1 { top: 10px; animation-delay: 0.1s; }
.stripe2 { top: 26px; animation-delay: 0.25s; }
.stripe3 { top: 42px; animation-delay: 0.4s; }
.stripe4 { top: 58px; animation-delay: 0.55s; }
.stripe5 { top: 74px; animation-delay: 0.7s; }

@keyframes stripe-appear {
    0% { opacity: 0; filter: blur(8px); transform: translateX(-50%) scaleX(0.7);}
    40% { opacity: 1; filter: blur(2px); }
    80% { opacity: 1; filter: blur(0.5px);}
    100% { opacity: 0; filter: blur(8px); transform: translateX(-50%) scaleX(1.1);}
}

.erschaffe-text.visible {
    opacity: 1;
    pointer-events: auto;
}

.erschaffe-text.visible {
    opacity: 2.3;
    pointer-events: auto;
}
#portfolio_frames {
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
    .netflix-stripes-wrapper {
        max-width: 98vw;
        height: 40px;
    }
    .netflix-stripe {
        height: 6px;
        border-radius: 4px;
    }
    .stripe1 { top: 2px; }
    .stripe2 { top: 10px; }
    .stripe3 { top: 18px; }
    .stripe4 { top: 26px; }
    .stripe5 { top: 34px; }
    .erschaffe-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
  .mobile-menu .glass-panel {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 1.5rem 0.5rem !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .mobile-menu .nav-link {
    margin-bottom: 0 !important;
  }
}




#youtube-modal {
    transition: opacity 0.3s ease;
    z-index: 2000 !important;
}

#youtube-modal:not(.opacity-0) {
    pointer-events: auto;
}

#projects-container {
  position: relative;
}


.highlighted {
  position: relative;
  z-index: 1010;
  filter: brightness(0.8);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}



.latraka-effect {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background:
    radial-gradient(
      circle 230px at var(--mouse-x, 60%) var(--mouse-y, 40%),
      transparent 70%,
      rgba(0,0,0,0.5) 100%
    ),
    linear-gradient(to bottom, #000 0%, transparent 15%, transparent 85%, #000 100%),
    linear-gradient(to right, #000 0%, transparent 10%, transparent 90%, #000 100%);
  transition: background-position 0.1s;
}


.tabs {
  position: relative;
  border-bottom: 2px solid #a11a1a;
  user-select: none;
}

.tab-btn {
  flex: 1;
  padding: 1.5rem 1.3rem;
  text-align: center;
  font-weight: 600;
  color: #ccc;
  background: #222;
  border: none;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: inset 0 -4px 0 0 #1b1b1b;
  z-index: 1;
  
  clip-path: polygon(0 10px, 100% 10px, 100% 100%, 0 100%);
}

.tab-btn:not(.active) {
  margin-top: 10px; 
  color: #888;
  text-align: center;
  
}

.tab-btn.active {
  background: #3d0000;
  color: white;
  margin-top: 0;
  box-shadow: none;
  z-index: 10;

  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0 5px 10px rgba(229, 57, 53, 0.7);
}


@media (max-width: 768px) {
  .tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 0.7rem 0.8rem;
  }
}
@media (max-width: 768px) {
  .tabs {
    overflow-x: auto;
    gap: 0.5rem;
  }
  .tab-btn {
    flex: 0 0 auto;
    font-size: 0.8rem;
  }
}
