@font-face {
  font-family: 'Jupiter';
  src: url('font/Jupiter.otf') format('opentype');
}

@font-face {
  font-family: 'Gill Sans';
  src: url('fonts/GillSans.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Gill Sans MT', sans-serif;
  background-color: #1f2024;
  color: #ffffff;
}

/* NAVBAR */
.custom-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #2c2e38;
  z-index: 999;
  padding: 5px 0; /*If you change this, also change boddy padding top */
  transition: transform 0.4s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.nav-center img {
  height: 60px;    /*If you change this, also change boddy padding top */
}

.nav-left a,
.nav-right a {
  font-family: 'Jupiter';
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: #18ecf7;
  text-decoration: none;
}

body {
  margin: 0;
  padding-top: 70px;   /* Match navbar height navbar center image heignt + navbar padding*/
}

/* HERO */
.hero-portfolio {
  width: 100%;
  aspect-ratio: 16/5;
  background: url("assets/hero.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center; 
  position: relative;
}

.hero-content h1 {
  font-family: 'Jupiter';
  font-size: 5vw;
  color: #18ecf7;
  text-shadow:
    0 0 8px rgba(24, 236, 247, 0.5),
    0 0 18px rgba(24, 236, 247, 0.25);
}

/* TABS BAR */
.tabs {
  display: flex;
  width: 98%;                /* FIXED (no more overflow) */
  background: #1f2024;
  margin: 0 auto;
  border-bottom: none;
}

/* TAB BASE */
.tab {
  flex: 1;
  border: none;
  background: #1f2024;        /* Dark background always */
  font-family: 'Jupiter';
  font-size: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(18px, 2.5vw, 28px) 0;
  cursor: pointer;
  color: #18ecf7;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;

  /* More rounded corners */
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* ACTIVE TAB */

.portfolio-tabs > .container {
  padding-top: 60px;
}

.tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  right: -6px;
  height: 100%;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;

  box-shadow:
    -6px -6px 18px rgba(24,236,247,0.5),   /* strong top glow */
    -6px -8px 16px rgba(24,236,247,0.25), /* left top */
    6px -8px 16px rgba(24,236,247,0.25);  /* right top */

  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {

  .tab.active::before {
    box-shadow:
      -3px -3px 8px rgba(24,236,247,0.35),
      -3px -4px 8px rgba(24,236,247,0.2),
      3px -4px 8px rgba(24,236,247,0.2);
  }

}

.tab.active {
  background: #1f2024;
  color: #18ecf7;
  position: relative;
  z-index: 2;
}


/* Hover (only inactive) */
.tab:not(.active):hover {
  background: #2c2e38;
}

/* TAB CONTENT VISIBILITY */
.portfolio-tabs .tab-content {
  display: none;
}

.portfolio-tabs .tab-content.active {
  display: block;
}

/* PROJECTS */

/* PROJECT CARD BASE */
.project-card {
  position: relative;
  transition: transform 0.3s ease;
}

/* IMAGE GLOW ON HOVER */
.project-card:hover img {
  box-shadow:
    0 0 12px rgba(24,236,247,0.35),
    0 0 25px rgba(24,236,247,0.25);
  transition: box-shadow 0.3s ease;
}

/* Slight lift effect */
.project-card:hover {
  transform: translateY(-4px);
}

.project-card h3 {
  font-family: 'Jupiter';
  color: #18ecf7;
  font-size: 40px;
  margin-bottom: 1px;
}

.project-card p {
  font-family: 'Jupiter';
  color: #cefafe;
  font-size: 30px;
  margin-bottom: 15px;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}


/* POPUP OVERLAY */
.project-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

/* ACTIVE STATE */
.project-popup.active {
  opacity: 1;
  visibility: visible;
}

/* POPUP CONTENT */
.popup-content {
  background: #1f2024;
  width: 80vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 50px;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(24,236,247,0.15);
}

/* TITLE */
.popup-title {
  font-family: 'Jupiter';
  color: #18ecf7;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 0.08em;
}

/* CLOSE BUTTON */
.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.popup-close img {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.popup-close:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(24,236,247,0.4));
}

@media (max-width: 768px) {

  .popup-close {
    top: 15px;
    right: 15px;
  }

  .popup-close img {
    width: 32px;
    height: 32px;
  }

}


.popup-video-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 5px;
}

/* RESPONSIVE VIDEO */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* LONG BEHANCE-STYLE IMAGES */
.project-long-images {
  margin-top: 10px;
}

.project-long-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* PHOTO GRID */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 50px;
}

.photo-grid img {
  width: 100%;
  max-width: 500px;
  height: auto;  
  object-fit: cover;
}

.photo-title {
  font-family: 'Jupiter';
  color: #18ecf7;   /* strong cyan */
  letter-spacing: 0.08em;
  margin-bottom: 25px;
}

/* CONTACT */
.contact-section {
  background: #2c2e38;
  padding: 10px 0;
}

.contact-section .row {
  align-items: center;
}

.contact-section .col-md-4:nth-child(2) {
  text-align: center;
}

.contact-section h3{
  font-family: 'Jupiter';
  color: #18ecf7;   /* strong cyan */
  letter-spacing: 0.08em;
}

.contact-logo {
  max-height: 80px;
  width: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;        /* <-- CONTROL SPACE BETWEEN ICONS HERE */
  margin-top: 15px;
}

.social-links img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.08);

  /* Subtle cyan glow */
  filter:
    drop-shadow(0 0 6px rgba(24,236,247,0.4))
    drop-shadow(0 0 12px rgba(24,236,247,0.2));
}

/* MOBILE SPACING FOR CONTACT SECTION */
@media (max-width: 768px) {

  .contact-section .col-12 {
    margin-bottom: 35px;   /* Space between stacked columns */
  }

  .contact-section .col-12:last-child {
    margin-bottom: 0;      /* Remove extra space at bottom */
  }

}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background: #1f2024;
}


/* ===== PAGINA DRON ===== */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden; 
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Jupiter", serif;
  color: #fff; /* keep white, or change to #18ecf7 if desired */
}

.hero p {
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: #d1d5db;
  font-family: "Jupiter", serif;
}

/* ===== FEATURED WORKS ===== */
.featured-works {
  padding: 4rem 1rem;
}

.featured-works h2 {
  font-family: "Jupiter", serif;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
}

/* Card overrides */
.card {
  background: none;
  border: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover img {
  transform: scale(1.1);
}

.card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card:hover .overlay {
  opacity: 1;
}

.card .overlay img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s;
}

.card .overlay img:hover {
  transform: scale(1.5);
}

.card h3 {
  font-family: "Jupiter", serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-top: 0.5rem;
  font-weight: 500;
  color: #fff;
}

/* ===== TEXT-IMAGE SECTION ===== */
.text-image-section {
  padding: 4rem 1rem;
  background-color: #1f2024;  /* match site background */
  color: #fff;
}

.text-image-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Jupiter", serif;
  color: #18ecf7;              /* cyan accent */
}

.text-image-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}

.text-image-section img {
  border-radius: 0.5rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .hero {
    height: 60vh;    
  }
}

