:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #0f172a;
  --accent-color: #4f46e5;
  --text-color: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  background-color: var(--bg-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
  background-color: var(--bg-color);
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav a:hover {
  color: var(--primary-color);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
#hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-placeholder {
  width: 300px;
  height: 300px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--primary-color);
  overflow: hidden;
  position: relative;
}

.profile-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.profile-placeholder i {
  font-size: 120px;
  color: var(--text-light);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.tagline-container {
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  width: 600px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

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

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* About Section */
#about {
  background-color: var(--bg-light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  border-top: 3px solid var(--primary-color);
}

.skill-category h3 {
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary-color);
}

.skill-category ul {
  padding-left: 1rem;
}

.skill-category li {
  margin-bottom: 0.5rem;
  position: relative;
}

.skill-category li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1rem;
  margin-left: -1rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 180px;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.project-image i {
  font-size: 5rem;
  color: var(--primary-color);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: var(--secondary-color);
}

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

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
}

.project-link:hover {
  text-decoration: underline;
}

/* Demo Chat Link */
#demo-chat-link {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

#demo-chat-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Experience Section */
#experience {
  background-color: var(--bg-light);
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.experience-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  height: 100%;
}

.experience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--bg-light);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  border: 2px solid var(--primary-color);
}

.experience-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.experience-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.experience-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  opacity: 0.9;
}

.experience-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.experience-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Interview Section */
.highlight-section {
  background-color: var(--secondary-color);
  color: white;
}

.highlight-section .section-title {
  color: white;
}

.interview-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Video embed styling */
.video-embed {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  height: 0;
  padding-bottom: 56.25%;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.interview-text {
  flex: 1;
}

.interview-text p {
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  padding: 0.75rem;
  border-radius: var(--radius);
  background-color: var(--bg-light);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.social-link i {
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-light);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  .interview-content {
    flex-direction: column;
  }

  .video-embed {
    width: 100%;
    margin-bottom: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-bottom: 2rem;
  }

  .profile-placeholder {
    width: 220px;
    height: 220px;
  }

  .profile-placeholder i {
    font-size: 90px;
  }

  .projects-grid,
  .experience-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  header .container {
    height: auto;
    flex-direction: column;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  #hero {
    padding-top: 120px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Animation Effects */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card,
.experience-card,
.skill-category {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.revealed,
.experience-card.revealed,
.skill-category.revealed {
  opacity: 1;
  transform: translateY(0);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.form-success {
  background-color: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.5s ease;
}

.form-success i {
  font-size: 1.5rem;
  color: #10b981;
}
