/* ----- POPPINS FONT Link ----- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* ----- ADDITIONAL ANIMATIONS ----- */
/* Floating animation for icons and elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Typewriter effect for text */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkCursor {
  0%, 50% {
    border-right-color: rgba(255, 255, 255, 0.75);
  }
  51%, 100% {
    border-right-color: transparent;
  }
}

/* Gradient shift animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Pulse glow effect */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
  }
}

/* Subtle bob animation */
@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ----- SCROLL ANIMATIONS ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

.animate-fade-up {
  animation-name: fadeInUp;
}

.animate-fade-left {
  animation-name: fadeInLeft;
}

.animate-fade-right {
  animation-name: fadeInRight;
}

.animate-scale {
  animation-name: scaleIn;
}

/* ----- CURSOR EFFECTS ----- */
/* Use default cursor */
* {
  cursor: auto;
}

/* Custom cursor glow */
.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: all 0.1s ease-out;
  opacity: 0.6;
  display: none;
}

.cursor-glow.active {
  display: block;
}

/* Cursor dot (inner) */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: all 0.05s ease-out;
  display: none;
}

.cursor-dot.active {
  display: block;
}

/* Hover effect on interactive elements */
a, button, .btn, .skill-item, .project-card, .gallery-item, .client-logo-card, input, textarea, select {
  cursor: pointer;
}

/* Cursor enlarge on hover of interactive elements */
a:hover ~ .cursor-glow, 
button:hover ~ .cursor-glow,
.btn:hover ~ .cursor-glow,
.skill-item:hover ~ .cursor-glow,
.project-card:hover ~ .cursor-glow,
.gallery-item:hover ~ .cursor-glow,
.client-logo-card:hover ~ .cursor-glow {
  width: 60px;
  height: 60px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

/* ----- VARIABLES ----- */
:root {
  /* Monochrome (black & white) tokens */
  --body-color: #000000; /* black background */
  --color-white: #ffffff;

  --text-color: #ffffff; /* primary text (white on dark) */
  --text-color-second: #cfcfcf; /* secondary text */
  --text-color-third: #9f9f9f;

  --first-color: #ffffff; /* accents in white */
  --first-color-hover: #f2f2f2;

  --second-color: #0a0a0a; /* dark panels */
  --third-color: #bfbfbf;
  --first-shadow-color: rgba(0,0,0,0.6);

  --card-bg: rgba(255,255,255,0.03);
  --glass: rgba(255,255,255,0.02);
  --accent-shadow: 0 12px 40px rgba(255,255,255,0.04);
}

.nav_logo {
  display: flex;
  align-items: center;
}
.nav_logo img {
  width: 100px;
}

body.dark-mode {
  background-color: var(--body-color);
  color: var(--text-color);
}

/* ===== DARK THEME OVERRIDES ===== */
/* Global background and text */
body {
  background: radial-gradient(1200px 600px at 10% 10%, rgba(8,28,52,0.6), transparent), var(--body-color);
  color: var(--text-color);
}

/* Navigation: translucent dark bar */
nav {
  backdrop-filter: blur(8px);
}

.nav-link { color: var(--text-color-second); }
.active-link { color: var(--first-color); }

/* Hero / Featured */
.hero-bg-title { color: var(--first-color); opacity: 0.06; }
.featured-text-card span { background: rgba(255,255,255,0.04); color: var(--text-color); }
  filter: none;
.featured-text-info { color: var(--text-color-second); }

.image { box-shadow: 0 30px 80px rgba(2,8,23,0.8); background: linear-gradient(180deg, rgba(6,18,34,0.4), rgba(4,8,16,0.2)); }

/* Buttons: cyan gradient */
.btn {
  background: var(--color-white);
  color: var(--second-color);
  border: none;
  box-shadow: var(--accent-shadow);
}
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); }
.nav-button .btn { background: transparent; color: var(--first-color); border: 1px solid rgba(255,255,255,0.06); }
.featured-text-btn .cta { padding: 14px 40px; border-radius: 12px; font-size: 18px; font-weight: 600; text-decoration: none; }

/* Cards and panels */
.project-card, .experience-item, .award-item, .education-item, .gallery-item, .about-info, .project-box, .contact-info {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text-color-second);
}

.project-info h3 { color: var(--text-color); }
.project-tags span { background: rgba(255,255,255,0.03); color: var(--first-color); border: 1px solid rgba(255,255,255,0.04); }

