/* ==========================================================================
   DEVELOPER PORTFOLIO - DYLLEE STYLE SYSTEM
   ========================================================================== */

/* Font Import - Lora for elegant headings, Inter for high-readability UI and body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  /* Colors */
  --bg-dark-raw: 5, 4, 8;
  --bg-dark: rgb(var(--bg-dark-raw));
  --bg-card-raw: 16, 14, 22;
  --bg-card: rgb(var(--bg-card-raw));
  --bg-card-hover: rgb(26, 23, 35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Gradients (from logo colors: Purple/Violet to Pink/Magenta) */
  --brand-purple: #7c3aed;
  --brand-pink: #db2777;
  --gradient-primary: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-pink) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, rgba(219, 39, 119, 0.05) 50%, transparent 100%);
  
  /* Fonts */
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Borders and Shadows */
  --border-glow: rgba(255, 255, 255, 0.06);
  --border-active: rgba(219, 39, 119, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Resets and Base Styling
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden;
  background: transparent;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Background Ambient Glows (Fixed position and animated for a subtle, premium parallax feel) */
.ambient-glow-1 {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
  animation: floatGlow1 25s ease-in-out infinite;
  will-change: transform;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.2) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
  animation: floatGlow2 30s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatGlow1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  33% {
    transform: translate(8vw, 10vh) scale(1.1);
    opacity: 1;
  }
  66% {
    transform: translate(-5vw, 15vh) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
}

@keyframes floatGlow2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-10vw, -8vh) scale(1.15);
    opacity: 0.9;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 4rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid var(--border-glow);
  background: rgba(5, 4, 8, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition-smooth), background-color var(--transition-smooth);
}

header.scrolled {
  background: rgba(5, 4, 8, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.logo-icon {
  height: 32px;
  width: auto;
}

.logo-text {
  background: linear-gradient(to right, #ffffff 60%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-smooth);
}

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

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

.btn-contact-nav {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-contact-nav:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Hamburger toggle animation */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 2rem;
}

.hero-tag span.dot {
  width: 6px;
  height: 6px;
  background: var(--brand-pink);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-pink);
  display: inline-block;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 span.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-brand-card {
  position: relative;
  background: rgba(16, 14, 22, 0.6);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-slow);
}

.hero-brand-card:hover {
  transform: translateY(-5px) rotate(1deg);
}

.hero-brand-card .brand-logo-img {
  width: 140px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 20px rgba(124, 58, 237, 0.3));
}

.hero-brand-card h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-brand-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Decorative grid pattern inside card bounds */
.hero-brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(219, 39, 119, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* Custom interactive project card using JS pointer tracker properties */
.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  transition: border-color var(--transition-fast);
}

/* Mouse spotlight container effect */
.project-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(219, 39, 119, 0.12),
    transparent 40%
  );
  z-index: 3;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.project-image-side {
  position: relative;
  overflow: hidden;
  background: #0d0c12;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.project-image-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, rgba(16, 14, 22, 1) 100%);
  z-index: 2;
  pointer-events: none;
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumbnail {
  transform: scale(1.03);
}

.project-details-side {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 4;
}

.project-card h3 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Beautiful Modern App Badges (CSS-designed for seamless theme styling instead of static images) */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.app-badge:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Highlight/Alternative styling for primary badges */
.app-badge.playstore:hover {
  background: #34a853; /* Google Play green color */
  color: #fff;
  box-shadow: 0 10px 25px rgba(52, 168, 83, 0.3);
}

.app-badge.appstore:hover {
  background: #0071e3; /* Apple Blue color */
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}

.app-badge.microsoft:hover {
  background: #00a4ef; /* Microsoft blue color */
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 164, 239, 0.3);
}

/* ==========================================================================
   About & Capabilities Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.about-intro-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-intro-text p {
  margin-bottom: 2rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.capability-card {
  background: rgba(16, 14, 22, 0.4);
  border: 1px solid var(--border-glow);
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.capability-card:hover {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.capability-icon {
  width: 44px;
  height: 44px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  margin-bottom: 1.5rem;
}

.capability-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.capability-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.capability-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================================================
   Contact / Connect Section
   ========================================================================== */
.contact {
  padding-bottom: 10rem;
}

.contact-card {
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, rgba(219, 39, 119, 0.03) 90%), rgba(16, 14, 22, 0.5);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(219, 39, 119, 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contact-info h3 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.contact-info p.contact-desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 420px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.contact-method:hover .contact-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.contact-details span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.contact-details a, .contact-details p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-details a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Contact Form Grid Styling */
.contact-form-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-purple);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.35);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-glow);
  background: #040307;
  padding: 5rem 0 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: fill var(--transition-fast);
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.social-link:hover svg {
  fill: var(--text-primary);
}

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

.back-to-top {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.back-to-top:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Animations & Transition Effects
   ========================================================================== */

/* Fade-in element states using Intersection Observer */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive Styling (Media Queries)
   ========================================================================== */

/* Desktop & Wide Screens */
@media (max-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}

/* Tablet (Large) */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-grid {
    gap: 2rem;
  }
  
  .hero-brand-card {
    padding: 2rem;
  }
  
  .hero-brand-card .brand-logo-img {
    width: 100px;
  }
  
  .project-card {
    grid-template-columns: 1fr;
  }
  
  .project-image-side {
    min-height: 320px;
  }
  
  .project-image-side::after {
    background: linear-gradient(to bottom, transparent 60%, rgba(16, 14, 22, 1) 100%);
  }
  
  .project-details-side {
    padding: 3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-card {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.5rem;
  }
}

/* Mobile & Tablet (Small) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  nav {
    display: none; /* Hide default nav for mobile toggling */
  }
  
  /* Mobile Navigation Drawer Open State */
  .mobile-menu-open nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 4, 8, 0.98);
    backdrop-filter: blur(24px);
    z-index: 1050;
    gap: 2rem;
  }
  
  .mobile-menu-open .nav-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .mobile-menu-open .nav-link {
    font-size: 1.25rem;
  }
  
  .mobile-toggle {
    display: flex; /* Show hamburger */
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
    gap: 4rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-brand-card {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Small Smartphone Screen Adjustment */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.85rem;
  }
  
  .hero h1 {
    font-size: 2.35rem;
  }
  
  .project-details-side {
    padding: 2rem 1.5rem;
  }
  
  .project-card h3 {
    font-size: 1.75rem;
  }
  
  .project-links {
    flex-direction: column;
    width: 100%;
  }
  
  .app-badge {
    width: 100%;
    justify-content: center;
  }
  
  .contact-card {
    padding: 2rem 1.25rem;
  }
  
  .contact-info h3 {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   Custom Popup Modal Styling
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

.custom-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  overflow-y: auto;
  padding: 2rem 1rem;
}

.custom-popup.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--bg-dark-raw), 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
}

.popup-card {
  position: relative;
  z-index: 1001;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  max-width: 440px;
  width: 100%;
  margin: auto;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
              0 0 50px rgba(124, 58, 237, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-smooth);
}

@media (min-width: 480px) {
  .popup-card {
    padding: 3rem 2.5rem;
  }
}

.custom-popup.active .popup-card {
  transform: scale(1) translateY(0);
}

.popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform var(--transition-smooth);
}

.custom-popup.active .popup-icon {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.popup-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.popup-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.popup-icon svg {
  width: 32px;
  height: 32px;
}

.popup-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.popup-message {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.popup-btn {
  width: 100%;
  border: none;
}
