:root {
  --primary: #DC143C;
  --primary-light: #FF1744;
  --primary-dark: #B71C1C;

  --secondary: #333333;
  --secondary-light: #555555;
  --secondary-dark: #111111;

  --accent: #DC143C;
  --accent-light: #FF1744;

  --bg-primary: rgba(255, 255, 255, 0.95);
  --bg-secondary: rgba(248, 249, 250, 0.95);
  --bg-card: rgba(255, 255, 255, 0.98);

  --text-primary: #212529;
  --text-secondary: #6C757D;
  --text-muted: #ADB5BD;

  --border-color: #DEE2E6;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FFFFFF;
  background-image:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 100px,
      rgba(220, 20, 60, 0.01) 100px,
      rgba(220, 20, 60, 0.01) 200px),
    url('./image/background-logo-red.png');
  background-size: auto, 120px 120px;
  background-position: center, center;
  background-repeat: repeat, repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.404);
  z-index: -1;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Enhanced animations */
.hero-image .profile-photo {
  animation: float 6s ease-in-out infinite;
}

.skill-card:hover {
  animation: pulse 0.6s ease-in-out;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover {
  transform: translateY(-8px) scale(1.02);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure tech icons are properly sized */
.tech-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

to {
  opacity: 1;
  transform: translateY(0);
}


@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  animation:
    typing 5s steps(20, end),
    blink 0.75s step-end infinite;
  animation-iteration-count: infinite;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.narrow {
  max-width: 900px;
}

.section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--bg-primary);
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-size: 1.125rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1001;
}

.skip-link:focus {
  left: var(--spacing-sm);
  top: var(--spacing-sm);
}

.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(220, 20, 60, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.1) rotate(5deg);
}

.logo:hover {
  color: var(--primary-light);
}

.nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease;
}

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

.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-text h1 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  font-weight: 800;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.social-icons a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.download-cv {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

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

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

.profile-photo {
  width: 350px;
  height: 350px;
  border-radius: var(--radius-full);
  background: white;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: all 0.4s ease;
}

.profile-photo:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 0 40px rgba(220, 20, 60, 0.6), 0 0 80px rgba(220, 20, 60, 0.4);
}

.profile-photo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  z-index: -1;
  transition: all 0.4s ease;
}

.profile-photo:hover::before {
  inset: -8px;
  box-shadow: 0 0 30px rgba(220, 20, 60, 0.8);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* Animation Utility Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

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

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

/* Smooth transitions for all interactive elements */
.skill-card,
.skill-card-simple,
.project-card,
.cert-card,
.social-icons a,
.download-cv,
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover states */
.project-card:hover,
.cert-card:hover,
.skill-card:hover,
.skill-card-simple:hover {
  box-shadow: 0 20px 40px rgba(220, 20, 60, 0.15);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.skills-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.skill-card {
  background-color: var(--bg-card);
  border: 3px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.skill-card.featured {
  border-color: var(--border-color);
  border-width: 3px;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.03), rgba(255, 255, 255, 1));
}

.skill-card.featured:hover {
  border-color: var(--primary);
}

.skill-card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-size: 1.5rem;
}

.skill-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  flex: 1;
}

/* Professional Icon Styling */
.skill-icons {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: var(--spacing-sm);
}

.skill-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: 80px;
  /* Fixed width for consistency */
}

.skill-icon-item img,
.skill-icon-item i,
.skill-icon-item svg,
.tech-icon {
  width: 60px !important;
  /* Unified size */
  height: 60px !important;
  /* Unified size */
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  /* Soft shadow */
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.skill-icon-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Hover Effects */
.skill-icon-item:hover {
  transform: translateY(-5px);
}

.skill-icon-item:hover img,
.skill-icon-item:hover i,
.skill-icon-item:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 8px 12px rgba(220, 20, 60, 0.2));
}

.skill-icon-item:hover span {
  color: var(--primary);
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.skill-card-simple {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(220, 20, 60, 0.05);
  /* Light primary color background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.skill-card-simple:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.skill-card-simple:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.skill-card-simple h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  font-size: 1.25rem;
}

.skill-card-simple p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

.cert-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cert-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

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

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

.cert-info {
  padding: var(--spacing-lg);
}

.cert-info h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
}

.cert-info p {
  color: var(--text-secondary);
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--spacing-xl);
}

.project-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(220, 20, 60, 0.2);
}

.project-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

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

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

.project-info {
  padding: var(--spacing-xl);
}

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

.project-info p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.project-tags {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.tag {
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--primary-light);
  transform: translateX(6px);
}

.contact-form {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--spacing-2xl);
  margin-top: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

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

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.btn {
  padding: 14px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary);
}

.site-footer {
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--border-color);
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.footer-info p {
  color: var(--text-secondary);
  margin: 0;
  margin-bottom: var(--spacing-xs);
}

.footer-contact {
  color: var(--primary);
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  background-color: white;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
}

.footer-social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.footer-social-link.whatsapp:hover {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-color: #25D366;
  color: white;
}

.footer-social-link.instagram:hover {
  background: linear-gradient(135deg, #E4405F, #C13584);
  border-color: #E4405F;
  color: white;
}

.footer-social-link.facebook:hover {
  background: linear-gradient(135deg, #1877F2, #0C63D4);
  border-color: #1877F2;
  color: white;
}

.footer-social-link.github:hover {
  background: linear-gradient(135deg, #333, #000);
  border-color: #333;
  color: white;
}

.footer-nav {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 350px;
  }

  .profile-photo {
    width: 320px;
    height: 320px;
  }

  .skills-grid-two {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .profile-photo {
    width: 280px;
    height: 280px;
  }

  .social-icons {
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .nav.active {
    max-height: 400px;
    padding: var(--spacing-md);
  }

  .nav a {
    text-align: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

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

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

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

@media (max-width: 480px) {
  .profile-photo {
    width: 240px;
    height: 240px;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }

  h1 {
    font-size: 2rem;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .project-card,
  .cert-card,
  .skill-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }

  .tech-icon,
  .skill-icon-item svg,
  .skill-icon-item i {
    width: 48px !important;
    height: 48px !important;
    font-size: 48px !important;
  }

  .skill-icons {
    gap: var(--spacing-md);
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .profile-photo {
    width: 400px;
    height: 400px;
  }

  .hero-content {
    grid-template-columns: 1fr 450px;
  }
}

@media print {
  body::before {
    display: none;
  }

  .site-header,
  .social-icons,
  .download-cv,
  .contact-form,
  .site-footer,
  .menu-toggle {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }
}