/*
  ARCHITECTURAL / EDITORIAL PORTFOLIO THEME
  Refactored by Antigravity
*/

/* 1. VARIABLES & RESET */
:root {
  /* Colors */
  --bg-cream: #f4f0e6; /* Cream */
  --bg-charcoal: #111111; /* Deeper black */
  --text-dark: #1a1a1a;
  --text-light: #f0f0f0;
  --accent-grey: #999999;
  --accent-color: #d4a373; /* Soft Gold/Bronze for highlights */
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-serif: "Playfair Display", serif;
  --font-sans: "Manrope", sans-serif;

  --text-huge: 8rem;
  --text-xxl: 5rem;
  --text-xl: 3.5rem;
  --text-lg: 2.25rem;
  --text-md: 1.5rem;
  --text-base: 1.125rem; /* 18px */
  --text-sm: 1rem; /* 16px */
  --text-xs: 0.875rem; /* 14px */

  /* Spacing */
  --spacing-section: 6em; /* Reduced from 10em */
  --spacing-block: 2.5rem; /* Reduced from 3rem */
  --spacing-item: 1.5rem;
}

html {
  scroll-behavior: smooth;
  background: #000; /* Fix white bar at bottom */
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-cream);
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background */
.animate-box {
  opacity: 1 !important;
  visibility: visible !important;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(212, 163, 115, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(100, 100, 100, 0.05),
      transparent 40%
    );
  z-index: -1;
  pointer-events: none;
  animation: ambientMove 30s infinite alternate ease-in-out;
}

@keyframes ambientMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-5%, -5%) scale(1.1);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-gold {
  color: var(--accent-color) !important;
}

a {
  color: var(--text-dark);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

a:hover {
  color: var(--accent-grey);
  text-decoration: none;
}

::selection {
  color: var(--bg-cream);
  background: var(--text-dark);
}

/* 2. LAYOUT UTILITIES */
#page {
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.fh5co-bg-cream {
  background: var(--bg-cream);
}

.spacer-50 {
  height: 80px; /* Increased spacer */
  width: 100%;
  clear: both;
}

/* 3. HERO SECTION (TRUE SPLIT) */
#fh5co-header {
  width: 100%;
  height: 100vh;
  min-height: 800px;
  background: var(--bg-charcoal);
  position: relative;
  padding: 0;
  margin: 0;
}

.hero-split-container {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Left Side */
.hero-left {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  padding: 0 5vw;
  background: var(--bg-charcoal);
  color: var(--text-light);
  position: relative; /* Contain absolute children */
  overflow: hidden; /* Clip animation to this box */
}

.hero-text-content {
  text-align: left;
  max-width: 600px; /* Prevent text from getting too wide */
  position: relative;
  z-index: 5; /* Ensure text is above waves */
}

/* Right Side */
.hero-right {
  width: 50%;
  height: 100%;
  background-image: url("../images/profile-pic.jpg");
  background-size: cover;
  background-position: center top; /* Focus on face */
  filter: grayscale(100%) contrast(110%);
  transition: all 0.5s ease;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.hero-right:hover {
  filter: grayscale(0%);
}

/* Typography Adjustments */
.huge-title {
  font-family: var(--font-serif);
  font-size: 6vw;
  line-height: 0.9;
  color: var(--text-light);
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  display: inline-block;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

.hero-subtitle em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: lowercase;
  font-size: 1.5rem;
  color: #fff;
}

/* Social Icons */
.fh5co-social-icons {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 30px;
}

.fh5co-social-icons li a {
  color: var(--text-light);
  font-size: 2rem;
  opacity: 0.7;
  transition: 0.3s;
}

.fh5co-social-icons li a:hover {
  opacity: 1;
  transform: translateY(-5px);
  color: var(--accent-color);
}

/* RESPONSIVE HERO */
@media screen and (max-width: 992px) {
  #fh5co-header {
    height: auto;
    min-height: 0;
  }

  .hero-split-container {
    flex-direction: column;
  }

  .hero-left {
    width: 100%;
    height: auto;
    padding: 100px 20px;
    text-align: center;
  }

  .hero-text-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-right {
    width: 100%;
    height: 60vh; /* Tall image on mobile */
  }

  .huge-title {
    font-size: 15vw;
  }

  .fh5co-social-icons {
    justify-content: center;
  }

  /* Hide heavy animations on mobile to prevent flickering */
  .hero-light-waves {
    display: none;
  }

  body::before {
    display: none;
  }
}

/* 4. SECTIONS GENERAL */
#fh5co-about,
#fh5co-resume,
#fh5co-features,
#fh5co-work,
#fh5co-projects,
#fh5co-started {
  padding: var(--spacing-section) 0;
  padding-top: 10em;
  padding-right: 0px;
  padding-bottom: 0em;
  padding-left: 0px;
  clear: both;
}

.container {
  max-width: 88%; /* Significantly wider */
  width: 88% !important; /* Force override Bootstrap */
  margin: 0 auto;
  padding: 0 20px; /* Reduced padding */
}

@media screen and (max-width: 768px) {
  .container {
    width: 95% !important; /* Wider on mobile */
    padding: 0 10px; /* Minimal padding */
  }
}

.fh5co-heading h2 {
  font-size: 4rem; /* Bigger section headings */
  margin-bottom: 2.5rem; /* Reduced from 4rem */
  position: relative;
  display: block;
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 1;
}

