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

:root {
  --bg-primary: #0a0f1e;
  --bg-secondary: #111827;
  --card-bg: rgba(17, 24, 39, 0.7);
  --card-border: rgba(59, 130, 246, 0.15);
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, #111827 0%, #0a0f1e 100%);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo-icon {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 10px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
}

.cta-btn {
  background: var(--gradient-1);
  color: white !important;
  font-weight: 600;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 550px;
}

/* Code Windows */
.hero-visual {
  position: relative;
  height: 450px;
}

.code-window {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  font-family: monospace;
  font-size: 0.8rem;
}

.window-1 {
  top: 0;
  left: 0;
  width: 350px;
  animation: float 6s infinite ease-in-out;
}

.window-2 {
  bottom: 50px;
  right: 0;
  width: 320px;
  animation: float 6s infinite ease-in-out 1.5s;
}

.dots {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* About Section */
.about {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.about-container {
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 40px;
  align-items: center;
}

.photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.profile-photo:hover {
  transform: scale(1.05);
}

.photo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 210px;
  background: var(--gradient-1);
  border-radius: 12px;
  opacity: 0.2;
  filter: blur(30px);
  z-index: 1;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.skills-container {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--accent-light);
}

.skill-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skill-tag {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: 0.3s;
}

.skill-tag:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* Projects Section */
.projects {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

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

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.4s;
  opacity: 0;
  transform: translateY(20px);
}

.project-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 25px;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-light);
  border-radius: 4px;
  font-weight: 600;
}

.project-content h3 {
  margin-bottom: 10px;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  margin-right: 10px;
}

.btn-secondary {
  border: 1px solid var(--card-border);
  color: white;
  background: transparent;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Footer */
footer {
  padding: 100px 40px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  background: rgba(10, 15, 30, 0.5);
}

footer h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.footer-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link svg {
  fill: var(--text-secondary);
  transition: 0.3s;
  z-index: 2;
}

.social-link:hover {
  transform: translateY(-10px);
  border-color: var(--accent-light);
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.social-link:hover svg {
  fill: white;
  transform: scale(1.2);
}

.copyright {
  color: var(--text-muted);
  margin-top: 50px;
  font-size: 0.8rem;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
  #about .about-grid {
    padding-top: 180px;
  }

  #about .photo-wrapper {
    position: static;
    margin: 0 auto 40px;
  }

  .page-header {
    left: 20px;
  }

  .page {
    padding: 80px 20px 60px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 35px;
  }

  .hero-visual {
    display: none;
  }

  #about .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 180px;
  }

  #about .about-content {
    text-align: center;
    order: 2;
  }

  #about .photo-wrapper {
    order: 1;
    margin: 0 auto 40px;
  }

  #about .about-text {
    border-left: none;
    padding-left: 0;
    border-top: none;
    padding-top: 0;
  }

  #about .skills-container {
    text-align: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .page .section-header h1 {
    font-size: 2.5rem;
  }
}


@media (max-width: 600px) {
  .nav-container {
    padding: 15px 20px;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .page {
    padding: 80px 20px 40px;
  }

  .page-header {
    left: 20px;
  }

  .back-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  .page .section-header h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  #about .photo-wrapper {
    width: 130px;
    height: 165px;
  }

  #about .photo-glow {
    width: 150px;
    height: 190px;
  }

  #about .about-grid {
    gap: 30px;
  }

  #about .skills-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==============================
   PAGE CONTAINER SYSTEM
============================== */

.page {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 100vh;
  padding: 80px 40px 60px;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Page Header with Back Button */
.page-header {
  position: fixed;
  top: 80px;
  left: 40px;
  z-index: 100;
  display: flex;
  gap: 15px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateX(-5px);
}

.back-btn svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Updated Section Header for Full Pages */
.page .section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.page .section-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: linear-gradient(to right, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 1px;
}

/* About Page Specific */
#about {
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
}

#about .about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}

#about .about-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

#about .photo-wrapper {
  position: relative;
  width: 150px;
  height: 190px;
  margin: 0;
  order: 2;
  flex-shrink: 0;
}

#about .photo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; 
  height: 220px;
  background: var(--gradient-1);
  border-radius: 12px;
  opacity: 0.2;
  filter: blur(30px);
  z-index: 1;
  animation: pulse 3s infinite ease-in-out;
}

#about .about-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
  padding-top: 0;
  order: 1;
  flex: 1;
}

#about .about-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.9;
  border-left: none;
  padding-left: 0;
}

#about .skills-container {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
}

#about .skill-category h4 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

#about .skill-tag {
  padding: 10px 18px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 25px;
  font-size: 0.9rem;
  color: var(--accent-light);
  transition: 0.3s;
}

#about .skill-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* Projects Page Specific */
#projects {
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
}

#projects .section-header {
  margin-bottom: 60px;
}

#projects .filters {
  margin-bottom: 50px;
  justify-content: center;
}

#projects .project-grid {
  max-width: 1400px;
  margin: 0 auto;
}
