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

:root {
  --bg-color: #0b0f19;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent-cyan: #00f2fe;
  --accent-purple: #4facfe;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 20% 30%, rgba(0, 242, 254, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(79, 172, 254, 0.15) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* Navigation Menu */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

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

/* Main Container */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Hero Section (Index) */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 70vh;
}

.hero-content {
  flex: 1;
}

.hero-subtitle {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.hero-title span {
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

.typewriter-text {
  border-right: 2px solid var(--accent-cyan);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-cyan); }
}

.hero-img-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.3);
  border: 4px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(79, 172, 254, 0.4);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

/* About & Contact Section */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-title span {
  color: var(--accent-purple);
}

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

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-item i {
  color: var(--accent-cyan);
  font-size: 1.5rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
}

.project-img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 12px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--glass-border);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

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

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

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

/* Contact Form Styles */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}
.submit-btn {
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  color: #000;
  font-weight: 800;
  font-family: inherit;
  font-size: 1.1rem;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1rem;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

/* Resume Button */
.resume-btn {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  color: var(--accent-cyan) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}
.resume-btn::after {
  display: none !important;
}
.resume-btn:hover {
  background: var(--accent-cyan);
  color: #000 !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .profile-img {
    width: 250px;
    height: 250px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .project-desc {
    font-size: 0.85rem;
  }
  
  .glass-card.project-card {
    padding: 1rem;
  }
  
  .modal-content {
    width: 95%;
    padding: 1.5rem 1rem;
  }
  
  .modal-project-image {
    max-height: 250px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--text-secondary);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-cyan);
}

.modal-project-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background-color: transparent;
}
