/* =========================================================
   THEME SYSTEM (Dark + Light Mode Ready)
========================================================= */

:root {
  --bg: #000000;
  --surface: #202226;
  --card: #0d0d0d;
  --text: #e5e7eb;
  --muted: #9ca3af;

  --primary: #8b5cf6;
  --accent: #078aee;

  --radius: 14px;
  --transition: .3s ease;
}

/* LIGHT MODE */
body.light {
  --bg: #f8fafc;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================================
   GLOBAL CONTAINER
========================================================= */

section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  padding: 12px 20px;
  background: rgba(10, 15, 25, .6);
  backdrop-filter: blur(10px);
  transition: all .35s ease;
}

/* SHRINK EFFECT */
.navbar.shrink {
  padding: 6px 20px;
  background: rgba(10, 15, 25, .85);
  backdrop-filter: blur(16px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .35);
}

.navbar nav {
  display: flex;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
}

#pp {
  height: 45px;
  width: 180px;
  transition: .3s;
}

.navbar.shrink #pp {
  transform: scale(.9);
}

#pp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(18px, 1.2vw, 20px);
  transition: var(--transition);
  position: relative;
}

.navbar nav a:hover {
    color: white;
}

.navbar nav a.active {
    color: white;
}

.navbar nav a.active::after {
    width: 100%;
}


/* PREMIUM UNDERLINE */
.navbar nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: .4s;
  transform: translateX(-50%);
}

.navbar nav a:hover::after {
  width: 100%;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 100vh;
  padding-top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
}
/* =========================================================
   HERO TEXT ANIMATION (SAFE VERSION)
========================================================= */

/* =========================================================
   HERO INTRO SEQUENCE (SAFE VERSION)
========================================================= */

.hero h1,
.hero h2,
.hero h3 {
  opacity: 0;
  transform: translateY(30px);
}

/* Order */
.hero h1 {
  animation: heroFadeUp 1.2s ease forwards;
  animation-delay: 0.3s;
}

.hero h2 {
  animation: heroFadeUp 1.2s ease forwards;
  animation-delay: 1.2s;
}

.hero h3 {
  animation: heroFadeUp 1.2s ease forwards;
  animation-delay: 2.1s;
}

/* Animation */
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    transition: .4s;
}

.profile-wrapper:hover {
    transform: translateY(-6px) scale(1.03);
}

.profile-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .4;
    }
}

.hero h1 {
    transition: .4s ease;
}

.hero h1:hover {
    transform: translateY(-4px);
    text-shadow: 0 0 10px rgba(139, 92, 246, .6),
        0 0 25px rgba(34, 211, 238, .3);
}

.big-name {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
  transition: .4s;
}

.big-name:hover {
  text-shadow: 0 0 15px var(--accent),
    0 0 30px rgba(139, 92, 246, .4);
  transform: scale(1.05);  
}

/* =========================================================
   TYPEWRITER EFFECT (JS CONTROLLED)
========================================================= */

.desc {
  position: relative;
  max-width: 650px;
  color: var(--muted);
}

.desc::after {
  content: "|";
  margin-left: 5px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.desc.done::after {
  content: "";
  animation: none;
}

/* =========================================================
   BUTTONS
========================================================= */



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 25px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: all 0.35s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5),
        0 0 25px rgba(34, 211, 238, 0.4);
}

/* =========================================================
   CARDS
========================================================= */

.card,
.info-card,
.achievement-card,
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.card:hover,
.info-card:hover,
.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.card-heading {
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 20px;
}

/* SHINE EFFECT */
.card::before,
.info-card::before,
.contact-card::before,
.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, .08),
      transparent);
  transform: skewX(-25deg);
  transition: .6s;
}

.card:hover::before,
.info-card:hover::before,
.achievement-card:hover::before,
.contact-card:hover::before{
  left: 150%;
}

/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    position: relative;
    display: block;
    width: fit-content;
    margin: 20px auto 60px;
    text-align: center;
    font-size: 35px;
    font-weight: 700;
    color: var(--primary);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: .5s;
    transform: translateX(-50%);
}

.section-title:hover::after {
    width: 100%;
}


/* =========================================================
   ABOUT GRID
========================================================= */

.about-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;   /* extra spacing from next row */
}
/* =========================================================
   ACHIEVEMENTS (SWIPE READY)
========================================================= */

