/* --- BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
  cursor: none; /* for custom cursor */
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;   /* ✅ RIGHT SIDE */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: rgba(11, 15, 26, 0.8);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 999;
  backdrop-filter: blur(6px);
}


/* Show state */
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover */
#backToTop:hover {
  background: #38bdf8;
  color: #0b0f1a;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  transform: translateY(-5px);
}

/* Subtle floating animation */
#backToTop i {
  animation: floatArrow 2s ease-in-out infinite;
}

@keyframes floatArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

body {
  background: #0b0f1a url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  color: #e5e7eb;
  overflow-x: hidden;
}

.section {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
  min-height: 100vh;
  padding: 80px 10%;
  position: relative;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,15,26,0.9);
  backdrop-filter: none;
  z-index: 100;
}

.logo {
  font-weight: 700;
  letter-spacing: 2px;
  color: #38bdf8;
}

.nav-links {
  position: relative;
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

.indicator {
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #38bdf8;
  transition: 0.4s ease;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  text-align: center;
  gap: 60px;
  padding: 20px 10%;
}

/* TOP LOGO + NAME */
.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  top: 50px;
  z-index: 1001;
}

.hero-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Hero Name */
.hero-top h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #38bdf8;
  margin: 0;
}

.silver-text {
  color: #C0C0C0;
  font-family: inherit;
  font-weight: inherit;
}

/* CENTER TAGLINE */
.hero-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 50vh;
}

.hero-center p {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 70px;
  letter-spacing: -1px;
  color: #e5e7eb;
  max-width: 900px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

/* Highlight colors */
.highlight-blue {
  color: #38bdf8;
  font-family: 'Space Grotesk', sans-serif;
}

.highlight-silver {
  background: linear-gradient(90deg, #e0e0e0, #a0a0a0, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: url('./src/hero-bg.jpg') center/cover no-repeat; /* fallback image */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* hide by default */
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 2; /* keep text/logo above video */
}

/* --- YOUTUBE HOVER BACKGROUND --- */
#youtube-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Sits behind text (z-index 2) but above static bg */
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
  pointer-events: none; /* Prevents clicking on the YouTube video */
}

/* When active (hovering logo), show it */
#youtube-bg-container.active {
  opacity: 1;
  visibility: visible;
}

/* Update your existing youtube-player style */
#youtube-player {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Make it larger than the screen to hide YouTube branding */
  width: 115vw; 
  height: 115vh; 
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none; /* So the user can't click the video */
}

/* Ensure your text stays on top */
.hero-top, .hero-center {
  z-index: 10 !important; /* Force text above the video */
  pointer-events: none; /* Let mouse pass through to background if needed, but... */
}

/* Crucial: Re-enable pointer events on the logo so we can hover it */
#heroLogo {
  pointer-events: auto !important;
  cursor: pointer; /* specific cursor for the trigger */
  z-index: 20; /* Ensure logo is on very top */
}

/* CUSTOM CURSOR */
.cursor {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: 0.1s ease;
  z-index: 10000;
}

