/* Base Styles */
:root {
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --accent: #f43f5e;
  --accent-dark: #e11d48;
  --light: #f8fafc;
  --dark: #0f172a;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --max-width: 1200px;
  --border-radius: 12px;
  --nav-height: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(244, 63, 94, 0.08) 0%, transparent 25%),
    linear-gradient(to bottom, var(--light), var(--light));
  pointer-events: none;
  z-index: -2;
}

/* Noise Texture */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--dark), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 60ch;
}

.about-content p {
  color: var(--gray-400);
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 0.3em;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  opacity: 0.3;
  z-index: -1;
  border-radius: 2px;
  transform: skew(-12deg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--accent-dark);
}

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

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  letter-spacing: -0.5px;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo span {
  color: var(--primary);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.logo span::before {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: -0.1em;
  right: -0.1em;
  height: 0.3em;
  background: var(--primary);
  opacity: 0.2;
  z-index: -1;
  border-radius: 2px;
  transform: skew(-12deg);
}

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

.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
  border-radius: 2px;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

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

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

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

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

  .nav-links a {
    font-size: 1.25rem;
    padding: 0.75rem 0;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-height) + 2rem) 0 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(244, 63, 94, 0.1) 0%, transparent 30%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  justify-items: center;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(90deg, #14b8a6, #f43f5e, #14b8a6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}

.hero p {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  position: relative;
  margin-top: 0.5rem;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
}

/* Section Headers */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  margin: 0 auto 1.5rem;
  text-align: center;
}

.section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--gray-600);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.project-content p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--gray-600);
  flex: 1;
}

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

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 50px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-text::after {
  content: '→';
  transition: transform 0.3s ease;
}

.btn-text:hover {
  color: var(--primary-dark);
}

.btn-text:hover::after {
  transform: translateX(4px);
}

/* Glow Effect */
.glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover .glow {
  opacity: 1;
}

/* Background Variations */
.bg-light {
  background-color: var(--gray-100);
}

.bg-dark {
  background-color: var(--dark);
  color: white;
}

.bg-dark h2,
.bg-dark h3,
.bg-dark .section-header p {
  color: white;
}

.bg-dark .project-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

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

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.app-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.app-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(159, 122, 234, 0.2) 0%, rgba(128, 90, 213, 0.1) 100%);
  opacity: 0;
  transition: var(--transition);
}

.app-card:hover .app-image::after {
  opacity: 1;
}

.app-content {
  padding: 1.5rem;
}

.app-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  margin-bottom: 1rem;
}

/* Coming Soon */
.coming-soon {
  margin-top: 8rem;
  text-align: center;
}

.coming-soon h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.coming-soon h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* Footer */
footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

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

footer .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary);
  text-decoration: none;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary);
  text-decoration: none;
}

footer .text-2xl {
  margin-bottom: 1.5rem;
  display: inline-block;
}

footer .text-primary-400 {
  color: var(--primary);
}

footer .space-y-4 > * + * {
  margin-top: 1rem;
}

footer .border-t {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .text-gray-500 {
  color: rgba(255, 255, 255, 0.5);
}

footer .hover\:text-white:hover {
  color: white;
}

footer .transition-colors {
  transition: color 0.2s ease;
}

footer .flex.space-x-4 > * + * {
  margin-left: 1rem;
}

footer .mb-12 {
  margin-bottom: 3rem;
}

footer .gap-8 {
  gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  /* About section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-content, 
  .about-visual {
    order: initial;
  }
  
  .about-visual {
    margin-top: 1rem;
  }
  
  /* Connect section */
  .bio-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .bio-image {
    order: -1;
    max-width: 300px;
    margin: 0 auto 2rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* Footer */
  footer .md\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  footer .border-t {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  footer .grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  footer .border-t {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  footer .md\:grid-cols-4 {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo span {
  color: var(--accent);
}

.footer-about p {
  color: #a0aec0;
  margin-bottom: 1.5rem;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 6rem 0;
  }
}

/* Projects Section */
#projects {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  z-index: 2;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.project-content p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.project-links .btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.project-links .btn-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.project-links .btn-text:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

.project-links .btn-text::after {
  content: '→';
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.project-links .btn-text:hover::after {
  transform: translateX(3px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--gray-200);
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}

/* About Section */
#about {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.about-content {
  padding-right: 2rem;
}

.about-visual {
  position: relative;
  width: 100%;
  margin: 0 auto;
  align-self: center;
}

.visual-element {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.quadrant {
  position: absolute;
  width: 50%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  color: white;
  box-sizing: border-box;
  padding: 1rem;
  text-align: center;
}

.quadrant span {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.quadrant p {
  font-size: 0.7rem;
  opacity: 0.8;
  line-height: 1.2;
  margin: 0.25rem 0 0;
  max-width: 90%;
}

.quadrant-1 {
  top: 0;
  left: 0;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 100% 0 0 0;
  overflow: hidden;
}

.quadrant-2 {
  top: 0;
  right: 0;
  background: rgba(244, 63, 94, 0.1);
  border-radius: 0 100% 0 0;
  overflow: hidden;
}

.quadrant-3 {
  bottom: 0;
  left: 0;
  background: rgba(236, 72, 153, 0.1);
  border-radius: 0 0 0 100%;
  overflow: hidden;
}

.quadrant-4 {
  bottom: 0;
  right: 0;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 0 0 100% 0;
  overflow: hidden;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quadrant:hover {
  z-index: 2;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

#about .section-header {
  margin-bottom: 2rem;
}

#about .section-header h2 {
  margin-bottom: 1rem;
}

#about .prose {
  max-width: 100%;
}

#about .prose p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--gray-600);
  font-size: 1.1rem;
}

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.about-image:hover {
  transform: rotate(0);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(244, 63, 94, 0.2) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Grid in About Section */
#about .features-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

#about .feature {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

#about .feature-icon {
  font-size: 1.8rem;
  color: var(--primary);
  background: rgba(20, 184, 166, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem; /* Slight adjustment for better vertical alignment */
}

#about .feature-content {
  flex: 1;
  min-width: 0; /* Prevents content from overflowing */
}

#about .feature h4 {
  font-size: 0.9rem;
  margin: 0 0 0.15rem 0;
  line-height: 1.3;
  color: white;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#about .feature p {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.8;
  line-height: 1.4;
  width: 100%;
  word-wrap: break-word;
}

#about .feature:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Connect Section */
#connect {
  padding: 6rem 0;
  background: #f8fafc;
}

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

.bio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.bio-text h3 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.bio-text p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.bio-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 400px;
}

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

.bio-image:hover .profile-image {
  transform: scale(1.03);
}

/* Contact Section */
#contact {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

#contact .container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  background-color: white;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.contact-method {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.contact-method h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.contact-method p, 
.contact-method a {
  color: var(--gray-600);
  margin-bottom: 0;
  transition: color 0.2s ease;
}

.contact-method a:hover {
  color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 2rem;
  }
  
  #about .container {
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-content {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  #about .container {
    grid-template-columns: 1fr;
  }
  
  #about .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 6rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .project-links .btn-small {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation for back to top button */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  border: none;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
