/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

/* --- Theme Colors Extracted from Logos --- */
:root {
  --brand-teal: #8bd3c7;
  --brand-orange: #f29c1f;
  --brand-yellow: #f8c922;
  --bg-dark: #0a0a0e;
  --card-bg: #121218;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- Responsive Header Styles --- */
header {
  padding: 15px 50px;
  background: rgba(10, 10, 14, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- New Shine Logo Animation --- */
/* --- New Shine + Gradient Logo Animation --- */
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;

  /* 
    Isme 2 layers hain:
    1st layer: White shine jo transparent se shuru hoti hai
    2nd layer: Aapke brand colors ka fixed gradient
  */
  background:
    linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%) text,
    linear-gradient(to right, var(--brand-orange), var(--brand-teal), var(--brand-yellow)) text;

  /* Pehli layer (shine) ko 200% width di hai taaki smoothly move kare */
  background-size: 200% 100%, 100% 100%;

  -webkit-text-fill-color: transparent;

  /* Sirf pehli layer (shine) animate hogi */
  animation: logoShine 3s infinite linear;
}

@keyframes logoShine {
  0% {
    /* Shine bahar left se shuru hogi, base gradient apni jagah rahega */
    background-position: 200% 0, 0 0;
  }

  100% {
    /* Shine bahar right tak jayegi, base gradient fixed rahega */
    background-position: -200% 0, 0 0;
  }
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li a {
  color: var(--brand-teal);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  /* color: var(--brand-teal); */

  background:
    linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%) text,
    linear-gradient(to right, var(--brand-orange), var(--brand-teal), var(--brand-yellow)) text;

  /* Pehli layer (shine) ko 200% width di hai taaki smoothly move kare */
  background-size: 200% 100%, 100% 100%;

  -webkit-text-fill-color: transparent;
}

/* Hover Underline Effect */
.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--brand-teal);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Main Content */
main {
  flex: 1;
  padding: 10px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--brand-orange), var(--brand-teal), var(--brand-yellow)) text;
  /* -webkit-background-clip: text; */
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1rem;
  color: #a0a0b0;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* Split Section */
.portfolio-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  perspective: 1000px;
}

.card-wrapper {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  position: relative;
  padding: 4px;
  border-radius: 20px;
  background-size: 300% 300%;
  animation: gradientShift 5s ease infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.anim-card {
  background: linear-gradient(45deg, var(--brand-orange), var(--brand-teal), #ff6b00);
}

.anim-card:hover {
  box-shadow: 0 20px 40px rgba(242, 156, 31, 0.3);
}

.graphic-card {
  background: linear-gradient(45deg, var(--brand-yellow), var(--brand-teal), #ffe100);
}

.graphic-card:hover {
  box-shadow: 0 20px 40px rgba(248, 201, 34, 0.3);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.card-content {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.anim-card:hover h3 {
  color: var(--brand-orange);
}

.graphic-card:hover h3 {
  color: var(--brand-yellow);
}

.media-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.media-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.media-container video,
.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-wrapper:hover .media-container video,
.card-wrapper:hover .media-container img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 14, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay span {
  color: var(--brand-teal);
  font-size: 1.2rem;
  font-weight: 600;
  border: 2px solid var(--brand-teal);
  padding: 10px 20px;
  border-radius: 30px;
  transform: translateY(20px);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.overlay span:hover {
  background: var(--brand-teal);
  color: var(--bg-dark);
}

.card-wrapper:hover .overlay {
  opacity: 1;
}

.card-wrapper:hover .overlay span {
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 30px;
  background: #050508;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

/* --- Mobile Responsive Design --- */
@media (max-width: 1024px) {
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .portfolio-section {
    flex-direction: column;
    align-items: center;
  }

  .card-wrapper {
    width: 100%;
    max-width: 100%;
  }

  /* Mobile Nav Dropdown Setup */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Slide down effect */
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }

  /* When menu is open */
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  /* Hamburger to X Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--brand-teal);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--brand-teal);
  }
}




/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 55px;
  height: 55px;
  z-index: 999;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-btn img {
  width: 30px;
  height: 30px;
}

/* Hover Effect */
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Mobile Adjust */
@media (max-width: 768px) {
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    left: 15px;
    bottom: 15px;
  }
}