@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #080810;
  --bg-secondary: #0f0f23;
  --accent-blue: #00d2ff;
  --accent-purple: #7928ca;
  --accent-pink: #ff007a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(15, 15, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover-border: rgba(255, 255, 255, 0.2);
  --shadow-neon: 0 0 20px rgba(0, 210, 255, 0.2);
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout Options */
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  transition: all 1s ease;
}

.bg-glow-1 {
  background: var(--accent-blue);
  top: -100px;
  right: -100px;
  animation: float-glow-1 20s infinite ease-in-out alternate;
}

.bg-glow-2 {
  background: var(--accent-purple);
  bottom: -150px;
  left: -150px;
  animation: float-glow-2 25s infinite ease-in-out alternate;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, 80px) scale(1.2); }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, -90px) scale(1.1); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-subtitle {
  color: var(--accent-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 8, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(8, 8, 16, 0.9);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-typing-text {
  font-size: 2.5rem;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-secondary);
  display: inline-block;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  border: none;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-hover-border);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 3/4;
}

.hero-image-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
  border-radius: 20px;
  z-index: 1;
  filter: blur(15px);
  opacity: 0.6;
  animation: pulse-glow 8s infinite alternate;
}

.hero-image-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

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

.hero-image-container:hover .hero-image {
  transform: scale(1.05);
}

@keyframes pulse-glow {
  0% { transform: scale(0.98); opacity: 0.5; }
  100% { transform: scale(1.02); opacity: 0.8; }
}

/* About Section */
.about-section {
  padding: 100px 0;
  position: relative;
}

.about-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-bio h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.about-bio p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.meta-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.meta-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.meta-val {
  font-weight: 500;
  font-size: 1rem;
}

/* Skills Section */
.skills-section {
  padding: 100px 0;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skills-category {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-category:hover {
  transform: translateY(-5px);
  border-color: var(--glass-hover-border);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-category-header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.skills-icon-wrapper {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 8px;
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.skill-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* Projects Section */
.projects-section {
  padding: 100px 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-hover-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #121320;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 8, 16, 0.8) 100%);
  z-index: 2;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

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

.project-media svg {
  opacity: 0.15;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media svg {
  transform: scale(1.1) rotate(5deg);
}

.project-glow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-blue);
  filter: blur(40px);
  opacity: 0.25;
  pointer-events: none;
}

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

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.project-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--accent-blue);
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.contact-icon-wrapper {
  color: var(--accent-blue);
  padding: 12px;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-item-details p, .contact-item-details a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item-details a:hover {
  color: var(--text-primary);
}

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

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

/* Contact Form */
.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success-msg {
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  background: rgba(4, 4, 8, 0.5);
}

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

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-image-wrapper {
    max-width: 320px;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .about-section, .skills-section, .projects-section, .contact-section {
    padding: 80px 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-typing-text {
    font-size: 1.8rem;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 0 2rem;
    gap: 1.5rem;
    text-align: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease;
  }
  
  .nav-links.active {
    max-height: 400px;
    opacity: 1;
    padding: 2rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .about-section, .skills-section, .projects-section, .contact-section {
    padding: 60px 0;
  }
  
  .about-card {
    padding: 2rem 1.5rem;
  }
  
  .about-meta {
    grid-template-columns: 1fr;
  }
  
  .skills-category {
    padding: 1.5rem;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-section {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-title span {
    font-size: 1.8rem !important;
  }
  
  .hero-typing-text {
    font-size: 1.4rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .about-card {
    padding: 1.5rem 1rem;
  }
  
  .project-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .project-link {
    width: 100%;
    justify-content: center;
  }
}

/* Keyframe Animations */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
