:root {
  --bg-color: #121212;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-color: #3DDC84;
  --accent-light: #00E676;
  --gradient-1: linear-gradient(135deg, #00C853 0%, #3DDC84 100%);
  --gradient-2: linear-gradient(135deg, #3DDC84 0%, #4285F4 100%);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Blob */
.blob-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(61, 220, 132, 0.12), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(66, 133, 244, 0.12), transparent 25%);
  filter: blur(80px);
  animation: blob-float 20s ease-in-out infinite alternate;
}

@keyframes blob-float {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.1) translate(2%, 2%);
  }

  100% {
    transform: scale(0.9) translate(-2%, -2%);
  }
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 100;
  transition: var(--transition-normal);
}

header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-normal);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-light);
  transition: var(--transition-normal);
}

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

/* Sections */
.section {
  padding: 120px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
}

/* Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 40px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-1);
  color: #121212;
  box-shadow: 0 8px 24px rgba(61, 220, 132, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(61, 220, 132, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.skills-container h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.skill-tag:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image {
  height: 200px;
  width: 100%;
  transition: transform 0.5s ease;
}

/* Mobile Mockup Styles */
.mobile-frame-bg {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.mobile-mockup {
  width: 140px;
  height: 200px;
  background: #1e1e1e;
  border: 6px solid #000;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  position: relative;
  bottom: -30px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-mockup::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #333;
  border-radius: 4px;
}

.project-card:hover .mobile-mockup {
  transform: translateY(-15px);
}

.project-info {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-normal);
}

.project-link:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-btn {
  font-size: 1.1rem;
  padding: 18px 44px;
}

.social-links-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-pill {
  padding: 10px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
  background: var(--glass-bg);
}

.social-pill:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-normal);
}

.social-links a:hover {
  color: var(--text-primary);
}

/* Animations */
.reveal-text,
.reveal-fade,
.reveal-slide-up,
.reveal-scale {
  opacity: 0;
}

.reveal-text.active {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.reveal-fade.active {
  animation: fadeIn 1s ease forwards;
}

.reveal-slide-up.active {
  animation: slideUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.reveal-scale.active {
  animation: scaleUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================
   HERO: Updated Layout
   ============================ */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-tag {
  font-size: 1rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.hero-role {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.hero-contacts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-chip {
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition-normal);
}

.contact-chip:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/* ============================
   HERO PHONE VISUAL
   ============================ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-hero-frame {
  width: 260px;
  height: 520px;
  background: #1a1a1a;
  border-radius: 40px;
  border: 6px solid #2a2a2a;
  position: relative;
  box-shadow:
    0 0 0 1px #333,
    0 40px 80px rgba(61, 220, 132, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
}

.app-bar {
  background: #161b22;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  border-bottom: 1px solid rgba(61, 220, 132, 0.1);
}

.app-bar-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
}

.app-content {
  flex: 1;
  padding: 20px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card {
  height: 120px;
  background: linear-gradient(135deg, rgba(61, 220, 132, 0.2), rgba(66, 133, 244, 0.15));
  border: 1px solid rgba(61, 220, 132, 0.2);
  border-radius: 16px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.app-list-item {
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  animation: pulse-glow 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.app-list-item.short {
  width: 70%;
}

.app-fab {
  position: absolute;
  bottom: 20px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #121212;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(61, 220, 132, 0.3);
}

/* ============================
   ABOUT — Updated
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

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

.extra-activities {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.extra-activities h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.extra-activities ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extra-activities li {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Education Card */
.education-card h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.edu-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.edu-item>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-item strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.edu-item span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.edu-meta {
  color: var(--accent-color) !important;
  font-size: 0.8rem !important;
  font-weight: 500;
}

/* ============================
   EXPERIENCE TIMELINE
   ============================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), rgba(61, 220, 132, 0.05));
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.5);
}

.timeline-content {
  border-left: 2px solid rgba(61, 220, 132, 0.2);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.company {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  background: rgba(61, 220, 132, 0.08);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(61, 220, 132, 0.15);
}

.timeline-content>p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-chips span {
  padding: 4px 12px;
  background: rgba(61, 220, 132, 0.08);
  border: 1px solid rgba(61, 220, 132, 0.2);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .hero-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .timeline {
    padding-left: 28px;
  }
}