* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 50%;
  opacity: 0.15;
  animation: rotate 20s linear infinite, pulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Container */
.container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  z-index: 1;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  margin-bottom: 60px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #9ca3af;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
  font-size: 1rem;
  color: #6b7280;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stats-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-card {
  background: #171717;
  border: 1px solid #262626;
  padding: 16px 24px;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Sections */
.section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  animation: fadeIn 0.6s ease-out;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Skill Cards */
.skill-card {
  background: #171717;
  border: 1px solid #262626;
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-description {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* Project Cards */
.project-card {
  background: #171717;
  border: 1px solid #262626;
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-description {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* certifications Cards */
.certifications-card {
  background: #171717;
  border: 1px solid #262626;
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.certifications-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.certifications-title {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
  text-decoration: none;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #262626;
  color: #3b82f6;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Links */
.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1200px;
}
.contact-badge-card {
    /* Inherit the grid layout behavior */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Apply the visual style of the buttons but with 0 padding */
    background: #171717;
    border: 1px solid #262626;
    border-radius: 16px;
    padding: 0;/* Ensures the iframe fits edge-to-edge */
    height: 105px; /* Try 100px. You can increase to 110px if needed. */
    
    /* Ensure the iframe fills the container */
    overflow: hidden; 
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #171717;
  border: 1px solid #262626;
  padding: 20px 24px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-btn:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.contact-icon {
  font-size: 1.3rem;
}

.arrow {
  margin-left: auto;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.contact-btn:hover .arrow {
  transform: translateX(4px);
}
/* "Proudly made in" footer badge */
.made-in {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.made-in .flag {
  display: block;
  flex: 0 0 auto;
}
.made-in .made-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.made-in .made-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 1px;
}
.made-in .made-main {
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(90deg, #6ecbff, #ff7b92);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
}
.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
}
.nav-links a:hover {
  background: rgba(57, 255, 20, 0.06);
  color: var(--text);
}
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 0 40px;
  color: #6b7280;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    flex-direction: column;
  }

  .stat-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 40px 16px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 2rem;
  }
}