.achievement-category {
    margin: 40px 0 20px;
    font-size: 22px;
    color: var(--accent);
}

.achievement-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.achievement-row::-webkit-scrollbar {
    height: 6px;
}

.achievement-row::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.achievement-card {
    min-width: 280px;
    scroll-snap-align: start;
}

.achievement-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  transition: .5s;
  margin-bottom: 12px;
}

.achievement-card:hover img {
  transform: scale(1.08);
}

.achievement-card h4 {
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 18px;
}

.achievement-card p {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
   SKILLS GRID
========================================================= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-card a {
    color: #22d3ee;
    text-decoration: none;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: left;
    gap: 48px;
    margin-top: 24px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    transition: var(--transition);
    text-decoration: none;
    font-size: 24px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.social-icons a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(34, 211, 238, 0.5);
}

/* Shine Effect for Social Icons */
.social-icons a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.6s;
}

.social-icons a:hover::after {
  left: 150%;
}

.social-icons a.fa-instagram {
    color: #E4405F;
}

.social-icons a.fa-facebook-f {
    color: #1877F2;
}

.social-icons a.fa-linkedin-in {
    color: #0A66C2;
}

.social-icons a.fa-github {
    color: #FFFFFF;
}

.social-icons a.fa-telegram {
    color: #26A5E4;
}

.social-icons a.fa-whatsapp {
    color: #25D366;
}

.social-icons a.fa-envelope {
    color: #EA4335;
}

.social-icons a.fa-x {
    color: #FFFFFF;
}

.social-icons a.fa-youtube {
    color: #FF0000;
}

.social-icons a.fa-snapchat {
    color: #FFFC00
}


/* =========================================================
   FORM
========================================================= */

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

form input:focus,
form textarea:focus {
  outline: none;
  border: 1px solid var(--accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, .4);
}

form button {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

form button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
}

form button:hover::before {
    left: 150%;
}

form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(34, 211, 238, 0.5);
}

form button:active {
    transform: scale(0.96);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: linear-gradient(180deg, #090909, #0b1220);
    padding: 80px 5% 0px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    text-align: center;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px;
    align-items: flex-start;
}

.footer h3 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 12px;
    color: #ffffff;
}

.footer h4 {
    margin-bottom: 18px;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    font-size: clamp(16px, 2vw, 22px);
}

.footer p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: clamp(15px, 1.4vw, 19px);
}

.footer-tagline {
    margin: 18px 0;
    max-width: 320px;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: clamp(15px, 1.4vw, 19px);
    transition: all .3s ease;
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(6px);
}

.footer-social-icons {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social-icons a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: all .3s ease;
}

.footer-social-icons a:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-4px);
}

.resume-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 9px 18px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: .3s;
}

.resume-btn:hover {
    transform: translateY(-3px);
    opacity: .9;
}

.availability {
    margin-top: 18px;
    font-size: 13px;
    color: #38bdf8;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 13px;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: none;
    transition: all .3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#backToTop:hover {
    transform: translateY(-5px);
}


/* =========================================================
   MOBILE NAVBAR
========================================================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1002;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 4px 0;
  transition: 0.3s;
}


@media (max-width: 1150px) {
  .navbar {
    grid-template-columns: auto auto;
    /* logo | toggle */
    justify-content: space-between;
    padding-right: 20px;
  }

  .navbar .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar nav {
  position: fixed;
  top: 70px;
  right: 20px;

  width: 150px;
  height: auto;              /* auto height */
  padding: 25px 0;           /* space inside */

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 14px;       /* clean card look */
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);

  transform: translateX(120%);
  transition: transform 0.4s ease;

  z-index: 1001;
}

  .navbar nav.active {
    transform: translateX(0);
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer{
    padding:90px 12% 40px;
  }

  .footer-container{
    gap:40px;
  }

  .footer-bottom{
    margin-top:40px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 70px 18px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 16px;
  }

  .achievement-card img {
    height: 150px;
  }
}
/* =========================================================
   UNIVERSAL SHINE EFFECT FOR ALL BUTTONS
========================================================= */

.btn,
button,
.resume-btn {
  position: relative;
  overflow: hidden;
}

/* Shine Sweep */
.btn::before,
button::before,
.resume-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.6s;
}

.btn:hover::before,
button:hover::before,
.resume-btn:hover::before {
  left: 150%;
}