/* ===== CSS Variables ===== */
:root {
  /* Pink Professional Theme Colors */
  --primary: #ec4899;
  --primary-dark: #db2777;
  --primary-light: #f472b6;
  --secondary: #a855f7;
  --accent: #d946ef;
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --pink-800: #9d174d;
  --pink-900: #831843;
  
  /* Enhanced Neutrals for Better Comfort */
  --white: #f8f6f7e4;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  
  /* Semantic - Enhanced Light Theme */
  --bg-primary: #fac1dfc5;
  --bg-secondary: #f1f1f1d4;
  --bg-card: #f3f2f2;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.503), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(226, 33, 129, 0.784), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  
  /* Borders */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1e1e3f;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #2d3748;
  --shadow: 0 1px 3px 0 rgba(236, 72, 153, 0.2), 0 1px 2px 0 rgba(236, 72, 153, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(236, 72, 153, 0.2), 0 2px 4px -1px rgba(236, 72, 153, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(236, 72, 153, 0.2), 0 4px 6px -2px rgba(236, 72, 153, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(236, 72, 153, 0.2), 0 10px 10px -5px rgba(236, 72, 153, 0.1);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== Navigation ===== */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(254, 254, 254, 0.753);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .glass-nav {
  background: rgba(15, 15, 26, 0.95);
  border-bottom-color: var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.nav-name {
  font-weight: 700;
  color: var(--text-primary);
}

.nav-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.theme-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.theme-btn:hover {
  color: var(--primary);
  background: var(--bg-secondary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0.25rem;
}

.mobile-menu-btn span {
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(236, 72, 153, 0.05) 0%, 
    rgba(168, 85, 247, 0.05) 50%, 
    rgba(217, 70, 239, 0.05) 100%);
}

.hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-subdescription {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
  height: 400px;
}

.visual-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
  color: var(--text-primary);
}

.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 10%;
  right: 20%;
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 1s;
}

.card-4 {
  bottom: 20%;
  right: 10%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: var(--border);
  margin: 0 auto 0.5rem;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { height: 3rem; opacity: 1; }
  50% { height: 4rem; opacity: 0.7; }
}

/* ===== About Section ===== */
.about {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-item i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.highlight-item span {
  color: var(--text-secondary);
}

.about-actions {
  display: flex;
  gap: 1rem;
}

.visual-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.card-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.card-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.card-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.detail-item i {
  color: var(--primary);
  width: 1rem;
}

/* ===== Skills Section ===== */
.skills {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.skills-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.category-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}

.category-header h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-item:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.skill-tools {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ===== Projects Section ===== */
.projects {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.projects-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.project-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-nav:hover {
  background: var(--primary);
  color: var(--white);
}

.project-nav.prev {
  left: 1rem;
}

.project-nav.next {
  right: 1rem;
}

.projects-scroll {
  display: flex;
  transition: transform 0.5s ease;
}

.project-card {
  min-width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.project-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.project-img-container {
  height: 300px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

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

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

.project-link:hover {
  gap: 0.75rem;
}

.project-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.project-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-indicator.active {
  background: var(--primary);
  transform: scale(1.2);
}

.projects-cta {
  text-align: center;
  padding: 2rem;
}

.projects-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ===== Dashboard Section ===== */
.dashboard {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.dashboard-showcase {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.dashboard-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.dashboard-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.dashboard-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.feature div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.feature span {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

.dashboard-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-embed {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 800px;
}

.dashboard-embed iframe {
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  border: none;
}

/* ===== Contact Section ===== */
/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.contact-content {
  max-width: 480px;
  margin: 50px auto 0;
}

.contact-flow {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Contact Items */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.05), transparent);
  transition: left 0.6s ease;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-text {
  flex: 1;
  text-align: left;
}

.contact-text h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-arrow {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  margin-left: 12px;
}

.contact-item:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--primary-color);
}

/* Contact Actions */
.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 500;
}

/* Social Flow */
.social-flow {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.social-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
  }
  
  .contact-content {
    margin: 30px 20px 0;
  }
  
  .contact-item {
    padding: 18px 20px;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .contact-actions .btn {
    width: 100%;
  }
  
  .social-flow {
    flex-direction: column;
  }
  
  .social-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-item {
    padding: 16px 18px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 14px;
  }
  
  .contact-text h4 {
    font-size: 0.95rem;
  }
  
  .contact-text p {
    font-size: 0.85rem;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-text h3 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.footer-text p {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-group h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.link-group a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .skills-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .dashboard-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .skills-showcase {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .project-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .project-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .about-actions {
    flex-direction: column;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .dashboard-embed iframe {
    height: 400px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== Mobile Menu Styles ===== */
.nav-links.active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
}

.nav-links.active .nav-link {
  padding: 0.75rem 2rem;
  display: block;
}

.mobile-menu-btn span.active:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-btn span.active:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Utility Classes ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== AOS Animations ===== */
[data-aos] {
  opacity: 0;
  transition: all 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* ===== Loading States ===== */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:disabled:hover {
  transform: none;
}

/* ===== Selection Styles ===== */
::selection {
  background-color: var(--primary);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary);
  color: var(--white);
}
/* ===== MOBILE RESPONSIVENESS ===== */

/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    padding: 0 15px;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    margin: 10px 0;
  }

  /* Hero Section */
  .hero-container {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* About Section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Skills Section */
  .skills-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Projects Section */
  .project-filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .filter-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .project-card {
    flex-direction: column;
  }
  
  .project-img-container {
    width: 100%;
  }
  
  .project-content {
    width: 100%;
  }
  
  .project-tags {
    flex-wrap: wrap;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  /* Contact Section */
  .contact-actions {
    flex-direction: column;
  }
  
  .contact-actions .btn {
    width: 100%;
  }
  
  .social-flow {
    flex-direction: column;
  }
  
  /* General */
  .container {
    padding: 0 20px;
  }
  
  .section-header {
    text-align: center;
  }
}

/* ===== ENHANCED MOBILE MENU ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: left 0.3s ease;
    z-index: 999;
    gap: 0;
  }

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

  .nav-links li {
    margin: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1000;
  }

  /* Overlay when menu is open */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 6rem 1rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .hero-visual {
    height: 300px;
  }

  .floating-card {
    transform: scale(0.8);
    font-size: 0.9rem;
  }

  .card-1 { top: 10%; left: 5%; }
  .card-2 { top: 15%; right: 5%; }
  .card-3 { bottom: 25%; left: 10%; }
  .card-4 { bottom: 15%; right: 10%; }
}
/* ===== TOUCH-FRIENDLY INTERACTIONS ===== */
@media (max-width: 768px) {
  /* Larger touch targets */
  .btn, .filter-btn, .project-indicator {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px;
  }

  /* Smooth scrolling for iOS */
  .container {
    -webkit-overflow-scrolling: touch;
  }

  /* Better spacing for mobile */
  .section-padding {
    padding: 3rem 0;
  }

  /* Optimize text sizes */
  .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

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

  /* Stack grid layouts */
  .about-grid,
  .skills-showcase,
  .dashboard-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Adjust project carousel */
  .project-nav {
    display: none; /* Hide arrows on mobile */
  }

  .project-indicators {
    margin-top: 1.5rem;
  }

  .project-indicator {
    width: 12px;
    height: 12px;
  }
}

/* ===== SMALL PHONE OPTIMIZATIONS ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat {
    padding: 1rem;
  }

  .project-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .contact-item {
    padding: 1rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }
}

/* ===== VERY SMALL DEVICES ===== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.8rem;
  }

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

  .btn {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .floating-card {
    transform: scale(0.7);
    padding: 0.75rem;
  }
}
/* ===== MOBILE FOOTER FIXES ===== */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-brand {
    justify-content: center;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
  
  .link-group {
    text-align: center;
  }
  
  .link-group h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  
  .link-group a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  
  .link-group a:last-child {
    border-bottom: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-top: 1.5rem;
  }
  
  .footer-bottom p {
    margin: 0.25rem 0;
  }
}

/* ===== MOBILE PROJECT CAROUSEL FIXES ===== */
@media (max-width: 768px) {
  .projects-container {
    position: relative;
    padding: 0 10px;
  }
  
  /* Show navigation arrows on mobile */
  .project-nav {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0.9;
  }
  
  .project-nav:hover {
    background: var(--primary);
    color: var(--white);
    opacity: 1;
  }
  
  .project-nav.prev {
    left: 5px;
  }
  
  .project-nav.next {
    right: 5px;
  }
  
  /* Make project cards more mobile-friendly */
  .project-card {
    margin: 0 5px;
    border-radius: var(--radius-lg);
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-content h3 {
    font-size: 1.3rem;
  }
  
  .project-tags {
    gap: 0.5rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }
  
  .project-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .project-link {
    justify-content: center;
    padding: 0.75rem;
  }
}

/* ===== SMALL PHONE OPTIMIZATIONS ===== */
@media (max-width: 480px) {
  .project-nav {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .project-nav.prev {
    left: 2px;
  }
  
  .project-nav.next {
    right: 2px;
  }
  
  .project-content {
    padding: 1.25rem;
  }
  
  .project-content h3 {
    font-size: 1.2rem;
  }
  
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
}

/* ===== TOUCH-FRIENDLY PROJECT INDICATORS ===== */
@media (max-width: 768px) {
  .project-indicators {
    margin-top: 1.5rem;
    gap: 0.75rem;
  }
  
  .project-indicator {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
  }
}
/* ===== MOBILE NAVIGATION FIXES ===== */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  .nav-links {
    display: none;
  }
  
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }
  
  /* Mobile menu styles */
  .nav-links.mobile-active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 2rem 2rem;
    z-index: 1000;
    gap: 0;
  }
  
  .nav-links.mobile-active li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-links.mobile-active .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  
  /* Mobile menu button animation */
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* ===== CONTAINER OVERFLOW FIXES ===== */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    overflow-x: hidden;
  }
  
  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Fix project carousel container */
  .projects-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }
  
  /* Fix hero section on mobile */
  .hero-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  /* Fix about section grid */
  .about-grid {
    width: 100%;
    max-width: 100%;
  }
  
  /* Fix skills grid */
  .skills-showcase {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== TOUCH IMPROVEMENTS ===== */
@media (max-width: 768px) {
  /* Larger touch targets */
  .btn, .filter-btn, .project-indicator {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 12px 0;
  }
}