* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #050a20; 
  color: #c5d7ff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}


header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(10,23,64,0.85);
  border-bottom: 1px solid rgba(74,144,226,0.4);
  box-shadow: 0 0 15px rgba(74,144,226,0.4);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  z-index: 17;
  user-select: none;
}

header .logo {
  font-size: 28px;
  font-weight: 800;
  color: #4a90e2;
  margin-right: 50px;
  letter-spacing: 1px;
  cursor: default;
  text-shadow: 0 0 8px rgba(74,144,226,0.75);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #aaccee;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 8px transparent;
  user-select: none;
}

nav a.active,
nav a:hover {
  color: #e0f0ff;
  background-color: rgba(74,144,226,0.4);
  box-shadow: 0 0 12px rgba(74,144,226,0.8);
}


nav .dropdown > .menu-link::after {
  content: none;
}

nav .dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}


nav .dropdown > .menu-link {
  color: #aaccee;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 8px transparent;
  cursor: pointer;
  display: inline-block;
}

nav .dropdown > .menu-link:hover,
nav .dropdown > .menu-link:focus,
nav a.active,
nav a:hover {
  color: #e0f0ff;
  background-color: rgba(74,144,226,0.4);
  box-shadow: 0 0 12px rgba(74,144,226,0.8);
  outline: none;
}

nav .dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 23, 64, 0.95);
  border-radius: 15px 50px 15px 50px;
  padding: 12px 0;
  min-width: 200px;
  
  pointer-events: auto;
  
  opacity: 0;
  visibility: hidden;

  transform-origin: top center;
  transform: scale(0.9) skewX(-3deg);

  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 17;
  box-shadow:
    0 10px 25px rgba(102, 178, 255, 0.6),
    0 0 40px 8px rgba(74,144,226,0.5);
}

nav .dropdown-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 10%;
  width: 80%;
  height: 15px;
  background: radial-gradient(circle, rgba(118,179,255,0.7) 0%, transparent 70%);
  filter: blur(15px);
  opacity: 0.6;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

nav .dropdown:hover .dropdown-content,
nav .dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: scale(1) skewX(0deg);
  animation: wobbleIn 0.4s ease forwards;
}

nav .dropdown-content a {
  display: block;
  padding: 10px 24px;
  color: #aaccee;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
  user-select: none;
  border-left: 4px solid transparent;
}

nav .dropdown-content a:hover,
nav .dropdown-content a:focus {
  background-color: rgba(74,144,226,0.5);
  color: #e0f0ff;
  outline: none;
  cursor: pointer;
  animation: bounce 0.35s ease;
  border-left-color: #76b3ff;
}

nav .dropdown:focus-within > .menu-link {
  background-color: rgba(74,144,226,0.4);
  color: #e0f0ff;
  box-shadow: 0 0 12px rgba(74,144,226,0.8);
}

