:root {
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #ffffff;
    --gray-color: #7d7f80;
    --primary-color: #7c3aed;
}

body.dark-mode {
    --text-color: #e4e6eb;
    --link-color: #93a8ff;
    --background-color: #1a1a2e;
    --gray-color: #a0a3a8;
    --primary-color: #a78bfa;
}

body.dark-mode .orbit-icon {
    background: #2a2a40;
}

body.dark-mode hr {
    border-color: #333;
}

/* ========== Animations ========== */

/* Hero entrance */
.hero-section .text {
    animation: fadeSlideUp 0.8s ease-out both;
}

.hero-section .orbit-container {
    animation: fadeSlideUp 0.8s 0.3s ease-out both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar entrance */
nav {
    animation: fadeDown 0.5s ease-out both;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered skill cells */
.cell-hidden {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cell-visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Skill cell hover */
.skills-section .cells .cell {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills-section .cells .cell:hover {
    transform: scale(1.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Timeline item hover lift */
.timeline-item {
    transition: transform 0.3s ease;
}

/* Social link hover */
.hero-section .social-links .box {
    transition: transform 0.2s ease;
}

.hero-section .social-links .box:hover {
    transform: translateX(5px);
}

/* Contact form inputs focus animation */
.contact-form input,
.contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(134, 91, 254, 0.15);
}

/* Send button pulse on hover */
.contact-form button {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
}

/* Footer social icons */
.social-icons a {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Theme toggle spin */
nav .right svg {
    transition: transform 0.3s ease;
}

nav .right:hover svg {
    transform: rotate(30deg);
}

/* ========== End Animations ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

main {
  padding: 0 52px;
  max-width: 100%;
  overflow-x: hidden;
}




/* Navbar */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

nav .left a {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
}

nav .left span {
  color: var(--primary-color);
}

nav .right a {
    color: var(--text-color);
    margin: 0 10px;
}

nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}

nav .right {
   border: 1px solid var(--gray-color);
   border-radius: 5px;
   padding: 6px 6px;
   display: flex;
   align-items: center;
}

nav .right {
    cursor: pointer;
}

nav .right svg:last-child {
    display: none;
}

body.dark-mode nav .right svg:first-child {
    display: none;
}

body.dark-mode nav .right svg:last-child {
    display: block;
}

/* Section 1: Hero */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 120px;
    gap: 40px;
}

.hero-section .text {
    flex: 5;
}

.hero-section .text .quote {
    color: var(--gray-color);
}

.hero-section .text h2 {
    font-size: 70px;
}

.hero-section .text h3 {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.typing-cursor {
    animation: blink 0.7s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-section .text h4 {
  font-size: 23px;
}

.hero-section .text p {
    margin-bottom: 25px;
}

.hero-section .text hr {
    width: 500px;
    margin-bottom: 25px;
}

.hero-section .text .links {
    margin-top: 25px;
}

.hero-section .social-links .box {
    display: flex;
    margin-bottom: 10px;
}

.hero-section .social-links .box svg {
    margin-right: 10px;
}

.hero-section .social-links .box span a {
    text-decoration: none;
    color: var(--text-color);
}

.hero-section .text .quote-container {
  position: relative;
  padding-left: 20px;
}

/* .hero-section .text .bar {
  width: 4px;
  height: 50px;
  background-color: var(--gray-color);
  position: absolute; 
} */

.hero-section .text .bar {
  width: 4px;
  height: 50px;
  background-color: var(--gray-color);
  position: absolute;
  left: 0;
  top: 5px;
}

.hero-section .text .quote {
  margin-top: 10px;
}


.hero-section .text .links a {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: 0.1s;
}
.hero-section .text .links a:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.hero-section .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .headshot img {
    width: 350px;
    border-radius: 50%;
}

/* Section 2: Skills */
.skills-section {
    padding: 0 50px;
    margin-bottom: 120px;;
}

.skills-section h2 {
    text-align: center;
    font-size: 35px;
}

.skills-section hr {
    margin-bottom: 25px;
}

.skills-section h3 {
    text-align: center;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.skills-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.skills-section .cells .html {
  background-color: #e54e27;
}
.skills-section .cells .css {
  background-color: #2750e4;
}
.skills-section .cells .js {
  background-color: #f0dc4e;
}
.skills-section .cells .react {
  background-color: #1f1f1f;
}
.skills-section .cells .tailwind {
  background-color: #242938;
}

.skills-section .cells .node {
  background-color: #242938;
}
.skills-section .cells .express {
  background-color: #242938;
}
.skills-section .cells .mongo {
  background-color: #023430;
}
.skills-section .cells .docker {
  background-color: #2396ed;
}

.skills-section .cells .github {
  background-color: #242938;
}
.skills-section .cells .social {
  background-color: #242938;
}
.skills-section .cells .vscode {
  background-color: #242938;
}

.skills-section .cells .aws {
  background-color: #242938;
}
.skills-section .cells .cloud {
  background-color: #242938;
}


.skills-section .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 10px;

    width: 50px;
    padding: 5px 5px;
    border: none;
    border-radius: 13px;
    margin: 5px;
}

.skills-section .cells .cell img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 2px;
}

.skills-section .cells .cell span {
    font-size: 18px;
}

/* Section 3: Projects */

.projects-wrapper {
    padding: 0 50px;
    margin-bottom: 120px;
}

.projects-wrapper h2 {
    text-align: center;
    font-size: 35px;
}

.projects-wrapper hr {
    margin-bottom: 25px;
}

.projects-wrapper .text {
    text-align: center;
    margin-bottom: 50px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* Vertical center line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #c4b5fd, #7c3aed, #4c1d95);
  transform: translateX(-50%);
}

body.dark-mode .timeline::before {
  background: linear-gradient(to bottom, #ddd6fe, #a78bfa, #6d28d9);
  opacity: 0.7;
}

/* Timeline item */
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Dot on the line */
.timeline-dot {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #7c3aed;
  border-radius: 50%;
  justify-self: center;
  position: relative;
  transition: transform 0.3s ease;
}

body.dark-mode .timeline-dot {
  background: #1a1a2e;
  border-color: #a78bfa;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
}

/* Horizontal connector line from image to dot */
.timeline-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  height: 3px;
  background: #7c3aed;
  transform: translateY(-50%);
  width: 60px;
  z-index: -1;
}

.timeline-item.reverse .timeline-dot::before {
  right: auto;
  left: 100%;
}

body.dark-mode .timeline-dot::before {
  background: #a78bfa;
}

body.dark-mode .timeline-item.reverse .timeline-dot::before {
  background: #c4b5fd;
}

/* Image side */
.timeline-image {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.timeline-item.reverse .timeline-image {
  justify-content: flex-start;
}

.timeline-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.timeline-image img:hover {
  transform: scale(1.03);
}

/* Content side */
.timeline-content {
  padding: 0 30px;
  min-width: 0;
}

.timeline-content h3 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 2px;
}

body.dark-mode .timeline-content h3 {
  color: #a78bfa;
}

.timeline-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #7c3aed;
  opacity: 0.8;
}

body.dark-mode .timeline-subtitle {
  color: #a78bfa;
}

/* Alternate color for second project */
.timeline-item.reverse .timeline-content h3 {
  color: #6d28d9;
}

body.dark-mode .timeline-item.reverse .timeline-content h3 {
  color: #c4b5fd;
}

.timeline-item.reverse .timeline-subtitle {
  color: #6d28d9;
}

body.dark-mode .timeline-item.reverse .timeline-subtitle {
  color: #c4b5fd;
}

.timeline-item.reverse .timeline-dot {
  border-color: #6d28d9;
}

body.dark-mode .timeline-item.reverse .timeline-dot {
  border-color: #c4b5fd;
}

.timeline-content p {
  margin-top: 12px;
  line-height: 1.7;
  font-size: 15px;
  color: var(--text-color);
  text-align: justify;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  list-style: none;
  padding: 0;
}

.project-tags li {
  background: #1a1c20;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

body.dark-mode .project-tags li {
  background: #2a2a40;
  color: #e4e6eb;
}

/* Reverse layout (content left, image right) */
.timeline-item.reverse {
  grid-template-columns: 1fr 40px 1fr;
}

/* Mobile timeline */
@media (max-width: 900px) {
  .timeline::before {
    display: none;
  }

  .timeline-item,
  .timeline-item.reverse {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-dot::before,
  .timeline-item.reverse .timeline-dot::before {
    display: none;
  }

  .timeline-image {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 15px;
  }

  .timeline-content {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
    min-width: 0;
  }

  .timeline-content h3 {
    font-size: 1.6rem;
  }

  .timeline-image img {
    max-width: 100%;
  }

  .project-tags {
    overflow: hidden;
  }
}

/* Project CSS ======== */


/* ========== Chatgpt CSS ============== */
.orbit-container {
  position: relative;
  width: 380px;
  height: 380px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* overflow: hidden; */
}

.profile-img {
  width: 300px;
  border-radius: 50%;
  z-index: 3;
}

/* Ring */
.orbit-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: rotateRing 25s linear infinite;
}

/* Modern glowing circular lines */
.orbit-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite alternate;

  background: repeating-conic-gradient(
    #61dafb 0deg 10deg,
    transparent 10deg 18deg,
    #38bdf8 18deg 28deg,
    transparent 28deg 36deg,
    #f7df1e 36deg 46deg,
    transparent 46deg 54deg
  );

  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2px)
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2px)
  );

  filter: blur(0.4px);
  opacity: 0.9;
}

/* Animations */
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* Logos */
.orbit-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Circular placement (your existing style) */
.i1 { top: -10px; left: 50%; transform: translateX(-50%); }
.i2 { right: -10px; top: 50%; transform: translateY(-50%); }
.i3 { bottom: -10px; left: 50%; transform: translateX(-50%); }
.i4 { left: -10px; top: 50%; transform: translateY(-50%); }

.i5 { top: 12%; left: 12%; }
.i6 { top: 12%; right: 12%; }
.i7 { bottom: 12%; right: 12%; }
.i8 { bottom: 12%; left: 12%; }


/* ============================= */
/* 📱 MOBILE RESPONSIVE DESIGN */
/* ============================= */

/* Tablets */
@media (max-width: 768px) {
  .orbit-container {
    width: 300px;
    height: 300px;
  }

  .profile-img {
    width: 230px;
  }

  .orbit-icon {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .orbit-container {
    width: 280px;
    height: 280px;
  }

  .profile-img {
    width: 194px;
  }

  .orbit-icon {
    width: 26px;
    height: 26px;
    padding: 4px;
  }

  .orbit-ring::before {
    inset: 10px;
  }
}

@media (max-width: 480px) {
  .i1 { top: 0; }
  .i2 { right: 0; }
  .i3 { bottom: 0; }
  .i4 { left: 0; }

  .i5 { top: 15%; left: 15%; }
  .i6 { top: 15%; right: 15%; }
  .i7 { bottom: 15%; right: 15%; }
  .i8 { bottom: 15%; left: 15%; }
}










/* ========== Chatgpt CSS ============== */





/* Section 4: Contact */
.contact-section {
  padding: 0 50px;
  margin-bottom: 120px;
}

.contact-section h2 {
  text-align: center;
  font-size: 35px;
}

.contact-section hr {
  margin-bottom: 25px;
}

.contact-section .text {
  text-align: center;
  margin-bottom: 40px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
  color: var(--gray-color);
  font-size: 14px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-color);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background-color: var(--background-color);
  color: var(--text-color);
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 100%;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* Footer */
footer {
  background-color: #1a1c20;
  color: #e4e6eb;
  padding: 50px 50px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 600;
  color: #e4e6eb;
  text-decoration: none;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-left p {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4,
.footer-socials h4 {
  margin-bottom: 5px;
  font-size: 16px;
}

.footer-links a {
  color: #e4e6eb;
  opacity: 0.7;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #e4e6eb;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* =====> Media Query <===== */

/* ============================= */
/* 🔥 RESPONSIVE DESIGN */
/* ============================= */

/* Large Tablets */
@media (max-width: 1024px) {
  main {
    padding: 0 30px;
  }

  .hero-section {
    padding: 0 30px;
  }

  .hero-section .text h2 {
    font-size: 38px;
  }

  .hero-section .headshot img {
    width: 300px;
  }

  .skills-section {
    padding: 0 30px;
  }

  .contact-section {
    padding: 0 30px;
  }

  .projects-wrapper {
    padding: 0 30px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  main {
    padding: 0 20px;
  }

  nav {
    padding: 0 20px;
  }

  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0;
  }

  .hero-section .text hr {
    width: 100%;
  }

  .hero-section .social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-section .social-links .box {
    justify-content: center;
  }

  .hero-section .headshot {
    justify-content: center;
  }

  .hero-section .headshot img {
    width: 250px;
    border-radius: 50%;
  }

  .skills-section {
    padding: 0;
  }

  .skills-section h2 {
    font-size: 30px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-section {
    padding: 0;
  }

  .projects-wrapper {
    padding: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  footer {
    padding: 40px 20px 20px;
  }
}

/* Mobile Devices */
@media (max-width: 600px) {
  main {
    padding: 0 15px;
  }

  nav {
    height: 65px;
  }

  nav .left a {
    font-size: 18px;
  }

  nav .right {
    padding: 4px;
  }

  nav .right svg {
    width: 20px;
    height: 20px;
  }

  .hero-section {
    padding: 0 15px;
  }

  .hero-section .text h2 {
    font-size: 26px;
  }

  .hero-section .text h3 {
    font-size: 16px;
  }

  .hero-section .text p {
    font-size: 14px;
  }

  .hero-section .social-links {
    grid-template-columns: 1fr;
  }

  .hero-section .headshot img {
    width: 220px;
  }

  .skills-section {
    padding: 0 15px;
  }

  .skills-section .cells .cell {
    /* width: 100%; */
    max-width: 35px;
    max-height: 35px;
    margin: 3px;
  }

  .skills-section .cells .cell img {
    /* width: 100%; */
    max-width: 28px;
  }

  .contact-section {
    padding: 0;
  }

  .contact-section h2 {
    font-size: 28px;
  }

  .projects-wrapper {
    padding: 0;
  }

  .projects-wrapper h2 {
    font-size: 28px;
  }

  footer {
    padding: 30px 15px 15px;
  }
}

/* Extra Small Devices */
@media (max-width: 400px) {
  .hero-section .text h2 {
    font-size: 22px;
  }

  .hero-section .text h3 {
    font-size: 14px;
  }

  .hero-section .text p {
    font-size: 13px;
  }

  .hero-section .headshot img {
    width: 180px;
  }

  .skills-section .cells .cell span {
    font-size: 15px;
  }
}
