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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #f0f0f0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* HERO SECTION */
.home-hero {
  height: 100vh;
  background: url('hero_background.jpg') no-repeat center center/cover;
  position: relative;
}

.overlay {
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  flex-direction: column;
}

.hero-text h1 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 40px;
}

.hero-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.icon-wrapper {
  width: 90px;
  height: 90px;
  transition: transform 0.4s ease;
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.icon-wrapper:hover {
  transform: rotate(15deg) scale(1.1);
  cursor: pointer;
}

/* Resume link under icons */
.resume-link {
  display: inline-block;
  font-size: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  margin-top: 35px;
  border-bottom: 1px solid #fff;
  transition: all 0.3s ease;
}

.resume-link .arrow {
  margin-left: 6px;
  font-size: 1.2rem;
}

.resume-link:hover {
  color: #ccc;
  border-color: #ccc;
}

/* ABOUT SECTION */
.about-section {
  padding: 80px 60px;
  background: linear-gradient(to bottom, #0e0e0e, #1a1a1a);
}

.about-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  max-width: 1300px;
  margin: auto;
  flex-wrap: wrap;
}

.about-photo-wide {
  width: 48%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #222;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text h4.subheader {
  text-transform: uppercase;
  font-size: 1rem;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.about-text h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Typing effect */
.typewriter {
  font-size: 2rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
  width: 0;
  animation: typing 1.8s steps(30, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 350px; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Fade-in for content */
.about-details {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  height: auto;
}

.about-details.visible {
  opacity: 1;
  pointer-events: auto;
}

.about-text p {
  font-size: 1.1rem;
  color: #dddddd;
  line-height: 1.8;
  margin-bottom: 20px;
}



/* JOURNEY SECTION */
.journey-section {
  background-color: #0e0e0e;
  padding: 100px 40px;
  color: #fff;
  position: relative;
}

.journey-overlay {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 60px 40px;
  border-radius: 12px;
  max-width: 1100px;
  margin: auto;
}

.journey-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: #f2f2f2;
}

/* Vertical line */
.timeline-wrapper {
  position: relative;
  border-left: 3px solid #aaa;
  margin-left: 70px;
  padding-left: 40px;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}

.timeline-wrapper.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-line {
  position: absolute;
  top: 0;
  left: -25px;
  height: 100%;
  width: 3px;
  background-color: #aaa;
}

.arrow-down {
  position: absolute;
  top: -36px;
  left: -18px;
  font-size: 1.8rem;
  color: #ccc;
  background-color: #000;
  padding: 4px 8px;
  border-radius: 20px;
  animation: bounce 2s infinite;
}

/* Items */
.timeline-item {
  position: relative;
  margin-bottom: 70px;
  display: flex;
  align-items: center;
  gap: 25px;
  opacity: 1;
  transform: none;
  transition: none;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background-color: #000;
  padding: 10px;
  border-radius: 50%;
  border: 2px solid #444;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  border: 4px solid #222;
  position: absolute;
  left: -56px;
  top: 36px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #fff;
}

.timeline-content p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

/* Animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.reveal {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item {
  position: relative;
  margin-bottom: 70px;
  display: flex;
  align-items: center;
  gap: 25px;
  opacity: 1;             /* Make it fully visible */
  transform: none;        /* Remove vertical slide effect */
  transition: none;       /* No delay */
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1.2s ease-in-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.typewriter {
  font-size: 2rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
  width: 0;
  animation: typing 2.8s steps(30, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 350px; }  /* Increase this width a bit */
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hidden {
  display: none;
}

.visible {
  display: block;
}


 
/* Projects Section */
.projects-section {
  background: #111;
  padding: 80px 40px;
  text-align: center;
}

.projects-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 50px;
}

/* Wrapper with buttons on left and right of full card */
.project-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* Navigation Arrows */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px 20px;
  transition: color 0.3s ease;
  z-index: 2;
}

.nav-left {
  left: -60px;
}

.nav-right {
  right: -60px;
}

.nav-btn:hover {
  color: #aaa;
}

.nav-left[style*="hidden"],
.nav-right[style*="hidden"] {
  display: none;
}

.project-card {
  background: #1a1a1a;
  display: flex;
  flex-direction: row;
  gap: 50px;
  padding: 50px;
  border-radius: 18px;
  max-width: 1150px;
  width: 100%;
  height: 520px;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.project-card img {
  width: 550px;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.project-info {
  text-align: left;
  color: #f0f0f0;
  max-width: 540px;
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
}

.project-info::-webkit-scrollbar {
  width: 6px;
}

.project-info::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 3px;
}

.project-info::-webkit-scrollbar-track {
  background: transparent;
}

.project-info h3 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: #fff;
}

.project-info p {
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.7;
  color: #ddd;
  word-wrap: break-word;
}

/* Responsive */
@media (max-width: 1000px) {
  .project-card {
    flex-direction: column;
    height: auto;
    align-items: center;
    padding: 30px;
  }

  .project-card img {
    width: 100%;
    max-width: 600px;
    height: auto;
  }

  .project-info {
    max-width: 100%;
    padding: 0;
  }

  .nav-btn {
    font-size: 2.5rem;
    left: 0;
    right: 0;
  }
}


/* Certifications Section */
.certifications-section {
  background-image: url('images/spotlight-bg.png');
  background-size: cover;
  background-position: center;
  padding: 80px 40px;
  position: relative;
  z-index: 1;
}

.certifications-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 50px;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  width: 90%;
  margin: 0 auto;
  justify-items: center;
  z-index: 2;
}

.cert-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.cert-card img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.cert-card:hover img {
  transform: scale(1.1);
}

/* Viewer Overlay */
.viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  flex-direction: column;
}

.viewer-overlay img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.left {
  left: 60px;
}

.right {
  right: 60px;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 60px;
  font-size: 2.8rem;
  color: white;
  cursor: pointer;
  user-select: none;
}


/* Contact Section */
.contact-section {
  padding: 100px 60px;
  background-color: #0c0c0c;
  color: #fff;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
  font-family: 'Segoe UI', sans-serif;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px; /* reduced from 100px */
  padding: 50px 60px;
}


.contact-icons {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding-left: 40px;
}

.contact-icons img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}

.contact-icons img:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.contact-form-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  min-width: 350px;
  max-width: 800px;
}

.form-heading {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
}

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

.contact-form-box input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 6px;
  background-color: #222;
  color: #f0f0f0;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.contact-form-box textarea {
  width: 100%;
  min-height: 180px;   /* Only this is taller */
  padding: 14px 16px;
  border: none;
  border-radius: 6px;
  background-color: #222;
  color: #f0f0f0;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
  resize: vertical;
  overflow-y: auto;
  max-height: none;
}

.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder {
  color: #aaa;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.contact-form-box button {
  padding: 14px;
  background-color: #444;
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form-box button:hover {
  background-color: #666;
}

