

@font-face {
    font-family:'cooper-hewitt';
    src: url(../webfonts/CooperHewitt-Bold.otf); 
    font-weight: 700;
  }

  @font-face {
    font-family:'cooper-hewitt';
    src: url(../webfonts/CooperHewitt-Light.otf); 
    font-weight: 200;
  }

  @font-face {
    font-family:'cooper-hewitt';
    src: url(../webfonts/CooperHewitt-Book.otf);
    font-weight: 400;

  }
  /* ==========================
   BASE
========================== */

  html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'cooper-hewitt', sans-serif;
    background-color: rgb(246, 241, 241);
    color: #000;
    font-size: 1.2em;
}

main {
    flex: 1;
    width: 80%;
    margin: auto;
}


/* ==========================
   HEADER
========================== */

header {
	background-color: rgb(250, 250, 250);
	width: 100%;
	height: auto;
    text-align: center;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 0;
	font-family: 'cooper-hewitt', sans-serif;
	z-index: 999;
}

.white-header {
    padding: 10px;
    height: 180px;
}

.logo-block {
    margin-left: 8.5%;
    width: 42%;
    text-align: left;
}

.IMD_logo img {
    height: 80px;
    display: block;
}


  /* ==========================
   NAVBAR
========================== */
.navbar {
    display: flex;
    gap: 1rem;
	margin-left: 14.5%;
	
}

.encadre-nav {
    border: 1px solid transparent;
    padding: 6px 12px;
    transition: border 0.3s ease, background-color 0.3s ease;
    text-align: center;
    letter-spacing: 5px;
	font-family: 'cooper-hewitt', sans-serif;
	
}

.encadre-nav:hover {
    border: 1px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, #000, #000); 
    background-color : #f0f0f0; 
}


.encadre-nav a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 0.9rem;
}


.actif {
    color: #777;
    text-decoration: underline;
}

/* ==========================
   NAV BUTTON
========================== */
.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 20px;
	margin-top: 1%;
	font-size: 0.9rem;
    text-decoration: none;
    color: #000;
    letter-spacing: 3px;
}

.nav-button:hover {
    color: #ababab;
}

.icon-arrow {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.icon-arrow:hover {
    color: #ababab;
}

/* ==========================
   TEXT
========================== */
h1 {
    font-weight: 200;
    font-size: 30px;
	font-family: 'cooper-hewitt', sans-serif;
}

h3 {
    font-weight: 300;
	font-size: 25px;
}


p {
	font-family: 'cooper-hewitt', sans-serif;
	font-weight: 200; 
    font-size: 20px;
  }

  figcaption {
	font-family: 'cooper-hewitt', sans-serif !important;
	font-weight: 200 !important;  
	font-size: 18px !important;
	letter-spacing: 2px !important;
	margin: 25px auto !important;
	text-align: left !important;
  }
  


.image-row figcaption {
    font-size: 18px; /* ერთნაირი როგორც Base */
    margin-top: 10px;
}

  /* ==========================
   IMAGE ROW
========================== */

  .image-row {
	display: flex;             
	justify-content: center;   
	gap: 0px;
	
	
  }
  
  .image-row figure {
    margin-top: 30;                 
    text-align: left;
}

  
  .image-row img {
	max-width: 670px;           
	height: auto;
	text-align: left; 
	             
	
  }
  
  .hover-scale {
	width: 600px;
	height: auto;
	transition: transform 0.3s ease; 
  }
  
  .hover-scale:hover {
	transform: scale(1.1); 
  }

.actif {
	color: #777;
	text-decoration: underline;
}
  
.image-row video {
    width: 670px;          
    height: auto;          
    display: block;
    object-fit: cover;     
    transition: transform 0.3s ease;  
}

.image-row video:hover {
    transform: scale(1.05);  
}


  
/* ==========================
   VIDEO SECTION
========================== */

.video-section {
	display: flex;           
	flex-wrap: wrap;         
	gap: 20px;              
	justify-content: center; 
  }
  
  .video-section figure {
	flex: 1 1 45%;    
	max-width: 630px;        
	margin: 20px;
  }
  
  .video-section video {
	width: 100%;            
	height: auto;            
	display: block;
	object-fit: contain;
  }

  /* ==========================
   ENCADRE
========================== */
.encadre {
    width: 600px;
    margin: 0;
    letter-spacing: 1px;
    text-align: left;
    font-weight: 200;
    transform: translateX(-40px);
}

.encadre p {
    font-size: 20px;
    line-height: 1.6;
    max-width: 850px;
    margin: 0 auto;
}


  /* ==========================
   FOOTER
========================== */
footer {
    background-color: rgb(250, 250, 250);
    width: 100%;
    padding: 60px 0;
	margin: 5em 0;
    text-align: center;
	z-index: 1000;
}
	
  
/* ==========================
   MARQUEE
========================== */

  .marquee {
	position: relative;
	width: 107%;
	white-space: nowrap;
	overflow: hidden;
	padding: 30px 0;
	text-align: center;
	transform: translateX(-10px);
  }
  
  .marquee span {
	display: inline-block;
	font-family: 'cooper-hewitt', sans-serif;
	font-size: 30px;
	font-weight: 200;
	line-height: 1.2;  
	color: rgb(0, 0, 0);
	animation: moveText 15s linear infinite;
  }
  .marquee span::after {
	content: "   INTERACTIVE MÉDIA DESIGNER PORTFOLIO INTERACTIVE MÉDIA DESIGNER PORTFOLIO INTERACTIVE MÉDIA DESIGNER PORTFOLIO";
  }

  @keyframes moveText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-20%);
  }
}
  
  /* ==========================
   GLOBAL RESPONSIVE FIXES
========================== */

