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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0b1120;
  color: #e4e4e7;
  background-image: radial-gradient(#1e293b 1px, transparent 1px),
                    radial-gradient(#1e293b 1px, transparent 1px);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  position: relative;
}

.nav .logo {
  font-size: 1.0rem;
  color: #50A;
  
}

.nav nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #f1f5f9;
  font-size: 0.95rem;
}

.nav nav a:hover {
  color: #50A;
}

/* Sidebar Icons */
.socials {
  position: fixed;
  top: 30%;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  font-size: 1.3rem;
}

.socials a {
  color: #94a3b8;
  text-decoration: none;
}

.socials a:hover {
  color: #50A;
}

.socials .line {
  width: 2px;
  height: 50px;
  background: #50A;
}

/* Hero Layout */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 6rem;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 50%;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #94a3b8;
}

.hero-text .green {
  color: #50A;
}

.cta-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid #50A;
  border-radius: 5px;
  text-decoration: none;
  color: #50A;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

.cta-btn:hover {
  background-color: #50A;
  color: #0b1120;
}


/* Footer Styles */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
  margin-top: 4rem;
}

.footer::before {
  content: "";
  display: block;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #50A, transparent);
  margin: 0 auto 2rem;
}

.footer .green {
  color: #50A;
  font-weight: 600;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }
  
  .footer::before {
    width: 90%;
  }
}
/* Tech Sphere Animation */
.tech-sphere {
  position: relative;
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(80, 10, 170, 0.3);
  border-radius: 50%;
  animation: spin linear infinite;
}

.orbit-1 {
  width: 100%;
  height: 100%;
  animation-duration: 30s;
}

.orbit-2 {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation-duration: 25s;
  animation-direction: reverse;
}

.orbit-3 {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  animation-duration: 20s;
}

.core {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #50A;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(80, 10, 170, 0.7);
}

.particle {
  position: absolute;
  background: #50A;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(80, 10, 170, 0.7);
}

.particle-1 {
  width: 6px;
  height: 6px;
  top: 20%;
  left: 50%;
}

.particle-2 {
  width: 4px;
  height: 4px;
  top: 70%;
  left: 20%;
}

.particle-3 {
  width: 5px;
  height: 5px;
  top: 60%;
  left: 70%;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* About Page Styles */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

.about-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 0;
}

.about-hero .tech-sphere {
  position: relative;
  width: 250px;
  height: 250px;
  transform: none;
  top: auto;
  left: auto;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: none;
}

.about-section p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

blockquote {
  background: rgba(80, 10, 170, 0.1);
  border-left: 3px solid #50A;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 5px 5px 0;
}

blockquote p {
  color: #e4e4e7;
  font-style: italic;
}

