/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary: #FF8C00;      /* Dark Orange */
  --accent: #FFD700;       /* Gold */
  --bg-dark: #0b1120;      /* Very Dark Navy */
  --bg-light: #162447;     /* Lighter Navy */
  --text-white: #ffffff;
  --text-gray: #d1d5db;
  --nav-bg: #ffffff;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: "Ubuntu", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding-top: 80px;
  overflow-x: hidden;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--nav-bg);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container header h2 {
  font-size: 1.8rem;
  color: var(--bg-dark);
  font-family: 'Lora', serif;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--bg-dark);
  cursor: pointer;
}

/* =========================================
   3. GLOBAL STYLES (Headings & Buttons)
   ========================================= */
h1 {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  border: 2px solid var(--primary);
}

.btn:hover {
  background-color: transparent;
  color: var(--primary);
}

.btn-small {
  display: inline-block;
  padding: 8px 16px;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-small:hover {
  background-color: var(--primary);
  color: white;
}

/* =========================================
   4. HOME SECTION
   ========================================= */
#home {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 5%;
  background: linear-gradient(to right, #0b1120, #162447);
}

.info {
  flex: 1;
  text-align: left;
}

.info h2 {
  font-size: 2.5em;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.info p {
  color: var(--text-gray);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.photo-container {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
#about {
  padding: 4rem 1rem;
  background-color: var(--bg-dark);
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.a1 {
  flex: 1;
  text-align: left;
}

.a1 h2 {
  color: var(--accent);
  margin-bottom: 15px;
}

.a1 p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-info p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  color: white;
}

.icon {
  color: var(--primary);
}

.a2 {
  flex: 1;
  text-align: center;
}

.a2 img {
  width: 250px;
  border-radius: 10px;
  box-shadow: 10px 10px 0 var(--primary);
}

/* =========================================
   6. SKILLS SECTION
   ========================================= */
#skill {
  padding: 4rem 1rem;
  background-color: var(--bg-light);
}

.skills {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

.skill {
  margin-bottom: 1.5rem;
}

.skill span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--accent);
}

.progress {
  width: 100%;
  height: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0; /* JS will animate this */
  transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* =========================================
   7. PROJECTS SECTION
   ========================================= */
#projects {
  padding: 4rem 1rem;
  background-color: var(--bg-dark);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  border-bottom: 3px solid var(--primary);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.tech-stack {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* =========================================
   8. CERTIFICATES (Carousel)
   ========================================= */
#certificates {
  padding: 4rem 1rem;
  background-color: var(--bg-light);
  text-align: center;
}

.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem;
  width: 100%;
  scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.cert-card {
  min-width: 300px;
  background-color: var(--bg-dark);
  padding: 2rem;
  border-radius: 10px;
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.cert-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.issuer {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.cert-card h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cert-card p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.slider-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   9. RESUME SECTION (Timeline)
   ========================================= */
#resume {
  padding: 4rem 1rem;
  background-color: var(--bg-dark);
}

.resume-download {
  text-align: center;
  margin-bottom: 3rem;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.resume-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 5px;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 2rem;
  border-left: 2px solid var(--primary);
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block;
}

.timeline-content h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.timeline-content h4 {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 10px;
}

.resume-list {
  list-style: none;
  padding: 0;
}

.resume-list li {
  position: relative;
  padding-left: 15px;
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.resume-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.skill-tags span {
  background-color: var(--bg-light);
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid var(--primary);
}

.achievement-card {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.achievement-card h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.achievement-card p {
  color: #ddd;
  font-size: 0.9rem;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
  background-color: #05080f;
  padding: 3rem 1rem;
  text-align: center;
  border-top: 2px solid var(--primary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: #555;
  font-size: 0.9rem;
}

/* =========================================
   11. ANIMATIONS & EFFECTS
   ========================================= */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.project-card:nth-child(2), .cert-card:nth-child(2) { transition-delay: 200ms; }
.project-card:nth-child(3), .cert-card:nth-child(3) { transition-delay: 400ms; }

/* Floating Particles */
body::before, body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.05;
  z-index: -1;
  filter: blur(80px);
  animation: float 10s infinite alternate ease-in-out;
}

body::before { top: 10%; left: -100px; }
body::after { bottom: 10%; right: -100px; background: var(--accent); animation-delay: 5s; }

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 50px); }
}

/* Typing Cursor */
.typing-text::after {
  content: '|';
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =========================================
   12. MOBILE RESPONSIVE
   ========================================= */
@media screen and (max-width: 850px) {
  
  .container {
    flex-direction: row !important;
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  .nav-menu {
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    position: absolute;
    left: -100%;
    top: 0;
    transition: 0.4s;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    text-align: center;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  #home {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 50px;
    gap: 1.5rem;
    min-height: auto;
  }

  .info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .info h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .info p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto 1.5rem auto;
  }

  .photo-container {
    width: 180px;
    height: 180px;
    border-width: 3px;
  }

  .about-content {
    flex-direction: column;
  }

  .a2 {
    display: none;
  }

  .resume-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    min-width: 260px;
  }
}
