:root {
  --bg-color: #0a0a0b;
  --text-color: #ffffff;
  --accent-color: #3d5afe;
  --secondary-color: #ff3d00;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-main: "Inter", sans-serif;
  --font-heading: "Outfit", sans-serif;
  --text-muted: rgba(255, 255, 255, 0.5);
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Cursor Aura */
.cursor-aura {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(61, 90, 254, 0.1) 0%,
    transparent 75%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s;
  mix-blend-mode: screen;
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 6%;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover .nav-icon {
  transform: translateY(-2px) scale(1.1);
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 100;
  pointer-events: none;
  padding-top: 60px;
  /* Account for fixed nav */
}

.hero-content .container {
  pointer-events: auto;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  text-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  letter-spacing: -3px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(61, 90, 254, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-5px);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  opacity: 0.5;
  /* Subdued as background */
  letter-spacing: 1px;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent-color) !important;
  transform: scale(1.3);
}

/* Hero Zoom Effect */
.swiper-slide .slide-bg {
  transition: transform 6s linear;
  transform: scale(1);
}

.swiper-slide-active .slide-bg {
  transform: scale(1.1);
}

/* Sections */
section {
  padding: 8rem 6%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0;
  position: relative;
}

.filter-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Footer Section */
footer {
  padding: 4rem 6% 0;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
}

.footer-heading-tags,
.footer-heading-tools {
  margin-top: 1.8rem;
}

/* Footer Reference Card */
.footer-ref-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.footer-ref-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-ref-card .ref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.footer-ref-card .ref-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  opacity: 0.6;
}

.footer-ref-card .ref-company-logo {
  height: 22px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1) brightness(2);
}

.footer-ref-card .ref-quote {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.footer-ref-card .ref-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-ref-card .ref-author {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-ref-card .ref-action {
  font-size: 0.65rem;
  color: var(--accent-color);
  letter-spacing: 1px;
  opacity: 0.7;
}

/* Footer Tags */
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-color);
}

.footer-links a i {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* Footer Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-contact li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact li a:hover {
  color: var(--text-color);
}

.footer-contact i {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
  opacity: 0.7;
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-circle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(61, 90, 254, 0.1);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  margin-left: -6%;
  margin-right: -6%;
  padding-left: 6%;
  padding-right: 6%;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-row span {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-bottom-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-ecosystem {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.35;
  margin-top: 0.6rem;
}

.footer-ecosystem a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.footer-ecosystem a:hover {
  color: var(--accent-color);
  opacity: 1;
}

/* Policy Page */
.policy-section {
  padding: 10rem 6% 4rem;
  min-height: 100vh;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
}

.policy-container h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.policy-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.policy-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.policy-card h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.policy-card ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

/* Project View Overlay */
.project-view {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 2000;
  display: none;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.close-pv {
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.close-pv:hover,
.close-lightbox:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--accent-color);
}

.project-view.active {
  opacity: 1;
}

.filter-btn {
  padding: 0.8rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Portfolio Section */
.work-section {
  background: linear-gradient(to bottom, #0a0a0b 0%, #111420 100%);
  position: relative;
}

/* Portfolio grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/11;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.item-overlay {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .item-overlay {
  opacity: 1;
}

.portfolio-item:hover .item-eye-icon {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* About Section */
.about-section {
  background-color: #0d0e14;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
}

.about-text h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.image-frame {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.02);
}

.image-frame.small-profile {
  max-height: 600px;
  height: auto;
  display: flex;
  justify-content: center;
}

.image-frame.small-profile .about-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.skills-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 4rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

/* Cloud Tag Styles */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0;
  justify-content: flex-start;
  align-items: center;
}

.skill-item {
  padding: 0.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: default;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.skill-item:nth-child(3n) {
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
}

.skill-item:nth-child(3n + 1) {
  background: rgba(255, 255, 255, 0.04);
}

.skill-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(61, 90, 254, 0.3);
  z-index: 2;
}

.skill-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 11, 0.95);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: pre-wrap;
  min-width: 200px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  display: none;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.skill-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(10, 10, 11, 0.95) transparent transparent transparent;
}

/* Contact Section Redesign - Screenshot Inspired */
.contact-section {
  padding: 10rem 6%;
  position: relative;
  background-image: url("../images/contact-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.9);
  z-index: -1;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 7rem;
}

.contact-header h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  letter-spacing: -1px;
}

.contact-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.contact-logo-img {
  height: 80px;
  width: auto;
  align-self: flex-start;
  filter: brightness(1.2);
}

.c-details h3 {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-heading);
}

