/* === CSS VARIABLES === */
:root {
  /* Color Palette */
  --primary-color: #1a1a1a;
  --secondary-color: #ffffff;
  --accent-color: #e7818f;
  --accent-light: rgba(231, 129, 143, 0.1);
  --accent-medium: rgba(231, 129, 143, 0.2);
  --accent-dark: #d4677a;

  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-light: #f8f9fa;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;

  /* Border & Shadow */
  --border-color: #e9ecef;
  --border-light: #f1f3f4;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-accent: 0 4px 15px rgba(231, 129, 143, 0.2);

  /* Typography */
  --font-family-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --primary-color: #ffffff;
  --secondary-color: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-card: #2a2a2a;
  --border-color: #333333;
  --border-light: #404040;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* === ABOUT SECTION === */
.about-section {
  padding: 100px 0 80px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
          radial-gradient(circle at 20% 80%, var(--accent-light) 0%, transparent 50%),
          radial-gradient(circle at 80% 20%, var(--accent-light) 0%, transparent 50%);
  z-index: -1;
}

/* === SECTION HEADER === */
.section-title {
  font-size: 3.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  position: relative;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-dark));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === ABOUT CONTENT === */
.about-content {
  padding-right: var(--spacing-lg);
}

.intro-text .lead {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 0;
}

.about-details p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

/* === STATS GRID === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === SKILLS HIGHLIGHT === */
.skills-highlight {
  background: var(--bg-secondary);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--accent-color);
}

.skills-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.skill-tag {
  background: var(--accent-light);
  color: var(--accent-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(231, 129, 143, 0.3);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-1px);
}

/* === RESUME SECTION === */
.resume-section {
  margin-top: var(--spacing-xl);
}

.btn-download {
  background: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

.btn-download:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 129, 143, 0.3);
  color: var(--secondary-color);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-outline-secondary {
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
  padding: 10px 22px;
  font-weight: var(--font-weight-semibold);
  border-radius: 30px;
  transition: all 0.3s ease;
}

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

/* === COSMIC DOWNLOAD BUTTON === */
.cosmic-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-accent);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  min-width: 220px;
}

.cosmic-download-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.6s ease;
}

.cosmic-download-btn:hover::before {
  left: 100%;
}

.cosmic-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 129, 143, 0.4);
  color: var(--secondary-color);
  text-decoration: none;
}

.cosmic-download-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(231, 129, 143, 0.3);
}

/* Document Icon */
.document-icon {
  width: 20px;
  height: 24px;
  background: var(--secondary-color);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.document-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--secondary-color);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.document-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
  box-shadow:
          0 4px 0 var(--accent-color),
          0 8px 0 var(--accent-color);
}

/* Download Icon Container */
.download-icon-container {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.cosmic-download-btn:hover .download-icon-container {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Download Icon */
.download-icon {
  width: 12px;
  height: 12px;
  position: relative;
}

.download-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: var(--secondary-color);
  border-radius: 1px;
}

.download-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--secondary-color);
}

/* === PROFILE SECTION === */
.profile-section {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.profile-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image-wrapper {
  position: relative;
  width: 320px;
  height: 400px;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--secondary-color);
  background: var(--bg-card);
  z-index: 2;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: all 0.4s ease;
}

.profile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
          to top,
          rgba(26, 26, 26, 0.8) 0%,
          rgba(26, 26, 26, 0.4) 50%,
          transparent 100%
  );
  padding: var(--spacing-lg);
  color: var(--text-light);
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-image-wrapper:hover .profile-overlay {
  transform: translateY(0);
}

.profile-info h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.profile-info p {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
}

/* Decorative Elements */
.decoration {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-light);
  z-index: 1;
}

.decoration-1 {
  width: 60px;
  height: 60px;
  top: -20px;
  right: -20px;
  background: var(--accent-medium);
}

