/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle static background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
              #0f172a;
  z-index: -1;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  border-color: rgba(56, 189, 248, 0.3);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 24px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 1.5rem; /* Slightly reduced for better balance */
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  transition: width 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 28px;
  height: 3px;
  background: #e2e8f0;
  margin: 3px 0;
  border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(8px);
    padding: 2rem 0;
    gap: 1.5rem;
    text-align: center;
    transition: left 0.3s ease;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  }

  .nav-menu.active {
    left: 0;
  }
}

/* ===== HERO SECTION ===== */
/* ===== HERO SECTION ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}
.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  text-align: center;
}

.hero-image {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
}

.profile-hero-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38bdf8;
  box-shadow: 0 15px 35px -5px rgba(56, 189, 248, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-hero-image:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(56, 189, 248, 0.5);
}

.welcome-message {
  font-size: 1.1rem;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role {
  font-size: 2.2rem;
  color: #38bdf8;
  margin-bottom: 1rem;
  font-weight: 500;
}

.tagline {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto; /* Centers the tagline block */
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center; /* Centers the buttons */
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  color: #fff;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  box-shadow: 0 5px 15px -5px rgba(56, 189, 248, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #38bdf8;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.6);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #a855f7;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .hero-image {
    flex: 0 0 auto;
  }

  .profile-hero-image {
    width: 250px;
    height: 250px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .role {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .profile-hero-image {
    width: 200px;
    height: 200px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .role {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1rem;
  }
}
/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
}

h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #e2e8f0;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* About */
.about-card {
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.profile-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38bdf8;
  box-shadow: 0 5px 20px -5px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s ease;
}

.profile-image:hover {
  transform: scale(1.02);
}

#about p {
  font-size: 1.2rem;
  text-align: center;
  color: #cbd5e1;
}

/* ===== SKILLS CATEGORIES ===== */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  padding: 2rem;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-bottom: 0.8rem;
}

.skill-category h3 i {
  font-size: 1.6rem;
  color: #38bdf8;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.skill-item i {
  color: #38bdf8;
  font-size: 1rem;
}

.skill-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

/* Platform links - more visible */
.platform-link {
  color: #38bdf8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.platform-link:hover {
  text-decoration: underline;
  color: #a855f7;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.project-date {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.tech-stack {
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.project-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
  margin-top: auto;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link i {
  transition: transform 0.2s;
}

.project-link:hover {
  color: #a855f7;
}

.project-link:hover i {
  transform: translateX(4px);
}

/* ===== LISTS (achievements, certificates) ===== */
.list-card {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.list-card li {
  background: rgba(255, 255, 255, 0.03);
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: all 0.2s;
  font-size: 1rem;
}

.list-card li:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: #38bdf8;
  transform: translateX(5px);
}

/* Certificate links - more visible */
.cert-link {
  color: #38bdf8;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  font-weight: 500;
}

.cert-link:hover {
  text-decoration: underline;
  color: #a855f7;
}

/* ===== EDUCATION ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.education-item {
  padding: 2rem;
}

.education-item h3 {
  color: #38bdf8;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* ===== TRAINING ===== */
.training-item {
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.training-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}

.training-link:hover {
  text-decoration: underline;
  color: #a855f7;
}

.training-date {
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* ===== CONTACT ===== */
#contact-form {
  max-width: 500px;
  margin: 0 auto 2rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

input, textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  padding: 1rem;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 5px 15px -5px rgba(56, 189, 248, 0.4);
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.6);
}

.form-message {
  padding: 1rem;
  border-radius: 12px;
  display: none;
  text-align: center;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* Contact & Profile Links */
.contact-links, .profile-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-links a, .profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.5rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 40px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}

.contact-links a:hover, .profile-links a:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
  transform: translateY(-2px);
  color: #38bdf8;
}

.profile-links h3 {
  width: 100%;
  text-align: center;
  color: #38bdf8;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding: 3rem 0 1rem;
  color: #e2e8f0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-info p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-quick-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.footer-quick-links ul {
  list-style: none;
  padding: 0;
}

.footer-quick-links li {
  margin-bottom: 0.5rem;
}

.footer-quick-links a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-quick-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
  transform: translateX(3px);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
}

.footer-contact i {
  color: #38bdf8;
  width: 20px;
}

.footer-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  color: #fff;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px -5px rgba(56, 189, 248, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.back-to-top {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-to-top i {
  transition: transform 0.2s;
}

.back-to-top:hover {
  color: #a855f7;
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-image {
    flex: 0 0 auto;
  }

  .profile-hero-image {
    width: 250px;
    height: 250px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .role {
    font-size: 1.8rem;
  }

  .tagline {
    text-align: center; /* Center on mobile */
  }

  .hero-buttons {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile-hero-image {
    width: 200px;
    height: 200px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .role {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-links, .profile-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-links a, .profile-links a {
    width: 100%;
    justify-content: center;
  }
}