/* ===== VARIABLES ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #a855f7;
  --accent: #3b82f6;
  --bg-light: #f8fafc;
  --bg-alt: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #334155;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}

.bg-alt {
  background: var(--bg-alt);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* ===== HEADER & NAVIGATION ===== */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  letter-spacing: -1px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
  border-radius: 3px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-dark);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content .badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-dark);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.static {
  font-weight: 700;
  color: var(--text-dark);
}

.dynamic-role {
  color: var(--primary);
  font-weight: 800;
  position: relative;
  display: inline-block;
  min-height: 4rem;
}

.dynamic-role::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 4px;
  color: var(--primary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 20px -8px var(--primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -8px var(--primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== HERO VISUAL (floating cards) ===== */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card {
  position: absolute;
  width: 180px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 1.2rem;
  animation: float 6s infinite ease-in-out;
}

.floating-card:first-child {
  top: 20%;
  left: 0;
  animation-delay: 0s;
}

.floating-card.delay-2 {
  bottom: 20%;
  right: 0;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-content i {
  font-size: 2rem;
  color: var(--primary);
}

.hero-circle {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  border-radius: 50%;
  position: absolute;
  z-index: -1;
}

/* ===== PROJECT CARDS ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -15px var(--primary);
}

.project-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  background: var(--bg-alt);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== ABOUT PAGE SPECIFIC ===== */
.page-header {
  text-align: center;
  padding: 3rem 0 0;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.image-wrapper {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.image-wrapper:hover {
  transform: scale(1.02) rotate(1deg);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.bio-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.bio-content p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

/* Timeline Card */
.timeline-card {
  background: white;
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.timeline-content h3 {
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
}

.timeline-place {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Skills bars */
.skills-grid {
  max-width: 600px;
  margin: 2rem auto 0;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.progress-bar {
  height: 10px;
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  width: 0;
  transition: width 1s ease;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px var(--primary);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.info-card a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.info-card a:hover {
  color: var(--primary);
}

.contact-form-container {
  background: white;
  border-radius: 30px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--bg-alt);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
}

.form-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    height: 300px;
    order: -1;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bio-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }

  .nav-menu {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .floating-card {
    width: 140px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}