/* ===== Premium Base Styles ===== */
:root {
  --primary: #2563eb;        /* Premium blue */
  --primary-dark: #1d4ed8;   /* Darker primary */
  --primary-light: #3b82f6;  /* Lighter primary */
  --secondary: #8b5cf6;      /* Premium purple */
  --dark: #0a0f1c;           /* Deeper dark */
  --dark-light: #1e293b;     /* Card background */
  --dark-card: #1f2937;      /* Card backgrounds */
  --light: #f8fafc;          /* Pure white text */
  --gray: #9ca3af;           /* Refined gray */
  --gray-light: #d1d5db;     /* Light gray */
  --success: #10b981;        /* Success green */
  --accent: #f59e0b;         /* Premium gold accent */
  --border: #374151;         /* Subtle borders */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.25);
  --shadow-heavy: rgba(0, 0, 0, 0.4);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-card: linear-gradient(145deg, #1f2937 0%, #111827 100%);
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

/* Premium selection styles */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(37, 99, 235, 0.3);
  color: white;
}


/* Add premium scroll reveal effect */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--dark) 0%, #111827 50%, var(--dark) 100%);
  color: var(--light);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* extra space to offset fixed navbar */
.section.projects,
.section.experience,
.section.contact,
.section.tech-stack {
  padding-top: 80px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 120px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.subsection-title {
  font-size: 1.8rem;
  margin: 60px 0 30px;
  color: var(--light);
  position: relative;
  padding-left: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-left: 5px solid var(--primary);
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  border: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 12px;
}

.btn-primary:hover, .btn-primary:active {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover::before, .btn-primary:active::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover, .btn-secondary:active {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border: 2px solid var(--primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover, .btn-outline:active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(10, 15, 28, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 12px; /* Larger touch target for mobile */
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== Premium Hero Section ===== */
.hero {
  padding: 200px 0 120px;
  background: radial-gradient(ellipse at center top, rgba(37, 99, 235, 0.15) 0%, transparent 50%), 
              linear-gradient(135deg, var(--dark) 0%, #111827 50%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--gray-light);
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 2rem;
}

.profile-img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6), 
              0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  z-index: 1;
  opacity: 0.3;
}

/* Premium geometric shapes */
.geometric-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  background: var(--gradient-primary);
  opacity: 0.08;
  z-index: -1;
  border-radius: 20px;
  animation: floatShape 6s ease-in-out infinite;
}

.shape-1 {
  width: 250px;
  height: 250px;
  top: 10%;
  left: 5%;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.shape-2 {
  width: 180px;
  height: 180px;
  bottom: 15%;
  right: 10%;
  border-radius: 50%;
  animation-delay: 2s;
}

@keyframes floatShape {
  0%, 100% { 
    transform: translateY(0px) rotate(45deg); 
    opacity: 0.08;
  }
  50% { 
    transform: translateY(-20px) rotate(45deg); 
    opacity: 0.12;
  }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Add premium fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger animation delays for cards */
.project-card:nth-child(1), .package-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2), .package-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3), .package-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4), .package-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5), .package-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6), .package-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== About Section ===== */
.about {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--gray-light);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* Remove default mobile tap highlight */
}

.social-links a:hover, .social-links a:active {
  background: var(--primary);
  transform: translateY(-5px);
}

/* ===== Projects Section ===== */
.featured-projects {
  background-color: var(--dark);
}

/* Project Tabs */
.project-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
}