/* Footer */
footer { background: transparent; color: var(--text-color-second); border-top: 1px solid rgba(255,255,255,0.03); }
.footer-logo h2 { color: var(--color-white); }
.social-icon { background: rgba(255,255,255,0.03); color: var(--first-color); }
.social-icon:hover { background: var(--first-color); color: var(--body-color); }

/* Skills items */
.skill-item { background: rgba(255,255,255,0.03); color: var(--text-color-second); }
.skill-item i { color: var(--first-color); }

/* Client logos area: darker */
.client-logos { background: transparent; }

/* Projects container tweak for contrast */
.projects { background: transparent; }

/* Minor text color adjustments */
h1, h2, h3, h4, h5, h6 { color: var(--text-color); }
p, span, li, a { color: var(--text-color-second); }

/* subtle focus glow */
a:focus, .btn:focus { box-shadow: 0 6px 20px rgba(255,255,255,0.06); outline: none; }

/* Centered rounded panel like the mockup */
body::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  width: min(1300px, calc(100% - 48px));
  height: calc(100% - 64px);
  background: linear-gradient(180deg, rgba(6,12,30,0.6), rgba(3,6,12,0.6));
  border-radius: 18px;
  box-shadow: 0 40px 80px rgba(2,8,23,0.7), inset 0 1px 0 rgba(255,255,255,0.02);
  z-index: 0;
  pointer-events: none;
}

/* ensure main content sits above the panel */
nav, main.wrapper, footer {
  position: relative;
  z-index: 2;
}

/* subtle focus glow */

/* ----- BASE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html {
  scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar {
  width: 10px;
  border-radius: 25px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* ---##-- REUSABLE CSS --##--- */

/* GLOBAL BUTTON DESIGN */
.btn {
  font-weight: 600;
  padding: 13px 20px;
  background: var(--first-color);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 22px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Button hover state */
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255,255,255,0.1);
}

/* Button active state */
.btn:active {
  transform: none;
  box-shadow: none;
}

/* Button icon */
.btn i {
  font-size: 18px;
  color: white;
  margin: 0;
  transition: none;
}

/* Specific style for download CV button in nav */
.nav-button .btn {
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 600;
  background: var(--first-color);
  color: white;
  border: none;
  box-shadow: none;
}

/* Hover state for nav button */
.nav-button .btn:hover {
  background: rgba(255,255,255,0.06);
  transform: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* ----- GLOBAL BUTTON DESIGN ----- */
.btn {
  font-weight: 600;
  padding: 10px 24px;
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: var(--first-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn i {
  font-size: 18px;
  margin: 0;
  transition: transform 0.3s ease;
}

.btn:hover {
  background: #f8f9ff;
  color: var(--first-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Specific style for download CV button */
.nav-button .btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

.nav-button .btn i {
  color: var(--first-color);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i {
  font-size: 16px;
}

/* ------- BASE -------- */
body {
  background: var(--body-color);
}
.container {
  width: 100%;
  position: relative;
}

/* ----- NAVIGATION BAR ----- */
nav {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 90px;
  line-height: 90px;
  background: var(--body-color);
  padding-inline: 9vw;
  transition: 0.3s;
  z-index: 100;
}
.nav-logo {
  position: relative;
}
.nav-name {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-color-third);
}
.nav-logo span {
  position: absolute;
  top: -15px;
  right: -20px;
  font-size: 5em;
  color: var(--text-color-second);
}
.nav-menu,
.nav_menu_list {
  display: flex;
}
.nav-menu .nav_list {
  list-style: none;
  position: relative;
}
.nav-link {
  text-decoration: none;
  color: var(--text-color-second);
  font-weight: 500;
  padding-inline: 15px;
  margin-inline: 20px;
}
.nav-menu-btn {
  display: none;
}
.nav-menu-btn i {
  font-size: 28px;
  cursor: pointer;
}
.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}
.icon-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-color);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.icon-btn i { font-size: 16px; }
.lang-select {
  background: rgba(255,255,255,0.03);
  color: var(--text-color);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.active-link {
  position: relative;
  color: var(--first-color);
  transition: 0.3;
}
.active-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  background: var(--first-color);
  border-radius: 50%;
}



/* ----- WRAPPER DESIGN ----- */
.wrapper {
  padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */

/* ----- FEATURED / HERO BOX ----- */
.featured-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  min-height: 720px;
  overflow: visible;
}

/* Big background title */
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.18;
    text-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(255,255,255,0.4), 0 0 60px rgba(255,255,255,0.2);
  }
  50% {
    opacity: 0.22;
    text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(255,255,255,0.5), 0 0 90px rgba(255,255,255,0.3);
  }
}

.hero-bg-title {
  position: absolute;
  left: 62%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  color: var(--first-color);
  font-size: clamp(100px, 18vw, 220px);
  letter-spacing: -6px;
  line-height: 0.85;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  text-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(255,255,255,0.4), 0 0 60px rgba(255,255,255,0.2);
  animation: glowPulse 4s ease-in-out infinite;
}

.featured-text {
  position: relative;
  z-index: 3;
  width: 48%;
  padding-left: 6vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.featured-text-card span {
  background: #111;
  color: var(--color-white);
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  display: inline-block;
}
.script-line {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-color-second);
  margin-block: 8px;
}
.script-line .script {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--text-color-second);
  font-size: 62px;
}
.featured-text-info {
  font-size: 16px;
  max-width: 420px;
  color: #6b6b6b;
}