@keyframes wobbleIn {
  0% {
    opacity: 0;
    transform: scale(0.8) skewX(-5deg);
  }
  40% {
    transform: scale(1.05) skewX(5deg);
  }
  70% {
    transform: scale(0.95) skewX(-3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) skewX(0deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

@media (max-width: 900px) {
  nav .dropdown-content {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: none;
    box-shadow: none;
    filter: none;
    transform: none;
    padding: 0;
    margin-top: 5px;
    display: none;
  }
  nav .dropdown:hover .dropdown-content {
    display: block;
  }
  nav {
    flex-direction: column;
  }
}

nav.main-nav {
  display: flex;
  gap: 30px;
  user-select: none;
}

nav.main-nav a,
nav.main-nav .menu-link {
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: #aaccee;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 12px;
  background-color: transparent;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 1; 
  display: inline-block;
}

nav.main-nav a > span,
nav.main-nav .menu-link > span {
  position: relative;
  z-index: 2;
}

nav.main-nav a .svg-wrapper,
nav.main-nav .menu-link .svg-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  overflow: visible;
}

nav.main-nav svg rect {
  stroke: #4a90e2;
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter:
    drop-shadow(0 0 6px #4a90e2)
    drop-shadow(0 0 12px #76b3ff)
    drop-shadow(0 0 20px #76b3ff);
  stroke-dasharray: 312;
  stroke-dashoffset: 312;
  transition: stroke-dashoffset 0.6s ease;
}

nav.main-nav a:hover svg rect,
nav.main-nav a:focus svg rect,
nav.main-nav a.active svg rect,
nav.main-nav .menu-link:hover svg rect,
nav.main-nav .menu-link:focus svg rect,
nav.main-nav .menu-link.active svg rect {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s ease;
}

nav.main-nav a:hover,
nav.main-nav a:focus,
nav.main-nav a.active,
nav.main-nav .menu-link:hover,
nav.main-nav .menu-link:focus,
nav.main-nav .menu-link.active {
  color: #76b3ff;
  text-shadow:
    0 0 8px #4a90e2,
    0 0 16px #76b3ff,
    0 0 24px #76b3ff;
  outline: none;
}

nav.main-nav a:hover,
nav.main-nav a.active,
nav.main-nav .menu-link:hover,
nav.main-nav .menu-link.active {
  background: transparent !important;
  box-shadow: none !important;
}

nav.main-nav .dropdown > .menu-link::after {
  content: none;
}

nav.main-nav a:focus-visible,
nav.main-nav .menu-link:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 3px;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  user-select: none;
  box-shadow: inset 0 -80px 60px -40px rgba(10,23,64,0.9);
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(0.9) saturate(1.2);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
transition: filter 0.5s ease;
}
.hero video:hover {
  filter: brightness(1.2) saturate(1.4);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px; 
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 32, 0) 0%,
    rgba(5, 10, 32, 0.15) 25%,
    rgba(5, 10, 32, 0.35) 50%,
    rgba(5, 10, 32, 0.6) 75%,
    rgba(5, 10, 32, 0.85) 90%,
    rgba(5, 10, 32, 1) 100%
  );
  z-index: 0;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,10,32,0) 0%, rgba(5,10,32,1) 100%);
  filter: blur(12px); 
  opacity: 0.3;      
  z-index: 0;
}

.hero .content {
  position: relative; 
  z-index: 1;
  color: #c5d7ff;
  max-width: 700px;
  text-shadow: 0 0 20px rgba(74,144,226,0.75);
  user-select: none;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 0.35em;
  letter-spacing: 0.04em;
}

.hero p {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.4;
  color: #aaccee;
}

section.models {
  max-width: 1150px;
  margin: 80px auto 130px auto;
  padding: 0 20px;
  scroll-snap-align: start;
}

section.models h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #4a90e2;
  margin-bottom: 50px;
  text-align: center;
  text-shadow: 0 0 15px rgba(74,144,226,0.7);
  user-select: none;
}

.model-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 35px;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background: rgba(10,23,64,0.6);
  box-shadow: none !important;
  background: transparent !important;
  padding: 18px 20px;
  user-select: none;
}

.model-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.model-image {
  flex: 1 1 320px;
  max-width: 440px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(74,144,226,0.6);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: #0a1740;
}
.model-image:hover {
  transform: scale(1.07);
  box-shadow: 0 0 30px rgba(74,144,226,0.9);
}
.model-image img,
.model-image video {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  user-select: none;
}
.model-image video {
  max-height: 300px;
}

.model-info {
  flex: 1.9 1 420px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #aaccee;
  padding: 0 20px;
  text-shadow: 0 0 6px rgba(10,23,64,0.8);
  user-select: text;
}
.model-info h3 {
  margin-bottom: 14px;
  font-size: 2.05rem;
  font-weight: 700;
  color: #76b3ff;
  text-shadow: 0 0 12px rgba(118, 179, 255, 0.8);
}
.model-info p {
  font-weight: 500;
  color: #bddaff;
}

