/* Modern Portfolio Styles - Main Stylesheet */
:root {
  --primary: #7b2cbf;
  --primary-dark: #5a189a;
  --primary-light: #9d4edd;
  --secondary: #c77dff;
  --secondary-dark: #9d4edd;
  --accent: #e0aaff;
  --dark: #10002b;
  --dark-lighter: #240046;
  --dark-lightest: #3c096c;
  --light: #f8fafc;
  --light-darker: #e2e8f0;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --info: #3b82f6;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Consolas, monospace;
  --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-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  color: var(--light);
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 0.25rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 0.125rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--light);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

strong {
  font-weight: 600;
  color: var(--primary-light);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: hidden;
}

.section {
  padding: 5rem 0;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 25%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
  z-index: -1;
}

/* Header & Navigation */
header {
  background-color: rgba(16, 0, 43, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.75rem 0;
  background-color: rgba(16, 0, 43, 0.98);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  background: linear-gradient(to right, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--light);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu a {
  color: var(--light);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
}

.mobile-menu a:hover, 
.mobile-menu a.active {
  background-color: var(--dark-lighter);
  color: var(--primary-light);
}

.close-menu-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-menu-btn:hover {
  background-color: var(--dark-lighter);
  color: var(--primary-light);
}

@media (max-width: 480px) {
  .mobile-menu {
    padding-top: 5rem;
  }
  
  .mobile-menu a {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
  }
  
  .close-menu-btn {
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 25%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(224, 170, 255, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  overflow-x: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-light);
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--light);
  box-shadow: 0 4px 14px rgba(123, 44, 191, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 44, 191, 0.4);
}

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

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

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  width: 100%;
  overflow-x: hidden;
}

.about-img {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.about-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.about-img::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 2px solid var(--primary);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.5;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-light);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  overflow-x: hidden;
}

.skill-tag {
  background-color: var(--dark-lighter);
  color: var(--light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.skill-tag i {
  font-size: 1rem;
}

/* Experience Section */
.experience-card {
  background-color: var(--dark-lighter);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(157, 78, 221, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px 0 0 4px;
}

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

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.experience-company {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.experience-company i {
  color: var(--primary);
}

.experience-date {
  font-size: 0.875rem;
  color: var(--gray-light);
  background-color: var(--dark-lightest);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.experience-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.experience-location {
  font-size: 0.875rem;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.experience-description {
  color: var(--gray-light);
}

.experience-description ul {
  list-style: none;
  padding: 0;
}

.experience-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.experience-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.experience-duration {
  font-size: 0.75rem;
  color: var(--gray-light);
  background-color: var(--dark-lightest);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
}

/* Revolutionary Experience Section */
.experience-timeline-container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.experience-timeline-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.timeline-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--dark-lighter), var(--dark-lightest));
  padding: 1.5rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px -10px rgba(16, 0, 43, 0.5);
  position: relative;
  overflow: hidden;
}

.timeline-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(157, 78, 221, 0.1), rgba(224, 170, 255, 0.1));
  z-index: 1;
}

.timeline-stats::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
  z-index: 0;
  animation: pulse 15s infinite linear;
}

@keyframes pulse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.timeline-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.timeline-stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1;
  background: linear-gradient(to right, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timeline-stat-label {
  font-size: 0.875rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 1.25rem;
  color: var(--light);
  position: relative;
  padding-bottom: 1rem;
}

.timeline-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 3px;
}

.experience-timeline {
  position: relative;
  padding: 2rem 0;
  width: 100%;
  overflow-x: hidden;
}

.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-dark), var(--accent));
  transform: translateX(-50%);
  z-index: 1;
  overflow: hidden;
}

.timeline-entries {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.timeline-entry {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
  overflow-x: hidden;
}

.timeline-entry.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.timeline-entry:nth-child(odd) {
  flex-direction: row;
  padding-right: 50%;
  padding-left: 0;
}

.timeline-entry:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: 50%;
  padding-right: 0;
}