.fh5co-heading h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-dark);
  margin-top: 20px;
  opacity: 0.2;
}

/* 5. ABOUT SECTION */
.info {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem; /* Reduced from 3rem */
  border-right: 1px solid var(--border-color); /* Vertical Divider */
  padding-right: 30px; /* Space for divider */
}

.info li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Remove top border of first item to align perfectly with right column text */
.info li:first-child {
  padding-top: 0;
  border-top: none;
}

.info li .first-block {
  font-weight: 600; /* Bolder */
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 1.2rem; /* Increased to specific request */
  letter-spacing: 0.1em;
  color: var(--accent-grey);
}

.info li .second-block {
  font-weight: 400;
  color: var(--text-dark);
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.6rem; /* Increased to specific request */
}

.section-subheading {
  font-size: 4rem;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  line-height: 1; /* Tighter line height for alignment */
  font-family: var(--font-serif);
  margin-top: -10px; /* Pull up slightly to match baseline of info list */
}

.body-text {
  font-size: 1.5rem; /* Bigger body text */
  color: #444;
  margin-bottom: 2rem; /* Reduced from 3rem */
  font-weight: 300;
  line-height: 1.6;
}

.signoff-gif {
  width: 180px;
  opacity: 1;
  display: block;
  margin-bottom: 15px;
  mix-blend-mode: multiply;
}

.about-social li a {
  color: var(--text-dark);
  font-size: 1.5rem;
}

/* 6. EXPERIENCE (DEFINITION LIST) */
.definition-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border-color);
}

.def-item {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 3fr;
  gap: 30px; /* Reduced from 40px */
  padding: 30px 0; /* Reduced from 40px */
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
  transition: all 0.4s ease;
}

.def-item:hover {
  /* Removed padding change to prevent text reflow/jumping */
  border-radius: 0;
}

.def-role {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem; /* Increased from 1.5rem */
  color: var(--text-dark);
  line-height: 1.1;
}

.def-meta {
  font-family: var(--font-sans);
  font-size: 1rem; /* Increased from sm */
  color: var(--accent-grey);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.def-company {
  font-weight: 700; /* Bolder */
  color: var(--text-dark);
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.2rem; /* Increased again */
  line-height: 1.4;
}

.def-date {
  font-size: 1.2rem; /* Increased date size */
  font-weight: 500;
  color: var(--text-dark);
}

.company-logo-small {
  width: 28px; /* Bigger logo */
  height: 28px;
  object-fit: contain;
  margin-right: 15px;
  filter: grayscale(100%);
  opacity: 0.8; /* More visible */
  transition: all 0.3s ease;
}

.def-item:hover .company-logo-small {
  filter: grayscale(0%);
  opacity: 1;
}

.def-desc {
  font-size: 1.4rem; /* Increased again */
  color: #555;
  line-height: 1.6;
  text-align: justify; /* Justify text as requested */
}

.thesis-label {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  display: block; /* On its own line? No, inline looks better for flow, or block for emphasis */
  margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
  .def-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* 7. SKILLS (TECH STACK GRID) */
/* 7. SKILLS (TECH STACK GRID) */
/* 7. SKILLS (GEOMETRIC CARDS) */
/* 7. SKILLS (GEOMETRIC CARDS) */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  /* Removed container styles (bg, border, radius) */
}

/* Restored Bootstrap Gutter */

.bento-card {
  background: #1a1a1a; /* Dark Card Background */
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
  filter: grayscale(100%); /* Monochrome by default */
}

.bento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  filter: grayscale(0%); /* Color on hover */
}

.skill-category {
  margin-bottom: 30px; /* Spacing between rows */
  padding: 40px;
  background: #1a1a1a; /* Dark Card Background */
  border: none; /* No separators */
  min-height: 320px; /* Restored min-height for desktop consistency */
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 0; /* Sharp corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Subtle depth */
  filter: grayscale(100%); /* Monochrome by default */
}

@media screen and (max-width: 768px) {
  .skill-category {
    padding: 25px; /* Reduced padding on mobile */
    min-height: 0; /* Allow content to dictate height */
    width: 100% !important; /* Force stack one by one */
    flex: 0 0 100%; /* Ensure flex item takes full width */
    margin-bottom: 20px;
  }
}

.skill-category:hover {
  background: #222; /* Slight lighten on hover */
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  filter: grayscale(0%); /* Color on hover */
}

/* Icon Container - Top Left */
.category-icon {
  width: 60px; /* Slightly larger */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px; /* Softer radius */
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 25px; /* Reduced from 40px */
  z-index: 2;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Title */
.skill-category h3 {
  font-family: var(--font-sans);
  font-size: 1.8rem; /* Increased from 1.4rem */
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  z-index: 2;
  position: relative;
  letter-spacing: -0.02em;
}

/* Description */
.skill-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  font-weight: 400;
  z-index: 2;
  position: relative;
  font-style: italic;
}

/* Skills Wrapper */
.skills-wrapper {
  display: flex;
  flex-direction: column; /* Stack vertically */
  gap: 15px;
  width: 100%;
  z-index: 2;
  position: relative;
}

.skill-item {
  width: 100%;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-family: var(--font-sans);
  font-size: 1.1rem; /* Increased from 0.95rem */
  color: rgba(255, 255, 255, 0.95); /* Slightly brighter */
  font-weight: 600; /* Slightly bolder */
}