@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section.models {
    margin-top: 60px;
    margin-bottom: 80px;
    scroll-snap-align: none !important;
  }
  section.models h2 {
    font-size: 2.1rem;
  }
  .model-card {
    flex-direction: column;
    gap: 25px;
    padding: 15px 12px;
  }
  .model-image, .model-info {
    max-width: 100%;
    flex: none;
  }
  .model-info {
    padding: 0;
    text-align: center;
  }
}

.model-link {
  color: inherit;          
  text-decoration: none;   
  cursor: pointer;        
  display: inline-block;  
}
.model-link:hover,
.model-link:focus {
  outline: none;    
}


#ai-images .model-card {
  display: flex;
  align-items: flex-start;
  gap: 35px;
  margin-bottom: 70px;
  padding: 18px 20px;
  background: rgba(10, 23, 64, 0.6);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(74, 144, 226, 0.4);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  box-sizing: border-box;
}

#ai-images .model-card.visible {
  opacity: 1;
  transform: translateY(0);
}

#ai-images .model-info {
  flex: 1.9 1 420px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #aaccee;
  padding: 0 20px 0 0;
  text-shadow: 0 0 6px rgba(10, 23, 64, 0.8);
  user-select: text;
}

#ai-images .model-info h3 {
  margin-bottom: 14px;
  font-size: 2.05rem;
  font-weight: 700;
  color: #76b3ff;
  text-shadow: 0 0 12px rgba(118, 179, 255, 0.8);
}

#ai-images .model-info p {
  font-weight: 500;
  color: #bddaff;
  user-select: text;
}

#ai-images .model-image {
  flex: 1 1 320px;
  max-width: 440px;
  height: 320px; 
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: relative;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
}

#ai-images .model-image img {
  max-height: 300px;
  width: auto;
  display: block;
  border-radius: 14px;
  object-fit: contain;
}

#ai-images .model-image:hover {
  transform: none;
  box-shadow: none;
}

.model-image-fan {
  position: relative;
  width: 100%;
  height: 320px;
  user-select: none;
}

.model-image-fan img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
  border: 2px solid transparent;
  user-select: none;
  transform-origin: center bottom;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(0);
  z-index: 1;
}

.model-image-fan img:nth-child(1) {
  transform: translate(calc(-50% - 40px), -50%) rotate(-7deg);
  z-index: 3;
  border-color: #4a90e2;
}
.model-image-fan img:nth-child(2) {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 4;
  border-color: #76b3ff;
}
.model-image-fan img:nth-child(3) {
  transform: translate(calc(-50% + 40px), -50%) rotate(7deg);
  z-index: 2;
  border-color: #4a90e2;
}

.model-image-fan:hover img:nth-child(1) {
  transform: translate(calc(-50% - 130px), calc(-50% - 15px)) rotate(-15deg);
  box-shadow: 0 18px 38px rgba(74, 144, 226, 0.9);
  border-color: #a1c0ff;
  z-index: 5;
}
.model-image-fan:hover img:nth-child(2) {
  transform: translate(-50%, calc(-50% - 30px)) rotate(0deg);
  box-shadow: 0 25px 45px rgba(118, 179, 255, 0.85);
  border-color: #c9e0ff;
  z-index: 6;
}
.model-image-fan:hover img:nth-child(3) {
  transform: translate(calc(-50% + 130px), calc(-50% - 15px)) rotate(15deg);
  box-shadow: 0 18px 38px rgba(74, 144, 226, 0.9);
  border-color: #a1c0ff;
  z-index: 5;
}

#chatgpt .model-card,
#ai-images .model-card {
  max-width: 1150px; 
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
 
