@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM (NOTHING TECH STYLE)
   ========================================== */
:root {
  --bg-dark: #000000;
  --bg-card: rgba(18, 18, 18, 0.7);
  --bg-nav: rgba(8, 8, 8, 0.85);
  --accent-red: #ff003c;
  --accent-white: #ffffff;
  
  --grad-cyan-blue: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
  --grad-purple-cyan: linear-gradient(135deg, #a3a3a3 0%, #ffffff 100%);
  --grad-full: linear-gradient(135deg, #ffffff 0%, #737373 50%, #ffffff 100%);
  --grad-dark-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #525252;
  
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-glow: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
  --glow-shadow-cyan: 0 0 20px rgba(255, 255, 255, 0.15);
  --glow-shadow-purple: 0 0 20px rgba(255, 0, 60, 0.25);

  --font-sans: 'Outfit', sans-serif;
  --font-display: 'Space Mono', monospace;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-sans);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  /* Nothing Tech signature background dot-mesh pattern */
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* ==========================================
   UTILITY STYLES
   ========================================== */
.gradient-text {
  background: var(--grad-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-alt {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 12px; /* Less rounded for Nothing OS industrial aesthetic */
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

section {
  position: relative;
  padding: 120px 8% 80px 8%;
  z-index: 2;
  overflow: hidden;
}

.section-title-wrapper {
  margin-bottom: 60px;
  text-align: center;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-white);
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 16px;
  border-radius: 4px; /* Square/tech styling */
  border: 1px solid var(--glass-border);
}

/* Nothing signature red dot */
.red-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent-red);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* ==========================================
   BACKGROUND & SPECIAL FX
   ========================================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Ambient glow center (White/Gray light for Nothing style) */
.glow-effect {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  opacity: 0;
}

/* Custom Cursor */
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

.custom-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent-cyan);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

/* Cursor Hover states */
body.hovering .custom-cursor-ring {
  width: 60px;
  height: 60px;
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-purple);
}

body.hovering .custom-cursor-dot {
  background: var(--accent-purple);
  transform: translate(-50%, -50%) scale(1.5);
}


/* ==========================================
   NAVIGATION BAR
   ========================================== */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-radius: 8px; /* Industrial geometric header card */
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  font-size: 1.4rem;
  color: var(--accent-red);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red); /* Nothing Red line for active links */
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.nav-cta {
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--text-primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--accent-white);
  color: #000;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 12px;
  margin-right: -12px;
  cursor: pointer;
  z-index: 2000;
  position: relative;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
  position: relative;
}

.hero-content {
  max-width: 60%;
  position: relative;
  z-index: 20;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 40px;
}

.title-line-wrap {
  overflow: hidden;
  display: block;
  line-height: 1.15;
}

.title-line {
  display: block;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px; /* Square/flat tech corners */
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--accent-white);
  color: #000;
  border-color: var(--accent-white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-white);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-white);
  transform: translateY(-2px);
}

/* Floating Hero Graphics */
.hero-visual {
  width: 38%;
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-mesh {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  filter: blur(50px);
  animation: blob-animate 12s infinite alternate ease-in-out;
}

.de-wrapper {
  position: absolute;
  z-index: 10;
}

.dew-1 {
  top: 15%;
  left: 10%;
}

.dew-2 {
  bottom: 20%;
  right: 15%;
}

.dew-3 {
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.design-element {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 29, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.de-1 {
  width: 130px;
  height: 130px;
  transform: rotate(-12deg);
  animation: float-de-1 5s infinite ease-in-out;
}

.de-2 {
  width: 110px;
  height: 110px;
  transform: rotate(15deg);
  animation: float-de-2 6s infinite ease-in-out;
}

.de-3 {
  width: 140px;
  height: 90px;
  transform: rotate(5deg);
  animation: float-de-3 7s infinite ease-in-out;
}

@keyframes float-de-1 {
  0% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-12px) rotate(-9deg); }
  100% { transform: translateY(0) rotate(-12deg); }
}

@keyframes float-de-2 {
  0% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-8px) rotate(18deg); }
  100% { transform: translateY(0) rotate(15deg); }
}

@keyframes float-de-3 {
  0% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(0) rotate(5deg); }
}

.de-icon {
  font-size: 2.2rem;
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes blob-animate {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1); }
  50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%; transform: scale(1.1) rotate(45deg); }
  100% { border-radius: 60% 40% 60% 40% / 40% 50% 50% 60%; transform: scale(0.9) rotate(-45deg); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 300;
}

.about-text strong {
  font-weight: 700;
  color: var(--accent-white);
}

.about-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-red);
  padding-left: 20px;
  margin: 10px 0;
}

.about-visual-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-visual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.badge-3d {
  width: 100px;
  height: 100px;
  background: var(--grad-full);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  box-shadow: 0 15px 35px rgba(157, 78, 221, 0.4);
  transform: perspective(500px) rotateY(15deg) rotateX(15deg);
  animation: float-3d 6s infinite alternate ease-in-out;
}

@keyframes float-3d {
  0% { transform: perspective(500px) rotateY(10deg) rotateX(10deg) translateY(0px); }
  100% { transform: perspective(500px) rotateY(25deg) rotateX(20deg) translateY(-15px); }
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

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

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--glass-shadow);
  border-color: var(--glass-border-glow);
}

.skill-logo-wrap {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  transform: translateZ(20px);
}

