:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-bg: #f8f9fa;
  --dark-card: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-color: #764ba2;
  --youtube-red: #FF0000;
  --aws-orange: #FF9900;
  --azure-blue: #0078D4;
  --gcp-blue: #4285F4;
  --border-color: #dee2e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%),
    radial-gradient(at 40% 20%, rgba(102, 126, 234, 0.03) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(245, 87, 108, 0.03) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(240, 147, 251, 0.03) 0px, transparent 50%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Modern Navigation */
.modern-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand .brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 150px;
  margin-bottom: 100px;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.animated-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  opacity: 0.15;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  z-index: 10;
  padding: 2rem;
  position: relative;
}

.profile-img-wrapper {
  position: relative;
  display: inline-block;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
              var(--primary-gradient) border-box;
  box-shadow: 0 20px 40px rgba(118, 75, 162, 0.2);
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.3;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  background: linear-gradient(to right, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.typing-text {
  animation: fadeInOut 3s infinite;
}

.separator {
  margin: 0 1rem;
  color: var(--accent-color);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.badge-pill {
  background: rgba(118, 75, 162, 0.1);
  border: 1px solid rgba(118, 75, 162, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  color: var(--accent-color);
}

.badge-pill:hover {
  background: rgba(118, 75, 162, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(118, 75, 162, 0.2);
}

.badge-pill i {
  color: var(--accent-color);
}

.ai-badge {
  background: linear-gradient(135deg, #667eea 0%, #00d4ff 100%);
  color: white;
  border: none;
  font-weight: 600;
  animation: aiGlow 3s ease-in-out infinite;
}

@keyframes aiGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5), 0 0 15px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.7), 0 0 30px rgba(0, 212, 255, 0.5); }
}

.ai-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.ai-description {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: italic;
  opacity: 0.9;
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-gradient {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-outline-light:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}


/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
  transform: translateY(-5px);
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

.youtube-special {
  width: auto;
  padding: 0 1.5rem;
  border-radius: 25px;
  gap: 0.5rem;
}

.youtube-special:hover {
  background: var(--youtube-red);
}

.youtube-label {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-secondary);
  font-size: 1.5rem;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: var(--dark-bg);
  scroll-margin-top: 100px;
  position: relative;
  z-index: 2;
}

.about-card {
  background: var(--dark-card);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 5;
}

/* Certifications Section */
.certifications-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #f0f2f5 100%);
  padding: 6rem 0;
  scroll-margin-top: 80px;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.cert-category {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--dark-card);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.category-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.5rem;
}

.cert-count {
  background: rgba(118, 75, 162, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.cert-grid .cert-card {
  width: 160px;
  height: 160px;
}

.cert-card {
  position: relative;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
  border-color: var(--accent-color);
}

.cert-card:hover img {
  transform: scale(1.05);
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  opacity: 1 !important;
  display: block;
  visibility: visible !important;
}

.cert-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(118, 75, 162, 0.95), transparent);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-overlay {
  transform: translateY(0);
}

.cert-name {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

.highlight-cert {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, rgba(118, 75, 162, 0.1), transparent);
}

/* Certification Stats */
.cert-stats {
  margin-top: 4rem;
}

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* YouTube Section */
.youtube-section {
  background: linear-gradient(180deg, #f0f2f5 0%, var(--dark-bg) 100%);
  padding: 6rem 0;
  scroll-margin-top: 80px;
}

.youtube-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.youtube-icon {
  font-size: 3rem;
  color: var(--youtube-red);
}

.btn-youtube {
  background: var(--youtube-red);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.youtube-stats {
  margin-bottom: 3rem;
}

.yt-stat-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.yt-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--youtube-red);
}

.yt-stat-card i {
  font-size: 2.5rem;
  color: var(--youtube-red);
  margin-bottom: 1rem;
}

.yt-stat-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.yt-stat-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* Video Cards */
.video-showcase h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.video-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
  border-color: var(--youtube-red);
}

.video-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.video-card:hover .play-overlay {
  opacity: 0.9;
}

.video-info {
  padding: 1.5rem;
}

.video-badge {
  display: inline-block;
  background: rgba(255, 0, 0, 0.1);
  color: var(--youtube-red);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.video-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Downloads Section */
.downloads-section {
  padding: 3rem 0;
}

.download-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.download-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.download-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.download-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.btn-download {
  background: rgba(118, 75, 162, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Experience Section */
.experience-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #f0f2f5 100%);
  padding: 6rem 0;
  scroll-margin-top: 80px;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-gradient);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  width: 45%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-card {
  margin-left: auto;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.timeline-date {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-item:nth-child(odd) .timeline-date {
  left: 0;
}

.timeline-item:nth-child(even) .timeline-date {
  right: 0;
}

/* Contact Section */
.contact-section {
  background: var(--dark-bg);
  padding: 5rem 0;
}

.contact-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Footer */
footer {
  background: white;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-card {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .timeline-date {
    left: 0 !important;
    right: auto !important;
  }

  .navbar-nav {
    text-align: center;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

/* Animations */
[data-aos] {
  transition-property: transform;
}

[data-aos][data-aos][data-aos-duration="400"],
body[data-aos-duration="400"] [data-aos] {
  transition-duration: 0.4s;
}

[data-aos][data-aos][data-aos-delay="100"],
body[data-aos-delay="100"] [data-aos] {
  transition-delay: 0.1s;
}

[data-aos][data-aos][data-aos-delay="200"],
body[data-aos-delay="200"] [data-aos] {
  transition-delay: 0.2s;
}

[data-aos][data-aos][data-aos-delay="300"],
body[data-aos-delay="300"] [data-aos] {
  transition-delay: 0.3s;
}

/* Fix for images in cert cards */
.cert-card img {
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.3s ease !important;
}

/* Portfolio Section */
.portfolio-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #f0f2f5 100%);
  padding: 6rem 0;
  scroll-margin-top: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(118, 75, 162, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2.5rem;
  color: white;
}

.modal-gallery-img {
  max-height: 90vh;
  width: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a3a8a;
}

/* AI Chat Section */
#chat-ai {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
  position: relative;
}

#chat-ai .title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
  position: relative;
}

#chat-ai .card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(118, 75, 162, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chat-ai .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(118, 75, 162, 0.15);
}

#chat-ai h5 {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.3rem;
}

#chat-ai .chat-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fc 100%);
  padding: 2px;
  border-radius: 12px;
}

#chat-ai .chat-container iframe {
  background: white;
  border-radius: 10px;
}

#chat-ai small i {
  color: var(--accent-color);
  margin-right: 5px;
}

/* Responsive adjustments for chat */
@media (max-width: 768px) {
  #chat-ai .chat-container {
    height: 500px !important;
  }

  #chat-ai .title {
    font-size: 2rem;
  }
}