/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --header-height: 4.5rem;

  /* Colors */
  --hue: 174;
  --bg-color: #0d1a26; /* Dark Slate Blue */
  --bg-color-light: #1a2c3a; /* Lighter Slate */
  --text-color: #ccd6f6; /* Light Slate Text */
  --text-color-light: #8892b0; /* Lighter Text */
  --primary-color: #64ffda; /* Bright Teal */
  --primary-color-alt: #00e6b8; /* Darker Teal */
  --container-color: #1a2c3a;

  /* Typography */
  --body-font: 'Inter', sans-serif;
  --h1-font-size: 2.5rem;
  --h2-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  --font-medium: 500;
  --font-semibold: 600;

  /* Margins */
  --mb-0-5: 0.5rem;
  --mb-1: 1rem;
  --mb-2: 2rem;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Base Styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--bg-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Reusable CSS Classes */
.section {
  padding: 4rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
}

.container {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

/* Left Social Sidebar */
.left-sidebar {
    position: fixed;
    bottom: 0;
    left: 40px;
    width: 40px;
    z-index: var(--z-fixed);
    display: none; /* Hidden by default */
}

.social__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social__list::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    margin-top: 1rem;
    background-color: var(--text-color-light);
}

.social__list a svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-color-light);
    transition: all 0.3s ease;
}

.social__list a:hover svg {
    stroke: var(--primary-color);
    transform: translateY(-3px);
}


/* Header & Navigation */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: rgba(13, 26, 38, 0.8);
  backdrop-filter: blur(10px);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__toggle {
  color: var(--primary-color);
  font-weight: var(--font-semibold);
}

.nav__logo {
    font-size: 1.5rem;
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--primary-color);
}

.active-link {
  color: var(--primary-color);
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: calc(90vh - var(--header-height)); /* Adjusted height */
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: var(--mb-0-5);
}

.hero__subtitle {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-1);
}

.hero__description {
  margin-bottom: var(--mb-2);
  color: var(--text-color-light);
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__image {
    display: flex;
    justify-content: center;
}

.hero__avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.3);
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: all 0.3s;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.btn--primary:hover {
  background-color: var(--primary-color-alt);
}

.btn--outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn--outline:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
}

.btn--lg {
    padding: 1rem 2rem;
}

/* About Section */
.about__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

.about__text p {
    color: var(--text-color-light);
    line-height: 1.7;
}

.about__card {
    background-color: var(--bg-color-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.about__card h3 {
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
}

.about__card ul {
    color: var(--text-color-light);
}

.about__card li {
    padding: 0.25rem 0;
}

/* Agent Workflow Section */
.agent-workflow {
    background-color: var(--bg-color-light);
    padding: 3rem 0;
    overflow: hidden;
}
.workflow-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
.workflow-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--text-color-light);
    opacity: 0.3;
    z-index: 0;
}
.workflow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    z-index: 1;
    transition: all 0.3s ease;
}
.workflow-node.active {
    transform: scale(1.1);
}
.node-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--text-color-light);
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 15px;
}
.workflow-node.active .node-icon {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}
.node-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.user-icon { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1a26' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E"); 
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}
.db-icon { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1a26' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'%3E%3C/ellipse%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'%3E%3C/path%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'%3E%3C/path%3E%3C/svg%3E"); 
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}
.node-label {
    font-weight: var(--font-semibold);
    color: var(--text-color-light);
}
.data-packet {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    top: 50px; 
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
}

@keyframes move-packet {
    0% { left: 8%; opacity: 1; }
    25% { left: 37%; }
    50% { left: 62%; }
    75% { left: 92%; }
    100% { left: 92%; opacity: 1; }
}


/* Experience Section */
.experience__timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid var(--bg-color-light);
}

.experience__item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: var(--container-color);
    border-radius: 0.5rem;
    border: 1px solid var(--bg-color-light);
    transition: all 0.3s ease;
}

.experience__item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -10px rgba(2,12,27,0.7);
}

.experience__item::before {
    content: '';
    position: absolute;
    left: -2.7rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-color);
}

.experience__header {
    margin-bottom: var(--mb-1);
}

.experience__role {
    font-size: 1.25rem;
    color: var(--text-color);
}

.experience__company {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: var(--mb-0-5);
}

.experience__date {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.experience__description {
    color: var(--text-color-light);
    margin-bottom: var(--mb-1);
}

/* Projects Section */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--container-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
  border-color: var(--primary-color);
}

.card__body h3 {
    color: var(--text-color);
    margin-bottom: var(--mb-1);
}

.card__body p {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.card__footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: var(--font-medium);
}

/* Skills Section */
.skills__content {
    display: grid;
    gap: 2rem;
}

.skills__category h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tag {
    background-color: var(--bg-color-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
}

/* Contact Section */
.contact__content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact__content p {
    color: var(--text-color-light);
    margin-bottom: var(--mb-2);
}

.contact__grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact__grid--bottom {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.contact__card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--bg-color-light);
    width: 100%;
}

.contact__card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact__card svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.contact__card-info {
    text-align: left;
    flex-grow: 1;
}

.contact__card-info h4 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact__card-info p {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin: 0;
}

.contact__copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.contact__copy-btn:hover {
    color: var(--primary-color);
    background-color: var(--bg-color);
}

.contact__copy-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}


/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-color-light);
  border-top: 1px solid var(--bg-color-light);
}

/* Media Queries for Responsiveness */
@media screen and (min-width: 992px) {
    .left-sidebar {
        display: block;
    }
}

@media screen and (max-width: 991px) {
    .workflow-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .workflow-container::before {
        width: 2px;
        height: 80%;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
    }
    .data-packet {
        animation-name: move-packet-vertical;
    }
    @keyframes move-packet-vertical {
        0% { top: 6%; left: 50%; opacity: 1; transform: translateX(-50%); }
        25% { top: 31%; }
        50% { top: 56%; }
        75% { top: 81%; }
        100% { top: 81%; opacity: 1; }
    }
}

@media screen and (max-width: 768px) {
  body {
    margin: 0;
  }
  .header {
    display: none;
  }
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  .hero__image {
      order: -1;
      margin-bottom: 2rem;
  }
  .hero__avatar {
      width: 200px;
      height: 200px;
  }
  .hero__buttons {
      justify-content: center;
  }
  .footer {
      display: none;
  }
  .data-packet {
      display: none;
  }
  .workflow-container::before {
      display: none;
  }
}

@media screen and (max-width: 350px) {
    .container {
        padding: 0 1rem;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1.25rem;
    }
}