.featured-subtitle {
  font-size: 14px;
  color: var(--text-color-third);
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.featured-text-btn { /* single CTA */
  margin-top: 10px;
}
.featured-text-btn .cta {
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.featured-image {
  position: relative;
  width: 52%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}
.image {
  width: 420px;
  height: 420px;
  border-radius: 48% 52% 48% 52%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(54,88,193,0.06), rgba(54,88,193,0.02));
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(95%);
  transform: translateY(0);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.image:hover {
  transform: translateY(-8px) scale(1.02);
}
.image:hover img { filter: none; }

@keyframes imgFloat {
  50% {
    transform: translateY(12px);
    border-radius: 40% 60% 40% 60%;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-bg-title { left: 58%; font-size: clamp(72px, 30vw, 180px); top: 48%; }
  .image { width: 360px; height: 360px; }
}
@media (max-width: 800px) {
  .featured-box { flex-direction: column; padding-block: 30px; min-height: auto; gap: 30px; }
  .featured-text, .featured-image { width: 100%; }
  .featured-image { justify-content: center; padding: 0 20px; }
  .hero-bg-title { left: 50%; font-size: clamp(36px, 35vw, 100px); top: 35%; opacity: 0.08; }
  .image { width: 280px; height: 280px; margin: 0; border-radius: 50%; }
  .script-line { font-size: 32px; }
  .script-line .script { font-size: 38px; }
  .featured-text-info { max-width: 100%; font-size: 14px; }
  .featured-text { align-items: center; text-align: center; padding-left: 0; padding: 0 20px; gap: 14px; }
  .featured-text-card { display: none; }
  .featured-subtitle { font-size: 13px; }
  .featured-text-btn .cta { padding: 12px 32px; font-size: 14px; }
}
.scroll-btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 50px;
  gap: 5px;
  text-decoration: none;
  color: var(--text-color-second);
  background: var(--color-white);
  border-radius: 30px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i {
  font-size: 20px;
}

/* ----- MAIN BOX ----- */
.section {
  padding-block: 5em;
}
.row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 50px;
}
.col {
  display: flex;
  width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header {
  text-align: center;
  margin-bottom: 5em;
}
.top-header h1 {
  font-weight: 600;
  color: var(--text-color-second);
  margin-bottom: 10px;
}
.top-header span {
  color: #999;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color-second);
  margin-bottom: 15px;
}

/* ----- ABOUT INFO ----- */
.about-info {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-block: 30px 70px;
  padding-inline: 20px;
  width: 100%;
  background: var(--color-white);
  box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
  border-radius: 20px;
}
.about-info p {
  text-align: center;
  font-size: 15px;
  color: #777;
}
.about-btn button {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: var(--first-color);
  color: var(--color-white);
  border-radius: 30px;
}
.about-btn button:hover {
  background: var(--first-color-hover);
}

/* ----- ABOUT / SKILLS BOX ----- */
.skills-box {
  margin: 10px;
}
.skills-header {
  margin-bottom: 30px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.skills-list span {
  font-size: 14px;
  background: var(--first-color);
  color: var(--color-white);
  padding: 2px 10px;
  border-radius: 5px;
}

/* ----- PROJECTS BOX ----- */
.project-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.project-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 30%;
  height: 250px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
  overflow: hidden;
}
.project-box > i {
  font-size: 50px;
  color: #00b5e7;
  margin-bottom: 25px;
}
.project-box label {
  font-size: 15px;
  color: #777;
}
.project-box::after,
.contact-info::after {
  content: "";
  position: absolute;
  bottom: -100%;
  background: var(--second-color);
  width: 100%;
  height: 100%;
  transition: 0.4s;
  z-index: 1;
}
.project-box:hover.project-box::after,
.contact-info:hover.contact-info::after {
  bottom: 0;
}
.project-box:hover.project-box i,
.project-box:hover.project-box > h3,
.project-box:hover.project-box > label {
  color: var(--color-white);
  z-index: 2;
}

/* ----- CONTACT BOX ----- */
.contact-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 30px;
  width: 100%;
  height: 315px;
  background: var(--second-color);
  border-radius: 10px;
  box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
  overflow: hidden;
}
.contact-info > h2 {
  color: var(--color-white);
  margin-bottom: 20px;
}
.contact-info > p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  margin-block: 5px;
}
.contact-info p > i {
  font-size: 18px;
}
.contact-info::after {
  background: var(--color-white);
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i {
  color: #777;
  z-index: 2;
}

/* ----- CONTACT FORM ----- */
.form-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.form-inputs {
  display: flex;
  gap: 10px;
  width: 100%;
}
.input-field {
  width: 50%;
  height: 55px;
  background: transparent;
  border: 2px solid #aaa;
  border-radius: 10px;
  padding-inline: 20px;
  outline: none;
}
textarea {
  width: 100%;
  height: 250px;
  background: transparent;
  border: 2px solid #aaa;
  border-radius: 10px;
  padding: 15px 20px;
  outline: none;
  resize: none;
}
.form-button > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--second-color);
  color: var(--color-white);
}
.form-button > .btn:hover {
  background: #545c73;
}
.form-button i {
  font-size: 18px;
  rotate: -45deg;
}