blockquote footer {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Contact Form Styles */
.contact-section {
  margin-top: 4rem;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 5px;
  color: #f1f5f9;
  font-family: 'Segoe UI', sans-serif;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-response {
  margin-top: 1.5rem;
}

.success {
  color: #10b981;
}

.error {
  color: #ef4444;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .about-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .about-hero .tech-sphere {
    margin-top: 2rem;
  }
  
  .about-container {
    padding: 2rem 1.5rem;
  }
}
/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #50A;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Message Styles */
.info {
    color: #50A;
    display: flex;
    align-items: center;
}

.error {
    color: #ff6b6b;
}

.success {
    color: #50A;
}
/* Timeline Page Specific Styles */
.timeline-header .hero-text {
  padding-top: 3rem;
}

.full-timeline {
  padding: 4rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  width: 2px;
  background: #50A;
  top: 0;
  bottom: 0;
  left: 200px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.timeline-container.visible::before {
  opacity: 1;
}

.timeline-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.timeline-category {
  color: #50A;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-left: 200px;
  position: relative;
}

.timeline-category::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #50A;
  border-radius: 50%;
  left: 194px;
  top: 10px;
  box-shadow: 0 0 0 4px rgba(80, 10, 170, 0.2);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.timeline-section.visible .timeline-category::after {
  opacity: 1;
  transform: scale(1);
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.timeline-item:nth-child(even) {
  transform: translateX(20px);
}

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

.timeline-date {
  width: 180px;
  padding-right: 20px;
  text-align: right;
  font-weight: bold;
  color: #f1f5f9;
  transition: color 0.3s ease;
}

.timeline-item.visible .timeline-date {
  color: #50A;
}

.timeline-content {
  flex: 1;
  padding: 1.5rem;
  background: #1e293b;
  border-radius: 8px;
  border-left: 3px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-left: 20px;
  transition: all 0.5s ease 0.2s;
}

.timeline-item.visible .timeline-content {
  border-left-color: #50A;
  box-shadow: 0 4px 15px rgba(80, 10, 170, 0.2);
}

.timeline-content h3 {
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease 0.3s;
}

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

.institution {
  color: #50A;
  font-style: italic;
  margin-bottom: 1rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease 0.4s;
}

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

.timeline-content ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
  color: #94a3b8;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  position: relative;
  transform: translateX(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.timeline-item.visible .timeline-content li {
  transform: translateX(0);
  opacity: 1;
}

.timeline-content li:nth-child(1) { transition-delay: 0.5s; }
.timeline-content li:nth-child(2) { transition-delay: 0.6s; }
.timeline-content li:nth-child(3) { transition-delay: 0.7s; }
.timeline-content li:nth-child(4) { transition-delay: 0.8s; }
.timeline-content li:nth-child(5) { transition-delay: 0.9s; }

.timeline-content li::before {
  content: '▹';
  position: absolute;
  left: -1.2rem;
  color: #50A;
}

/* Tech Stack & Tools Section */
.tech-stack-section {
  padding: 3rem 6rem;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.tech-stack-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tech-category {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.5s ease;
  transform: translateY(20px);
  opacity: 0;
}

.tech-stack-section.visible .tech-category {
  transform: translateY(0);
  opacity: 1;
}

.tech-stack-section.visible .tech-category:nth-child(1) { transition-delay: 0.2s; }
.tech-stack-section.visible .tech-category:nth-child(2) { transition-delay: 0.3s; }
.tech-stack-section.visible .tech-category:nth-child(3) { transition-delay: 0.4s; }
.tech-stack-section.visible .tech-category:nth-child(4) { transition-delay: 0.5s; }

.tech-category:hover {
  transform: translateY(-5px) !important;
  border-left-color: #50A;
}

.tech-category h3 {
  color: #50A;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.tech-category h3::before {
  content: "▹";
  margin-right: 8px;
  color: #50A;
}

.tech-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tech-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s ease;
}

.tech-stack-section.visible .tech-item {
  transform: scale(1);
  opacity: 1;
}

/* Stagger tech item animations */
.tech-stack-section.visible .tech-category:nth-child(1) .tech-item { transition-delay: 0.3s; }
.tech-stack-section.visible .tech-category:nth-child(2) .tech-item { transition-delay: 0.4s; }
.tech-stack-section.visible .tech-category:nth-child(3) .tech-item { transition-delay: 0.5s; }
.tech-stack-section.visible .tech-category:nth-child(4) .tech-item { transition-delay: 0.6s; }

.tech-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(30%) brightness(0.9);
  transition: all 0.3s ease;
}

.tech-name {
  position: absolute;
  bottom: -20px;
  background: #50A;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 2;
}

.tech-item:hover img {
  filter: grayscale(0%) brightness(1.2);
  transform: scale(1.1);
}

.tech-item:hover .tech-name {
  opacity: 1;
  bottom: -25px;
}

/* Responsive Timeline */
@media (max-width: 900px) {
  .full-timeline {
    padding: 3rem 2rem;
  }
  
  .timeline-container::before {
    left: 120px;
  }
  
  .timeline-category {
    padding-left: 120px;
  }
  
  .timeline-category::after {
    left: 114px;
  }
  
  .timeline-date {
    width: 100px;
  }
}

@media (max-width: 600px) {
  .timeline-container::before {
    display: none;
  }
  
  .timeline-category {
    padding-left: 0;
    text-align: center;
  }
  
  .timeline-category::after {
    display: none;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-date {
    width: 100%;
    text-align: left;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .timeline-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .tech-stack-section {
    padding: 2rem;
  }
  
  .tech-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-items {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Responsive adjustments outside timeline */

/* NAVIGATION */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding: 1.5rem 1.5rem;
    justify-content: center;
  }
  .nav nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  .nav nav a {
    margin: 0.5rem 1rem;
    font-size: 1.1rem;
  }
}

/* HERO SECTION */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text h2 {
    font-size: 1.1rem;
  }
}

/* SOCIALS (fix for small screens) */
@media (max-width: 600px) {
  .socials {
    top: auto;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 2rem;
    background: rgba(11, 17, 32, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1.5rem;
  }
  .socials .line {
    display: none;
  }
}

/* TECH STACK */
@media (max-width: 768px) {
  .tech-stack-section {
    padding: 2rem 1.5rem;
  }
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .tech-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .tech-items {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* FOOTER */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem;
    margin-top: 3rem;
  }
  
  .footer::before {
    width: 90%;
  }
}

/* ABOUT PAGE */
@media (max-width: 768px) {
  .about-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .about-hero .tech-sphere {
    margin-top: 2rem;
  }
  
  .about-container {
    padding: 2rem 1.5rem;
  }
}

/*PROJECT.HTML*/
/* === Container for all project categories === */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* === Each section (Vue, React, etc.) === */
.project-category {
  margin-bottom: 4rem;
}

.project-category h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #222;
}

/* === Grid layout for cards === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* === Each project card === */
.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* === Project image === */
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* === Info block under the image === */
.project-info {
  padding: 1rem 1.2rem;
}

.project-info h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #111;
}

.project-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 0.7rem;
}
/*ABOUT ME PROFESIONAL EXPERIENCE CARDS*/
/* Container for consistent spacing */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grid layout for cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap: 2rem;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

/* Card styling */
.info-card {
  background-color: #f9f9f9;
  border-left: 5px solid #00d084;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Headings inside cards */
.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #111;
}

/* Text inside cards */
.info-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Blockquote inside card */
.info-card blockquote {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border-left: 4px solid #00d084;
  font-style: italic;
  color: #444;
  border-radius: 6px;
}

.info-card blockquote footer {
  margin-top: 0.5rem;
  font-weight: bold;
  font-style: normal;
  color: #111;
}
/*interests*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-card {
  background-color: #f9f9f9;
  border-left: 5px solid #00d084;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.info-card ul {
  padding-left: 1rem;
  list-style: none;
}

.info-card li {
  padding: 0.3rem 0;
  color: #333;
  font-size: 1rem;
}