.skill-card:hover .skill-logo-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Force SVGs to conform to Nothing Phone monochrome and red dot style */
.skill-logo-wrap svg path {
  fill: var(--text-primary) !important;
  stroke: none !important;
  opacity: 0.9 !important;
}

.skill-logo-wrap svg stroke {
  stroke: var(--text-primary) !important;
}

.skill-logo-wrap svg circle {
  fill: var(--accent-red) !important;
  opacity: 1 !important;
}

/* Custom Skill Brand Icon Styles */
.brand-photoshop { color: var(--accent-white); }
.brand-aftereffects { color: var(--accent-white); }
.brand-figma { color: var(--accent-white); }
.brand-canva { color: var(--accent-white); }
.brand-coreldraw { color: var(--accent-white); }
.brand-affinity { color: var(--accent-white); }
.brand-davinci { color: var(--accent-white); }
.brand-google { color: var(--accent-white); }

.skill-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateZ(10px);
}

.skill-name {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
}

.skill-status {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px; /* Industrial corner styles */
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.skill-card:hover .skill-status {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-card.mastered:hover .skill-status {
  background: rgba(255, 0, 60, 0.15);
  color: var(--accent-red);
  border-color: rgba(255, 0, 60, 0.25);
}

/* ==========================================
   LEARNING TIMELINE SECTION
   ========================================== */
.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

/* Vertical center line */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-red) 0%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  width: 50%;
  padding: 20px 40px;
  position: relative;
  z-index: 2;
  opacity: 0; /* Animated in JS */
}

/* Left & Right sides */
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Timeline bubble dots */
.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--bg-dark);
  border: 3px solid var(--accent-white);
  border-radius: 50%;
  position: absolute;
  top: 30px;
  z-index: 10;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.timeline-item.left .timeline-dot {
  right: -7px;
}

.timeline-item.right .timeline-dot {
  left: -7px;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: scale(1.3);
  box-shadow: 0 0 15px var(--accent-red);
}

/* Timeline Cards */
.timeline-card {
  padding: 24px;
}

.timeline-step {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px; /* Square corners */
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-white);
  color: #000;
  border-color: var(--accent-white);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 280px;
  border: 1px solid var(--glass-border);
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(8, 8, 13, 0.95) 0%, rgba(8, 8, 13, 0.4) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

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

.portfolio-category {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-white);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.portfolio-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.portfolio-link {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.portfolio-link i {
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-link i {
  transform: translateX(5px);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 242, 254, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(157, 78, 221, 0.3);
  box-shadow: var(--glass-shadow);
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
  background: var(--grad-purple-cyan);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-shadow-purple);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 600;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   STATISTICS SECTION
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-card {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}



/* ==========================================
   LIGHTBOX MODAL STYLES
   ========================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 13, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  margin-top: 20px;
  text-align: center;
}

.lightbox-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.lightbox-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  padding: 60px 8% 40px 8%;
  background: rgba(4, 4, 6, 0.8);
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-credits {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: right;
}

.footer-credits span {
  color: var(--accent-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 15px;
}

/* ==========================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.8rem;
  }
  
  .about-grid, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .timeline-container::after {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 20px;
    text-align: left !important;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-dot {
    left: 32px !important;
    right: auto !important;
  }
  
  .footer-credits {
    text-align: left;
  }
}

@media (max-width: 768px) {
  * {
    cursor: auto !important; /* Revert cursor on mobile */
  }
  
  .custom-cursor-dot, .custom-cursor-ring {
    display: none;
  }
  
  section {
    padding: 80px 6% 60px 6%;
  }
  
  header {
    width: 95%;
    top: 10px;
    padding: 12px 20px;
  }
  
  nav {
    display: none !important;
  }
  
  .nav-cta {
    display: none;
  }
  
  .menu-toggle {
    display: none !important;
  }

  /* Disable hover shifts on mobile touch */
  .service-card:hover,
  .skill-card:hover,
  .btn:hover {
    transform: none !important;
  }
  
  #hero {
    flex-direction: column-reverse;
    justify-content: center;
    height: auto;
    padding-top: 140px;
    gap: 40px;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-visual {
    width: 100%;
    height: 300px;
  }
  
  .de-1 { width: 90px; height: 90px; }
  .de-2 { width: 85px; height: 85px; }
  .de-3 { width: 110px; height: 75px; }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 5% 40px 5%;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    justify-content: center;
  }
  
  .contact-form-panel {
    padding: 24px;
  }
}

/* ==========================================
   SCROLLING TEXT TICKER (MARQUEE)
   ========================================== */
.marquee-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 30px 0;
  background: rgba(18, 18, 29, 0.3);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marquee-wrapper {
  display: flex;
  white-space: nowrap;
  width: 100%;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  will-change: transform;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  transition: -webkit-text-stroke 0.3s ease, color 0.3s ease;
}

/* Alternate solid and outline text for a high-tech modern look */
.marquee-content span:nth-child(4n+1) {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: none;
}

.marquee-content span:nth-child(4n+3) {
  background: var(--grad-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: none;
}

.marquee-content .divider {
  font-size: 2.5rem;
  color: var(--accent-red);
  -webkit-text-stroke: none;
  background: none !important;
  -webkit-text-fill-color: var(--accent-red) !important;
}

@media (max-width: 768px) {
  .marquee-container {
    padding: 20px 0;
  }
  .marquee-content span {
    font-size: 2.2rem;
  }
  .marquee-content .divider {
    font-size: 1.6rem;
  }
}