/* ----- FOOTER BOX ----- */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 30px;
  background: #f8f8f8;
  padding-block: 40px 60px;
}
.top-footer p {
  font-size: 25px;
  font-weight: 600;
}
.middle-footer .footer-menu {
  display: flex;
}
.footer_menu_list {
  list-style: none;
}
.footer_menu_list a {
  text-decoration: none;
  color: var(--text-color-second);
  font-weight: 500;
  margin-inline: 20px;
}
.footer-social-icons {
  display: flex;
  gap: 30px;
}
.bottom-footer {
  font-size: 14px;
  margin-top: 10px;
}

/* ===== FOOTER STYLES ===== */
footer {
  background-color: transparent;
  padding: 80px 0 40px;
  margin-top: 120px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: start;
}

/* Left: Hero section with heading and email */
.footer-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-hero h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
}

.footer-email-wrapper {
  position: relative;
  width: fit-content;
}

.footer-email {
  font-size: 24px;
  color: var(--text-color-second);
  margin: 0;
  padding-bottom: 8px;
}

.email-underline {
  width: 100%;
  height: 20px;
  margin-top: -12px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Right: Grid of sections */
.footer-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color-second);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.footer-section p {
  font-size: 16px;
  color: var(--text-color);
  margin: 0;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-color);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 18px;
}

.social-icon:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-color-second);
  font-size: 14px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-link {
  color: var(--text-color-second);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-sections-grid {
    grid-template-columns: 1fr;
  }

  .footer-hero h2 {
    font-size: 28px;
  }

  .footer-email {
    font-size: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--first-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-color-second);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--first-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  color: var(--first-color);
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--first-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #eaeaea;
}

.footer-bottom p {
  color: var(--text-color-second);
  font-size: 14px;
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-section {
    width: 100%;
  }
  
  .footer-section h3 {
    margin-bottom: 15px;
  }
}

/* FOOTER STYLES (OLD VERSION - REPLACED) - DELETED */

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.footer-logo {
  flex: 1;
  max-width: 400px;
}

.footer-logo h2 {
  color: var(--first-color);
  font-size: 28px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--text-color-second);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 60px;
}

.footer-section {
  min-width: 180px;
}

.footer-section h3 {
  color: var(--text-color-second);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--first-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
  color: var(--text-color-second);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
}