html, body {
  overflow-x: hidden;
} 

    
   #ai-images {
  overflow-x: hidden;
  position: relative;
} 
    
  #ai-images .model-card {
    flex-direction: column;
    padding: 15px 12px;
    height: auto;
  }
  #ai-images .model-info {
    padding: 0;
    text-align: left;
    margin-bottom: 25px;
  }
  
    #chatgpt .model-info {
    text-align: left;
  }

  #ai-video .model-info {
    text-align: left;
  }

  #ai-images .model-image {
    max-width: 100%;
    height: 300px; 
    margin: 0 auto;
  }
  
 #ai-images {
  overflow: visible !important;
  padding-bottom: 40px;
}

#ai-images .model-card {
  overflow: visible !important;
}

#ai-images .model-image {
  overflow: visible !important;
  height: auto !important;
}

#ai-images .model-image-fan {
  overflow: visible !important;
  height: 360px; 
} 
  
  .model-image-fan {
    height: 100%;
  }
  .model-image-fan img {
    max-height: 100%;
    width: auto;
    top: 50%;
  }
  .model-image-fan img:nth-child(1) {
    transform: translate(calc(-50% - 30px), -50%) rotate(-7deg);
  }
  .model-image-fan img:nth-child(2) {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  .model-image-fan img:nth-child(3) {
    transform: translate(calc(-50% + 30px), -50%) rotate(7deg);
  }
  .model-image-fan:hover img:nth-child(1) {
    transform: translate(calc(-50% - 90px), calc(-50% - 12px)) rotate(-15deg);
  }
  .model-image-fan:hover img:nth-child(2) {
    transform: translate(-50%, calc(-50% - 16px)) rotate(0deg);
  }
  .model-image-fan:hover img:nth-child(3) {
    transform: translate(calc(-50% + 90px), calc(-50% - 12px)) rotate(15deg);
  }
}


section.models .model-card {
  max-width: 1150px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;

  display: flex;
  align-items: flex-start;
  gap: 35px;
  margin-bottom: 70px;
  padding: 18px 20px;
  background: rgba(10, 23, 64, 0.6);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(74, 144, 226, 0.4);
  height: auto;
}


#nano-banana .model-info {
  flex: 1.9 1 420px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #aaccee;
  padding: 0 0 0 20px;
  text-shadow: 0 0 6px rgba(10, 23, 64, 0.8);
  user-select: text;
  text-align: left;
}

@media (max-width: 768px) {
  #nano-banana .model-info {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

#nano-banana .model-info h3 {
  margin-bottom: 14px;
  font-size: 2.05rem;
  font-weight: 700;
  color: #76b3ff;
  text-shadow: 0 0 12px rgba(118, 179, 255, 0.8);
}

#nano-banana .model-info p {
  font-weight: 500;
  color: #bddaff;
  user-select: text;
}

#nano-banana .model-image {
  flex: 1 1 320px;
  max-width: 440px;
  height: 320px;  
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: relative;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
}

#nano-banana .model-image-fan {
  margin-top: 25px; 
}

#nano-banana .model-image img,
#nano-banana .model-image-fan img {
  max-height: 300px;
  width: auto;
  display: block;
  border-radius: 14px;
  object-fit: contain;
}

#burger {
  display: none; 
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  margin-right: 0;
  z-index: 16; 
  user-select: none;
}

#burger:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
  border-radius: 4px;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: #aaccee;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

#burger:hover .burger-line,
#burger:focus .burger-line {
  background-color: #e0f0ff;
}

@media (max-width: 767px) {
  #burger {
    display: flex;
  }

  nav.main-nav {
    display: none !important;
  }
}

#sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background: rgba(10, 23, 64, 0.95);
  box-shadow: -4px 0 20px rgba(74, 144, 226, 0.7); 
  padding: 60px 10px;
  border-radius: 20px 0 0 20px;
  box-sizing: border-box;
  transform: translateX(107%); 
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15; 
  user-select: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; 
}
#sidebar.open {
  transform: translateX(0);
}


