:root {
  --primary-color: #182c4a; /* Deep professional blue */
  --secondary-color: #cde5f7; /* Soft light blue background */
  --accent-color: #00a8e8; /* Bright data/tech blue */

  --light-bg-color: #f9fbfd;
  --white-color: #ffffff;
  --dark-text-color: #1c1e21;
  --light-text-color: #6b7280;
  --card-bg-color: #ffffff;

  /* Fonts */
  --font-heading: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;
}

/* --- 2. Base & Reset Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
  a {
    text-decoration: none;
    /* color: var(--accent-color); */
    transition: all 0.3s ease-in-out;
  }

  a:hover {
    opacity: 0.8;
  }
}

img {
  max-width: 100%;
  height: auto;
}

/* --- 3. Header --- */
header {
  background: url("https://images.unsplash.com/photo-1693146603502-b0845c326897?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") no-repeat center
    center;
  color: var(--white-color);
  text-align: center;
  background-size: cover;
  display: flex;
}

header p {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 35px;
}

/* --- 3.5 Social Icons --- */
.social-links {
  margin-bottom: 50px;

  a {
    color: var(--white-color);
    font-size: 1.6rem;
    margin: 0 15px;
    transition:
      transform 0.3s ease,
      color 0.3s ease;
    display: inline-block;
  }
}
.social-links a:hover {
  color: var(--accent-color);
  /* transform: translateY(-3px); */
  transform: scale(1.08);
}

/* --- 4. Navigation --- */

.ai-intro-tabs-container {
  display: flex;
  height: 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid #ddd;
  position: sticky;
  padding: 0 300px;
}

.ai-intro-tab {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-color);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ai-intro-tab:hover {
  color: var(--secondary-color);
  background-color: #223f6a;
  transform: scale(1.08); /* makes it pop out */
  box-shadow: 0 2px 10px rgba(77, 163, 255, 0.4); /* glow effect */
}

.ai-intro-tab.active {
  color: var(--secondary-color);
  font-weight: bold;
}

.ai-intro-tab-slider {
  position: absolute;
  bottom: 0;
  height: 4px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* --- 5. Sections --- */
.section {
  padding: 100px 0;
}

.section h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 70px;
  position: relative;
  color: var(--primary-color);
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--accent-color);
}

/* --- 5.1 About Section --- */
.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.608);
}

.about-text {
  flex: 1;
  margin: 5px auto;
  padding: 20px;
  border-radius: 12px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  opacity: 0.8;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-text strong {
  color: var(--primary-color);
}

/* --- 5.5 Project Cards --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--card-bg-color);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

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

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.project-card-content p {
  color: var(--light-text-color);
  margin-bottom: 30px;
  flex-grow: 1;
}

.project-buttons {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  flex: 1;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
}

.btn:hover {
  background: var(--accent-color);
  color: var(--white-color);
  transform: scale(1.08);
  box-shadow: 0 2px 10px rgba(77, 163, 255, 0.4); /* glow effect */
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* --- 6. Tabular Skills Section --- */
#skills .container {
  max-width: 1100px;
}

.skills-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
  background-color: var(--card-bg-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.skill-column {
  padding: 0 20px;
}

.skill-column:not(:last-child) {
  border-right: 1px solid #e9ecef;
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.skill-header i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 15px;
  width: 40px;
}

.skill-header h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--primary-color);
}

.skill-list {
  list-style: none;
  padding-left: 0;
}

.skill-list li {
  padding: 12px 0;
  font-size: 1.05rem;
  color: var(--dark-text-color);
  border-bottom: 1px solid #f1f3f5;
  position: relative;
  padding-left: 25px;
}

.skill-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.skill-list li:last-child {
  border-bottom: none;
}

/* --- 7. Contact Form --- */
#contact .container {
  max-width: 800px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-bg-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark-text-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.25); /* Adjusted for new accent color */
}

.contact-form button.btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

/* --- 8. Footer --- */
footer {
  background: var(--primary-color);
  color: var(--white-color);
  text-align: center;
  padding: 40px 0;
  margin-top: 80px;
}

footer p {
  opacity: 0.7;
}

/***************SVG  ************/

svg {
  font-family: "Inter", "Poppins", "Segoe UI", sans-serif;
  font-size: 6.7em;
  font-weight: 600;
  letter-spacing: -2px;
  margin: auto;
  display: block;
  text-rendering: optimizeLegibility;
}

/* Base animation */
.text-copy {
  fill: none;
  stroke-dasharray: 8% 25%;
  stroke-width: 4px;
  stroke-dashoffset: 0%;
  animation: stroke-offset 5.5s infinite linear;
}

/* Neon + high contrast colors */
.text-copy:nth-child(1) {
  stroke: var(--accent-color);
  animation-delay: -1s;
}

.text-copy:nth-child(2) {
  stroke: var(--secondary-color);
  animation-delay: -2s;
}

.text-copy:nth-child(3) {
  stroke: var(--white-color);
  animation-delay: -3s;
}

.text-copy:nth-child(4) {
  stroke: var(--primary-color);
  animation-delay: -4s;
}

.text-copy:nth-child(5) {
  stroke: var(--secondary-color);
  animation-delay: -5s;
}

.text-copy:nth-child(6) {
  stroke: var(--white-color);
  animation-delay: -6s;
}

/* Smooth animation */
@keyframes stroke-offset {
  100% {
    stroke-dashoffset: -35%;
  }
}

/* --- 9. Responsive Design --- */

/* Tablets */
@media (max-width: 992px) {
  .skills-table {
    grid-template-columns: 1fr 1fr;
  }

    .ai-intro-tabs-container {
  padding: 0 50px;
}

  .skill-column:nth-child(2) {
    border-right: none;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem; /* reduced for better fit */
  }

  header p {
    font-size: 0.9rem;
  }

   .ai-intro-tabs-container {
  padding: 0 20px;
}

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 20px; /* prevents squishing */
  }

  #projects .container {
    padding: 0 10px;
  }

  .projects-grid {
    grid-template-columns: 1fr; /* 🔥 FIX: single column */
    gap: 20px;
  }

  .skills-table {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 30px;
  }

  .skill-column {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
  }

  .skill-column:last-child {
    border-bottom: none;
  }
}

/* Phones (very small screens) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.85rem;
  }

  .ai-intro-tabs-container {
  padding: 0 20px;
}

  .container {
    padding: 0 10px;
  }

  .skills-table {
    padding: 10px;
    gap: 20px;
  }

  .projects-grid {
    gap: 15px;
  }
}
