/* --- MODERN STARTUP PORTFOLIO --- */
/* --- DESIGN BY GEMINI --- */

/* --- 1. THEME & VARIABLES --- */
:root {
  /* Colors */
  --background: transparent;
  --background-alt: #101522;
  --text-primary: #f0f0f0;
  --text-secondary: #ffffff;
  --accent-primary: #8A42D1;
  --accent-secondary: #a365e0;
  --accent-glow: rgba(138, 66, 209, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Fonts */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Transitions & Radii */
  --transition-speed: 0.4s;
  --border-radius: 16px;
  --border-radius-small: 8px;
}

/* --- 2. BASE & RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  background-color: var(--background);
  color: var(--text-primary);
  overflow-x: hidden;
  word-wrap: break-word;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.8em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(90deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; color: var(--accent-primary); }

p { color: var(--text-secondary); margin-bottom: 1.2em; max-width: 700px; }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover { color: var(--accent-secondary); }

ul { list-style: none; padding-left: 0; }
li { margin-bottom: 0.8em; padding-left: 1.8em; position: relative; }

li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

li:hover::before { transform: translateX(5px); }

/* --- 4. NAVIGATION --- */
.nav-menu {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 1000;
  background: rgba(16, 21, 34, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 16px;
  animation: fadeDown 0.8s ease-out forwards;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translate(-50%, -40px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links li { padding: 0; margin: 0; }
.nav-links li::before { display: none; }

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--accent-primary);
  color: #fff;
}

.nav-mobile-toggle { display: none; }

/* --- 5. HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aurora-background,
.aurora-shape { position: absolute; }

.aurora-background {
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}

.aurora-shape {
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s infinite alternate ease-in-out;
}

.aurora-shape.shape-1 {
  width: 500px; height: 500px;
  background: var(--accent-primary);
  top: 10%; left: 10%;
  animation-duration: 25s;
}
.aurora-shape.shape-2 {
  width: 400px; height: 400px;
  background: #4299e1;
  bottom: 5%; right: 15%;
  animation-duration: 20s;
  animation-delay: -5s;
}
.aurora-shape.shape-3 {
  width: 300px; height: 300px;
  background: #38b2ac;
  top: 50%; left: 30%;
  animation-duration: 30s;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0) rotate(0); }
  100% { transform: translateY(-50px) translateX(50px) rotate(20deg); }
}

.hero-content-centered {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reveal-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: revealChar 1s ease-out; ;
}
@keyframes revealChar {
    from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

.typing-container { margin: 0.5rem 0 1.5rem; font-size: 1.2rem; color: var(--text-secondary); }
.animated-quote { max-width: 600px; margin-bottom: 2.5rem; }

.hero-cta-group { display: flex; gap: 1rem; margin-bottom: 2.5rem; }

.button {
  display: inline-block;
  background: var(--accent-primary);
  color: white;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.button:hover {
  transform: translateY(-3px);
  background: var(--accent-secondary);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.button-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.button-secondary:hover {
  background: var(--background-alt);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.social-links {
    display: flex; gap: 3rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-primary);
  transform: scale(1.2);
}

/* --- 6. GENERAL SECTION STYLING --- */
.section { padding: 50px 0; position: relative; overflow: hidden; }

.section-title { text-align: center; margin-bottom: 4rem; }

.section-title p { margin: 0 auto; font-size: 1.1rem; }

/* --- 7. CARDS --- */
.card {
  background: rgba(16, 21, 34, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

/* --- 8. ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.about-image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  border-radius: var(--border-radius);
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  grid-row: span 2;
}

.about-image-card img {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px var(--accent-glow);
}

.about-card { display: flex; flex-direction: column; }

.card-icon { font-size: 2rem; color: var(--accent-primary); margin-bottom: 1rem; }

.about-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

.about-card p { margin: 0; flex-grow: 1; }

/* --- 9. SKILLS SECTION --- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category h3 {
  font-size: 1.4rem;
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; }

.skill-item {
  background: var(--background-alt);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.skill-item:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

/* --- 10. EXPERIENCE TIMELINE --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
}

.timeline-item { position: relative; margin-bottom: 50px; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px; top: 5px;
  width: 20px; height: 20px;
  background-color: var(--accent-primary);
  border: 4px solid var(--background);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: transform 0.3s ease;
}

.timeline-item:hover::before { transform: scale(1.2); }

.timeline-content { padding: 1em; }

.timeline-sub {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* --- 11. PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card { display: flex; flex-direction: column; }

.project-card h4 { margin-top: 0; }

.project-card p { flex-grow: 1; }

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0;
}

.project-tech span {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(138, 66, 209, 0.1);
  color: var(--accent-secondary);
  font-weight: 500;
}

.project-link {
  display: inline-block;
  font-weight: 600;
  margin-top: auto;
  transition: transform 0.3s ease;
}

.project-link i { margin-left: 5px; transition: transform 0.3s ease; }

.project-link:hover { transform: translateX(5px); }

.project-link:hover i { transform: translateX(3px); }

/* --- 12. CERTIFICATIONS & STATS --- */
.certifications-list {
  max-width: 800px;
  margin: 0 auto;
}

.certification-item {
  background-color: transparent;
  border: 1px solid var(--border-color);
  padding: 20px 25px;
  border-radius: var(--border-radius-small);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.certification-item:hover {
  border-color: var(--accent-primary);
  background-color: var(--background-alt);
  transform: scale(1.03);
}

.certification-item h4 { margin-bottom: 0.2rem; }



.stats-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.stats-images img {
  background: rgba(10, 15, 24, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  max-width: 100%;
  height: auto;
}

/* --- 13. CONTACT & FOOTER --- */
#contact { text-align: center; }

.contact-title { font-size: 2.5rem; }

.contact-button { margin-top: 1.5rem; }

.site-footer {
  background-color: #05080e;
  padding: 40px 0 20px;
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p { color: var(--text-secondary); margin-bottom: 0; }

/* --- 14. UTILITIES & HELPERS --- */
.scroll-top {
  position: fixed;
  bottom: 32px; left: 32px;
  width: 45px; height: 45px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
  z-index: 998;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.scroll-top.active { opacity: 1; visibility: visible; }

.scroll-top:hover {
  transform: translateY(-5px);
  background-color: var(--accent-secondary);
}

/* --- 15. CHATBOT --- */
.chatbot-toggle {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  z-index: 999;
  border: none;
  box-shadow: 0 5px 20px var(--accent-glow);
  transition: transform 0.3s ease;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 5px 20px var(--accent-glow); }
  50% { transform: scale(1.05); box-shadow: 0 8px 30px var(--accent-glow); }
  100% { transform: scale(1); box-shadow: 0 5px 20px var(--accent-glow); }
}

.chatbot-toggle:hover { transform: scale(1.1); animation: none; }

.chatbot-popover {
  position: fixed;
  right: 100px; bottom: 42px;
  background: var(--background-alt);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--border-radius-small);
  box-shadow: var(--card-shadow);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--border-color);
}

.chatbot-popover.popover-show {
  opacity: 1;
  transform: translateY(0);
}

#chatbot-container {
  position: fixed;
  bottom: 100px; right: 32px;
  width: 800px; height: 700px;
  max-height: 80vh;
  background: rgba(10, 15, 24, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#chatbot-container.active {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}

.chatbot-title { font-weight: 600; font-size: 1.1rem; color: var(--text-primary); }

.chatbot-controls button {
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.chatbot-controls button:hover { color: var(--text-primary); }

.chatbot-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-content {
  padding: 12px 18px;
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.5;
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  text-align: right;
}

.user-message .message-content {
  max-width: 80%;
  background: var(--accent-primary);
  color: white;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 18px;
  border-top-left-radius: 18px;
  margin-right: 0;
  align-self: flex-end;
}

.bot-message {
  align-self: flex-start;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.bot-message .message-content {
  max-width: 80%;
  background: var(--background-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  margin-left: 0;
}

.chatbot-input-container {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.chatbot-input {
  flex-grow: 1;
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.chatbot-input:focus { border-color: var(--accent-primary); }

.chatbot-send {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background-color 0.3s, transform 0.3s;
}

.chatbot-send:hover {
  background-color: var(--accent-secondary);
  transform: scale(1.1);
}

/* --- Chatbot Starter Prompts --- */
#chatbot-starter-prompts {
  padding: 0 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.chatbot-starter-prompt {
  background: rgba(138, 66, 209, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(138, 66, 209, 0.2);
  border-radius: var(--border-radius-small);
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chatbot-starter-prompt:hover {
  background: rgba(138, 66, 209, 0.2);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Education Section --- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.education-card {
  background: #1015227d;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.education-card h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.education-card ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.education-card li { margin-bottom: 0.4rem; }

/* --- 16. RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-section { text-align: center; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  #chatbot-container {
    width: 90vw;
    height: 75vh;
    right: 5vw;
    bottom: 5vh;
    max-height: none;
  }
}

.social-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}


.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin: 0 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("backgroundv3.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Optional: creates a smooth parallax-like effect */
  overflow: hidden;
}


.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* background image setup */
  background: url("backgroundv3.png") no-repeat center center / cover;
  background-attachment: fixed;
  background-color: rgba(10, 10, 20, 0.85);
  background-blend-mode: overlay;

  color: var(--text-primary);
  overflow: hidden;
}



.hero-content-centered {
  position: relative;
  z-index: 2; /* ensures text is above overlay */
}

body {
  background: url("backgroundv3.png") no-repeat center center fixed;
  background-size: cover;
}
.hero-section {
  background: transparent;
}

/* --- VIDEO BACKGROUND --- */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 110vw;
  height: 110vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
  background-color: #0a0f18;
}

/* optional overlay for readability */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* above video, below content */
}

/* --- 🌟 MOBILE OPTIMIZATION (≤768px) --- */
@media (max-width: 768px) {

  /* --- Global adjustments --- */
  html, body {
    font-size: 15px;
    overflow-x: hidden;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.6rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* --- Hero Section --- */
  .hero-section {
    background-attachment: scroll; /* smoother on phones */
    padding: 80px 20px;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    text-align: center;
  }

  .hero-content-centered h1 {
    font-size: 2rem;
  }

  .typing-container {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.8rem;
  }

  .button, .button-secondary {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
  }

  .social-links {
    gap: 1.5rem;
  }

  /* --- Navigation --- */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    padding: 1rem;
    background: rgba(10, 15, 24, 0.95);
    backdrop-filter: blur(10px);
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    display: none;
    text-align: center;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    margin-left: auto;
  }

  .nav-mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
  }

  /* --- Chatbot --- */
  #chatbot-container {
    width: 90vw;
    height: 75vh;
    right: 5vw;
    bottom: 12vh;
    max-height: none;
  }

  .chatbot-input {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .chatbot-send {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .chatbot-popover {
    right: 85px;
    bottom: 32px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }


  #chatbot-container.active {
    width: 100vw;
    height: 100vh;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }

  /* --- Sections & Cards --- */
  .section {
    padding: 60px 15px;
  }

  .card {
    padding: 20px;
  }

  .education-grid,
  .skills-container,
  .projects-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline {
    padding-left: 20px;
  }

  /* --- Footer & Scroll Button --- */
  .site-footer {
    padding: 30px 10px;
  }

  .scroll-top {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }

  /* --- Reduce Animations on Mobile --- */
  * {
    animation-duration: 0.8s !important;
    transition-duration: 0.3s !important;
  }

  /* --- Optional: Improve tap targets --- */
  button, a {
    min-height: 44px;
  }
}


@media (max-width: 1100px) {
  body {
    background: url('backgroundv3.png') no-repeat center center fixed;
    background-size: cover;
  }

  #bg-video {
    display: none !important;
  }
}