/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #011640;
  --secondary-color: #010d26;
  --accent-color: #32508c;
  --light-accent: #758ebf;
  --neutral-color: #d2d9d8;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  --shadow: 0 10px 30px rgba(1, 22, 64, 0.3);
  --shadow-hover: 0 20px 40px rgba(1, 22, 64, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  overflow-x: hidden;
}

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

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, var(--neutral-color), var(--white));
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  background: var(--accent-color);
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  background: var(--light-accent);
  top: 80%;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: var(--secondary-color);
  top: 30%;
  right: 30%;
  animation-delay: -15s;
}

.shape-5 {
  width: 90px;
  height: 90px;
  background: var(--accent-color);
  top: 10%;
  right: 50%;
  animation-delay: -7s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(30px) rotate(240deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(1, 22, 64, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(1, 22, 64, 0.98);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-logo .logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--light-accent);
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.github-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cv-download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cv-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.typing-text {
  color: var(--accent-color);
  animation: typing 2s steps(10) infinite;
}

.name-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes typing {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.5;
  }
}

@keyframes glow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.2);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light-accent);
  margin-bottom: 2rem;
  animation: slideInUp 1s ease-out 0.5s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: slideInUp 1s ease-out 1s both;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
  left: 100%;
}

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

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

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

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

.profile-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  animation: slideInRight 1s ease-out;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.profile-img {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--light-accent);
  animation: pulse 2s infinite;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(117, 142, 191, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(117, 142, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(117, 142, 191, 0);
  }
}

.profile-info h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.profile-info p {
  color: var(--light-accent);
  font-size: 1.1rem;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.profile-link {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow);
}

/* Tech Marquee */
.tech-marquee {
  background: var(--gradient-primary);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 50px 0;
}

.tech-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 3rem;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Section Styles */
.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-secondary);
  border-radius: 15px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow);
}

/* Projects Section */
.projects {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--neutral-color), var(--white));
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

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

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 22, 64, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--light-accent);
  color: var(--white);
  transform: scale(1.1);
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.project-info p {
  color: var(--light-accent);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Experience Section */
.experience {
  padding: 100px 0;
  background: var(--white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  top: 0;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

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

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

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.timeline-date {
  color: var(--light-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--primary-color);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.certifications {
  margin-top: 4rem;
}

.certifications h3 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

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

.cert-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.cert-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.contact .section-title::after {
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--light-accent);
}

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

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

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

.contact-method.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
}

.contact-method.github:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-method i {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.contact-method h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.contact-method p {
  opacity: 0.8;
  margin: 0;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 50px 15px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--light-accent);
  background: rgba(255, 255, 255, 0.2);
}

.form-group i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

.form-group textarea + i {
  top: 20px;
  transform: none;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--gradient-secondary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* CV Modal styles */
.cv-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.cv-modal-content {
  background-color: var(--white);
  margin: 2% auto;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cv-modal-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cv-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.cv-close {
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cv-close:hover {
  transform: scale(1.2);
}

.cv-modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0;
}

.cv-document {
  padding: 30px;
  font-family: "Arial", sans-serif;
  line-height: 1.4;
  color: var(--primary-color);
}

.cv-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--accent-color);
}

.cv-photo {
  flex-shrink: 0;
}

.cv-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light-accent);
}

.cv-info h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: bold;
}

.cv-info h2 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  font-weight: normal;
}

.cv-contact p {
  margin: 5px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-contact i {
  width: 16px;
  color: var(--accent-color);
}

.cv-section {
  margin-bottom: 25px;
}

.cv-section h3 {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 8px 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-radius: 5px;
}

.cv-job,
.cv-education {
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 3px solid var(--light-accent);
}

.cv-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.cv-job-header h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0;
}

.cv-date {
  background: var(--accent-color);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.cv-company {
  color: var(--light-accent);
  font-weight: bold;
  margin: 5px 0;
  font-size: 0.95rem;
}

.cv-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.cv-skill-category h4 {
  color: var(--accent-color);
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.cv-skill-category p {
  font-size: 0.85rem;
  margin: 0;
}

.cv-section ul {
  padding-left: 20px;
}

.cv-section li {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.cv-modal-footer {
  background: var(--neutral-color);
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cv-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.cv-btn-print {
  background: var(--gradient-secondary);
  color: var(--white);
}

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

.cv-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 2rem 0;
}

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

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

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--light-accent);
  transform: translateY(-3px);
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .cv-modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .cv-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cv-photo img {
    width: 100px;
    height: 100px;
  }

  .cv-info h1 {
    font-size: 1.8rem;
  }

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

  .cv-job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .cv-modal-footer {
    flex-direction: column;
  }

  .github-link,
  .cv-download-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

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

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

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

  .nav-container {
    padding: 1rem;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@media print {
  .cv-modal,
  .cv-modal-header,
  .cv-modal-footer {
    display: none;
  }

  .cv-document {
    padding: 0;
    font-size: 12px;
  }

  .cv-header {
    page-break-inside: avoid;
  }

  .cv-section {
    page-break-inside: avoid;
    margin-bottom: 15px;
  }
}
