/* Production CSS for Architect Portfolio */

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0a192f 0%, #0c2d48 50%, #1e3a8a 100%);
  color: #e2e8f0;
  overflow-x: hidden;
  line-height: 1.6;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mono-font {
  font-family: 'Fira Code', monospace;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 120px 0;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.loaded {
  opacity: 1;
  transform: translateY(0);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(100, 255, 218, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Navigation */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  padding: 16px 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  will-change: transform;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #64ffda;
  text-decoration: none;
  background: linear-gradient(45deg, #64ffda, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.nav-links {
  display: none;
}

.nav-mobile-btn {
  color: #e2e8f0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
}

.nav-mobile-btn:hover {
  transform: rotate(90deg);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 32px;
  }
  
  .nav-mobile-btn {
    display: none;
  }
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  font-size: 1.1rem;
  transform: translateZ(0);
  will-change: transform;
}

.nav-link:hover {
  color: #64ffda;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #64ffda, #38bdf8);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 64px;
  text-align: center;
  overflow: hidden;
  transform: translateZ(0);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(100, 255, 218, 0.15) 0%, transparent 40%),
               radial-gradient(circle at 70% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
               linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 58, 138, 0.6) 100%);
  z-index: 0;
}

.hero-content {
  z-index: 10;
  max-width: 900px;
  position: relative;
  animation: fadeInScale 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 20px;
  color: #f8fafc;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background: linear-gradient(45deg, #ffffff, #e2e8f0, #64ffda);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite alternate;
  transform: translateZ(0);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 28px;
  color: #64ffda;
  text-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
  background: linear-gradient(45deg, #64ffda, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 40px;
  color: #cbd5e1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  margin: 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  will-change: transform;
}

.btn::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:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(45deg, transparent, rgba(100, 255, 218, 0.1));
  color: #64ffda;
  border: 2px solid #64ffda;
}

.btn-primary:hover {
  background: linear-gradient(45deg, rgba(100, 255, 218, 0.2), rgba(100, 255, 218, 0.3));
  box-shadow: 0 0 25px rgba(100, 255, 218, 0.4);
  transform: translateY(-5px) scale(1.05);
  border-color: #a7f3d0;
}

.btn-secondary {
  background: linear-gradient(45deg, #64ffda, #38bdf8);
  color: #0f172a;
  border: 2px solid transparent;
}

.btn-secondary:hover {
  background: linear-gradient(45deg, #38bdf8, #64ffda);
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.6);
  transform: translateY(-5px) scale(1.05);
}

/* Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 70px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #f8fafc;
  font-weight: 800;
  text-align: center;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #64ffda, #38bdf8, #64ffda);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

/* Cards */
.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 58, 138, 0.6));
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 16px;
  padding: 35px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateZ(0);
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(100, 255, 218, 0.05), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(100, 255, 218, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.7));
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 40px;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.flex-wrap { flex-wrap: wrap; }

/* Margin/Padding Utilities */
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.p-4 { padding: 16px; }

/* Text Utilities */
.text-center { text-align: center; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Color Classes */
.text-light-gray { color: #e2e8f0 !important; }
.text-medium-gray { color: #94a3b8 !important; }
.text-secondary { color: #64ffda !important; }
.bg-primary { background-color: #0f172a !important; }
.bg-dark-bg { background-color: #020617 !important; }

/* Responsive Design */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:w-1\/3 {
    width: 33.333333%;
  }
  
  .md\:w-2\/3 {
    width: 66.666667%;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Particles Canvas */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: translateZ(0);
}

/* Contact Form */
.form-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.7);
  border: 2px solid #334155;
  border-radius: 12px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Footer */
.footer {
  background: linear-gradient(to bottom, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 40px 0;
}

.social-links {
  display: flex;
  gap: 28px;
}

.social-link {
  color: #94a3b8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.3);
  width: 50px;
  height: 50px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  color: #64ffda;
  border-color: #64ffda;
  transform: translateY(-5px) scale(1.1);
  background: rgba(100, 255, 218, 0.1);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success/Error Messages */
.alert {
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: linear-gradient(45deg, rgba(72, 187, 120, 0.2), rgba(72, 187, 120, 0.1));
  border: 1px solid rgba(72, 187, 120, 0.4);
  color: #34d399;
  box-shadow: 0 0 15px rgba(72, 187, 120, 0.2);
}

.alert-error {
  background: linear-gradient(45deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Skill Tags */
.skill-tag {
  display: inline-block;
  padding: 12px 28px;
  margin: 8px;
  background: linear-gradient(45deg, rgba(15, 23, 42, 0.8), rgba(30, 58, 138, 0.6));
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 30px;
  color: #64ffda;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  will-change: transform;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.skill-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
  transition: left 0.5s;
}

.skill-tag:hover::before {
  left: 100%;
}

.skill-tag:hover {
  background: linear-gradient(45deg, rgba(100, 255, 218, 0.2), rgba(100, 255, 218, 0.1));
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 30px rgba(100, 255, 218, 0.3);
  border-color: #64ffda;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section Professional Layout */
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.about-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.about-image-border {
  width: 280px;
  height: 280px;
  border: 3px solid transparent;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(45deg, #64ffda, #38bdf8, #64ffda);
  background-size: 300% 300%;
  animation: gradientRotate 4s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 40px rgba(100, 255, 218, 0.4);
  position: relative;
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.about-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(45deg, #0f172a, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64ffda;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #64ffda;
  text-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
  background: linear-gradient(45deg, #64ffda, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #64ffda;
  margin-bottom: 5px;
  text-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounceGlow 2.5s infinite;
}

@keyframes bounceGlow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.5));
  }
  40% {
    transform: translateY(-25px) translateX(-50%);
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.8));
  }
  60% {
    transform: translateY(-15px) translateX(-50%);
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.6));
  }
}

/* Profile Image Container */
.profile-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image-border {
  width: 300px;
  height: 300px;
  border: 3px solid transparent;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(45deg, #64ffda, #38bdf8, #64ffda);
  background-size: 300% 300%;
  animation: gradientRotate 4s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(45deg, #0f172a, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64ffda;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

/* List Styles */
.list-disc {
  list-style-type: disc;
}

.pl-5 {
  padding-left: 1.25rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

/* Button Focus States */
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(100, 255, 218, 0.5);
}

/* SVG Icons */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* Slider Styles */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
  will-change: transform;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  min-width: 100%;
  display: none;
}

.slide.active {
  display: block;
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: 2px solid rgba(100, 255, 218, 0.3);
  color: #64ffda;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
}

.slider-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(100, 255, 218, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #64ffda;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(100, 255, 218, 0.3);
}

/* Project Card Specific Styles */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Performance optimization */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Hardware acceleration */
.card, .btn, .skill-tag, .nav-link, .social-link {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}