@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

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

:root {
  --primary-brown: #583b1f;
  --light-cream: #e5e0da;
  --warm-beige: #d4c4b0;
  --dark-brown: #3d2814;
  --accent-gold: #b8860b;
  --accent-terracotta: #cd853f;
  --dark-text: #2c1810;
  --light-text: #8b7355;
  --border: #c4b5a0;
  --bg-highlight: #f0ebe5;
  --gradient-primary: linear-gradient(135deg, #583b1f, #8b4513);
  --gradient-accent: linear-gradient(135deg, #b8860b, #cd853f);
  --shadow-color: rgba(88, 59, 31, 0.15);
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f8f6f3 0%, #e5e0da 100%);
  color: var(--dark-text);
  scroll-behavior: smooth;
}

.container {
  margin: 2rem 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
header {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  height: 80px;
  position: sticky;
  top: 10px;
  border-radius: 12px;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow-color);
}

#logo {
  display: flex;
  align-items: center;
}

#logo a {
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

#logo img {
  height: 35px;
  width: auto;
  animation: none;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-brown);
  letter-spacing: 0.5px;
}

@keyframes colorShift {
  0%,
  100% {
    color: var(--primary-brown);
  }
  25% {
    color: var(--dark-brown);
  }
  50% {
    color: var(--accent-gold);
  }
  75% {
    color: var(--accent-terracotta);
  }
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links li a {
  font-size: 15px;
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 8px;
  font-weight: 500;
}

.nav-links li a.active {
  color: var(--dark-text);
}

.nav-links li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  animation: colorShift 4s ease-in-out infinite;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.nav-links li a:hover {
  color: var(--light-text);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-text);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 2000;
  padding: 2rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 2rem;
}

.mobile-nav-links li a {
  font-size: 20px;
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-links li a.active {
  color: var(--primary-red);
  animation: colorShift 4s ease-in-out infinite;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.greeting {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--dark-text);
  margin-bottom: 2rem;
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
  color: var(--primary-brown);
}

.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 85%;
  top: 10%;
  right: 0;
  background-color: var(--bg-highlight);
  z-index: -1;
  transform: rotate(0deg);
  overflow: hidden;
  border-radius: 8px;
}

.description {
  max-width: 600px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--light-text);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Typing Animation */
.typing-text {
  overflow: hidden;
  border-right: 2px solid var(--primary-brown);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-brown);
  }
}

/* Pulse Animation for Social Links */
.social-links a {
  color: var(--light-text);
  transition: all 0.3s ease;
  position: relative;
}

.social-links a:hover {
  animation: colorShift 4s ease-in-out infinite;
  transform: scale(1.2);
}

.social-links a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(88, 59, 31, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.social-links a:hover::after {
  width: 40px;
  height: 40px;
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* Section Styles */
.section {
  padding: 3rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--primary-brown);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--light-text);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Experience Section */
.experience-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.experience-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Enhanced Hover Effects */
.experience-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.experience-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.experience-item:hover::before {
  left: 100%;
}

.experience-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--primary-brown);
}

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

.experience-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.company {
  color: var(--light-text);
  font-size: 1rem;
}

.external-link {
  color: var(--primary-brown);
  text-decoration: none;
  margin-left: 0.3rem;
  transition: color 0.3s ease;
}

.external-link:hover {
  color: var(--accent-gold);
}

.experience-meta {
  text-align: right;
}

.date {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.location {
  color: var(--light-text);
  font-size: 0.85rem;
}

.experience-description {
  list-style: none;
  margin-bottom: 1.5rem;
}

.experience-description li {
  color: var(--dark-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

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

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--dark-text);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.tag:hover::before {
  width: 100%;
}

.tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: var(--primary-brown);
  color: white;
}

/* Technology-specific hover colors */
.tag:nth-child(1):hover {
  background: linear-gradient(135deg, #61dafb, #21d4fd);
  color: white;
}
.tag:nth-child(2):hover {
  background: linear-gradient(135deg, #3178c6, #4dabf7);
  color: white;
}
.tag:nth-child(3):hover {
  background: linear-gradient(135deg, #f7df1e, #ffd43b);
  color: #333;
}
.tag:nth-child(4):hover {
  background: linear-gradient(135deg, #68a063, #51cf66);
  color: white;
}
.tag:nth-child(5):hover {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}
.tag:nth-child(6):hover {
  background: linear-gradient(135deg, #9775fa, #b197fc);
  color: white;
}
.tag:nth-child(7):hover {
  background: linear-gradient(135deg, #ffa726, #ffb74d);
  color: white;
}
.tag:nth-child(8):hover {
  background: linear-gradient(135deg, #26c6da, #4dd0e1);
  color: white;
}
.tag:nth-child(9):hover {
  background: linear-gradient(135deg, #66bb6a, #81c784);
  color: white;
}
.tag:nth-child(10):hover {
  background: linear-gradient(135deg, #ef5350, #f06292);
  color: white;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

/* Education Section */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.education-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

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

.education-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.school {
  color: var(--light-text);
  font-size: 1rem;
}

.education-meta {
  text-align: right;
}

.education-description {
  list-style: none;
}

.education-description li {
  color: var(--dark-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

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

/* Contact Section */
.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px var(--shadow-color);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 3px rgba(88, 59, 31, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  font-family: "Inter", sans-serif;
}

.char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: var(--light-text);
  margin-top: 0.5rem;
}

.send-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--shadow-color);
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
}

.bottom-nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.bottom-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--dark-text);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--shadow-color);
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bottom-nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.bottom-nav-left {
  margin-right: auto;
}

.bottom-nav-right {
  margin-left: auto;
}

/* Custom Footer */
.custom-footer {
  background: linear-gradient(135deg, #583b1f 0%, #3d2814 100%);
  color: white;
  margin-top: 4rem;
  width: 100%;
  padding: 2rem 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-bottom {
  text-align: center;
  padding: 0 2rem;
}

.footer-bottom p {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom p:first-child {
  color: var(--accent-gold);
}

/* Loading Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s infinite;
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

/* Shake Animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Glow Effect */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px var(--primary-brown);
  }
  50% {
    box-shadow: 0 0 20px var(--primary-brown), 0 0 30px var(--primary-brown);
  }
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    margin: 1rem;
  }

  header {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .highlight::after {
    height: 90%;
  }

  .experience-header,
  .education-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-meta,
  .education-meta {
    text-align: left;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .section-nav {
    padding: 0;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .cv-download {
    padding: 2rem;
  }

  .cv-icon {
    font-size: 3rem;
  }

  .bottom-nav {
    padding: 0 1rem;
  }

  .bottom-nav-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0 1rem;
  }

  #logo a {
    font-size: 16px;
  }

  .section {
    padding: 2rem 0.5rem;
  }

  .experience-item,
  .education-item,
  .skill-category {
    padding: 1.5rem;
  }
}
