@charset "utf-8";

/* =============================================
   BASE STYLES & RESETS
   ============================================= */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Document base styles */
body {
  font-family: "funnel sans", sans-serif;
  font-weight: 100;
  font-size: 13px;
  padding-top: 80px;
  margin: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Typography */
h1 {
  font-size: 40px;
  margin: 20px 0 10px 30px;
  color: #413f4c;
  font-family: 'Funnel Display';
  line-height: 0.9;
  font-weight: 700;
  text-align: left;
}
.portfolio-header hr {
  border: none;
  height: 4px;
  background-color: #FD2E0D;
  margin: 10px 30px 0px 30px;
  transition: all 0.3s ease;
}

h3 {
  margin: 0 0 0px;
  font-size: 32px;
  font-weight: 100;
  font-family: 'Funnel Display';
  line-height: 36px;
}

/* Links & interactive elements */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease-in-out;
}

a:hover {
  color: #e73700;
}

button {
  outline: none !important;
}

/* Utility classes */
.clear {
  clear: both;
}

/* =============================================
   LAYOUT STRUCTURES
   ============================================= */

.porta {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 5%;
  padding-left: 10%;
  padding-right: 10%;
}

footer {
  display: block;
  width: 100%;
  text-align: center;
  margin: 10px 0;
  box-sizing: border-box;
}

footer p {
  color: #9C9FB2;
  font-size: 12px;
  font-family: 'Funnel Sans', sans-serif;
}

/* =============================================
   LOADER ANIMATION
   ============================================= */

#splash {
  background: #EE4036;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: 
    bgStay 1s ease-out forwards,
    bgSlideUp 1s ease-in 1s forwards;
}

#loader {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%,0);
}

#loader:after {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -8px;
  bottom: -170px;
  width: 3px;
  background: #fff;
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  height: 200px;
}

#loader:before {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: 8px;
  bottom: -190px;
  width: 3px;
  background: #000;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 100%);
  height: 200px;
}

#splash .anim {
  height: 100%;
  position: absolute;
  left: 50%;
  width: 100px;
  transform: translate(-50%,100%);
  animation: planeRise 3s ease-out forwards;
}

/* Animation keyframes */
@keyframes planeRise {
  0% { transform: translate(-50%,110%); }
  50% { transform: translate(-50%,50%); }
  100% { transform: translate(-50%,0%); }
}

@keyframes bgStay {
  0%, 100% { transform: translateY(0); }
}

@keyframes bgSlideUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  background: linear-gradient(-45deg, #767488, #EF4136, #413F4C, #767488, #BBBCCC);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.logo a {
  display: inline-block;
  height: 100%;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  color: white;
  font-family: 'funnel display';
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #FD2E0D;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =============================================
   PORTFOLIO COMPONENTS
   ============================================= */

.portfolio-header {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 0px;
}

.portfolio-header:hover h1 {
  color: #FD2E0D;
}

.game-section {
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.3s ease;
  padding: 0px 10px;
}

.game-section.expanded {
  max-height: 500px;
  padding: 10px 0px 0px 10px !important;
}
.portfolio-block.active .portfolio-header hr {
  opacity: 0;
  height: 0;
  margin: 0;
}

/* =============================================
   OWL CAROUSEL CUSTOM STYLES
   ============================================= */

/* Remove dots navigation */
.owl-carousel .owl-dots {
  display: none !important;
}


/* Adjust nav buttons to match new edge-to-edge layout */
.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%; /* Changed from calc(100% + 80px) */
  left: 0; /* Changed from -40px */
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 10px; /* Add small padding so buttons don't touch viewport edges */
}

.owl-carousel .owl-nav button {
  pointer-events: all;
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  background-color: #FD2E0D !important;
  color: white !important;
  font-size: 30px !important;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  transition: all 0.3s ease;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 0 !important;
  line-height: 50px;
  text-align: center;
  box-sizing: border-box !important;
  appearance: none !important;
}

