/* Base styles */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #64748b;
  --dark: #1e293b;
  --light: #f8fafc;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.5;
  background-color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* Background gradient elements */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 350px;
  height: 350px;
  background-color: rgba(191, 219, 254, 0.3); /* Light blue */
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 10%;
  width: 300px;
  height: 300px;
  background-color: rgba(219, 234, 254, 0.4); /* Lighter blue */
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--dark);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 38px;
  margin-right: 0.75rem;
  opacity: 0.85;
  filter: contrast(1.1);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Hero section */
.hero {
  padding-top: 120px;
  padding-bottom: 5rem;
  background-color: #ffffff;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

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

.hero-image {
  position: relative;
  overflow: visible;
  border-radius: 0.75rem;
  height: auto;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top right, transparent, rgba(255, 255, 255, 0.6), transparent);
  border-radius: 0.75rem;
  z-index: 1;
}

.hero-image img {
  max-width: 380px;
  max-height: 500px;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.3));
  object-fit: contain;
  transition: transform 0.5s ease, filter 0.5s ease;
  border: none;
  position: relative;
  z-index: 2;
  margin-top: -20px; /* Adjust this value as needed to prevent head cropping */
}

.hero-image img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
}

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

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.name-highlight {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #F59E0B; /* Amber color to match React version */
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: #FBBF24; /* Lighter amber on hover */
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Certification section */
.certifications {
  background-color: var(--white);
}

.certification-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.certification-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.certification-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.certification-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.certification-description {
  font-size: 0.875rem;
  color: var(--secondary);
}

/* Projects section */
.projects {
  background-color: var(--light);
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-header {
  height: 160px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.project-subtitle {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background-color: var(--gray-100);
  border-radius: 0.375rem;
}

.tool-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-description {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.project-outcome {
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem;
  border-radius: 0.375rem;
}

/* Tools section */
.tools {
  background-color: var(--white);
}

.tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tool-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.tool-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.tool-description {
  font-size: 0.875rem;
  color: var(--secondary);
}

/* Value section */
.value-prop {
  background-color: var(--light);
}

.value-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.value-card {
  background: linear-gradient(to bottom right, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 2rem;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.value-description {
  opacity: 0.9;
}

/* Contact section */
.contact {
  background-color: var(--dark);
  color: var(--white);
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--gray-300);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Project-specific gradient colors */
.gradient-orange {
  background: linear-gradient(to right, #f59e0b, #ec4899);
}

.gradient-blue {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
}

.gradient-green {
  background: linear-gradient(to right, #10b981, #0ea5e9);
}

/* Media queries */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
  
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-image img {
    max-width: 280px;
    height: auto;
    margin-top: -10px;
  }
  
  .hero-image {
    min-height: 350px;
    overflow: visible;
  }
  
  .certification-grid,
  .project-grid,
  .tools-grid,
  .value-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .nav-links {
    display: none; /* Mobile menu would be implemented with JavaScript */
  }
}