.footer-bottom p {
  color: var(--text-color-second);
  font-size: 14px;
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-right {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }
  
  .footer-logo {
    max-width: 100%;
  }
  
  .footer-section {
    width: 100%;
  }
}
/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px) {
  .featured-text {
    padding: 0;
  }
  .image,
  .image img {
    width: 320px;
    height: 320px;
  }
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
  .nav-button {
    display: none;
  }
  .nav-menu.responsive {
    left: 0;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    width: 100%;
    min-height: 450px;
    height: 90vh;
    transition: 0.3s;
  }
  .nav_menu_list {
    flex-direction: column;
  }
  .nav-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .featured-box {
    flex-direction: column;
    justify-content: center;
    height: 100vh;
  }
  .featured-text {
    width: 100%;
    order: 2;
    justify-content: center;
    align-content: flex-start;
    min-height: 60vh;
  }
  .social_icons {
    margin-top: 2em;
  }
  .featured-image {
    order: 1;
    justify-content: center;
    min-height: 150px;
    width: 100%;
    margin-top: 65px;
  }
  .image,
  .image img {
    width: 150px;
    height: 150px;
  }
  .row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
  }
  .col {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .about-info,
  .contact-info {
    width: 100%;
  }
  .project-container {
    justify-content: center;
  }
  .project-box {
    width: 80%;
  }
}

/* Experience Section */
#experience {
  padding: 80px 0;
  background: var(--body-color);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.experience-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    padding: 0 20px;
  }
}

/* If you want to make it two columns on larger screens */
@media (min-width: 992px) {
  .experience-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    gap: 30px;
  }
}

/* Awards & Education Section */
#awards-education {
  padding: 80px 0;
  background: var(--body-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-color-second);
  position: relative;
  font-size: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--first-color);
}

.awards-education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
}

.award-item, .education-item, .certification-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-item:hover, .education-item:hover, .certification-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (min-width: 768px) {
  .awards-education-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    padding: 0 20px;
  }
  
  .education-column {
    margin-top: 0;
  }
}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */

@media only screen and (max-width: 540px) {
  .featured-name {
    font-size: 40px;
  }
  .project-box {
    width: 100%;
  }
  .form-inputs {
    flex-direction: column;
  }
  .input-field {
    width: 100%;
  }
}

.experience {
  padding: 20px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.experience-item {
  margin-bottom: 20px;
}

.experience-title {
  font-size: 20px;
  margin-bottom: 5px;
}

.experience-description {
  margin-bottom: 10px;
}

.experience-date {
  color: #888;
  font-style: italic;
}

/* About Section */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  margin-bottom: 50px;
}

.about-text h3 {
  font-size: 24px;
  color: var(--text-color-second);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color-second);
  max-width: 700px;
  margin: 0 auto;
}

/* Skills Carousel */
.skills-carousel-container {
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  overflow: hidden;
}

.skills-carousel-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-color-second);
  font-size: 24px;
  font-weight: 600;
}

.skills-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.skills-track {
  display: flex;
  gap: 20px;
  padding: 15px 0;
  animation: scroll 40s linear infinite;
  width: calc(120px * 16);
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 100px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(255,255,255,0.15);
  background: var(--first-color);
  color: white;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item:hover i,
.skill-item:hover span {
  color: white;
  transform: scale(1.1);
}

.skill-item i {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--first-color);
  transition: all 0.3s ease;
}

.skill-item span {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-align: center;
  transition: all 0.3s ease;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100px * 8));
  }
}

.skills-carousel:hover .skills-track {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-track {
    gap: 12px;
    animation-duration: 30s;
  }
  
  .skill-item {
    min-width: 80px;
    height: 90px;
    padding: 12px;
  }
  
  .skill-item i {
    font-size: 26px;
  }
  
  .skill-item span {
    font-size: 12px;
  }
  
  .about-text {
    padding: 0 20px;
  }
  
  .about-text p {
    font-size: 15px;
  }
}
/* Reduce space between hero and about section */
#about {
  padding-top: 20px;  /* Reduced from 50px to 20px */
}

/* Adjust the featured box height */
.featured-box {
  min-height: auto;
  padding-bottom: 20px;  /* Reduced from 50px to 20px */
  margin-bottom: 0;      /* Ensure no extra margin */
}

/* Adjust section padding */
.section {
  padding: 40px 0;  /* Reduced from default padding */
}