.image-row,
.video-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.image-row figure,
.video-section figure {
    flex: 1 1 45%;
    max-width: 700px;
    margin: 10px;
}

.image-row img,
.image-row video,
.video-section video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0 !important; /* შენს სტილს ვტოვებ */
}

/* ==========================
   BASE (DESKTOP DEFAULT)
========================== */
.video-section,
.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.video-section figure,
.image-row figure {
  flex: 1 1 45%;
  max-width: 700px;
  margin: 10px;
}

.video-section video,
.image-row img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

/* ==========================
   TABLET (769px–992px)
========================== */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .video-section,
  .image-row {
    gap: 30px;
    max-width: 1100px;
  }

  .video-section figure,
  .image-row figure {
    flex: 1 1 48%;
    max-width: 650px;
    margin: 10px;
  }

  .video-section video,
  .image-row img {
    width: 100%;
    height: auto;
  }
}

/* ==========================
   MOBILE (max-width: 768px)
========================== */
@media (max-width: 768px) {

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 999;
  }

  body { 
    font-size: 16px;
    line-height: 1.6;
    font-family: 'cooper-hewitt', sans-serif;
    padding-top: 200px;
    text-align: center;
  }

  .logo-block {
    width: 100%;
    text-align: right;
  }

  .IMD_logo img {
    height: 60px;
  }

  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  .encadre-nav {
    width: auto;
    border: none;
    padding: 1px 0;
    text-align: center;
  }

  .encadre-nav a {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .nav-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 2px;
  }

  /* Responsive images & video */
  .video-section,
  .image-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 5%;
    max-width: 100%;
  }

  .video-section figure,
  .image-row figure {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .video-section video,
  .image-row img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  figcaption {
    font-size: 18px;
    letter-spacing: 1px;
    text-align: left;
  }

  .encadre {
    width: 90%;
    margin: 0 auto;
    text-align: left;
  }

  .encadre p {
    font-size: 18px;
    line-height: 1.6;
  }

  h1 {
    font-weight: 200;
    font-size: 30px;
  }
}

