/* Modern Portfolio Design - Inspired by BootstrapMade */

/* CSS Variables */
:root {
  --primary-color: #0563bb;
  --primary-dark: #044a94;
  --secondary-color: #45505b;
  --text-color: #272829;
  --text-light: #6c757d;
  --bg-color: #ffffff;
  --bg-light: #f5f8fd;
  --border-color: #dee2e6;
  --shadow: 0 0 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 0 30px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header/Navigation */
.site-header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.home {
  padding: 80px 0;
}

.hero {
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 30px;
}

.hero h2 span {
  color: var(--primary-color);
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Specialties */
.specialties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 60px 0;
}

.specialty-item {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.specialty-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.specialty-item strong {
  display: block;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Section Titles */
.section-title {
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 50px;
  border-bottom: 2px solid var(--bg-light);
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.project-card-header {
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.project-card-header h3 {
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.project-card-body {
  padding: 30px;
}

.project-card-body p {
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--primary-color);
}

.project-meta {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 5px;
  font-size: 0.9rem;
}

.project-meta strong {
  color: var(--secondary-color);
}

.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(5,99,187,0.3);
  text-decoration: none;
}

/* About Page */
.page-content h2 {
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 2rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
}

.page-content h3 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-content ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.page-content ul li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
}

.page-content ul li::before {
  content: '▹';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Certifications Box */
.certifications-box {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  margin: 40px 0;
}

/* Blog/Posts */
.post-preview, .project-preview {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.post-preview:hover, .project-preview:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.post-preview h2, .project-preview h2 {
  margin-top: 0;
}

.post-preview h2 a, .project-preview h2 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-preview h2 a:hover, .project-preview h2 a:hover {
  color: var(--primary-color);
}

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.read-more:hover {
  text-decoration: none;
  transform: translateX(5px);
}

.read-more::after {
  content: ' →';
  margin-left: 5px;
}

/* Project/Post Content Pages */
.project-header, .post-header {
  text-align: center;
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
  margin: -40px -15px 40px;
}

.project-title, .post-title {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.project-content h2, .post-content h2 {
  color: var(--secondary-color);
  margin-top: 50px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-light);
}

.project-content h3, .post-content h3 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Code Blocks */
pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 25px 0;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
}

code {
  background-color: var(--bg-light);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

pre code {
  background-color: transparent;
  padding: 0;
  color: #f8f8f2;
  border: none;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

th {
  background: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

tr:hover {
  background-color: var(--bg-light);
}

/* Horizontal Rules */
hr {
  border: none;
  border-top: 2px solid var(--bg-light);
  margin: 50px 0;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  padding: 12px 25px;
  background: var(--bg-light);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-link::before {
  content: '← ';
  margin-right: 5px;
}

.back-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(-5px);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3136 100%);
  color: white;
  padding: 50px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-left p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.footer-right {
  display: flex;
  gap: 25px;
}

.footer-right a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.footer-right a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-right a:hover {
  color: var(--primary-color);
}

.footer-right a:hover::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .project-title, .post-title {
    font-size: 2rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .specialties {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 15px;
  }

  .site-title {
    font-size: 1.3rem;
  }
}

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

.project-card, .post-preview, .specialty-item {
  animation: fadeInUp 0.6s ease-out;
}