.c-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.c-label {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-color);
  min-width: 110px;
}

.c-value {
  font-size: 1.4rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.c-value:hover {
  color: var(--accent-color);
  transform: translateX(8px);
}

.c-values {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links-row {
  margin-top: 2rem !important;
  align-items: center !important;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.social-icons a:hover svg {
  transform: scale(1.1);
}

.contact-card-side {
  display: flex;
  justify-content: flex-end;
}

.cta-glass-card {
  background: rgba(20, 25, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  padding: 5rem 4rem;
  border-radius: 40px;
  text-align: center;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon-big {
  margin-bottom: 3rem;
}

.cta-glass-card p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 4rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 1rem;
}

.btn-cyan-cta {
  display: block;
  padding: 1.5rem 2rem;
  background: #5eead4;
  color: #1e293b;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.btn-cyan-cta:hover {
  background: #2dd4bf;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(94, 234, 212, 0.4);
}

/* Responsive */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  padding: 12px;
  background: rgba(10, 10, 11, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(61, 90, 254, 0.4);
  border-color: var(--accent-color);
}

.mobile-menu-toggle:hover span {
  background: white;
}

/* Project View Gallery & Layout */
.pv-container {
  width: 85%;
  max-width: 1400px;
  margin: 0 auto;
}

.pv-content {
  padding-top: 100px;
  /* Space for the fixed header */
}

.pv-gallery-container {
  margin-bottom: 3rem;
}

.pv-main-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pv-main-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: cover;
  object-position: center;
}

.pv-thumbnails {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.pv-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pv-thumb:hover,
.pv-thumb.active {
  opacity: 1;
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.pv-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.pv-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.pv-separator {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 3rem 0;
}

.pv-tags-section {
  margin-top: 1rem;
}

.pv-tag-cloud.smaller .pv-tag {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .glass-nav {
    padding: 0.5rem 5%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(30, 41, 59, 0.92) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 20px 40px 20px;
    gap: 0.5rem;
    z-index: 1001;
    transform: translateY(-100%);
    transition:
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.6s ease;
    pointer-events: none;
    opacity: 0;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 8px;
  }

  .nav-links a:hover,
  .nav-links a:active {
    color: #ffffff;
    background: rgba(61, 90, 254, 0.3);
    transform: none;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Hide cursor aura on mobile/tablet */
  .cursor-aura {
    display: none;
  }

  section {
    padding: 6rem 5%;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .section-header h2 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .filter-tabs {
    gap: 0.8rem;
  }

  .filter-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .image-frame {
    max-width: 450px;
    margin: 0 auto;
  }

  .skills-grid {
    justify-content: center;
  }

  .contact-split {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .contact-info-side {
    text-align: center;
    align-items: center;
  }

  .contact-logo-img {
    align-self: center;
  }

  .c-details {
    width: 100%;
  }

  .c-item {
    justify-content: center;
  }

  .contact-card-side {
    justify-content: center;
  }

  .cta-glass-card {
    padding: 3.5rem 2rem;
  }

  .contact-header h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .glass-nav {
    padding: 0.5rem 4%;
  }

  .logo img {
    height: 50px !important;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    letter-spacing: -2px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 2rem;
    font-size: 0.95rem;
    min-height: 48px;
    /* Better touch target */
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-item {
    aspect-ratio: 16/10;
  }

  .section-header {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .section-header h2 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .filter-tabs {
    justify-content: center;
    width: 100%;
  }

  .filter-btn {
    min-height: 44px;
    /* Better touch target */
  }

  /* About Section Mobile */
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-text h2 {
    font-size: 2.2rem;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .skills-grid {
    justify-content: center;
  }

  .image-frame.small-profile {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Project View Mobile */
  .pv-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .pv-main-image {
    border-radius: 16px;
    margin-bottom: 2rem;
  }

  .pv-details {
    font-size: 1rem;
    line-height: 1.6;
  }

  .pv-container {
    width: 95%;
  }

  .pv-content {
    padding-top: 90px;
  }

  .pv-thumbnails {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .pv-thumb {
    width: 80px;
    height: 60px;
  }

  /* Contact Section Mobile */
  .contact-section {
    padding: 6rem 5%;
  }

  .contact-header h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .contact-header p {
    font-size: 1.1rem;
  }

  .c-label,
  .c-value {
    font-size: 1.3rem;
  }

  .social-icons a {
    width: 44px;
    height: 44px;
    min-height: 44px;
    /* Better touch target */
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-tags {
    justify-content: center;
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .footer-ecosystem {
    text-align: center;
  }

  .policy-container h1 {
    font-size: 1.8rem;
  }

  .policy-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .glass-nav {
    padding: 0.5rem 3%;
  }

  .logo img {
    height: 45px !important;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .hero-btns {
    max-width: 280px;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  section {
    padding: 5rem 4%;
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 5rem 4%;
  }

  .contact-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .contact-header p {
    font-size: 1rem;
  }

  .c-item {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  .c-label {
    font-size: 1.1rem;
    min-width: auto;
  }

  .c-value {
    font-size: 1.1rem;
  }

  .cta-glass-card {
    padding: 3rem 1.5rem;
  }

  .btn-cyan-cta {
    font-size: 1rem;
    padding: 1.3rem 1.8rem;
  }

  /* Project View */
  .pv-title {
    font-size: 1.8rem;
  }

  .pv-thumb {
    width: 70px;
    height: 50px;
  }

  .pv-content {
    padding-top: 80px;
  }

  .pv-details {
    font-size: 0.95rem;
  }

  /* Portfolio Items */
  .portfolio-item {
    aspect-ratio: 4/3;
  }

  .item-overlay {
    padding: 1.5rem;
  }

  .item-overlay h3 {
    font-size: 1.4rem !important;
  }

  .item-overlay p {
    font-size: 0.85rem !important;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.close-lightbox {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

/* Partners Carousel */
.partners-section {
  padding: 6rem 0 4rem;
  background: #050505;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--glass-border);
}
.partners-header {
  text-align: center;
  margin-bottom: 3rem;
}
.partners-title {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}
.partners-carousel-container {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  overflow: hidden;
  width: 100%;
  display: flex;
}
.partners-track {
  display: flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
  width: max-content;
  padding: 1rem 0;
}
.partner-logo-item {
  flex: 0 0 auto;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: all 0.5s ease;
  cursor: pointer;
}
.partner-logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}
.partner-logo-item img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.33%);
  } /* Assuming 3 sets, shift by 1/3 */
}

/* Reference Widget Mini */
.reference-card-mini {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1.2rem;
  border-radius: 20px;
  cursor: zoom-in;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.reference-card-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.reference-card-mini:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.reference-card-mini:hover::before {
  opacity: 1;
}
.ref-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.ref-icon {
  font-size: 2rem;
  color: var(--accent-color);
  line-height: 1;
  opacity: 0.5;
}
.ref-company-logo {
  height: 60px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.8;
}

.ref-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.9;
}
.ref-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.8rem;
}
.ref-author {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ref-action {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--accent-color);
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.8;
}
.reference-card-mini:hover .ref-action {
  opacity: 1;
  text-decoration: underline;
}