.tab-button {
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tab-button:hover {
  color: var(--light);
}

.tab-button.active {
  color: var(--light);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Demo Section */
.hf-demo-section {
  background-color: var(--dark-light);
  padding: 30px;
  border-radius: 8px;
  margin-top: 40px;
  border: 1px solid var(--border);
}

.demo-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.demo-select-container {
  margin-bottom: 15px;
}

.demo-select-container label {
  display: block;
  margin-bottom: 8px;
  color: var(--light);
  font-weight: 600;
}

.demo-model-select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background-color: var(--dark);
  color: var(--light);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.demo-model-select:focus {
  outline: none;
  border-color: var(--primary);
}

.demo-input textarea {
  width: 100%;
  height: 150px;
  padding: 15px;
  border-radius: 8px;
  background-color: var(--dark);
  color: var(--light);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
  resize: none;
}

.demo-output {
  background-color: var(--dark);
  border-radius: 8px;
  border: 1px solid var(--border);
  height: 100%;
  overflow: hidden;
}

.output-header {
  background-color: var(--accent);
  color: var(--light);
  padding: 10px 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

#demo-result {
  padding: 15px;
  color: var(--light);
  height: calc(100% - 41px);
  overflow-y: auto;
}

.placeholder-text {
  color: var(--gray);
  font-style: italic;
}

@media (max-width: 768px) {
  .project-tabs {
    flex-direction: column;
    align-items: center;
  }

  .demo-container {
    grid-template-columns: 1fr;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-card, .package-card {
  background: var(--gradient-card);
  border-radius: 16px;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
              0 0 0 1px rgba(37, 99, 235, 0.3);
  border-color: rgba(37, 99, 235, 0.5);
}

.package-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
              0 0 0 1px rgba(37, 99, 235, 0.3);
  border-color: rgba(37, 99, 235, 0.5);
}


.package-card:hover::before {
  width: 8px;
}

.packages-section {
  background: linear-gradient(135deg, var(--dark) 0%, #0f1419 50%, var(--dark) 100%);
  padding: 100px 0;
  position: relative;
}

.packages-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin: -20px auto 50px;
  max-width: 800px;
}

.packages-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  justify-content: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.package-card {
  background: var(--dark-light);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.package-card.featured {
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.package-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.package-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: white;
}

.package-desc {
  color: var(--light);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.package-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 25px;
}

.feature {
  position: relative;
  padding-left: 15px;
  color: var(--gray);
  font-size: 0.9rem;
}

.feature:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.code-snippet {
  background: var(--dark);
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--border);
}

.code-snippet pre {
  margin: 0;
  color: var(--light);
  font-family: monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.package-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.package-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.package-link:hover, .package-link:active {
  color: white;
}

.package-link::after {
  content: '→';
  margin-left: 5px;
  transition: all 0.3s ease;
}

.package-link:hover::after, .package-link:active::after {
  transform: translateX(5px);
}

.package-link-secondary {
  color: var(--gray);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.package-link-secondary:hover, .package-link-secondary:active {
  color: white;
}

.package-stats {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.stat {
  display: flex;
  align-items: center;
  color: var(--gray);
  font-size: 0.85rem;
}

.stat i {
  margin-right: 5px;
  color: var(--primary);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: white;
}

.project-card p {
  color: var(--gray);
  margin-bottom: 20px;
}

.project-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.project-link:hover, .project-link:active {
  color: white;
}

.project-link::after {
  content: '→';
  margin-left: 5px;
  transition: all 0.3s ease;
}

.project-link:hover::after, .project-link:active::after {
  transform: translateX(5px);
}

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

/* ===== Responsive Styles ===== */

/* iOS-specific styles and iPhone optimizations */
@supports (-webkit-touch-callout: none) {
  /* Larger touch targets for iOS */
  .btn {
    padding: 18px 32px;
    min-height: 52px;
  }

  .social-links a {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .nav-links a {
    padding: 12px 16px;
    min-height: 44px;
  }

  /* Fix for 100vh issue on iOS Safari */
  .hero {
    min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .nav-links {
    height: calc(100vh - 80px - env(safe-area-inset-bottom));
  }

  /* Add padding for iPhone notch and safe areas */
  .navbar {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  /* Fix text rendering on iOS */
  body {
    -webkit-text-size-adjust: 100%;
  }

  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px;
  }
}
@media (max-width: 992px) {
  .hero {
    padding: 160px 0 100px;
    min-height: 90vh;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 60px;
  }

  .hero-buttons {
    justify-content: center;
    gap: 20px;
  }

  .hero-title {
    font-size: 3.2rem;
    margin-bottom: 25px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
  }

  .packages-featured {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .package-card.featured {
    padding: 35px;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
}

/* iPad and large tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero {
    padding: 180px 0 100px;
    min-height: 90vh;
  }

  .hero .container {
    flex-direction: row;
    text-align: left;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .profile-img {
    width: 320px;
    height: 320px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .packages-featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2.8rem;
  }

  .btn {
    padding: 16px 28px;
    font-size: 0.85rem;
  }
}

/* iPad in landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    padding: 140px 0 80px;
    min-height: 85vh;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .profile-img {
    width: 300px;
    height: 300px;
  }
}

/* Modern smartphones (iPhone 12-16 Pro, etc.) */
@media (max-width: 844px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 15px;
  }

  .social-links a {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .package-features {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none !important;
  }
  .nav-links {
    position: static !important;
    flex-direction: row !important;
    height: auto !important;
    background: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    left: 0 !important;
    width: auto !important;
    transition: none !important;
  }
  .nav-links li {
    margin: 0 0 0 30px !important;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .hero {
    padding: 140px 0 80px;
    min-height: 85vh;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 30px;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }

  .section-title {
    font-size: 2.3rem;
    margin-bottom: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .project-card, .package-card {
    padding: 30px;
  }

  .package-card h3 {
    font-size: 1.7rem;
  }

  .hero .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .hero-image {
    order: -1;
    margin: 0 0 2.5rem;
  }
  
  .hero-image .profile-img {
    margin: 0 auto;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.85rem;
  }
}

/* Small phones and older iPhones */
@media (max-width: 576px) {
  .hero {
    padding: 120px 0 60px;
    min-height: 100vh;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 18px;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 0.85rem;
    min-height: 52px;
  }

  .section {
    padding: 60px 0;
  }

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

  .profile-img {
    width: 240px;
    height: 240px;
  }

  .social-links {
    gap: 12px;
    justify-content: center;
  }

  .social-links a {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .project-card, .package-card {
    padding: 25px;
  }

  .package-card.featured {
    padding: 30px;
  }

  .container {
    padding: 0 16px;
  }

  /* Better touch targets */
  .project-link, .package-link {
    padding: 8px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 414px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .profile-img {
    width: 220px;
    height: 220px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .project-card, .package-card {
    padding: 20px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Landscape orientation for phones */
@media (max-width: 844px) and (orientation: landscape) {
  .hero {
    padding: 100px 0 60px;
    min-height: 90vh;
  }

  .hero .container {
    flex-direction: row;
    text-align: left;
  }

  .hero-image {
    order: 1;
    margin: 0 0 0 2rem;
  }

  .hero-content {
    margin-bottom: 0;
  }

  .profile-img {
    width: 250px;
    height: 250px;
  }

  .section {
    padding: 50px 0;
  }
}

/* Desktop and large screens */
@media (min-width: 1025px) {
  .packages-section .package-card {
    padding: 40px;
  }
  .packages-section .package-card h3 {
    font-size: 2.2rem;
  }
  .packages-section .package-desc {
    font-size: 1.1rem;
  }
  .packages-grid, .packages-featured {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }

  .hero {
    min-height: 100vh;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
}

/* Large desktop screens */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .profile-img {
    width: 420px;
    height: 420px;
  }
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Unified Card Style */
.contact-info-box,
.contact-form-box {
  background-color: #1e2636;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 transparent;
  transition: all 0.3s ease;
}

.contact-info-box:hover,
.contact-form-box:hover {
  border: 1px solid #2962ff;
  box-shadow: 0 0 20px rgba(41, 98, 255, 0.15);
}

/* Headings & Text */
.contact-info-box h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-description {
  color: #c0c6d6;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Info Items */
.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #d2d6e2;
  font-size: 0.95rem;
}

.contact-detail i {
  margin-right: 0.75rem;
  color: #6ea8ff;
}

/* Social Icons */
.contact-socials {
  margin-top: 1.5rem;
}

.contact-socials a {
  color: #fff;
  background: #2c3446;
  padding: 10px;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-socials a:hover {
  background: #2962ff;
  color: #fff;
}

/* Form Fields */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 10px;
  background-color: #2a3244;
  color: #fff;
  font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a8b1c0;
}

/* Submit Button */
.contact-form .btn {
  width: 100%;
  background-color: #2962ff;
  color: #fff;
  border: none;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #1f4cd2;
}


.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Match project card design */
.exp-card {
  background-color: #1e2636;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 transparent;
  transition: all 0.3s ease;
}

.exp-card:hover {
  border: 1px solid #2962ff;
  box-shadow: 0 0 20px rgba(41, 98, 255, 0.15);
}

.exp-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.exp-meta {
  color: #c0c6d6;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.exp-role {
  margin-top: 0.5rem;
  color: #6ea8ff;
  font-weight: 500;
  font-size: 1rem;
}

.exp-list {
  margin-top: 1.2rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.exp-list li {
  margin-bottom: 0.9rem;
  color: #d2d6e2;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 0;
  position: static;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

.project-card {
  background-color: #1e2636;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.project-card:hover {
  border: 1px solid #2962ff;
  box-shadow: 0 0 20px rgba(41, 98, 255, 0.15);
}

.project-content h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 600;
}

.project-tech {
  color: #aab4c4;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
}

.project-content p {
  color: #d2d6e2;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #2962ff;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #1f4cd2;
}

.btn-outline {
  background: transparent;
  border: 2px solid #2962ff;
  color: #2962ff;
}

.btn-outline:hover {
  background-color: #2962ff;
  color: #fff;
}

/* Tech Stack Section */
.tech-category {
  margin-bottom: 50px;
}

.tech-category-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--light);
  position: relative;
  padding-left: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-left: 5px solid var(--primary);
}

.section.tech-stack .tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Ensure tech cards in tab content have the same styling */
.tab-content .tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--dark-light);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card .tech-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Footer 2025 - Glassmorphism & Neumorphism Design */
.footer-2025-x {
  --footer-bg: rgb(30, 41, 59);
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  --card-highlight: rgba(255, 255, 255, 0.05);
  --accent-gradient: linear-gradient(90deg, #1e40af, #7e22ce, #0ea5e9);
  --glow-color: rgba(30, 64, 175, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-radius: 16px;
  --transition-speed: 0.3s;

  position: relative;
  margin-top: 0 !important;
  padding: 0 !important;
  width: 100%;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;    /* Add or decrease as needed */
  margin-bottom: 0 !important;
}

/* Animated gradient accent bar - Removed as requested
.footer-2025-x::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  background-size: 200% 100%;
  animation: gradientShift 2s ease infinite;
  z-index: 2;
}*/

/* Frosted glass panel effect */
.footer-2025-x .footer-glass {
  backdrop-filter: blur(6px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(6px);
  background: var(--footer-bg);
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  padding-bottom: 0 !important;
  padding-top: 20px !important;
}

/* Subtle grain overlay */
.footer-2025-x .footer-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.footer-2025-x .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid layout for footer sections */
.footer-2025-x .footer-grid {
  margin-bottom: 40px;
}

/* Top row for identity and quick links on same line */
.footer-2025-x .footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
}

/* Footer section styling */
.footer-2025-x .footer-section {
  padding: 25px 0;
  transition: transform var(--transition-speed);
}

.footer-2025-x .footer-top-row .footer-section {
  flex: 1;
}

.footer-2025-x .footer-section:hover {
  transform: translateY(-5px);
}

/* A. Identity Section */
.footer-2025-x .identity-section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--accent-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

.footer-2025-x .identity-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* B. Quick Links Section */
.footer-2025-x .quick-links {
  text-align: right;
  margin-top: 2px;
}

.footer-2025-x .quick-links ul {
  list-style: none;
  padding: 0;
}

.footer-2025-x .quick-links li {
  margin-bottom: 12px;
}

.footer-2025-x .quick-links ul li:first-child {
  margin-top: 16.5px; /* Set to 16.5px */
}

.footer-2025-x .quick-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-speed);
  font-size: 0.95rem;
  position: relative;
  padding-right: 18px;
  display: inline-block;
}

.footer-2025-x .quick-links a::before {
  content: '→';
  position: absolute;
  right: 0;
  transition: transform var(--transition-speed);
}

.footer-2025-x .quick-links a:hover,
.footer-2025-x .quick-links a:focus-visible {
  color: var(--text-primary);
}

.footer-2025-x .quick-links a:hover::before,
.footer-2025-x .quick-links a:focus-visible::before {
  transform: translateX(-3px);
}

/* C. Currently Coding In Section */
.footer-2025-x .coding-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.footer-2025-x .tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-2025-x .tech-badge {
  background-color: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-2025-x .tech-badge svg {
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}

.footer-2025-x .tech-badge:hover {
  transform: translateY(-3px);
}

.footer-2025-x .tech-badge:hover svg {
  color: var(--text-primary);
}


/* Social Links in Footer */
.footer-2025-x .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-2025-x .social-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-speed);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.footer-2025-x .social-links a:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-2025-x .footer-bottom {
  text-align: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.footer-2025-x .footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Scroll-to-top FAB */
.footer-2025-x .scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gradient);
  background-size: 200% auto;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.footer-2025-x .scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.footer-2025-x .scroll-to-top:hover {
  transform: scale(1.1);
  background-position: right center;
}

/* Animation for gradient shift */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive Layouts */
@media (max-width: 767px) {
  .footer-2025-x {
    padding: 0 !important;
  }
  .footer-2025-x .container {
    padding: 0 15px;
  }

  .footer-2025-x .footer-grid {
    gap: 20px;
  }

  .footer-2025-x .footer-top-row {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .footer-2025-x .identity-section,
  .footer-2025-x .quick-links {
    text-align: center;
    margin-top: 10px;
  }

  .footer-2025-x .quick-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-2025-x .quick-links a {
    padding-right: 0;
  }

  .footer-2025-x .quick-links a::before {
    display: none;
  }

  .footer-2025-x .social-links {
    gap: 10px;
    margin-top: 10px;
  }

  .footer-2025-x .social-links a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .footer-2025-x .footer-bottom {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 10px;
  }

  .footer-2025-x .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .footer-2025-x::before,
  .footer-2025-x .identity-section h2 {
    animation: none;
  }

  .footer-2025-x .scroll-to-top:hover {
    transform: none;
  }

  .footer-2025-x .footer-section:hover {
    transform: none;
  }

  .footer-2025-x .tech-badge:hover,
  .footer-2025-x .social-links a:hover {
    transform: none;
  }
}

/* Accessibility - Visually Hidden */
.footer-2025-x .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Light theme support */
body.light-theme .footer-2025-x {
  --footer-bg: rgba(248, 250, 252, 0.9);
  --card-bg: rgba(241, 245, 249, 0.7);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --card-highlight: rgba(0, 0, 0, 0.05);
  --glow-color: rgba(30, 64, 175, 0.2);
  --text-primary: #0f172a;
  --text-secondary: #475569;
}
