/* =============================
   1. Imports & Fonts
============================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,700;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* =============================
   2. Root Variables
============================= */
:root {
  --bg-main: #111827;
  --bg-light: #1f2937;
  --text-main: #f9fafb;
  --text-alt: #9ca3af;
  --accent-primary: #2563eb;
  --accent-secondary: #f59e0b;

  --card-radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

/* =============================
   3. Reset & Base Styles
============================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
  background-image: linear-gradient(to bottom, white, var(--bg-light), white);
}

/* =============================
   Typed.js Element Fix
============================= */
#element {
  display: inline-block;
  min-height: 1.5em;     /* prevent bounce */
  white-space: nowrap;   /* never wrap */
  word-break: keep-all;  /* keep phrase intact */
  font-size: clamp(1rem, 4vw, 2rem); /* auto-resize between 16px–32px */
  text-align: center;
}

/* =============================
   4. Typography
============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 1rem 0 0.5rem;
  color: var(--text-main);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* =============================
   5. Navigation
============================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-main);
  color: var(--text-main);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.right {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

#nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links:hover { color: var(--accent-primary); }

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

/* =============================
   6. Intro Section
============================= */
.intro-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  flex-direction: row;
}

.intro-text {
  max-width: 500px;
  color: #22d3ee;
  font-size: 2.2rem;
}

.intro-text .logo-container {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.intro-image img {
  max-width: 350px;
  height: auto;
  border-radius: 10px;
}

/* =============================
   7. Projects Section & Cards
============================= */
.content3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

sl-card.project-item::part(base) {
  background-color: var(--bg-light);
  color: var(--text-main);
  border: 1px solid #374151;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

sl-card.project-item:hover::part(base) {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
  border-color: var(--accent-primary);
}

sl-card.project-item h3 {
  margin: 0 0 0.5rem;
  color: var(--accent-primary);
  font-size: 1.25rem;
  font-weight: 600;
}
sl-card.project-item p {
  color: var(--text-alt);
  font-size: 0.95rem;
  line-height: 1.4;
}

sl-card.project-item sl-button::part(base) {
  background: var(--accent-primary);
  color: white;
  font-weight: 500;
}
sl-card.project-item sl-button::part(base):hover {
  background: var(--accent-secondary);
}
.stu:hover{
    color: #2563eb;
}
/* =============================
   8. Education Section & Cards
============================= */
.content5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

sl-card.education-card::part(base) {
  background-color: var(--bg-light);
  color: var(--text-main);
  border: 1px solid #374151;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

sl-card.education-card:hover::part(base) {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
  border-color: var(--accent-primary);
}

sl-card.education-card h4 {
  margin: 0 0 0.5rem;
  color: var(--accent-primary);
  font-weight: 600;
}
sl-card.education-card p {
  color: var(--text-alt);
  font-size: 0.95rem;
}

/* =============================
   9. Skills Section
============================= */
.marquee {
  --marquee-duration: 18s;          
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  margin: 0.75rem 0 0.25rem;

  /* Subtle edge fade (Safari uses -webkit- prefix) */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  transform: translateX(0);
  animation: marquee var(--marquee-duration) linear infinite;
  will-change: transform;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #27272a;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  font-weight: 500;
}

.chip img {
  width: 22px;
  height: 22px;
  display: inline-block;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* one full set (we duplicated content) */
}

/* Pause on hover/focus for accessibility */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; transform: none !important; }
}

/* Tweak credit text */
.icons-credit {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-alt);
}
.icons-credit a { color: var(--accent-primary); }
.icons-credit a:hover { color: var(--accent-secondary); }
/* =============================
   10. Contact Section
============================= */
.content6 {
  display: flex;
  justify-content: center;
  padding: 2rem;
}
.content6 form {
  background-color: var(--bg-main);
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.content6 form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.content6 form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  border: 1px solid #737373;
  border-radius: 4px;
  background-color: white;
  font-size: 1rem;
}
.content6 form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 5px var(--accent-primary);
}
.content6 form button {
  background-color: var(--accent-primary);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.content6 form button:hover {
  background-color: #0056b3;
}

/* =============================
   11. Utilities & Misc
============================= */
.fade-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-slide-up.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

hr {
  border: none;
  height: 2px;
  background-color: #737373;
  margin: 2rem 0;
  border-radius: 1px;
}

.copyright { color: var(--bg-main); }

/* =============================
   Social Media Logos
============================= */
.logo-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.logo-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;      /* tap area */
  height: 44px;
  border-radius: 50%; /* optional circle shape */
  transition: background 0.2s ease;
}

.logo-container a:hover {
  background: rgba(255, 255, 255, 0.1); /* subtle hover effect */
  transform: scale(1.15);
}

.all-logo {
  width: 26px;   /* actual icon size */
  height: 26px;
  pointer-events: none; /* so the whole circle is clickable, not just icon */
}

/* =============================
   12. Media Queries
============================= */
@media (max-width: 768px) {
  .intro-section { flex-direction: column; text-align: center; }
  .intro-text .logo-container { justify-content: center; }
  .intro-image img { max-width: 100%; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 0.95rem; }

  .content3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding: 1.5rem; }
  .content5 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
  sl-card.project-item h3 { font-size: 1.1rem; }
  sl-card.project-item p { font-size: 0.9rem; }
  sl-card.education-card h4 { font-size: 1.1rem; }

  #nav-list { display: none; flex-direction: column; background-color: black; position: absolute; top: 60px; right: 10px; padding: 1rem; border: 1px solid #ccc; }
  #nav-list.active { display: flex; }
  .hamburger { display: flex; }
  .logo-container {
    justify-content: center; /* center logos under intro text */
  }

  .all-logo {
    width: 24px;
    height: 24px;
  }

  .logo-container a {
    width: 44px;
    height: 44px;
  }

}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }

  .content3 { grid-template-columns: 1fr; padding: 1rem; }
  .content5 { grid-template-columns: 1fr; padding: 1rem; }

  sl-card.project-item::part(base),
  sl-card.education-card::part(base) { padding: 0.75rem; }

  sl-card.project-item h3 { font-size: 1rem; }
  sl-card.project-item p { font-size: 0.85rem; }
  sl-card.education-card h4 { font-size: 1rem; }
  sl-card.education-card p { font-size: 0.85rem; }

  sl-card.project-item sl-button::part(base) { width: 100%; text-align: center; }

  .content6 form { padding: 1.5rem; }
  .content6 form input, .content6 form button { font-size: 0.95rem; }
   .all-logo {
    width: 22px;
    height: 22px;
  }

  .logo-container a {
    width: 44px;  /* still large tap target */
    height: 44px;
  }
  
  #element{
    font-size: 1.5rem;
  }
}

.box{   
  height: 300px;
  width: 300px;
  background-color: #2563eb;
  border: 2px solid black;
  border-radius: 10px;
}