/* VIDEO PREVIEW */
.video-card video {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.video-card:hover video {
  transform: scale(1.05);
}

.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* SECTION TITLES */
.section h2 {
  font-size: 40px;
  color: #38bdf8;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.section h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #38bdf8;
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.section.show h2::after {
  transform: translateX(0);
}

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.typing-word::after {
  content: "|";
  margin-left: 1px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.shine-word {
  color: #e5e7eb;
  font-weight: 700;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
/* WhatsApp tooltip container - bigger */
.whatsapp-tooltip {
  visibility: hidden;
  opacity: 0;
  width: 280px; /* increased from 200px */
  background: rgba(11, 15, 26, 0.95);
  color: #e5e7eb;
  text-align: center;
  border-radius: 12px;
  padding: 20px; /* slightly more padding */
  position: absolute;
  top: 50%;
  left: 110%; 
  transform: translateY(-50%);
  z-index: 50;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(56,189,248,0.4);
}

/* Show tooltip on hover */
.whatsapp-btn:hover .whatsapp-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* QR code image - bigger */
.whatsapp-tooltip img {
  width: 160px;  /* increased from 100px */
  height: 160px; /* increased from 100px */
  margin-bottom: 12px;
  border-radius: 10px;
  border: 2px solid #38bdf8;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Text inside tooltip - bigger and more readable */
.whatsapp-tooltip div {
  font-size: 1rem; /* increased from default 0.8rem */
  margin-bottom: 4px;
}

/* 1. FLUID TYPOGRAPHY & LAYOUT ADJUSTMENTS */

@media (max-width: 1024px) {
  .hero-center p {
    font-size: 50px; /* Smaller tagline for tablets */
  }
  
  .section {
    padding: 60px 5%; /* Less side padding */
  }
}

@media (max-width: 768px) {
  /* Disable custom cursor on touch devices for better UX */
  .cursor {
    display: none;
  }
  
  * {
    cursor: auto !important;
  }

  /* Adjust Nav */
  .nav {
    padding: 15px 5%;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 14px;
  }

  /* Hero Adjustments */
  .hero-top h1 {
    font-size: 24px;
  }

  .hero-logo {
    height: 60px;
  }

  .hero-center p {
  /* Min: 28px, Scalable: 5vw, Max: 70px */
  font-size: clamp(28px, 5vw, 70px); 
}
  .section h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none; /* Consider a hamburger menu for very small screens */
  }

  .hero-center p {
    font-size: 28px;
  }

  .section {
    padding: 40px 20px;
  }
}

/* 2. ENSURE IMAGES AND VIDEOS DON'T OVERFLOW */
img, video {
  max-width: 100%;
  height: auto;
}

/* 3. PREVENT HORIZONTAL SCROLLING */
html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* --- RESPONSIVE GRID FOR VIDEOS --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: transform 0.3s ease;

}

.video-card:hover {
  transform: translateY(-10px);
  border-color: #38bdf8;
}

.video-card video {
  width: 100%;
  aspect-ratio: 9/16; /* Perfect for Reels/TikToks */
  object-fit: cover;
  display: block;
}

.video-info {
  padding: 15px;
  text-align: center;
  font-size: 14px;
  color: #e5e7eb;
}

.platform-tags {
  margin-top: 30px;
  color: #e5e7eb;
}

.mute-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(11, 15, 26, 0.7);
  color: #38bdf8;
  border: 1px solid #38bdf8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 700;
}

.mute-btn:hover {
  background: #38bdf8;
  color: #0b0f1a;
}

/* --- SERVICES SECTION --- */
#services {
  min-height: auto !important;
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Keeps the title left-aligned */
}

.services-container {
  display: grid;
  /* This creates a responsive grid that automatically adjusts columns */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  margin-top: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  padding: 30px;
  aspect-ratio: 1 / 1; /* Keeps them perfectly square */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: #38bdf8;
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.service-card .icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: #38bdf8;
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card p {
  color: #e5e7eb;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---

/* --- CONTACT UPPER LAYOUT --- */
#contact {
  padding: 80px 10%;
  display: block;
}

.contact-upper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  margin-top: 30px;
  align-items: start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-me p {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e5e7eb;
}

/* PC SPECS */
.pc-specs {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid #38bdf8;
  padding: 20px;
  border-radius: 0 15px 15px 0;
}

.pc-specs h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: #38bdf8;
  margin-bottom: 12px;
}

.pc-specs ul li {
  list-style: none;
  font-family: 'Exo 2', sans-serif;
  color: #e5e7eb;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.pc-specs i {
  color: #38bdf8;
  margin-right: 10px;
}

/* NEW SOCIAL ICONS BOX */
.social-icons-box {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.social-icons-box a {
  color: #e5e7eb;
  font-size: 1.5rem; /* Larger icons */
  transition: all 0.3s ease;
}

.social-icons-box a:hover {
  color: #38bdf8;
  transform: translateY(-5px);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

/* PROFILE CARD (Balanced Size) */
.profile-card-container {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 25px; 
  border-radius: 15px;
  text-align: center;
  width: 100%;
  max-width: 380px; 
}

.photo-container img {
  width: 100%;
  max-width: 320px; 
  height: auto;
  border-radius: 10px;
  border: 2px solid #38bdf8;
  margin-bottom: 15px;
}

.profile-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
}

/* --- CONTACT LINKS STYLING (MATCHES PC SPECS) --- */

.contact-links-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: #38bdf8;
  margin-bottom: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(56, 189, 248, 0.05); /* Same as PC Specs */
  border-left: 3px solid #38bdf8;      /* Same as PC Specs */
  padding: 12px 15px;
  border-radius: 0 10px 10px 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item i {
  color: #38bdf8;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contact-item span {
  font-family: 'Orbitron', sans-serif; /* Matching header font */
  font-size: 0.8rem;
  color: #e5e7eb;
  letter-spacing: 1px;
}

/* HOVER EFFECT */
.contact-item:hover {
  background: rgba(56, 189, 248, 0.15);
  transform: translateX(5px);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

/* Ensure Left Column items have proper spacing */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 35px; /* Better spacing between Bio, Specs, and Contacts */
}

/* Tablet & Mobile adjustment for Contact Grid */
@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack links on tiny screens */
  }
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .contact-upper {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .social-icons-box {
    justify-content: flex-start;
  }
}

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 768px) {
  /* Stop custom cursor on mobile */
  .cursor { display: none; }
  * { cursor: auto !important; }

  /* Adjust Hero Text */
  .hero-center p {
    font-size: clamp(30px, 8vw, 50px);
    line-height: 1.1;
  }

  .hero-top h1 {
    font-size: 24px;
  }

  .hero-logo {
    height: 60px;
  }

  /* Adjust Nav for Mobile */
  .nav {
    padding: 15px 5%;
  }
  
  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .section {
    padding: 60px 5%;
  }
}

/* Fix for small phones */
@media (max-width: 480px) {
  .hero-center p {
    font-size: 28px;
  }
  
  .nav-links {
    display: flex;
    gap: 10px;
  }

  .work-grid {
    grid-template-columns: 1fr; /* Stack videos in one column */
  }
}

@media (max-width: 768px) {
  #youtube-bg-container {
    display: none !important; /* Completely removes the video on phones */
  }
  
  #heroLogo {
    pointer-events: none; /* Disables the trigger so it's just a logo */
  }

}

