/* Custom Portfolio Styles */
:root {
  --primary-blue: #2563eb;
  --dark-purple: #6b21a8;
  --accent-purple: #9333ea;
  --light-blue: #dbeafe;
  --dark-bg: #1e293b;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #ffffff;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Body and Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #ffffff;
}

/* More interesting fonts for non-homepage pages */
/* body:not(.home) {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
} */

body:not(.home) h1,
body:not(.home) h2,
body:not(.home) h3,
body:not(.home) h4,
body:not(.home) h5,
body:not(.home) h6 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-purple));
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-purple));
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section .d-flex {
  position: relative;
  z-index: 2;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #ffffff;
  color: #000000;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  color: white;
  font-weight: 600;
  border: none;
}

.card-body {
  color: #000000;
}

/* Project Cards */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  margin-top: auto;
  padding-top: 1rem;
}

.tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Skills Section */
.skill-category {
  margin-bottom: 2rem;
}

.skill-category h4 {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.skill-bar {
  background: #e5e7eb;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple));
  border-radius: 4px;
  transition: width 1s ease;
}

/* CV Embed */
.cv-embed {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  margin: 2rem 0;
  color: #000000;
}

.cv-embed iframe {
  border-radius: 8px;
}

/* Contact Form */
.contact-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  max-width: 600px;
  margin: 2rem auto;
  color: #000000;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-purple));
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Blog Posts */
.blog-post {
  background: #ffffff;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-purple);
}

/* Certifications Page Styles */

.certification-category {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 1rem;
}

.category-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #e5e7eb;
}

.category-header h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-header i {
    font-size: 1.2rem;
}

.certification-item {
    margin-bottom: 0.5rem;
}

.cert-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.cert-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.cert-header h4 {
    color: #1e293b;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.cert-description {
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cert-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cert-view-btn,
.toggle-report {
    transition: all 0.3s ease;
}

.cert-pdf-container {
    margin-top: 0.5rem;
    padding: 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    animation: slideDown 0.3s ease;
    width: 100%;
    overflow: hidden;
}

.cert-pdf-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    display: block;
    margin: 0;
    padding: 0;
}

.report-card-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.report-card {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    animation: slideDown 0.3s ease;
}

.report-card h5 {
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-card iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    display: block;
    margin: 0;
    padding: 0;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Icons */
.certification-category:nth-child(1) {
    border-left-color: #2563eb; /* Blue for MS365 */
}

.certification-category:nth-child(2) {
    border-left-color: #9333ea; /* Purple for Azure */
}

.certification-category:nth-child(3) {
    border-left-color: #dc2626; /* Red for Audinate */
}

.certification-category:nth-child(4) {
    border-left-color: #059669; /* Green for DAC */
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .certification-category {
    padding: 1rem;
  }
  
  .cert-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .cert-actions {
    flex-direction: column;
  }
  
  .cert-actions .btn {
    width: 100%;
  }
  
  .cert-pdf-container iframe,
  .report-card iframe {
    height: 400px;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #ffffff;
    --light-bg: #1e293b;
  }
  
  body {
    background-color: #1e293b;
    color: #ffffff;
  }
  
  .card,
  .contact-form,
  .cv-embed,
  .blog-post {
    background: #334155;
    color: var(--text-light);
  }
  
  .card-body {
    color: #e2e8f0;
  }
  
  .form-group label {
    color: #e2e8f0;
  }
}
