/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  animation: pageLoad 0.5s ease-out;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3882f6;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}




/* Hide scrollbars for a cleaner look */
html {
  scrollbar-width:none;
  -ms-overflow-style:none;
}



/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes socialBounce {
  0%, 100% { transform: translateY(-5px) scale(1.2); }
  50% { transform: translateY(-8px) scale(1.25); }
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  animation: sectionFadeIn 0.8s ease-out;
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #f9faf8;
  padding: 20px 200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: fadeIn 0.8s ease-out;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: none;
}

.logo:hover {
  color: #3882f6;
  cursor: pointer;
  animation: logoPulse 1s ease-in-out;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 18px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
  overflow: hidden;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3882f6;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #3882f6;
}

nav a:hover::after {
  width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
  background: #1f2937;
  border: 2px solid #e5e7eb;
  color: #f9faf8;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), -4px -4px 8px rgba(55, 65, 81, 0.3);
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.theme-toggle:active {
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(55, 65, 81, 0.3);
}

.theme-toggle i {
  transition: transform 0.5s ease;
}

.theme-toggle:hover i {
  transform: rotate(20deg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background-color: #1f2937;
  color: #f9faf8;
  padding: 100px 200px;
  display: flex;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.parallax-bg {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(135deg, rgba(56, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  animation: slideInLeft 1s ease-out;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
  color: #e5e7eb;
  margin-bottom: 20px;
}

.hero-image {
  flex: 1;
  background-color: #6d7a86;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9faf8;
  overflow: hidden;
  animation: slideInRight 1s ease-out;
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   BUTTONS
   ============================================ */

button,
.hero-button {
  background-color: #3882f6;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

button::before,
.hero-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::before,
.hero-button:active::before {
  width: 300px;
  height: 300px;
}

button:hover,
.hero-button:hover {
  background-color: #2563eb;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(56, 130, 246, 0.6), 0 6px 12px rgba(0, 0, 0, 0.2);
}

button:active,
.hero-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   INFORMATION/SKILLS SECTION
   ============================================ */

.information {
  padding: 80px 200px;
  text-align: center;
}

.information h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 50px;
  animation: slideInUp 0.8s ease-out;
}

.cards {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.card {
  text-align: center;
  max-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f9faf8;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff;
  animation: subtleFloat 6s ease-in-out infinite;
}

.card:nth-child(1) {
  animation: scaleIn 0.6s ease-out 0.2s both, subtleFloat 6s ease-in-out 0.8s infinite;
}

.card:nth-child(2) {
  animation: scaleIn 0.6s ease-out 0.4s both, subtleFloat 6s ease-in-out 1s infinite;
}

.card:nth-child(3) {
  animation: scaleIn 0.6s ease-out 0.6s both, subtleFloat 6s ease-in-out 1.2s infinite;
}

.card:nth-child(4) {
  animation: scaleIn 0.6s ease-out 0.8s both, subtleFloat 6s ease-in-out 1.4s infinite;
}

.card:hover {
  transform: translateY(-10px);
  animation: none;
}

.card-image {
  width: 150px;
  height: 150px;
  border: 4px solid #3882f6;
  border-radius: 15px;
  margin: 0 auto 10px;
  transition: all 0.5s ease;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover .card-image {
  border-color: #1e40af;
  box-shadow: 0 15px 30px rgba(56, 130, 246, 0.4);
  transform: rotate(5deg) scale(1.05);
}

.card p {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.6;
}

.card p strong {
  font-size: 20px;
  color: #3882f6;
  display: block;
  margin-bottom: 5px;
}

/* ============================================
   QUOTE SECTION
   ============================================ */

.quote {
  background-color: #e5e7eb;
  padding: 100px 200px;
}

.quote p {
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: #1f2937;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-out;
}

.quote-author {
  text-align: right;
  font-size: 24px;
  font-weight: bold;
  color: #1f2937;
  animation: slideInRight 0.8s ease-out 0.3s both;
}

/* ============================================
   CALL TO ACTION
   ============================================ */

.cta {
  padding: 80px 200px;
}

.cta-box {
  background-color: #3882f6;
  color: white;
  padding: 50px 100px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: scaleIn 0.8s ease-out;
}

.cta-text h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.cta-text p {
  font-size: 18px;
  color: #e5e7eb;
}

.cta-button {
  border: 2px solid white;
  background-color: #3882f6;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: white;
  color: #3882f6;
}

/* ============================================
   PAGE CONTENT (ABOUT/PROJECTS/BLOG)
   ============================================ */

.page-content {
  padding: 100px 200px;
  min-height: 60vh;
}

.page-content h1 {
  font-size: 48px;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 30px;
}

.page-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-content p {
  font-size: 18px;
  color: #1f2937;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-content ul {
  font-size: 18px;
  color: #1f2937;
  margin-left: 40px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-content li {
  margin-bottom: 10px;
}

.page-content a {
  color: #3882f6;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-content a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */

.projects-intro {
  font-size: 20px;
  color: #6b7280;
  margin-bottom: 50px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project {
  background-color: #f9faf8;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff;
  animation: subtleFloat 6s ease-in-out infinite;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: none;
}

.project-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 30px;
}

.project h2 {
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 15px;
}

.project p {
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  background: linear-gradient(135deg, #3882f6 0%, #2563eb 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tag:hover {
  transform: translateY(-4px) scale(1.1);
}

.project-stats {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
  padding-top: 15px;
  border-top: 2px solid #e5e7eb;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
}

.stat i {
  color: #3882f6;
  font-size: 16px;
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-links a {
  background-color: #3882f6;
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.project-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.project-links a:active::before {
  width: 300px;
  height: 300px;
}

.project-links a:hover {
  background-color: #2563eb;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-links a i {
  margin-right: 8px;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.cert-card {
  background-color: #f9faf8;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff;
  animation: subtleFloat 6s ease-in-out infinite;
}

.cert-card:nth-child(1) { animation-delay: 0s; }
.cert-card:nth-child(2) { animation-delay: 0.2s; }
.cert-card:nth-child(3) { animation-delay: 0.4s; }
.cert-card:nth-child(4) { animation-delay: 0.6s; }

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #3882f6;
  animation: none;
}

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white !important;
  transition: transform 0.5s ease;
}

.cert-icon i {
  color: white !important;
}

.cert-card:hover .cert-icon {
  transform: scale(1.1) rotate(360deg);
}

.cert-icon.comptia {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}

.cert-icon.aws {
  background: linear-gradient(135deg, #ff9900 0%, #ec7211 100%);
}

.cert-icon.itil {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.cert-icon.linux {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.cert-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.cert-date {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-desc {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-intro {
  font-size: 20px;
  color: #6b7280;
  margin-bottom: 50px;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background-color: #f9faf8;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff;
  animation: subtleFloat 6s ease-in-out infinite;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  animation: none;
}

.blog-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: white;
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-date {
  color: #6b7280;
  font-size: 14px;
}

.blog-date i {
  margin-right: 5px;
}

.blog-category {
  background: linear-gradient(135deg, #3882f6 0%, #2563eb 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.blog-card h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  color: #3882f6;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #2563eb;
  gap: 12px;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(4px);
}

/* ============================================
   ENHANCED ABOUT PAGE
   ============================================ */

.about-hero {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 3px solid #3882f6;
}

.about-intro h1 {
  font-size: 56px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #3882f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-text {
  font-size: 24px !important;
  color: #6b7280 !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

.about-section {
  margin-bottom: 60px;
  position: relative;
}

.section-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3882f6 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: white;
  box-shadow: 0 4px 12px rgba(56, 130, 246, 0.3);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(56, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-left: 4px solid #3882f6;
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
}

.highlight-box h3 {
  color: #1f2937;
  font-size: 24px;
  margin-bottom: 20px;
}

.cert-list {
  list-style: none;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.cert-list li {
  padding: 12px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-list i {
  color: #10b981;
  font-size: 20px;
}

.quote-box {
  background: #f9faf8;
  border-radius: 12px;
  padding: 40px;
  margin: 30px 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quote-box i {
  font-size: 36px;
  color: #3882f6;
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 20px;
}

.quote-box p {
  font-size: 24px !important;
  font-style: italic;
  color: #1f2937 !important;
  margin-bottom: 15px !important;
  padding-left: 40px;
}

.quote-box cite {
  display: block;
  text-align: right;
  color: #6b7280;
  font-size: 16px;
}

.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(56, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  padding: 60px 40px;
  border-radius: 16px;
}

.cta-section .section-icon {
  margin: 0 auto 20px;
}

.connect-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.connect-buttons .hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3882f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(56, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(56, 130, 246, 0.6);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #f9faf8;
  text-align: center;
  padding: 40px;
  border-top: 3px solid #3882f6;
  animation: slideInUp 0.8s ease-out;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-links a {
  color: #f9faf8;
  font-size: 32px;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  animation: socialBounce 0.5s ease;
}

.social-links a:nth-child(1):hover {
  color: #a78bfa;
  transform: translateY(-5px) scale(1.2);
  filter: drop-shadow(0 0 10px #a78bfa);
}

.social-links a:nth-child(2):hover {
  color: #60a5fa;
  transform: translateY(-5px) scale(1.2);
  filter: drop-shadow(0 0 10px #60a5fa);
}

/* ============================================
   DARK MODE
   ============================================ */

body.dark-mode {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .hero {
  background-color: #1e293b;
}

body.dark-mode .information {
  background-color: #0f172a;
}

body.dark-mode .information h2,
body.dark-mode .card p {
  color: #e2e8f0;
}

body.dark-mode .card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.dark-mode .card-image {
  border-color: #60a5fa;
}

body.dark-mode .card:hover .card-image {
  border-color: #3b82f6;
  box-shadow: 0 15px 30px rgba(96, 165, 250, 0.4);
}

body.dark-mode .quote {
  background-color: #1e293b;
}

body.dark-mode .quote p,
body.dark-mode .quote-author {
  color: #e2e8f0;
}

body.dark-mode .cta {
  background-color: #0f172a;
}

body.dark-mode .cta-box {
  background: rgba(56, 130, 246, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.dark-mode .page-content {
  background-color: #0f172a;
}

body.dark-mode .page-content h1,
body.dark-mode .page-content h2,
body.dark-mode .page-content p,
body.dark-mode .page-content li {
  color: #e2e8f0;
}

body.dark-mode .projects-intro {
  color: #94a3b8;
}

body.dark-mode .project {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.dark-mode .project h2,
body.dark-mode .project p {
  color: #e2e8f0;
}

body.dark-mode .project-stats {
  border-top-color: #334155;
}

body.dark-mode .stat {
  color: #94a3b8;
}

body.dark-mode .stat i {
  color: #60a5fa;
}

body.dark-mode .cert-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.dark-mode .cert-card:hover {
  border-color: #60a5fa;
}

body.dark-mode .cert-card h3 {
  color: #e2e8f0;
}

body.dark-mode .cert-date,
body.dark-mode .cert-desc {
  color: #94a3b8;
}

body.dark-mode .blog-intro {
  color: #94a3b8;
}

body.dark-mode .blog-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.dark-mode .blog-card h2 {
  color: #e2e8f0;
}

body.dark-mode .blog-card p {
  color: #94a3b8;
}

body.dark-mode .blog-date {
  color: #94a3b8;
}

body.dark-mode .about-intro h1 {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .lead-text {
  color: #94a3b8 !important;
}

body.dark-mode .about-hero {
  border-bottom-color: #60a5fa;
}

body.dark-mode .highlight-box {
  background: rgba(56, 130, 246, 0.1);
  border-left-color: #60a5fa;
}

body.dark-mode .highlight-box h3 {
  color: #e2e8f0;
}

body.dark-mode .quote-box {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .quote-box p {
  color: #e2e8f0 !important;
}

body.dark-mode .quote-box cite {
  color: #94a3b8;
}

body.dark-mode .cta-section {
  background: rgba(56, 130, 246, 0.1);
}

/* Typing animation */
.typing-text {
  position: relative;
  display: inline-block;
} */

.typing-text.typing-complete::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 5px;
} 

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* ============================================
   BLOG POST PAGE
   ============================================ */

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.post-header {
  margin-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3882f6;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-link:hover {
  gap: 12px;
  color: #2563eb;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
}

.post-date, .read-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-category {
  background: linear-gradient(135deg, #3882f6 0%, #2563eb 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.post-header h1 {
  font-size: 48px;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 20px;
  line-height: 1.2;
}

.post-subtitle {
  font-size: 20px !important;
  color: #6b7280 !important;
  line-height: 1.6 !important;
  font-style: italic;
}

.post-featured-image {
  height: 400px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: white;
  margin-bottom: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1f2937;
}

.post-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 50px;
  margin-bottom: 20px;
}

.post-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul, .post-content ol {
  margin: 30px 0;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.post-content strong {
  color: #3882f6;
  font-weight: 600;
}

.post-callout {
  background: linear-gradient(135deg, rgba(56, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-left: 4px solid #3882f6;
  padding: 25px;
  border-radius: 8px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.post-callout i {
  font-size: 24px;
  color: #3882f6;
  margin-top: 3px;
}

.post-callout p {
  margin: 0 !important;
}

.post-quote {
  margin: 50px 0;
  padding: 40px;
  background: #f9faf8;
  border-radius: 12px;
  position: relative;
}

.post-quote i {
  font-size: 48px;
  color: #3882f6;
  opacity: 0.2;
  position: absolute;
  top: 20px;
  left: 20px;
}

.post-quote blockquote {
  font-size: 24px;
  font-style: italic;
  color: #1f2937;
  margin: 0;
  padding-left: 60px;
  line-height: 1.6;
}

.post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e5e7eb;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.post-tag {
  background: #f3f4f6;
  color: #6b7280;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-share {
  margin-bottom: 40px;
}

.post-share h3 {
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 15px;
}

.share-buttons {
  display: flex;
  gap: 15px;
}

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn.twitter {
  background-color: #1DA1F2;
}

.share-btn.linkedin {
  background-color: #0077B5;
}

.share-btn.facebook {
  background-color: #1877F2;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nav-btn {
  flex: 1;
  padding: 15px 25px;
  background: #f9faf8;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-btn:hover {
  background: #3882f6;
  color: white;
  border-color: #3882f6;
  transform: translateY(-2px);
}

/* Dark mode for blog posts */
body.dark-mode .post-header h1 {
  color: #e2e8f0;
}

body.dark-mode .post-subtitle {
  color: #94a3b8 !important;
}

body.dark-mode .post-meta {
  color: #94a3b8;
}

body.dark-mode .post-content {
  color: #e2e8f0;
}

body.dark-mode .post-content h2,
body.dark-mode .post-content h3 {
  color: #e2e8f0;
}

body.dark-mode .post-callout {
  background: rgba(56, 130, 246, 0.1);
}

body.dark-mode .post-quote {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
}

body.dark-mode .post-quote blockquote {
  color: #e2e8f0;
}

body.dark-mode .post-footer {
  border-top-color: #334155;
}

body.dark-mode .post-tag {
  background: rgba(56, 130, 246, 0.1);
  color: #94a3b8;
}

body.dark-mode .nav-btn {
  background: rgba(30, 41, 59, 0.7);
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .nav-btn:hover {
  background: #3882f6;
  border-color: #3882f6;
}

/* Responsive */
@media screen and (max-width: 767px) {
  .blog-post {
    padding: 40px 20px 60px;
  }

  .post-header h1 {
    font-size: 32px;
  }

  .post-subtitle {
    font-size: 16px !important;
  }

  .post-featured-image {
    height: 250px;
    font-size: 80px;
  }

  .post-content {
    font-size: 16px;
  }

  .post-content h2 {
    font-size: 24px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .post-quote blockquote {
    font-size: 18px;
    padding-left: 20px;
  }

  .post-navigation {
    flex-direction: column;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
  header {
    padding: 20px 50px;
  }

  .hero {
    padding: 80px 50px;
  }

  .information {
    padding: 60px 50px;
  }

  .quote {
    padding: 80px 50px;
  }

  .cta {
    padding: 60px 50px;
  }

  .page-content {
    padding: 80px 50px;
  }
}

/* Mobile (up to 767px) */
@media screen and (max-width: 767px) {
  header {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    position: relative;
  }

  .theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  nav {
    flex-direction: row;
    gap: 15px;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 60px 20px;
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-image {
    width: 100%;
    height: 200px;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
  }

  .information {
    padding: 60px 20px;
  }

  .information h2 {
    font-size: 28px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .card {
    max-width: 300px;
  }

  .quote {
    padding: 60px 20px;
  }

  .quote p {
    font-size: 24px;
  }

  .quote-author {
    font-size: 20px;
  }

  .cta {
    padding: 60px 20px;
  }

  .cta-box {
    padding: 30px 20px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cta-text h3 {
    font-size: 20px;
  }

  .cta-text p {
    font-size: 16px;
  }

  .page-content {
    padding: 60px 20px;
  }

  .page-content h1 {
    font-size: 36px;
  }

  .page-content h2 {
    font-size: 24px;
  }

  .page-content p,
  .page-content ul,
  .page-content li {
    font-size: 16px;
  }

  .projects-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .project-tags {
    justify-content: center;
  }

  .project-stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .project-image {
    height: 200px;
  }

  .project-content {
    padding: 20px;
  }

  .project-links {
    flex-direction: column;
    gap: 10px;
  }

  .project-links a {
    width: 100%;
    text-align: center;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cert-card {
    padding: 25px;
  }

  .cert-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-intro {
    font-size: 16px;
  }

  .about-intro h1 {
    font-size: 36px;
  }

  .lead-text {
    font-size: 18px !important;
  }

  .quote-box p {
    font-size: 18px !important;
    padding-left: 20px;
  }

  .connect-buttons {
    flex-direction: column;
  }

  .connect-buttons .hero-button {
    width: 100%;
    justify-content: center;
  }

  footer {
    padding: 30px 20px;
  }

  .social-links {
    gap: 40px;
  }

  .social-links a {
    font-size: 36px;
  }
}

/* Very small phones (up to 374px) */
@media screen and (max-width: 374px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .information h2 {
    font-size: 24px;
  }

  .quote p {
    font-size: 20px;
  }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card,
  .cert-card,
  .project,
  .blog-card {
    animation: none !important;
  }

  .cert-icon, 
  .card-image,
  .logo {
    transition: none !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid #3882f6;
  outline-offset: 2px;
}

/* Improve text readability */
p,
li {
  max-width: 75ch;
}