.timeline-entry-content {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.timeline-entry:nth-child(odd) .timeline-entry-content {
  margin-right: 3rem;
}

.timeline-entry:nth-child(even) .timeline-entry-content {
  margin-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 5px rgba(157, 78, 221, 0.3), 0 0 0 10px rgba(157, 78, 221, 0.1);
}

.timeline-entry:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-entry:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-entry-card {
  background: linear-gradient(135deg, var(--dark-lighter), var(--dark-lightest));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px -10px rgba(16, 0, 43, 0.5);
  border: 1px solid rgba(157, 78, 221, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.timeline-entry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px -10px rgba(16, 0, 43, 0.6);
}

.timeline-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.timeline-entry-company {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-entry-company-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--light);
  box-shadow: 0 5px 15px -5px rgba(123, 44, 191, 0.5);
}

.timeline-entry-date {
  font-size: 0.875rem;
  color: var(--gray-light);
  background-color: var(--dark-lightest);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-entry-date i {
  color: var(--primary-light);
}

.timeline-entry-role {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.timeline-entry-location {
  font-size: 0.875rem;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.timeline-entry-description {
  color: var(--gray-light);
}

.timeline-entry-description ul {
  list-style: none;
  padding: 0;
}

.timeline-entry-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.timeline-entry-description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-entry-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.timeline-entry-skill {
  background-color: rgba(157, 78, 221, 0.15);
  color: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.timeline-entry-skill:hover {
  background-color: rgba(157, 78, 221, 0.3);
  transform: translateY(-2px);
}

.timeline-entry-duration {
  position: absolute;
  top: 0px;
  right: 20px;
  background: var(--primary);
  color: var(--light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  min-width: 85px;
  max-width: 85%;
  width: auto;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  transform: translateX(0);
  text-overflow: ellipsis;
}

/* Responsive Timeline */
@media (max-width: 992px) {
  .timeline-track {
    left: 20px;
  }
  
  .timeline-entry {
    flex-direction: row !important;
    padding-right: 0 !important;
    padding-left: 50px !important;
  }
  
  .timeline-entry-content {
    margin-right: 0 !important;
    margin-left: 1.5rem !important;
  }
  
  .timeline-dot {
    left: -10px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .timeline-stats {
    padding: 1.5rem;
    gap: 1rem;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
  }
  
  .timeline-stat-value {
    font-size: 2.5rem;
  }
  
  .timeline-entry-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-entry-date {
    align-self: flex-start;
  }
  
  .timeline-entry-duration {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    right: 10px;
    opacity: 1;
    display: block;
  }

  .experience-timeline-header {
    width: 100%;
    padding: 0 1.5rem;
  }
  
  .experience-timeline {
    padding: 1rem 0;
  }
  
  .experience-timeline .timeline-track {
    display: none;
  }
  
  .timeline-entry {
    padding-left: 1rem !important;
    margin-bottom: 2rem;
  }
  
  .timeline-entry-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
  }
  
  .timeline-dot {
    display: none;
  }
  
  .timeline-entry-card {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .timeline-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: calc(100% - 1rem);
    margin-left: auto;
    margin-right: auto;
  }
  
  .timeline-stat {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .timeline-stat-value {
    font-size: 2rem;
  }
  
  .timeline-stat-label {
    font-size: 0.75rem;
  }
  
  .timeline-entry-duration {
    right: 5px;
    max-width: 75%;
    opacity: 1;
    display: block;
  }

  .experience-timeline-header {
    width: 100%;
    padding: 0 1rem;
  }
  
  .experience-timeline {
    padding: 0.5rem 0;
  }
  
  .timeline-entry {
    padding-left: 0 !important;
  }
  
  .timeline-entry-card {
    width: calc(100% - 1rem);
    margin: 0 0.5rem;
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  overflow-x: hidden;
}

.project-card {
  background-color: var(--dark-lighter);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  max-width: 100%;
}

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

.project-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  width: 100%;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.25rem;
}

.project-description {
  color: var(--gray-light);
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background-color: var(--dark-lightest);
  color: var(--gray-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

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

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--dark-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
}

.contact-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--light);
}

.contact-text p,
.contact-text a {
  color: var(--gray-light);
  font-size: 0.875rem;
}

.contact-form {
  background-color: var(--dark-lighter);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(157, 78, 221, 0.2);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--light);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--dark-lightest);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 0.5rem;
  color: var(--light);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.3);
}

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

/* Footer */
footer {
  background-color: var(--dark-lighter);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  width: 100%;
  overflow-x: hidden;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo i {
  color: var(--primary);
  font-size: 1.25rem;
}

.footer-logo span {
  background: linear-gradient(to right, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--gray-light);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--dark-lightest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  text-align: center;
  color: var(--gray-light);
  font-size: 0.875rem;
}

/* Regras específicas para footer responsivo */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-logo {
    margin: 0 auto 1rem;
  }
  
  .footer-links {
    gap: 1.25rem;
    justify-content: center;
    width: 100%;
  }
  
  .footer-social {
    margin-top: 0.5rem;
  }
  
  .footer-bottom {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-logo {
    font-size: 1.25rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-links a {
    padding: 0.5rem;
    display: block;
    border-bottom: 1px solid rgba(157, 78, 221, 0.1);
  }
  
  .footer-social {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 320px) {
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-img {
    text-align: center;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .container {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 0.5rem;
  }
}

/* Chat App Styles */
.chat-container {
  background-color: var(--dark-lighter);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(157, 78, 221, 0.2);
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background-color: var(--dark-lightest);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.chat-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-title i {
  color: var(--primary);
}

.chat-actions {
  display: flex;
  gap: 0.75rem;
}

.chat-action-btn {
  background-color: var(--dark);
  border: none;
  color: var(--light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background-color: var(--primary);
}

.chat-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  gap: 1rem;
  max-width: 80%;
}

.chat-message.incoming {
  align-self: flex-start;
}

.chat-message.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dark-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-weight: 600;
  flex-shrink: 0;
}

.chat-bubble {
  background-color: var(--dark-lightest);
  padding: 1rem;
  border-radius: 1rem;
  position: relative;
}

.chat-message.incoming .chat-bubble {
  border-top-left-radius: 0;
}

.chat-message.outgoing .chat-bubble {
  background-color: var(--primary);
  border-top-right-radius: 0;
}

.chat-content {
  margin-bottom: 0.5rem;
}

.chat-meta {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-light);
}

.chat-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.chat-input-group {
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: var(--dark-lightest);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 2rem;
  color: var(--light);
  font-size: 1rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send-btn {
  background-color: var(--primary);
  border: none;
  color: var(--light);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* Study App Styles */
.study-container {
  background-color: var(--dark-lighter);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(157, 78, 221, 0.2);
}

.study-header {
  background-color: var(--dark-lightest);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.study-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.study-subtitle {
  color: var(--gray-light);
  font-size: 0.875rem;
}

.study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.stat-card {
  background-color: var(--dark-lightest);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-title {
  font-size: 0.875rem;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-title i {
  color: var(--primary);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
}

.progress-container {
  margin-top: 0.5rem;
}

.progress-bar {
  height: 0.5rem;
  background-color: var(--dark);
  border-radius: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 1rem;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--gray-light);
  text-align: right;
  margin-top: 0.25rem;
}

.study-content {
  padding: 1.5rem;
}

.study-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.study-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-label {
  font-size: 0.875rem;
  color: var(--gray-light);
}

.filter-select {
  background-color: var(--dark-lightest);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--light);
  font-size: 0.875rem;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.add-book-btn {
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

.book-card {
  background-color: var(--dark-lightest);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(157, 78, 221, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

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

.book-card.completed {
  border-color: var(--success);
}

.book-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 0.875rem;
  color: var(--gray-light);
  margin-bottom: 0.75rem;
}

.book-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.book-rating i {
  color: var(--secondary);
}

.book-progress {
  margin-bottom: 1rem;
}

.book-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-bottom: 0.25rem;
}

.book-progress-bar {
  height: 0.375rem;
  background-color: var(--dark);
  border-radius: 1rem;
  overflow: hidden;
}

.book-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 1rem;
  transition: width 0.5s ease;
}

.book-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.book-action-btn {
  flex: 1;
  background-color: var(--dark);
  border: none;
  color: var(--light);
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-action-btn:hover {
  background-color: var(--primary);
}

.book-action-btn.delete:hover {
  background-color: var(--danger);
}

.completed-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: var(--success);
  font-size: 1.25rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 0, 43, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--dark-lighter);
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(157, 78, 221, 0.2);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.star-rating i {
  color: var(--gray-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.star-rating i:hover,
.star-rating i.active {
  color: var(--secondary);
  transform: scale(1.1);
}

/* Notification */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--light);
  font-weight: 500;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.success {
  background-color: var(--success);
}

.notification.error {
  background-color: var(--danger);
}

.notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* Animations */
@keyframes progress {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-progress {
  background-size: 200% 200%;
  animation: progress 2s ease infinite;
}

/* Video Chat Styles */
.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.video-card {
  background-color: var(--dark-lighter);
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-title {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: rgba(16, 0, 43, 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: var(--light);
}

.video-controls {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.video-control-btn {
  background-color: rgba(16, 0, 43, 0.5);
  border: none;
  color: var(--light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-control-btn:hover {
  background-color: var(--primary);
}

.video-control-btn.mute.active {
  background-color: var(--danger);
}

.video-control-btn.video.active {
  background-color: var(--danger);
}

.video-control-btn.hand.active {
  background-color: var(--warning);
}

.chat-sidebar {
  background-color: var(--dark-lighter);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 0.75rem;
}

.chat-message-sender {
  font-weight: 600;
  color: var(--primary-light);
}

.chat-message-text {
  color: var(--light);
}

.chat-input-container {
  padding: 1rem;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background-color: var(--dark-lightest);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 0.5rem;
  color: var(--light);
  font-size: 0.875rem;
}

.chat-send {
  background-color: var(--primary);
  border: none;
  color: var(--light);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send:hover {
  background-color: var(--primary-dark);
}

/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(circle at 20% 25%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(224, 170, 255, 0.1) 0%, transparent 50%);
}

.login-card {
  background-color: var(--dark-lighter);
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(157, 78, 221, 0.2);
  animation: fadeIn 0.5s ease forwards;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--gray-light);
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-btn {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--light);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(123, 44, 191, 0.3);
}

.login-error {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.login-error.active {
  display: block;
}

/* Button Variants */
.btn-danger {
  background: linear-gradient(to right, #ef4444, #dc2626);
  color: var(--light);
}

.btn-danger:hover {
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Responsividade da imagem de perfil */
@media (max-width: 768px) {
  .about-img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .about-img {
    width: 200px;
    height: 200px;
  }
}