/* Force circle in all states */
.owl-carousel .owl-nav button:hover,
.owl-carousel .owl-nav button:focus {
  border-radius: 50% !important;
  background-color: #000 !important;
  transform: scale(1.1);
}

.owl-carousel .owl-nav button:focus {
  outline: none;
}

/* Original untouched styles below remain exactly the same */
.owl-carousel .owl-stage {
  margin: 0px 0;
  display: flex;
  align-items: stretch;
}

.owl-carousel .item {
  margin-left: 0px; /* Keep small margin between items */
  width: 280px;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #fff no-repeat center center / cover;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.owl-carousel .item:hover {
  width:400px;
}

.owl-carousel .item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0) 30%, 
    rgba(0, 0, 0, 0.6) 100%);
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.owl-carousel .item:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0) 10%, 
    rgba(0, 0, 0, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.owl-carousel .item:hover:before {
  opacity: 0;
}

.owl-carousel .item:hover:after {
  opacity: 1;
}

.owl-carousel .item-desc {
  padding: 20px;
  color: #fff;
  position: relative;
  z-index: 2;
  min-height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.owl-carousel .item-desc h3 {
  margin: 0 0 0px;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.owl-carousel .item-desc p {
  margin: 0;
  opacity: 0;
  max-height: 0;
  transition: all 0.6s ease-in-out;
  line-height: 1.4;
}

.owl-carousel .item:hover .item-desc p {
  opacity: 1;
  max-height: 100px;
  margin-top: 10px;
}

/* =============================================
   RESPONSIVE STYLES - Updated for edge-to-edge
   ============================================= */

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
   h1 {
    font-size: 35px;
    margin-left: 30px;
  }
  .portfolio-header hr {
  margin: 10px 30px 0px 30px;
	}
  h3 {
    font-size: 30px;
    line-height: 32px;
  }
  .owl-carousel .item {
    width: 260px;
    height: 325px;
  }
  .owl-carousel .item:hover {
    width: 400px;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .game-section.expanded {
      padding: 10px 0px 0px 10px !important;
  }
    h1 {
    font-size: 30px;
    margin-left: 30px;
  }
  .portfolio-header hr {
  margin: 10px 30px 0px 30px;
	}
  h3 {
    font-size: 28px;
    line-height: 32px;
  }
  .porta {
    padding-left: 20px;
    padding-right: 20px;
  }
  .owl-carousel .item {
    width: 240px;
    height: 300px;
  }
  .owl-carousel .item:hover {
    width: 350px;
  }
  .owl-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    font-size: 20px !important;
    line-height: 40px !important;
    border-radius: 50% !important;
  }
  .owl-carousel .owl-nav {
    padding: 0 15px;
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  .game-section.expanded {
      padding: 10px 0px 0px 10px !important;
  }
  
  body {
    font-size: 12px;
  }
  h1 {
    font-size: 25px;
    margin-left: 25px;
  }
  .portfolio-header hr {
  height: 4px;
  margin: 10px 30px 00px 25px;
	}
  h3 {
    font-size: 25px;
    line-height: 24px;
  }
  .porta {
    padding-left: 20px;
    padding-right: 20px;
  }
  .game-section {
    padding: 0 20px !important;
  }
  .owl-carousel .item {
    width: 200px;
    height: 250px;
  }
  .owl-carousel .item:hover {
    width: 270px;
  }
  .owl-carousel .item-desc {
    padding: 15px;
  }
  .owl-carousel .owl-nav {
    width: 100%;
    left: 0;
    padding: 0 10px;
  }
  .owl-carousel .owl-nav button {
    width: 36px;
    height: 36px;
    font-size: 18px !important;
    line-height: 36px !important;
    border-radius: 50% !important;
  }
  /* Mobile menu styles remain untouched */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0rem;
    background-color: #FFF;
    box-shadow: 0 14px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .nav-links a {
    margin: 0.5rem 0;
    color: #333;
  }

  .nav-links.active {
    display: flex;
  }
}