.sidebar-menu {
  list-style: none;
  padding-left: 0;
  font-weight: 700;
  font-size: 1.25rem;
  color: #aaccee;
  user-select: none;
  margin-top: 40px;
}

.sidebar-menu > li {
  margin-bottom: 24px;
}

.sidebar-menu > li > a {
  color: #aaccee;
  text-decoration: none;
  display: block;
  padding: 8px 14px;           
  border-radius: 8px;
  font-weight: 800;          
  font-size: 1.3rem;        
  border-left: 4px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
  box-shadow: 0 0 6px transparent;
}

.sidebar-menu > li > a:hover,
.sidebar-menu > li > a:focus {
  color: #e0f0ff;
  background-color: rgba(74,144,226,0.4);
  box-shadow: 0 0 12px rgba(74,144,226,0.8);
  border-left-color: #4a90e2;
  outline: none;
}

.sidebar-menu li ul {
  list-style: none;
  padding-left: 20px;
  margin-top: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: #caddff;
}

.sidebar-menu li ul li {
  margin-bottom: 12px;
}

.sidebar-menu li ul li a {
  color: #caddff;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 0 3px transparent;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-menu li ul li a:hover,
.sidebar-menu li ul li a:focus {
  color: #e0f0ff;
  background-color: rgba(74,144,226,0.25);
  box-shadow: 0 0 8px rgba(74,144,226,0.6);
  outline: none;
}

#sidebar::-webkit-scrollbar {
  width: 8px;
}

#sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(74,144,226,0.5);
  border-radius: 6px;
}

#sidebar::-webkit-scrollbar-track {
  background: transparent;
}

#overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 23, 64, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 14; 
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.film-frame {
  position: relative;
  display: inline-block;
  padding: 0; 
  background: #050a20; 
  border-radius: 20px;
  box-shadow:
    0 0 20px rgba(74,144,226,0.8),
    inset 0 0 15px rgba(74,144,226,0.5);
  
  border: 8px solid black;
}

.film-frame::before,
.film-frame::after {
  content: "";
  position: absolute;
  top: 0px;
  bottom: 0px;
  width: 15px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 10px,
    #000 10px,
    #000 20px
  );
  pointer-events: none;
}

.film-frame::before {
  left: 0;
}

.film-frame::after {
  right: 0;
}

.film-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(74,144,226,0.7);
  object-fit: cover;
}

.video-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 17;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal-content video {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  border-radius: 14px;
  outline: none;
  display: block;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 17;
}

.models--video {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.video-text-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 40px 30px;
  align-items: start;
}

.video-text-wall > .video-item {
  position: relative;
  background: #050a20;
  border-radius: 20px;
  border: 8px solid black;
  box-shadow:
    0 0 20px rgba(74,144,226,0.8),
    inset 0 0 15px rgba(74,144,226,0.5);
  overflow: hidden;
  width: 100%;
  height: auto;
}

.video-text-wall > .video-item::before,
.video-text-wall > .video-item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 10px,
    #000 10px,
    #000 20px
  );
  pointer-events: none;
  z-index: 2;
}

.video-text-wall > .video-item::before {
  left: 0;
}

.video-text-wall > .video-item::after {
  right: 0;
}

.video-text-wall video {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(74,144,226,0.7);
  object-fit: cover;
  display: block;
  outline: none;
}

.video-text-wall > .video-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.video-text-wall > .text-item:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.video-text-wall > .text-item:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.video-text-wall > .video-item:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}



@media (max-width: 900px) {
  #nano-banana .model-card {
    flex-direction: column;
    gap: 20px; 
  }
  #nano-banana .model-card > .model-info {
    order: 1;
  }
  #nano-banana .model-card > .model-image {
    order: 2;
  }
}

