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

:root {
  --bg-color: #0b0f19;
  --bg-color-alt: #131a2a;
  --primary-color: #00f0ff;
  --text-color: #ffffff;
  --text-muted: #a0aec0;
  --glass-bg: rgba(19, 26, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}

/* Typography */
h1, h2, h3 {
  color: var(--text-color);
  font-weight: 600;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 0 10px var(--primary-color);
}

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

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

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

section {
  padding: 100px 0;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.nav-links li a {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.greeting {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.typing-text {
  color: var(--primary-color);
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-color) }
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

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

.skill-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.1);
  border-color: var(--primary-color);
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.skill-card h4 {
  font-size: 1rem;
  font-weight: 500;
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 20px;
  margin-left: -1px;
}

.timeline-item {
  padding: 20px 30px;
  position: relative;
  background: inherit;
  width: 100%;
  margin-bottom: 30px;
  padding-left: 60px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: auto;
  left: 12px;
  background-color: var(--bg-color);
  border: 4px solid var(--primary-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content {
  padding: 25px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: inline-block;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content ul li {
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.timeline-content ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
}

.project-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tech span {
  font-size: 0.8rem;
  color: var(--primary-color);
  background: rgba(0, 240, 255, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 15px;
}

/* Skills Bars */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.skill-box {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--glass-border);
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #00a8ff);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Education & Certs */
.edu-cert-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.edu-list, .cert-list {
  list-style: none;
}

.edu-item, .cert-item {
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  border-left: 3px solid var(--primary-color);
}

.edu-item h4 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 5px;
}

.edu-item span {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cert-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.cert-btn {
  margin-top: 20px;
  display: inline-block;
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-details p {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
}

.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

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

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-color-alt);
}

footer p {
  color: var(--text-muted);
}

footer span {
  color: var(--primary-color);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about-content, .skills-container, .edu-cert-container, .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-color-alt);
    flex-direction: column;
    padding: 40px 20px;
    transition: 0.4s ease;
    border-left: 1px solid var(--glass-border);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-btn {
    display: block;
  }
  
  .hero h1 { font-size: 2.5rem; }
  .hero-title { font-size: 1.5rem; }
  
  .timeline::after { left: 20px; }
  .timeline-item { padding-left: 60px; }
  .timeline-item::after { left: 12px; }
}
