* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #38bdf8;
  --accent: #06b6d4;
  --accent-secondary: #67e8f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.12);
  --bg-glass-strong: rgba(255, 255, 255, 0.18);
  --bg-glass-light: rgba(255, 255, 255, 0.08);
  --bg-glass-dark: rgba(255, 255, 255, 0.05);
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-glass: rgba(255, 255, 255, 0.25);
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #67e8f9 0%, #06b6d4 100%);
  --gradient-warm: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px 0 rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 16px 48px 0 rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.4);
  --blur: blur(30px);
  --blur-strong: blur(50px);
  --blur-light: blur(20px);
  --blur-ultra: blur(80px);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #bae6fd 50%, #e0f2fe 75%, #f0f9ff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  cursor: none;
  width: 100%;
  max-width: 100%;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Custom Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease;
  opacity: 0.5;
  transform: translate(-50%, -50%);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1000px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-ultra);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  z-index: 2;
}

.logo-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* Navigation hover effects */
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
  filter: blur(1px);
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  background: var(--gradient-primary);
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 55%;
  right: 15%;
  animation-delay: 2s;
  background: var(--gradient-secondary);
}

.shape-3 {
  width: 90px;
  height: 90px;
  bottom: 25%;
  left: 65%;
  animation-delay: 4s;
  background: var(--gradient-accent);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-strong);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
}

.highlighted {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content {
  width: 100%;
  max-width: 100%;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  min-height: 4.08rem; /* Reserve space for 2 lines to prevent layout shift */
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0; /* Hide initially until typing animation starts */
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--blur);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gradient-secondary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Code Window */
.code-window {
  background: linear-gradient(145deg, #1e293b, #334155);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur);
  position: relative;
}

.code-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.1), rgba(56, 189, 248, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.code-window:hover::before {
  opacity: 1;
}

.window-header {
  background: linear-gradient(145deg, #334155, #475569);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-buttons {
  display: flex;
  gap: 0.75rem;
}

.window-buttons span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: var(--transition);
  cursor: pointer;
}

.window-buttons span:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.btn-close {
  background: linear-gradient(145deg, #ef4444, #dc2626);
}
.btn-minimize {
  background: linear-gradient(145deg, #f59e0b, #d97706);
}
.btn-maximize {
  background: linear-gradient(145deg, #22c55e, #16a34a);
}

.window-title {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.code-content {
  padding: 2rem;
  font-family: "Fira Code", "JetBrains Mono", monospace;
  background: linear-gradient(145deg, #1e293b, #0f172a);
}

.code-line {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.code-line:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  margin: 0.25rem -0.5rem;
}

.line-number {
  color: #64748b;
  width: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.code-text {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 400;
}

.string {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}
.array {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-strong);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.section-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.9;
}

/* About Section */
.about {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.about-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-strong);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.3));
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-strong);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 0.1;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  position: relative;
  z-index: 2;
}

@keyframes glow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Skills Section */
.skills {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.skills-container {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
}

/* Flowing Tech Stack Layout */
.tech-flow {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tech-category {
  position: relative;
  padding: 2rem 0;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-right: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 3;
}

.category-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.3;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.category-line {
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: -3rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  opacity: 0.3;
}

.tech-category:last-child .category-line {
  display: none;
}

/* Floating Tech Pills */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: 5rem;
  position: relative;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-strong);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.4s ease;
  z-index: -1;
}

.tech-item:hover::before {
  left: 0;
}

.tech-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-xl);
  color: white;
  border-color: transparent;
}

.tech-item:nth-child(odd) {
  animation: float-up 6s ease-in-out infinite;
}

.tech-item:nth-child(even) {
  animation: float-down 6s ease-in-out infinite 3s;
}

@keyframes float-up {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-down {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.tech-icon {
  font-size: 1.2rem;
  opacity: 0.8;
}



/* Alternative Masonry Layout for Better Visual Flow */
.tech-masonry {
  columns: 3;
  column-gap: 1.5rem;
  margin-left: 5rem;
}

.tech-masonry .tech-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tech-cloud {
    margin-left: 2rem;
  }
  
  .tech-masonry {
    columns: 1;
    margin-left: 2rem;
  }
  
  .category-header {
    margin-bottom: 1.5rem;
  }
  
  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-right: 1rem;
  }
  
  .category-title {
    font-size: 1.5rem;
  }
  
  .category-line {
    left: 25px;
    top: 50px;
  }
  
  .tech-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .tech-masonry {
    columns: 2;
  }
}

/* Projects Section */
.projects {
  padding: 8rem 0;
  background: transparent;
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.projects-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.project-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-strong);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-emoji {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.project-emoji::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  background: var(--gradient-primary);
  opacity: 0.3;
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tech-tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.tech-tag:hover::before {
  left: 0;
}

.tech-tag:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.project-links {
  display: flex;
  gap: 1.5rem;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link:hover {
  color: var(--primary-dark);
}

.project-link::after {
  content: '→';
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.project-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Project Link Button Styles */
.project-link-button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link-button:hover {
  color: var(--primary-dark);
}

.project-link-button::after {
  content: '→';
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.project-link-button:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Project Link Container */
.project-link-container {
  display: inline-block;
}

@media (max-width: 992px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  
  .project-preview {
    min-height: 250px;
  }
  
  .project-card:nth-child(even) {
    direction: ltr;
  }
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background: transparent;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-info {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-strong);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.contact-info p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-methods {
  margin: 2.5rem 0;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  padding: 1rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
}

.contact-method:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.method-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.3));
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.social-link {
  padding: 0.75rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  left: 0;
}

.social-link:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Form Styles */
.contact-form {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--text-primary) 0%, #2d3748 100%);
  color: white;
  text-align: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer p {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
  opacity: 0.9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.modal-visible {
  opacity: 1;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.modal-overlay.modal-visible .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: 1rem 2rem 2rem 2rem;
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-weight: 500;
}

.modal-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.link-description {
  font-size: 1rem;
}

.link-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.modal-link:hover .link-arrow {
  transform: translateX(4px);
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .modal-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-subtitle {
    font-size: 0.9rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }

  .hero {
    padding-top: 100px;
  }
}

/* Desktop Navigation - Ensure hamburger is hidden */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: auto !important;
    padding: 0 !important;
    gap: 1rem !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    top: 0.5rem;
    width: calc(100% - 1rem);
    border-radius: var(--border-radius);
  }

  .hamburger {
    display: flex;
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hamburger span {
    background: var(--text-primary);
    border-radius: 2px;
  }

  .nav-menu {
    display: none;
    list-style: none;
    padding-left: 0;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    z-index: 1001;
    padding: 2rem;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .code-window {
    max-width: 100%;
    margin: 2rem 0;
  }

  .about-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card {
    padding: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info,
  .contact-form {
    padding: 2rem;
  }

  .projects-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card {
    padding: 2rem;
  }

  .project-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .project-emoji {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 1.25rem 2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-description {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 1rem 1.5rem;
  }

  .hero-stats {
    gap: 1.5rem;
    justify-content: center;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  /* Mobile-specific animations - disable hover transforms */
  .about-card:hover,
  .stat-card:hover,
  .contact-info:hover,
  .contact-form:hover,
  .project-card:hover {
    transform: none;
  }

  .contact-method:hover {
    transform: none;
  }

  .social-link:hover {
    transform: none;
  }
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 769px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .about-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-header {
    align-items: flex-start;
  }
}

/* Large tablet/small desktop adjustments */
@media (max-width: 1200px) and (min-width: 993px) {
  .projects-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Prevent horizontal scrolling on all sections */
section {
  overflow-x: hidden;
  width: 100%;
}