@media (max-width: 768px) {
  .video-text-wall {
    display: flex !important;
    flex-direction: column;
    gap: 20px; 
  }
  
  .video-text-wall > .model-info:nth-child(2) {
    order: 1; 
  }
  .video-text-wall > .video-item:nth-child(1) {
    order: 2; 
  }
  .video-text-wall > .model-info:nth-child(3) {
    order: 3; 
  }
  .video-text-wall > .video-item:nth-child(4) {
    order: 4; 
  }
}


.site-footer {
  background-color: rgba(10, 23, 64, 0.85);
  border-top: 1px solid rgba(74, 144, 226, 0.4);
  box-shadow: 0 -2px 12px rgba(74, 144, 226, 0.5);
  padding: 18px 40px;
  color: #aaccee;
  user-select: none;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  max-width: 1150px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #76b3ff;
  text-shadow: 0 0 8px rgba(74, 144, 226, 0.7);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 0.9rem;
  color: #aaccee;
  font-weight: 500;
  text-shadow: none;
}

.footer-right {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer-link {
  font-size: 1.8rem;
  color: #aaccee;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-link:hover,
.footer-link:focus {
  color: #76b3ff;
  transform: scale(1.15);
  outline: none;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 14px 20px;
    font-size: 0.9rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer-right {
    gap: 18px;
  }
}



#caricaturestyle {
  max-width: 1150px;
  margin: 0 auto 70px auto;
  padding: 18px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 35px;
  background: rgba(10, 23, 64, 0.6);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(74, 144, 226, 0.4);
  height: auto;
}


#caricaturestyle .model-card {
  max-width: 1150px;
  margin: 0 auto 70px auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 35px;
  padding: 18px 20px;
  background: rgba(10, 23, 64, 0.6);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(74, 144, 226, 0.4);
  height: auto;
}

#caricaturestyle .model-image {
  flex: 1 1 320px;
  max-width: 440px;
  height: 320px;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: relative;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
}

#caricaturestyle .model-image-fan {
  position: relative;
  width: 100%;
  height: 320px;
  user-select: none;
}

#caricaturestyle .model-image-fan img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-height: 300px;   
  width: auto;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
  border: 2px solid transparent;
  user-select: none;
  transform-origin: center bottom;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(0);
  z-index: 1;
}

#caricaturestyle .model-image-fan img:nth-child(1) {
  transform: translate(calc(-50% - 40px), -50%) rotate(-7deg);
  z-index: 3;
  border-color: #4a90e2;
}
#caricaturestyle .model-image-fan img:nth-child(2) {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 4;
  border-color: #76b3ff;
}
#caricaturestyle .model-image-fan img:nth-child(3) {
  transform: translate(calc(-50% + 40px), -50%) rotate(7deg);
  z-index: 2;
  border-color: #4a90e2;
}

#caricaturestyle .model-image-fan:hover img:nth-child(1) {
  transform: translate(calc(-50% - 130px), calc(-50% - 15px)) rotate(-15deg);
  box-shadow: 0 18px 38px rgba(74, 144, 226, 0.9);
  border-color: #a1c0ff;
  z-index: 5;
}
#caricaturestyle .model-image-fan:hover img:nth-child(2) {
  transform: translate(-50%, calc(-50% - 30px)) rotate(0deg);
  box-shadow: 0 25px 45px rgba(118, 179, 255, 0.85);
  border-color: #c9e0ff;
  z-index: 6;
}
#caricaturestyle .model-image-fan:hover img:nth-child(3) {
  transform: translate(calc(-50% + 130px), calc(-50% - 15px)) rotate(15deg);
  box-shadow: 0 18px 38px rgba(74, 144, 226, 0.9);
  border-color: #a1c0ff;
  z-index: 5;
}

#caricaturestyle {
  background: transparent;
}

@media (max-width: 768px) {
  #caricaturestyle .model-image-fan {
    margin-top: 30px; 
  }
  
    #caricaturestyle .model-info {
    text-align: left;
  }
}