.skill-val {
  opacity: 0.9; /* Increased opacity */
  font-size: 1rem; /* Increased from 0.85rem */
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transform: scaleX(0); /* Start empty */
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Staggered Animation on Hover */
.skill-category:hover .progress-fill,
.progress-fill.filled {
  transform: scaleX(1); /* Fill to width set in inline style */
}

/* Stagger delays for up to 5 items */
.skill-category:hover .skill-item:nth-child(1) .progress-fill {
  transition-delay: 0.1s;
}
.skill-category:hover .skill-item:nth-child(2) .progress-fill {
  transition-delay: 0.2s;
}
.skill-category:hover .skill-item:nth-child(3) .progress-fill {
  transition-delay: 0.3s;
}
.skill-category:hover .skill-item:nth-child(4) .progress-fill {
  transition-delay: 0.4s;
}
.skill-category:hover .skill-item:nth-child(5) .progress-fill {
  transition-delay: 0.5s;
}

/* ABSTRACT BACKGROUND PATTERNS */
.skill-category::before {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 180px; /* Larger pattern */
  height: 180px;
  z-index: 1;
  opacity: 0.5;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

.skill-category:hover::before {
  transform: scale(1.3) rotate(-10deg);
  opacity: 0.9;
}

/* Card 1: Purple Waves */
.skill-category:nth-child(1) .category-icon {
  background: #9b59b6;
}
.skill-category:nth-child(1)::before {
  background: repeating-radial-gradient(
    circle at 100% 100%,
    transparent 0,
    transparent 10px,
    #9b59b6 11px,
    #9b59b6 12px
  );
  -webkit-mask-image: radial-gradient(
    circle at 100% 100%,
    black 60%,
    transparent 100%
  );
  mask-image: radial-gradient(circle at 100% 100%, black 60%, transparent 100%);
}

/* Card 2: Blue Dots */
.skill-category:nth-child(2) .category-icon {
  background: #3498db;
}
.skill-category:nth-child(2)::before {
  background-image: radial-gradient(#3498db 2px, transparent 2px);
  background-size: 15px 15px;
  width: 120px;
  height: 120px;
  border-radius: 50% 0 0 0;
}

/* Card 3: Yellow Lines */
.skill-category:nth-child(3) .category-icon {
  background: #f1c40f;
  color: #000;
}
.skill-category:nth-child(3)::before {
  background: repeating-linear-gradient(
    -45deg,
    #f1c40f,
    #f1c40f 2px,
    transparent 3px,
    transparent 10px
  );
}

/* Card 4: Green Circles */
.skill-category:nth-child(4) .category-icon {
  background: #2ecc71;
}
.skill-category:nth-child(4)::before {
  background: radial-gradient(
    circle,
    transparent 20%,
    #2ecc71 20%,
    #2ecc71 25%,
    transparent 25%,
    transparent 40%,
    #2ecc71 40%,
    #2ecc71 45%,
    transparent 45%
  );
  background-size: 100% 100%;
}

/* Card 5: Red Chevrons */
.skill-category:nth-child(5) .category-icon {
  background: #e74c3c;
}
.skill-category:nth-child(5)::before {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    #e74c3c 10px,
    #e74c3c 12px
  );
}

/* Card 6: Orange Dashes */
.skill-category:nth-child(6) .category-icon {
  background: #e67e22;
}
.skill-category:nth-child(6)::before {
  background-image: linear-gradient(90deg, #e67e22 50%, transparent 50%);
  background-size: 20px 4px;
  transform: rotate(-45deg);
}

/* 8. PROJECTS (BENTO GRID - CINEMATIC) */
#fh5co-projects {
  padding-bottom: 100px; /* Add gap before footer */
}

/* 9. NAVIGATION */
.fh5co-nav {
  position: absolute;
  top: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  padding: 40px 0;
  z-index: 1001;
  background: transparent;
}

@media screen and (max-width: 768px) {
  .fh5co-nav {
    padding: 20px 0;
  }
}

.fh5co-nav ul {
  padding: 0;
  margin: 0;
}

.fh5co-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
  display: inline;
}

.fh5co-nav li a {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 30px 15px;
  color: #000; /* Default to black for light mode visibility */
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: 0.5s;
  font-weight: 600;
}

.fh5co-nav li a:hover,
.fh5co-nav li a:focus,
.fh5co-nav li.active a {
  color: var(--accent-color);
}

/* Dark Mode Navigation Override */
body.dark-mode .fh5co-nav li a {
  color: #fff;
}

/* Back to Home Link (Blog Page) */
.back-home-link {
  position: absolute;
  top: 50px;
  left: 15px;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 10;
}

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

.back-home-link i {
  margin-right: 5px;
}

body.dark-mode .back-home-link {
  color: #fff;
}

body.dark-mode .back-home-link:hover {
  color: var(--accent-color);
}

/* Button Visibility Fixes */
.btn-primary {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}

.btn-primary:hover,
.btn-primary:focus {
  background: transparent !important;
  color: #d4a373 !important; /* Gold Accent */
  border-color: #d4a373 !important;
}

.btn-outline {
  background: transparent;
  color: #000;
  border: 2px solid #000;
}

.btn-outline:hover,
.btn-outline:focus {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

/* Dark Mode Button Overrides */
body.dark-mode .btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

body.dark-mode .btn-primary:hover {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* Fix for combined classes: Ensure outline buttons are transparent in dark mode */
body.dark-mode .btn-outline {
  background: transparent !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.dark-mode .btn-outline:hover {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

/* 10. BLOG GRID (SPECIFIC REDESIGN) */
.blog-section-title {
  font-family: "Oswald", sans-serif; /* Requested Font */
  font-weight: 700;
  font-size: 16vw !important; /* Responsive massive size */
  text-transform: uppercase;
  color: #000;
  margin-bottom: 60px;
  letter-spacing: -5px; /* Tighter spacing for impact */
  line-height: 0.8;
  width: 100%;
  display: block;
  word-wrap: break-word;
}

@media screen and (max-width: 768px) {
  .blog-section-title {
    font-size: 5rem;
  }
}

.blog-grid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-right: 0;
  margin-left: 0;
}

/* Remove padding from bootstrap columns inside the grid */
/* Remove padding from bootstrap columns inside the grid */
.blog-grid-row > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

@media screen and (max-width: 768px) {
  .blog-grid-row > [class*="col-"] {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blog-card-vibrant {
    height: auto !important; /* Allow content to dictate height on mobile if needed, or keep fixed? User said "same size". Let's keep fixed or ensure min-height. */
    min-height: 400px;
  }
}

.blog-card-vibrant {
  position: relative;
  height: 400px; /* Reduced height */
  width: 100%;
  margin-bottom: 0; /* Remove gaps */
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border-radius: 0; /* Sharp corners requested */
}

.blog-card-vibrant:hover {
  transform: translateY(-10px);
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Card Colors (Tailwind Matches) */
.card-yellow {
  background-color: #facc15; /* bg-yellow-400 */
}

.card-purple {
  background-color: #d8b4fe; /* bg-purple-300 */
}

.card-teal {
  background-color: #5eead4; /* bg-teal-300 */
}

.blog-card-link {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
  z-index: 2;
  position: relative;
}

.blog-card-content {
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-title-vibrant {
  font-family: "Oswald", sans-serif; /* Requested Font */
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
  margin-bottom: auto; /* Push content below to bottom */
}

.blog-excerpt-vibrant {
  font-family: "Merriweather", serif; /* Requested Font */
  font-style: italic;
  font-size: 1.1rem;
  color: #000;
  line-height: 1.6;
  margin-bottom: 15px; /* Space between subtitle and read more */
  opacity: 0.9;
}

.read-more-vibrant {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  letter-spacing: 1px;
}

.read-more-vibrant i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.blog-card-vibrant:hover .read-more-vibrant i {
  transform: translateX(5px);
}

/* Abstract Background Patterns */
.card-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Increased visibility */
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: transform; /* Hint for browser */
}

/* Keyframe Animations */
/* Keyframe Animations */
@keyframes pulse-scale {
  0% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.25;
  }
  100% {
    transform: scale(1);
    opacity: 0.15;
  }
}

@keyframes pan-diagonal {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

@keyframes slide-horizontal {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

/* Modular Card Colors */
.bg-vibrant-yellow {
  background-color: #facc15;
}
.bg-vibrant-purple {
  background-color: #d8b4fe;
}
.bg-vibrant-teal {
  background-color: #5eead4;
}
.bg-vibrant-orange {
  background-color: #fb923c;
} /* New Color */
.bg-vibrant-pink {
  background-color: #f472b6;
} /* New Color */
.bg-vibrant-lime {
  background-color: #a3e635;
} /* New Color */
.bg-vibrant-blue {
  background-color: #60a5fa;
} /* New Color */
.bg-vibrant-red {
  background-color: #f87171;
} /* New Color */
.bg-vibrant-cyan {
  background-color: #22d3ee;
} /* New Color */
.bg-vibrant-indigo {
  background-color: #818cf8;
} /* New Color */
.bg-vibrant-rose {
  background-color: #fb7185;
} /* New Color */
.bg-vibrant-amber {
  background-color: #fbbf24;
} /* New Color */

/* Modular Patterns */
.pattern-dots {
  background-image: radial-gradient(#000 2px, transparent 2px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image: linear-gradient(#000 1px, transparent 1px),
    linear-gradient(90deg, #000 1px, transparent 1px);
  background-size: 30px 30px;
}

.pattern-zigzag {
  background-image: linear-gradient(135deg, #000 25%, transparent 25%),
    linear-gradient(225deg, #000 25%, transparent 25%),
    linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(315deg, #000 25%, transparent 25%);
  background-position: 10px 0, 10px 0, 0 0, 0 0;
  background-size: 20px 20px;
  background-repeat: repeat;
}

.pattern-waves {
  background: repeating-radial-gradient(
    circle at 0 0,
    transparent 0,
    #000 10px,
    transparent 20px
  );
  background-size: 40px 40px;
}

.pattern-triangles {
  background-image: linear-gradient(
      45deg,
      #000 25%,
      transparent 25%,
      transparent 75%,
      #000 75%,
      #000
    ),
    linear-gradient(
      45deg,
      #000 25%,
      transparent 25%,
      transparent 75%,
      #000 75%,
      #000
    );
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

.pattern-crosses {
  background: radial-gradient(
      circle,
      transparent 20%,
      #000 20%,
      #000 80%,
      transparent 80%,
      transparent
    ),
    radial-gradient(
        circle,
        transparent 20%,
        #000 20%,
        #000 80%,
        transparent 80%,
        transparent
      )
      25px 25px,
    linear-gradient(#000 2px, transparent 2px) 0 -1px,
    linear-gradient(90deg, #000 2px, transparent 2px) -1px 0;
  background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
}

.pattern-stripes {
  background: repeating-linear-gradient(
    45deg,
    #000,
    #000 2px,
    transparent 2px,
    transparent 10px
  );
}

/* Keyframes for New Animations */
@keyframes swing {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes bounce-gentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes zoom-in-out {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Modular Animations */
.anim-pulse {
  animation: pulse-scale 4s ease-in-out infinite;
  opacity: 0.15;
}
.anim-pan {
  animation: pan-diagonal 10s linear infinite;
  opacity: 0.1;
}
.anim-slide {
  animation: slide-horizontal 3s linear infinite;
  opacity: 0.1;
}
.anim-float {
  animation: float 6s ease-in-out infinite;
  opacity: 0.15;
}
.anim-rotate {
  animation: rotate-slow 20s linear infinite;
  opacity: 0.1;
}
.anim-swing {
  animation: swing 5s ease-in-out infinite;
  opacity: 0.15;
}
.anim-bounce {
  animation: bounce-gentle 4s ease-in-out infinite;
  opacity: 0.15;
}
.anim-zoom {
  animation: zoom-in-out 8s ease-in-out infinite;
  opacity: 0.1;
}

/* Ensure pattern container covers card */
.card-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: transform;
}

/* View All Button (Pill Shape) */
.btn-view-all {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 16px 48px;
  border-radius: 9999px; /* Full pill */
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 60px;
}

.btn-view-all:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 12. ARCHIVE LIST */
.blog-archive-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-archive-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 40px;
}

.blog-archive-item:last-child {
  border-bottom: none;
}

.archive-date {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--accent-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.archive-title a {
  color: #0d0d0d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.archive-title a:hover {
  color: var(--accent-color);
}

.archive-excerpt {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.archive-read-more {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.archive-read-more:hover {
  color: #0d0d0d;
}

/* 11. SINGLE POST */
.blog-post {
  background: #fff;
  padding: 60px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 768px) {
  .blog-post {
    padding: 30px;
  }
}

.post-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.post-title {
  font-size: 3.5rem; /* Reduced from 4.5rem */
  margin-bottom: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.post-meta {
  font-family: var(--font-sans);
  color: var(--accent-grey);
  font-size: 1.1rem; /* Reduced from 1.2rem */
  margin-bottom: 20px;
}

.post-tags {
  margin-left: 20px;
}

.tag {
  color: var(--accent-color);
  margin-right: 15px;
}

.post-content {
  font-family: var(--font-serif);
  font-size: 1.6rem; /* Reduced from 1.8rem */
  line-height: 1.8;
  color: #222;
}

.post-content h1 {
  font-size: 2.8rem; /* Reduced from 3.5rem */
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-content h2 {
  font-size: 2.4rem; /* Reduced from 3rem */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 2rem; /* Reduced from 2.5rem */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content li {
  font-size: 1.6rem; /* Explicitly set to match post-content */
  line-height: 1.8;
  margin-bottom: 25px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 30px 0;
}

.post-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
  font-size: 2.5rem; /* Slightly smaller for quotes, or keep 3rem? Let's make it 2.8rem */
}

/* Bengali Numerals for Bengali Content */
#content-bn ol {
  list-style: bengali;
}

/* 13. DARK MODE TOGGLE & STYLES */
.dark-mode-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.dark-mode-toggle:hover {
  background: #eee;
  transform: rotate(15deg);
}

.dark-mode-toggle i {
  font-size: 1.2rem;
  color: #333;
}

/* Translate Toggle */
.translate-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.translate-toggle:hover {
  background: #eee;
  transform: scale(1.1);
}

.translate-toggle i {
  font-size: 1.2rem;
  color: #333;
}

/* AI Glow Animation */
@keyframes ai-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4);
    border-color: #4285f4;
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(66, 133, 244, 0);
    border-color: #ea4335;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    border-color: #34a853;
  }
}

.ai-glow-active {
  animation: ai-glow 1s ease-out;
  background: linear-gradient(45deg, #4285f4, #ea4335, #fbbc05, #34a853);
  background-size: 300% 300%;
  color: #fff !important;
  border: none !important;
}

.ai-glow-active i {
  color: #fff !important;
}

/* Fade In Animation for Content Switch */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Dark Mode Overrides */
body.dark-mode {
  background-color: #121212 !important;
  color: #e0e0e0;
}

body.dark-mode .dark-mode-toggle {
  background: #333 !important;
  border-color: #444 !important;
}

body.dark-mode .dark-mode-toggle i {
  color: #fff !important;
}

body.dark-mode .translate-toggle {
  background: #333 !important;
  border-color: #444 !important;
}

body.dark-mode .translate-toggle i {
  color: #fff !important;
}

body.dark-mode .blog-post {
  background-color: #1e1e1e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .post-title,
body.dark-mode .post-content h1,
body.dark-mode .post-content h2,
body.dark-mode .post-content h3,
body.dark-mode .post-content h4,
body.dark-mode .post-content h5,
body.dark-mode .post-content h6 {
  color: #fff;
}

body.dark-mode .post-content {
  color: #ccc;
}

/* Custom Modal Styles - Apple Glass Effect */
.custom-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* Lighter overlay */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); /* Blur the background */
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.75); /* Semi-transparent white */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%); /* Heavy blur + saturation */
  padding: 30px;
  border-radius: 20px; /* More rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Soft shadow */
  text-align: center;
  width: 90%;
  max-width: 350px; /* Slightly narrower */
  position: relative;
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy pop-in */
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 1.8rem;
  color: #1d1d1f; /* Apple dark grey */
  margin-bottom: 25px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.modal-btn {
  background-color: #007aff; /* Apple Blue */
  color: #fff;
  border: none;
  padding: 12px 0;
  width: 100%; /* Full width button */
  font-size: 1.6rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  letter-spacing: 0;
}

.modal-btn:hover {
  background-color: #0062cc;
  transform: scale(0.98); /* Subtle press effect */
}

/* Dark Mode Modal - Apple Style */
body.dark-mode .modal-content {
  background: rgba(30, 30, 30, 0.75); /* Semi-transparent dark */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-text {
  color: #f5f5f7; /* Apple light grey */
}

body.dark-mode .modal-btn {
  background-color: #0a84ff; /* Apple Dark Mode Blue */
}

body.dark-mode .post-meta {
  color: #888;
}

body.dark-mode .post-header {
  border-bottom-color: #333;
}

body.dark-mode .dark-mode-toggle {
  border-color: #444;
}

body.dark-mode .dark-mode-toggle:hover {
  background: #333;
}

body.dark-mode .dark-mode-toggle i {
  color: #fff;
}

body.dark-mode .post-content blockquote {
  color: #aaa;
  border-left-color: var(--accent-color);
}

/* 8. PROJECTS (NEW CARD DESIGN) */
#fh5co-projects {
  padding-bottom: 100px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.project-card {
  background: #000; /* Deep Black Background */
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy/Magnetic feel */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: translateY(-10px); /* Higher lift */
  box-shadow: 0 30px 60px rgba(212, 163, 115, 0.6); /* Stronger Gold Glow */
  border-color: var(--accent-color);
}

/* Image Container (Inset) */
.project-img-wrapper {
  width: 100%;
  height: 280px;
  background: #fff; /* White background for image area if transparent */
  border-radius: 16px; /* Slightly smaller radius than card */
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.project-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1); /* Start zoomed in */
  filter: grayscale(100%); /* Start monochrome */
  transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1); /* Smooth ease-out */
}

.project-card:hover .project-img {
  transform: scale(1); /* Zoom out to fit */
  filter: grayscale(0%); /* Reveal color */
}

.project-img-1 {
  background-image: url("../images/portfolio-1.png");
}

.project-img-2 {
  background-image: url("../images/portfolio-2.png");
}

.project-img-3 {
  background-image: url("../images/portfolio-3.png");
}

/* Content Area */
.project-content {
  padding: 0 10px 10px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-family: var(--font-sans); /* Clean Sans for Title */
  font-size: 2.5rem; /* Increased from 1.8rem */
  font-weight: 700;
  color: var(--accent-color); /* Gold/Bronze Title */
  margin-bottom: 10px;
  line-height: 1.2;
}

.project-content p {
  font-family: var(--font-sans);
  font-size: 1.2rem; /* Increased from 1rem */
  color: #ccc; /* Lighter Grey description */
  margin-bottom: 30px;
  line-height: 1.5;
  flex-grow: 1; /* Push button to bottom */
}

/* Learn More Button */
.project-btn {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid rgba(212, 163, 115, 0.3); /* Subtle gold border */
  padding: 10px 24px;
  border-radius: 50px; /* Pillow shape for premium feel */
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex; /* Flex to align icon */
  align-items: center;
  width: fit-content;
  transition: all 0.3s ease;
  margin-top: auto; /* Push to bottom if flex column parent */
}

.project-card:hover .project-btn {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 163, 115, 0.3);
}

@media screen and (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* 9. FOOTER & BUTTONS */
.btn-outline {
  border: 1px solid var(--text-dark);
  background: transparent;
  color: var(--text-dark);
  padding: 15px 40px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0; /* Sharp corners */
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--text-dark);
  color: var(--bg-cream);
}

#fh5co-started {
  background: radial-gradient(
    circle at center,
    #2a2a2a 0%,
    #000 100%
  ); /* Radial focus */
  color: var(--text-light);
  padding: 60px 0;
  position: relative;
  text-align: center; /* Enforce centering */
}

.connect-title {
  font-family: var(--font-serif);
  font-size: 5rem; /* Even bigger */
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: -0.02em;
}

.connect-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 50px;
  font-weight: 300;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Sleek Outline Pill Button */
/* High Contrast Pill Button */
.btn-pill {
  background: #ffffff;
  border: 2px solid #ffffff;
  color: #000000 !important;
  border-radius: 50px;
  padding: 18px 50px; /* Slight padding adj for larger text */
  font-size: 1.6rem; /* Increased to 1.6rem */
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  display: inline-flex; /* Changed to flex for icon alignment */
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.btn-pill:hover {
  background: transparent;
  color: #ffcc00 !important; /* Golden Text */
  border-color: #ffcc00; /* Golden Border */
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.5); /* Golden Glow */
  animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 204, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.5);
  }
}

/* Dark Pill Button for Light Backgrounds */
.btn-pill-dark {
  background: #1a1a1a;
  border: 2px solid #1a1a1a;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: inline-flex; /* Use flexbox for perfect vertical alignment */
  align-items: center; /* Center children vertically */
  vertical-align: middle; /* Align button itself with siblings */
  line-height: 1.5; /* Standardize line height */
  min-height: 54px; /* Force minimum height (15px pad * 2 + 24px content approx) */
}

.btn-pill-dark:hover {
  background: transparent;
  color: #1a1a1a !important;
  border-color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 10. DOMAIN EXPERTISE (HORIZONTAL - LIGHT THEME) */
.expertise-horizontal-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.expertise-horizontal-item {
  display: flex;
  flex-wrap: wrap;
  padding: 60px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Dark border */
  transition: background 0.3s ease;
}

.expertise-horizontal-item:last-child {
  border-bottom: none;
}

/* Left Column: Title */
.expertise-left {
  width: 35%;
  padding-right: 40px;
}

.expertise-h-subtitle {
  font-family: var(--font-sans);
  color: #333333;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 1;
}

/* Right Column: Content */
.expertise-right {
  width: 65%;
}

.expertise-group {
  margin-bottom: 30px;
}

.expertise-group:last-child {
  margin-bottom: 0;
}

.expertise-h-text {
  font-size: 1.4rem; /* Increased from 1.2rem */
  color: #333; /* Dark Grey */
  line-height: 1.6;
}

.expertise-h-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 400;
}

/* Client Tags */
.client-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.05); /* Light Grey Background */
  color: #1a1a1a; /* Dark Text */
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 1rem;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.client-tag:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

/* List Style for Data Science */
.expertise-h-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-h-list li {
  font-size: 1.4rem; /* Increased from 1.1rem */
  color: #444; /* Dark Grey */
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.expertise-h-list li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 0;
}

.expertise-h-list li strong {
  color: #000; /* Black */
  font-weight: 700;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .expertise-horizontal-item {
    flex-direction: column;
    padding: 40px 0;
  }

  .expertise-left,
  .expertise-right {
    width: 100%;
    padding-right: 0;
  }

  .expertise-left {
    margin-bottom: 30px;
  }
}

/* Social Icons Removed */

#fh5co-started .fh5co-heading h2 {
  display: none;
}

/* Footer merged into Let's Connect */

.footer-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-sm);
}

.gototop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
}

/* Utility Classes for Lint Fixes */
.text-gold-important {
  color: #d4a373 !important;
}

.mr-15 {
  margin-right: 15px;
}

.w-95 {
  width: 95%;
}
.w-90 {
  width: 90%;
}
.w-85 {
  width: 85%;
}
.w-80 {
  width: 80%;
}
.w-75 {
  width: 75%;
}
.w-70 {
  width: 70%;
}

.gototop.active {
  opacity: 1;
  visibility: visible;
}

.js-gotop {
  width: 50px;
  height: 50px;
  display: flex; /* Changed from table to flex */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-light);
  border-radius: 50%;
  transition: 0.3s;
}

.js-gotop i,
.js-gotop svg {
  /* Removed table-cell properties */
  font-size: 20px;
  display: block; /* Ensure it behaves as a block in flex */
}

.js-gotop:hover {
  background: var(--text-dark);
  transform: translateY(-3px);
}

/* Justify About Text */
#fh5co-about .body-text {
  text-align: justify;
}

/* About Section Actions */
.about-actions {
  display: flex;
  align-items: center;
  gap: 30px; /* Space between icons and button */
  margin-top: 40px;
}

.about-social {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.about-social li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-social li a {
  font-size: 3rem; /* Increased icon size to match button */
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.about-social li a:hover {
  color: #d4a373; /* Vibrant Gold on Hover */
  transform: scale(1.1);
}

.resume-btn-container {
  /* Ensure button container doesn't shrink */
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  .about-actions {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }

  .about-social {
    justify-content: center;
    width: 100%;
  }

  .resume-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* =========================================
   COOL ANIMATIONS
   ========================================= */

/* 1. Hero Text Reveal */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left h1 {
  animation: slideUpFade 1s ease-out forwards;
  opacity: 0; /* Start hidden */
}

.hero-left h2 {
  animation: slideUpFade 1s ease-out 0.3s forwards; /* 0.3s delay */
  opacity: 0; /* Start hidden */
}

/* 2. Shimmering Section Headings */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.fh5co-heading h2 {
  background: linear-gradient(
    90deg,
    var(--text-dark) 0%,
    var(--accent-color) 50%,
    var(--text-dark) 100%
  );
  background-size: 200% auto;
  color: var(--text-dark); /* Fallback */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  display: inline-block; /* Required for background-clip */
}

/* 3. Glowing Buttons */
.btn-pill,
.project-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-pill:hover,
.project-btn:hover {
  box-shadow: 0 0 20px rgba(212, 163, 115, 0.6); /* Gold Glow */
  transform: translateY(-3px);
  border-color: var(--accent-color);
}

/* 4. Dynamic Background Animation (Dark Sections) */
@keyframes darkGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.fh5co-bg-dark,
#fh5co-header,
.project-card {
  background: linear-gradient(-45deg, #111111, #1a1a1a, #0f0f0f, #161616);
  background-size: 400% 400%;
  animation: darkGradient 15s ease infinite;
}

/* 5. Micro-Interactions */

/* Experience Item Slide */
.def-item {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.def-item:hover {
  transform: translateX(10px);
  border-color: var(--accent-color);
}

/* Skill Icon Pop & Rotate */
.category-icon {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-category:hover .category-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Social Icon Ripple/Pulse Removed */
.about-social li a {
  transition: all 0.3s ease;
}

.about-social li a:hover {
  color: #d4a373; /* Vibrant Gold on Hover */
  transform: scale(1.1);
}
/* Shimmer Gold Effect */
.shimmer-gold {
  background: linear-gradient(
    90deg,
    #fff 0%,
    var(--accent-color) 50%,
    #fff 100%
  );
  background-size: 200% auto;
  color: var(--accent-color);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  font-style: italic;
}

/* 6. Ambient Glow */
.ambient-glow {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(212, 163, 115, 0.15) 0%,
    rgba(212, 163, 115, 0.05) 40%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-50px, 50px) scale(1.1);
  }
}

@media screen and (max-width: 768px) {
  .ambient-glow {
    width: 400px;
    height: 400px;
    filter: blur(50px);
    top: -10%;
    right: -20%;
  }
}

/* 9. HERO LIGHT WAVES */
.hero-light-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: 1000px;
  z-index: 1;
  pointer-events: none;
}

.hero-light-waves span {
  position: absolute;
  top: 50%;
  left: 100%; /* Center on right edge */
  width: 1000px;
  height: 1000px;
  margin-left: -500px;
  margin-top: -500px;
  border-radius: 50%; /* Make them circular/elliptical */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(212, 163, 115, 0.1),
    inset 0 0 30px rgba(212, 163, 115, 0.1); /* Subtle gold glow */
  transform-style: preserve-3d;
  animation: wave-flow 12s infinite linear;
}

/* Staggered Delays for Flowing Effect */
.hero-light-waves span:nth-child(1) {
  animation-delay: -1s;
  width: 600px;
  height: 600px;
  margin-left: -300px;
  margin-top: -300px;
  opacity: 0.3;
}
.hero-light-waves span:nth-child(2) {
  animation-delay: -3s;
  width: 800px;
  height: 800px;
  margin-left: -400px;
  margin-top: -400px;
  opacity: 0.4;
}
.hero-light-waves span:nth-child(3) {
  animation-delay: -5s;
  width: 1000px;
  height: 1000px;
  margin-left: -500px;
  margin-top: -500px;
  opacity: 0.5;
}
.hero-light-waves span:nth-child(4) {
  animation-delay: -7s;
  width: 1200px;
  height: 1200px;
  margin-left: -600px;
  margin-top: -600px;
  opacity: 0.4;
}
.hero-light-waves span:nth-child(5) {
  animation-delay: -9s;
  width: 1400px;
  height: 1400px;
  margin-left: -700px;
  margin-top: -700px;
  opacity: 0.3;
}
.hero-light-waves span:nth-child(6) {
  animation-delay: -11s;
  width: 1600px;
  height: 1600px;
  margin-left: -800px;
  margin-top: -800px;
  opacity: 0.2;
}
.hero-light-waves span:nth-child(7) {
  animation-delay: -13s;
  width: 1800px;
  height: 1800px;
  margin-left: -900px;
  margin-top: -900px;
  opacity: 0.1;
}
.hero-light-waves span:nth-child(8) {
  animation-delay: -15s;
  width: 2000px;
  height: 2000px;
  margin-left: -1000px;
  margin-top: -1000px;
  opacity: 0.05;
}

@keyframes wave-flow {
  0% {
    transform: rotateX(60deg) scale(0.8) translateZ(-50px);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  100% {
    transform: rotateX(60deg) scale(1.8) translateZ(50px);
    opacity: 0;
  }
}

/* 10. BIG NAME FOOTER */
#fh5co-started {
  position: relative;
  overflow: hidden;
  padding-bottom: 15vw; /* Make space for the name */
}

.footer-big-name {
  position: absolute;
  bottom: -0.5vw; /* Crop slightly */
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 9vw;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.05); /* Very subtle dark grey/white */
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.connect-title,
.connect-subtitle,
.footer-text,
.btn {
  position: relative;
  z-index: 1; /* Ensure content is above the big name */
}

/* Fix for Mobile Button Overlap */
@media screen and (max-width: 768px) {
  .post-header {
    margin-top: 80px; /* Push title down to clear buttons */
  }
}

/* Magic Translation Overlay (Gold Glow) */
.magic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  /* Multi-color Gradient Background */
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0) 0%,
    rgba(255, 215, 0, 0.8) 20%,
    /* Gold */ rgba(255, 191, 0, 0.8) 40%,
    /* Amber */ rgba(255, 69, 0, 0.8) 60%,
    /* Red */ rgba(30, 144, 255, 0.8) 80%,
    /* Blue */ rgba(30, 144, 255, 0) 100%
  );
  background-size: 200% 200%;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

/* Dark Mode Glow Fix */
body.dark-mode .magic-overlay {
  mix-blend-mode: screen;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0) 0%,
    rgba(255, 215, 0, 0.3) 20%,
    /* Gold */ rgba(255, 191, 0, 0.5) 40%,
    /* Amber */ rgba(255, 69, 0, 0.5) 60%,
    /* Red */ rgba(30, 144, 255, 0.5) 80%,
    /* Blue */ rgba(30, 144, 255, 0) 100%
  );
  background-size: 200% 200%;
}

.magic-overlay.active {
  opacity: 1;
  pointer-events: all;
  animation: goldSweep 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes goldSweep {
  0% {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    background-position: 0% 0%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background-position: 100% 100%;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.3);
  }
  100% {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    background-position: 200% 200%;
    opacity: 0;
    pointer-events: none;
  }
}
/* Utilities for inline style refactoring */
.page-content-padding {
  padding-top: 150px;
  padding-bottom: 100px;
}

.pos-relative {
  position: relative !important;
}

.d-none {
  display: none !important;
}