/* ==========================
   SMALL MOBILE (max-width: 480px)
========================== */
@media screen and (max-width: 480px) {

  .encadre-nav a {
    font-size: 14px;
  }

  .nav-button {
    font-size: 14px;
    padding: 8px 12px;
    flex-direction: column;
    gap: 0.5rem;
  }

  .image-row img,
  .image-row video {
    max-width: 350px;
  }

  .encadre p {
    font-size: 14px;
  }

  figcaption {
    font-size: 16px;
    letter-spacing: 2px;
  }

  h1 {
    font-size: 22px;
  }
}


/* ==========================
   SLIDER ARROWS (UNCHANGED)
========================== */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: rgb(247, 240, 240);
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* ==========================
   MOBILE MARQUEE ANIMATION
========================== */
@keyframes moveTextMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.prev,
.next {
    display: none !important;
}


.prev:hover,
.next:hover {
	color: rgba(255, 255, 255, 0.9);
}

/* Hover-ზე ოდნავ გადიდება */
.prev:hover, .next:hover {
	transform: translateY(-50%) scale(1.2); 
}

.prev {
	left: 3%;  
}

.next {
	right: 3%;  
}


  
 
  /* --- Equal height between slider & video --- */
.image-row {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
  }
  
  .image-row figure {
	text-align: center;
	flex: 1;
	max-width: 45%;
  }
  
  /* Slider settings */
  .slider {
	position: relative;
	width: 100%;
	max-width: 450px; /* 🔸 შეამცირე საჭიროებისამებრ */
	height: 300px; /* ✅ იგივე სიმაღლე რაც ვიდეოს ექნება */
	overflow: hidden;
	
  }
  
  .slides {
	display: flex;
	transition: transform 0.5s ease-in-out;
	width: 100%;
	height: 100%;
  }
  
  .slides img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	flex-shrink: 0;
	
  }
  
  /* Video block */
  .image-row video {
	width: 100%;
	max-width: 450px;
	height: 300px; /* ✅ იგივე სიმაღლე რაც slider-ს */
	object-fit: cover;
	
  }
  
  /* Captions */
  .image-row figcaption {
	margin-top: 10px;
	font-size: 1.2em;
  }
  
  /* --- Remove all border-radius from slider images --- */
.slider,
.slides img {
  border-radius: 0 !important;
}

.image-row video {
	border-radius: 0 !important;
  }

  /* --- Refined Hover Animation --- */
.slider, 
.image-row video {
  transition: transform 0.50s ease-in-out, box-shadow 0.50s ease-in-out;
  transform-origin: center center;
}

.slider:hover, 
.image-row video:hover {
  transform: scale(1.030); /* მხოლოდ 1.5% გაზრდა */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* --- Responsive slider layout --- */

/* Desktop (default) */
.image-row {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
  }

  .slider {
	position: relative;
	overflow: hidden; /* აუცილებელია კლიკების მუშაობისთვის */
	width: 100%;
	max-width: 450px;
  }
  
  .slides {
	display: flex;
	transition: transform 0.8s ease-in-out;
  }
  
  .slides a {
	flex-shrink: 0;
	width: 100%;
  }
  
  .slides a img {
	display: block;
	width: 100%;
	object-fit: cover;
  }
  
  
  /* === FIX slider on mobile === */
@media (max-width: 768px) {

	.slider {
	  position: relative;
	  width: 100%;
	  max-width: 400px;
	  height: auto;
	  overflow: hidden; /* ❗️მთავარია — მეორე ფოტო აღარ გამოჩნდება ქვემოთ */
	  margin: 0 auto;
	}
  
	.slides {
	  display: flex;
	  transition: transform 0.5s ease-in-out;
	  width: 100%;
	}
  
	.slides img {
	  width: 100%;
	  height: auto;
	  object-fit: cover;
	  flex-shrink: 0;
	  border-radius: 8px;
	  display: block;
	}
  
	/* ისრების ზომა პატარა ეკრანზე */
	.prev, .next {
	  font-size: 18px;
	  padding: 6px 10px;
	 
	}
  
	.image-row figure {
	  width: 100%;
	  max-width: 420px;
	  margin: 0 auto;
	  text-align: center;
	}
  }
  