.decoration-2 {
  width: 40px;
  height: 40px;
  bottom: -15px;
  left: -15px;
  background: var(--accent-light);
}

/* === TIMELINE SECTION === */
.timeline-section {
  margin-top: var(--spacing-xl);
}

.timeline-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: all 0.3s ease;
}

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

.education-card {
  border-top: 4px solid #4CAF50;
}

.experience-card {
  border-top: 4px solid var(--accent-color);
}

.card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-light);
}

.header-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
}

.header-icon i {
  font-size: 1.25rem;
  color: var(--accent-color);
}

.header-content h3 {
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.header-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* === TIMELINE ITEMS === */
.timeline-container {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 25px;
  width: 2px;
  height: calc(100% + 20px);
  background: var(--border-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-marker.active {
  border-color: var(--accent-color);
  background: var(--accent-color);
}

.timeline-item:hover .timeline-marker {
  border-color: var(--accent-color);
  transform: scale(1.2);
}

.timeline-content {
  padding-left: var(--spacing-sm);
}

.timeline-date {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-content h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
}

.timeline-content h5 {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.achievement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.achievement-tag {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-color);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

[data-aos] {
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* === CERTIFICATIONS SECTION === */
.certifications-section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.certifications-header {
  margin-bottom: var(--spacing-xl);
}

.header-icon-large {
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.header-icon-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-icon-large:hover::before {
  opacity: 0.1;
}

.header-icon-large i {
  font-size: 2rem;
  color: var(--accent-color);
  z-index: 2;
  position: relative;
}

.certifications-title {
  font-size: 2.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.certifications-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === CERTIFICATION CARDS === */
.certification-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

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

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

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

/* === CERTIFICATION IMAGE === */
.certification-image {
  width: 100%;
  height: 120px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.cert-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease;
}

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

.certification-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
          45deg,
          rgba(231, 129, 143, 0.1) 0%,
          transparent 50%,
          rgba(231, 129, 143, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.certification-card:hover .certification-image::after {
  opacity: 1;
}

.certification-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.certification-card:hover .certification-icon {
  background: var(--accent-medium);
  transform: scale(1.1);
}

.certification-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.certification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.certification-badge {
  margin-bottom: var(--spacing-sm);
}

.badge-text {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.certification-name {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
}

.certification-issuer {
  font-size: 0.875rem;
  color: var(--accent-color);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-sm);
}

.certification-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.certification-meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
}

.certification-date,
.certification-status {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.certification-date {
  color: var(--text-secondary);
}

.certification-date i {
  margin-right: var(--spacing-xs);
  color: var(--text-muted);
}

.certification-status {
  color: #10b981;
}

.certification-status.expired {
  color: #ef4444;
}

.certification-status i {
  margin-right: var(--spacing-xs);
}

.certification-actions {
  margin-top: auto;
}

.btn-cert-view {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.btn-cert-view:hover {
  background: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-cert-view i {
  font-size: 0.75rem;
}

.btn-view-all-certs {
  background: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  box-shadow: var(--shadow-accent);
}

.btn-view-all-certs:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 129, 143, 0.3);
}

/* === CERTIFICATION MODAL === */
.certification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.certification-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-light);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  text-align: center;
}

.modal-certificate-preview {
  width: 100%;
  height: 400px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  border: 2px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.modal-certificate-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-md);
}

.modal-certificate-preview i {
  font-size: 3rem;
  color: var(--text-muted);
}

.certification-details {
  text-align: left;
  margin-bottom: var(--spacing-lg);
}

.cert-modal-name {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.cert-modal-issuer {
  font-size: 1.125rem;
  color: var(--accent-color);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-md);
}

.cert-modal-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.cert-modal-meta {
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
}

.cert-meta-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
}

.cert-meta-item:last-child {
  margin-bottom: 0;
}

.cert-meta-item strong {
  color: var(--text-primary);
}

.cert-meta-item span {
  color: var(--text-secondary);
}

.cert-skills h5 {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.modal-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.btn-modal {
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.btn-modal-primary {
  background: var(--accent-color);
  color: var(--secondary-color);
  border: none;
}

.btn-modal-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

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

.btn-modal-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* === DOWNLOAD SUCCESS ANIMATION === */
@keyframes downloadSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.cosmic-download-btn.download-success {
  animation: downloadSuccess 0.6s ease;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1199.98px) {
  .about-content {
    padding-right: var(--spacing-md);
  }

  .profile-image-wrapper {
    width: 280px;
    height: 350px;
  }
}

@media (max-width: 991.98px) {
  .about-content {
    padding-right: 0;
    margin-bottom: var(--spacing-xl);
  }

  .profile-section {
    position: static;
    margin-top: var(--spacing-lg);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline-card {
    padding: var(--spacing-lg);
  }

  .certification-card {
    margin-bottom: var(--spacing-lg);
  }

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

  .certification-image {
    height: 100px;
  }
}

@media (max-width: 767.98px) {
  .about-section {
    padding: 80px 0 60px;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .profile-image-wrapper {
    width: 250px;
    height: 300px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .skills-highlight {
    padding: var(--spacing-md);
  }

  .timeline-card {
    padding: var(--spacing-md);
  }

  .card-header {
    flex-direction: column;
    text-align: center;
  }

  .header-icon {
    margin: 0 auto var(--spacing-sm);
  }

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

  .certifications-title {
    font-size: 1.75rem;
  }

  .certifications-subtitle {
    font-size: 1rem;
  }

  .certification-card {
    padding: var(--spacing-md);
  }

  .certification-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .modal-content {
    padding: var(--spacing-lg);
    width: 95%;
  }

  .modal-certificate-preview {
    height: 300px;
  }

  .certification-image {
    height: 80px;
  }

  .cosmic-download-btn {
    padding: 14px 28px;
    font-size: 15px;
    min-width: 200px;
  }

  .document-icon {
    width: 18px;
    height: 22px;
  }

  .download-icon-container {
    width: 22px;
    height: 22px;
  }
}

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

  .profile-image-wrapper {
    width: 220px;
    height: 280px;
  }

  .btn-download,
  .btn-outline-secondary {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  .resume-section .ms-3 {
    margin-left: 0 !important;
  }

  .header-icon-large {
    width: 60px;
    height: 60px;
  }

  .header-icon-large i {
    font-size: 1.5rem;
  }

  .certifications-title {
    font-size: 1.5rem;
  }

  .btn-view-all-certs {
    width: 100%;
  }

  .modal-certificate-preview {
    height: 250px;
  }

  .certification-image {
    height: 70px;
  }

  .cosmic-download-btn {
    padding: 12px 24px;
    font-size: 14px;
    min-width: 180px;
    gap: 10px;
    width: 100%;
  }

  .document-icon {
    width: 16px;
    height: 20px;
  }

  .download-icon-container {
    width: 20px;
    height: 20px;
  }

  .download-icon {
    width: 10px;
    height: 10px;
  }
}

/* === ANIMATIONS === */
@keyframes certificationCardSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.certification-card.animate {
  animation: certificationCardSlide 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.certification-modal.active .modal-content {
  animation: modalFadeIn 0.3s ease;
}

/* Python-specific icon styling */
.certification-card .certification-icon .fa-python {
  color: #3776ab; /* Official Python blue */
}

.certification-card:hover .certification-icon .fa-python {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

/* University badge styling */
.badge-text {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: var(--secondary-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-aos] {
    animation: none !important;
    transition: none !important;
  }
}

/* === PRINT STYLES === */
@media print {
  .about-section {
    background: white !important;
    box-shadow: none !important;
  }

  .profile-image-wrapper {
    box-shadow: none !important;
  }

  .btn-download,
  .btn-outline-secondary,
  .cosmic-download-btn {
    display: none !important;
  }
}