/* Ensure no extra margin on the first section */
.featured-box {
  margin-bottom: 0;
}

/* Client Logos Section */
.client-logos {
  padding: 60px 0;
  background: transparent;
}

.client-logos .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.client-logos .section-title {
  text-align: center;
  color: var(--text-color-second);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.client-logos .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--first-color);
}

.client-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.client-logo {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  opacity: 1;
}

.client-logo img {
  max-width: 120px;
  height: auto;
  filter: none;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  transform: scale(1.05);
}

/* New: logo cards style (white background) */
.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  min-width: 160px;
  height: 72px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
}

.client-logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
  opacity: 0;
  border-radius: 12px;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.client-logo-card img { max-height: 40px; max-width: 100%; filter: none; opacity: 1; transition: transform 0.3s ease; }

.client-logo-card:hover { 
  transform: translateY(-12px) scale(1.04); 
  box-shadow: 0 24px 50px rgba(0,0,0,0.2), 0 0 40px rgba(54,88,193,0.1); 
  background: #fafafa;
}

.client-logo-card:hover::before {
  opacity: 1;
}

.client-logo-card:hover img {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .client-logo-card { min-width: 120px; height: 60px; padding: 14px 18px; }
  .client-logo-card img { max-height: 34px; }
}

/* Responsive styles */
@media (max-width: 768px) {
  .client-logos {
    padding: 40px 0;
  }
  
  .client-logos-grid {
    gap: 30px;
  }
  
  .client-logo {
    flex: 0 0 calc(50% - 30px);
    text-align: center;
  }
  
  .client-logo img {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .client-logos-grid {
    gap: 20px;
  }
  
  .client-logo {
    flex: 0 0 calc(50% - 20px);
  }
  
  .client-logo img {
    max-width: 80px;
  }
}

/* Client Logos Section */
.client-logos {
  padding: 60px 0;
  background: transparent;
}

.client-logos .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.client-logos .section-title {
  text-align: center;
  color: var(--text-color-second);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.client-logos .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--first-color);
}

.client-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.client-logo {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  opacity: 1;
}

