:root {
  --bg: #121212;
  --text: #ffffff;
  --primary: #4fa9f6;
  --accent: #89c9ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
 margin-top: 10px;
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #121212; /* or your custom dark background */
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* optional line */
}



.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------------- HERO ---------------- */
.hero {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.circle-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: all 0.4s ease;
  cursor: pointer;
}

.avatar-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.name-text {
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  z-index: 1;
  line-height: 1.2;
}

.circle-logo:hover .avatar-img {
  opacity: 0;
}

.circle-logo:hover .name-text {
  opacity: 1;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero h1 span {
  color: var(--primary);
}

.typewriter {
  font-size: 1.2rem;
  color: var(--accent);
  min-height: 30px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(79, 169, 246, 0.4);
}

/* ---------------- SOCIAL ICONS ---------------- */
.hero-socials {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 25px;
  z-index: 2;
}

.hero-socials a .icon {
  font-size: 28px;
  color: var(--primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-socials a:hover .icon {
  transform: scale(1.2);
  color: var(--accent);
}

/* ---------------- BACKGROUND AESTHETIC ---------------- */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.hero::before {
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.hero::after {
  bottom: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

body::before,
body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  z-index: 0;
  animation: float 15s infinite ease-in-out;
  opacity: 0.07;
}

body::after {
  right: -150px;
  bottom: -150px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

/* ---------------- SECTION DIVIDER ---------------- */
.section-divider {
  border: none;
  border-top: 2px solid var(--primary);
  margin: 50px auto 30px;
  width: 80%;
  opacity: 0.5;
}

/* ---------------- SERVICES ---------------- */
.services {
  text-align: center;
  padding: 60px 20px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text);
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.service-card {
  background-color: #1e1e1e;
  border: 1px solid rgba(79, 169, 246, 0.2);
  border-radius: 15px;
  padding: 25px 20px;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(79, 169, 246, 0.25);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech {
  background-color: #2c2c2c;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--primary);
  border: 1px solid var(--accent);
  transition: background-color 0.3s ease;
}

.tech:hover {
  background-color: var(--accent);
  color: #111;
}

.animate-title {
  animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.view-details-btn {
  margin-top: 15px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 25px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-details-btn:hover {
  background: var(--accent);
  color: #111;
}

/* MODALS */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #1f1f1f;
  padding: 30px;
  border-radius: 10px;
  color: #fff;
  max-width: 400px;
  text-align: center;
  position: relative;
  border: 1px solid var(--primary);
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.2rem;
  color: var(--accent);
  cursor: pointer;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 15px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 50px;
    left: 20px;
    width: 180px;
    text-align: center;
    border-radius: 8px;
    padding: 12px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .typewriter {
    font-size: 1rem;
  }

  .circle-logo {
    width: 100px;
    height: 100px;
    font-size: 0.9rem;
  }

  .hero-socials a .icon {
    font-size: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 240px;
  }

  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .typewriter {
    font-size: 0.9rem;
  }

  .circle-logo {
    width: 90px;
    height: 90px;
    font-size: 0.8rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .hero-socials a .icon {
    font-size: 22px;
  }
}


/* projects section */
/* PROJECTS SECTION */
/* .projects {
  padding: 60px 20px;
  background-color: var(--bg);
}

.projects .section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--accent);
} */

/* Timeline Projects Section */

#project-heading{
   text-align: center;
   margin-top: 100px;
   margin-bottom: 30px;
}
.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-block {
  position: relative;
  background: #1e1e1e;
  border-left: 6px solid var(--primary);
  border-radius: 10px;
  width: 45%;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin-bottom: 50px;
  transition: all 0.3s ease;
}

.timeline-block:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(79, 169, 246, 0.4);
}

.timeline-block.left {
  left: 0;
}

.timeline-block.right {
  left: 55%;
}

.timeline-block::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--primary);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-block.left::before {
  right: -10px;
}

.timeline-block.right::before {
  left: -10px;
}

.timeline-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.timeline-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.timeline-block p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 8px;
}

.timeline-block a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.timeline-block a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .timeline::after {
    left: 10px;
  }

  .timeline-block {
    width: 100%;
    left: 0 !important;
    margin-left: 30px;
  }

  .timeline-block::before {
    left: -30px;
  }
}


/* contact section*/

.contact {
  padding: 60px 20px;
  text-align: center;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-columns {
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  flex-wrap: nowrap;
}

.contact-info {
  flex: 1;
  color: var(--text);
  text-align: left;
  margin-top: 60px;
}

.contact-info h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.contact-info p,
.contact-info a {
  margin-bottom: 20px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--text);
}

.contact-socials a {
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--primary);
  transition: color 0.3s, transform 0.3s;
}

.contact-socials a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* Vertical Divider */
.vertical-divider {
  width: 2px;
  background-color: var(--primary);
  opacity: 0.4;
  margin: 0 10px;
}

/* Contact Form */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-form label {
  margin-bottom: 6px;
  font-weight: bold;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 8px;
  background: #1f1f1f;
  border: 1px solid var(--text);
  color: var(--text);
  resize: none;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form button {
  align-self: flex-start;
  /* margin-left: auto;
  margin-right: auto; */
}

.form-message {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-columns {
    flex-direction: column;
    align-items: center;
  }

  .vertical-divider {
    display: none;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    text-align: center;
  }

  .contact-form {
    align-items: center;
  }

  .contact-form label {
    text-align: left;
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }
}


.footer {
    margin-top: 40px;
  background-color: #1c1c1c;
  color: #fff;
  padding: 60px 20px 20px;
  position: relative;
  z-index: 10;
   border-top: 3px solid var(--primary);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.footer-logo {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-5px);
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 14px;
  border-radius: 50%;
  transition: border-color 0.3s ease;
}

.back-to-top {
  font-size: 0.9rem;
  margin-top: 10px;
  color: var(--accent);
}

.footer-links h4,
.footer-socials h4 {
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-links ul {
  
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
  margin-left: 20px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-socials .social-icons a {
  margin-right: 15px;
  font-size: 1.4rem;
  color: var(--text);
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials .social-icons a:hover {
  color: var(--primary);
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  color: #aaa;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  padding-top: 15px;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  width: 0%;
  z-index: 999;
  transition: width 0.25s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-links,
  .footer-socials {
    margin-bottom: 30px;
  }
}