.client-logo img {
  max-width: 120px;
  height: auto;
  filter: none;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Responsive styles */
@media (max-width: 768px) {
  .client-logos {
    padding: 40px 0;
  }
  
  .client-logos-grid {
    gap: 30px;
  }
  
  .client-logo {
    flex: 0 0 calc(50% - 30px);
    text-align: center;
  }
  
  .client-logo img {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .client-logos-grid {
    gap: 20px;
  }
  
  .client-logo {
    flex: 0 0 calc(50% - 20px);
  }
  
  .client-logo img {
    max-width: 80px;
  }
}
/* Projects Section */
.projects {
  padding: 60px 0 30px;
  background-color: transparent;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.projects-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.projects-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.projects-grid {
  display: inline-flex;
  gap: 30px;
  padding: 0 20px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.project-card {
  flex: 0 0 350px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 40px rgba(255,255,255,0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.project-card:hover::before {
  opacity: 1;
}

.project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-image img,
.gallery-item img,
.team-card img,
.client-logo img {
  filter: none !important;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  margin: 0 0 12px 0;
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-info p {
  color: var(--text-color-second);
  font-size: 0.9rem;
  margin: 0 0 16px 0;
  line-height: 1.5;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--first-color);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--first-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.project-link i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(4px);
}

/* Add scroll indicator */
.scroll-indicator {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projects-container:hover + .scroll-indicator,
.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator i {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(10px);
  }
  60% {
    transform: translateX(5px);
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .project-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 30px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .project-card {
    flex: 0 0 280px;
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* Projects Section - Auto Scroll */
#projects {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.projects-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.projects-grid {
  display: flex;
  gap: 25px;
  padding: 20px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  cursor: grab;
}

.projects-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.projects-grid:active {
  cursor: grabbing;
}

.project-card {
  flex: 0 0 350px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Photo Gallery Section */
#gallery {
  padding: 30px 0 80px;
  background: var(--body-color);
  margin-top: -30px;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover {
  transform: scale(1.08) rotateY(2deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(255,255,255,0.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.1) rotate(1deg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-size: 16px;
  margin-top: 60px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ===== Equinox-like refinements (overrides) ===== */
/* Larger hero typography, white CTA, glass panels, bottom blue ribbon */
.hero-bg-title { opacity: 0.06 !important; }
.script-line { font-size: 56px !important; font-weight: 700 !important; color: var(--text-color) !important; text-shadow: 0 6px 30px rgba(0,0,0,0.6); }
.script-line .script { font-size: 86px !important; font-weight: 700 !important; }
.featured-text-info { color: var(--text-color-second) !important; }

.featured-text-btn .cta { padding: 14px 40px !important; border-radius: 12px !important; font-size: 18px !important; font-weight: 600 !important; text-decoration: none !important; }
.featured-text-btn .cta.secondary { background: transparent !important; color: var(--text-color-second) !important; border: 1px solid rgba(255,255,255,0.06) !important; }

.image { width: 420px !important; height: 420px !important; border-radius: 50% !important; box-shadow: 0 40px 100px rgba(2,8,23,0.8) !important; }

.project-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)) !important; border-radius: 14px !important; box-shadow: 0 20px 50px rgba(2,8,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02) !important; border: 1px solid rgba(255,255,255,0.04) !important; }
.project-card:hover { transform: translateY(-12px) scale(1.01) !important; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 6px 30px rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,0.06) !important; }

.gallery-item { border-radius: 12px !important; box-shadow: 0 16px 40px rgba(2,8,23,0.6) !important; }

#gallery { background: transparent !important; margin-top: 30px !important; }

.featured-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: -80px; height: 220px; background: radial-gradient(600px 200px at 20% 40%, rgba(255,255,255,0.06), transparent 20%), radial-gradient(600px 200px at 80% 60%, rgba(255,255,255,0.04), transparent 20%); filter: blur(30px); z-index: 1; pointer-events: none; }

/* Tweak nav to sit visually inside the panel */
nav { background: transparent !important; padding-inline: calc((100% - min(1200px, 100%)) / 2 + 28px) !important; }

/* reduce opacity on big background title for desktop */
@media (min-width: 1100px) {
  .hero-bg-title { opacity: 0.04 !important; }
}


/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    aspect-ratio: 16/9;
  }
}

/* ===== Services & Team refinements to match the mockup ===== */
.section-title { text-transform:none; font-weight:700; letter-spacing: -0.2px; }
.section-title .accent { color: var(--first-color); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 20px 50px rgba(2,8,23,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: var(--first-color);
  font-size: 22px;
  margin-bottom: 8px;
}
.service-card h4 { margin:0; color:var(--text-color); font-size:18px; }
.service-card p { margin:0; color:var(--text-color-second); font-size:14px; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 40px 120px rgba(255,255,255,0.04); }

/* Team section */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.team-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 20px 50px rgba(2,8,23,0.6);
}
.team-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; filter: grayscale(80%); }
.team-card .meta { display:flex; flex-direction:column; gap:8px; }
.team-card .meta h4 { margin:0; color:var(--text-color); }
.team-card .meta p { margin:0; color:var(--text-color-second); font-size:14px; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}


/* Light mode overrides (applied when <body class="light-mode">) */
body.light-mode {
  /* Monochrome light mode */
  --body-color: #ffffff;
  --color-white: #ffffff;

  --text-color: #0b0b0b;
  --text-color-second: #333333;
  --text-color-third: #666666;

  --first-color: #000000;
  --first-color-hover: #111111;

  --second-color: #ffffff;
  --third-color: #777777;
  --first-shadow-color: rgba(0,0,0,0.06);

  --card-bg: rgba(0,0,0,0.04);
  --glass: rgba(0,0,0,0.02);
  --accent-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

/* Monochrome button & control overrides for each mode */
body.dark-mode .btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 6px 20px rgba(255,255,255,0.02) !important;
}

body.light-mode .btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04) !important;
}

body.dark-mode .icon-btn { border-color: rgba(255,255,255,0.06); color: var(--text-color); background: rgba(255,255,255,0.02); }
body.light-mode .icon-btn { border-color: rgba(0,0,0,0.06); color: var(--text-color); background: rgba(0,0,0,0.02); }
body.dark-mode .lang-select { background: rgba(255,255,255,0.03); color: var(--text-color); border-color: rgba(255,255,255,0.04); }
body.light-mode .lang-select { background: rgba(0,0,0,0.03); color: var(--text-color); border-color: rgba(0,0,0,0.06); }

/* Nav active link visible in both modes */
.active-link { color: var(--text-color) !important; }