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

/* CSS Variables for Design System */
:root {
  /* Colors - Light Mode */
  --color-primary: #EF4444; /* Red accent color */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #D9D9D9; /* Updated to exact footer color */
  --color-background-nav: #111111; /* Updated to exact color */
  --color-background-footer: #1E1E1E; /* Updated to exact color */
  --color-background-body: #FFFFFF;
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  
  /* Border Radius */
  --border-radius-full: 50px;
  --border-radius-lg: 16px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --color-background-body: #0F172A;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #D9D9D9;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  background-color: var(--color-background-body);
  color: #1F2937;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.no-transition {
  transition: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.main-content {
  padding-top: 0px; /* Space for fixed header */
  min-height: calc(100vh - 216px); /* Account for footer height */
  padding-bottom: 0px; /* Add space before footer */
}

/* Header Styles - Clean Mobile Approach */
.header {
  position: fixed;
  top: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 1528px;
  max-width: calc(100vw - 48px);
}

.nav-container {
  background-color: var(--color-background-nav);
  border-radius: 50px;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: relative;
  justify-content: center;
}

/* DESKTOP NAVIGATION - Keep current working version */
.desktop-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 100%;
  gap: 60px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 30px;
  white-space: nowrap;
  padding: 0 8px;
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* DESKTOP Theme Toggle */
.desktop-theme-toggle {
  background: #FFFFFF;
  border: none;
  border-radius: 100px;
  width: 73px;
  height: 31px;
  cursor: pointer;
  padding: 1px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.theme-toggle-slider {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 29px;
  height: 29px;
  background-color: #0D0D0D;
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.theme-toggle .icon {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.theme-toggle .sun-icon {
  left: 8px;
  color: #0D0D0D;
}

.theme-toggle .moon-icon {
  right: 8px;
  color: #0D0D0D;
}

/* Light mode - moon is white on black circle (right side) */
[data-theme="light"] .theme-toggle-slider {
  transform: translateX(42px);
}

[data-theme="light"] .theme-toggle .moon-icon {
  color: #FFFFFF;
  z-index: 2;
}

[data-theme="light"] .theme-toggle .sun-icon {
  color: #0D0D0D;
  z-index: 1;
}

/* Dark mode - sun is white on black circle (left side) */
[data-theme="dark"] .theme-toggle-slider {
  transform: translateX(0);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  color: #FFFFFF;
  z-index: 2;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  color: #0D0D0D;
  z-index: 1;
}

/* MOBILE MENU TOGGLE - Hidden by default */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 4px;
  flex-shrink: 0;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--color-text-secondary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hamburger Animation - REPLACE THIS */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE MENU DROPDOWN */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-background-nav);
  border-radius: 0 0 20px 20px;
  padding: 24px 0 32px 0;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0; /* No gap - let individual items handle spacing */
}

.mobile-nav-item {
  text-align: center;
  margin-bottom: 8px; /* Individual spacing */
}

.mobile-nav-item:last-child {
  margin-bottom: 0; /* Remove margin from last item (theme toggle) */
}

.mobile-nav-link {
  display: block;
  padding: 12px 20px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 20px;
  text-align: center; /* Force center alignment */
}

.mobile-nav-link:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link.active {
  color: var(--color-primary);
  background-color: rgba(239, 68, 68, 0.1);
}

/* SIMPLE MOBILE THEME TOGGLE */
.mobile-theme-item {
  margin-top: 16px; /* Small spacing above */
  display: flex;
  justify-content: center; /* Center the toggle */
}


/* RESPONSIVE BREAKPOINTS */

/* Large Desktop (1600px+) */
@media (min-width: 1600px) {
  .desktop-nav {
    gap: 120px;
  }
  
  .nav-container {
    padding: 0 50px;
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .header {
    width: calc(100vw - 48px);
    max-width: 1400px;
  }
  
  .desktop-nav {
    gap: 80px;
  }
  
  .nav-container {
    padding: 0 40px;
  }
}

/* Medium Desktop/Laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .desktop-nav {
    gap: 50px;
  }
  
  .nav-container {
    padding: 0 35px;
  }
  
  .nav-link {
    font-size: 15px;
    padding: 0 6px;
  }
}

/* Tablet Landscape (900px - 1023px) */
@media (max-width: 1023px) {
  .desktop-nav {
    gap: 35px;
  }
  
  .nav-container {
    padding: 0 25px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 0 4px;
  }
  
  .desktop-theme-toggle {
    width: 65px;
    height: 28px;
  }
  
  .desktop-theme-toggle .theme-toggle-slider {
    width: 26px;
    height: 26px;
  }
  
  .desktop-theme-toggle .icon {
    width: 14px;
    height: 14px;
  }
  
  .desktop-theme-toggle .sun-icon {
    left: 7px;
  }
  
  .desktop-theme-toggle .moon-icon {
    right: 7px;
  }
  
  [data-theme="light"] .desktop-theme-toggle .theme-toggle-slider {
    transform: translateX(37px);
  }
}

/* MOBILE DESIGN - 768px and below */
@media (max-width: 768px) {
  .header {
    top: 16px;
    width: calc(100vw - 32px);
  }
  
  .nav-container {
    padding: 0 20px;
    height: 50px;
    justify-content: center;
  }
  
  /* Hide ALL navigation variations - try all possible class names */
  .nav-menu,
  .desktop-nav,
  ul.nav-menu,
  .nav-menu li,
  .nav-item {
    display: none !important;
  }
  
  /* Show only mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .header {
    top: 12px;
    width: calc(100vw - 24px);
  }
  
  .nav-container {
    padding: 0 16px;
    height: 45px;
  }
  
  .mobile-nav-link {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .hamburger-line {
    width: 16px;
  }
  
  .mobile-theme-section {
    gap: 12px;
  }
  
  .mobile-theme-label {
    font-size: 14px;
  }

}

/* Footer Styles - Exact Figma Specs */
/* Footer Styles - Exact Figma Specs */
.footer {
  background-color: var(--color-background-footer);
  width: 100vw; /* Full width */
  height: 216px; /* Exact height from Figma */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: calc(-50vw + 50%); /* Break out of container */
  margin-top: 0px; /* Push footer further down */
  position: relative;
}

.footer-nav {
  display: flex;
  gap: 393px; /* Exact distance between home and about */
  margin-bottom: 40px; /* Distance to social icons */
  position: relative;
}

.footer-nav .nav-link {
  color: #D9D9D9; /* Exact color */
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  text-transform: capitalize;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 24px;
}

.footer-nav .nav-link:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 35px; /* Increased spacing between logos */
  margin-bottom: 48px;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.footer-social .social-link:hover {
  transform: translateY(-2px);
}

.footer-social .social-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

/* For SVG elements */
.footer-social svg.social-icon {
  fill: #D9D9D9;
}

.footer-social .social-link:hover svg.social-icon {
  fill: var(--color-text-primary);
}

/* For IMG elements (your uploaded SVGs) */
.footer-social img.social-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(85%) contrast(85%);
}

.footer-social .social-link:hover img.social-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.footer-copyright {
  color: #D9D9D9; /* Exact color */
  font-size: 14px;
  font-weight: var(--font-weight-regular);
}

/* Responsive Design */
@media (max-width: 1600px) {
  .header {
    width: calc(100vw - 48px);
    max-width: 1528px;
  }
  
  .nav-container {
    padding: 0 60px;
  }
  
  .nav-menu {
    gap: 180px;
  }
  
  .theme-toggle {
    right: 60px;
  }
}

@media (max-width: 1600px) {
  .header {
    width: calc(100vw - 48px);
    max-width: 1528px;
  }
  
  .nav-container {
    padding: 0 60px;
  }
  
  .nav-menu {
    gap: 180px;
  }
  
  .theme-toggle {
    right: 94px; /* Use right positioning for responsive */
    left: auto;
  }
}

@media (max-width: 768px) {
  .header {
    top: var(--spacing-sm);
    width: calc(100vw - 32px);
  }
  
  .nav-container {
    padding: 0 20px;
    height: 50px;
    /* Keep flexbox but ensure proper alignment */
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .nav-menu {
    gap: 30px; /* Reduced gap for mobile */
    flex: 1; /* Take available space */
  }
  
  .nav-link {
    font-size: 14px;
  }
  
  .theme-toggle {
    /* Remove absolute positioning - let flexbox handle it */
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    width: 60px;
    height: 26px;
    flex-shrink: 0; /* Prevent shrinking */
    margin-left: 10px; /* Small gap from nav */
  }
  
  .theme-toggle-slider {
    width: 24px;
    height: 24px;
  }
  
  [data-theme="light"] .theme-toggle-slider {
    transform: translateX(34px);
  }
  
  .theme-toggle .icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 768px) {
  .header {
    top: var(--spacing-sm);
    width: calc(100vw - 32px);
  }
  
  .nav-container {
    padding: 0 20px;
    height: 50px;
  }
  
  .nav-menu {
    gap: 40px;
  }
  
  .nav-link {
    font-size: 14px;
  }
  
  .theme-toggle {
    right: 20px;
    left: auto;
    top: 12px;
    width: 60px;
    height: 26px;
  }
  
  .theme-toggle-slider {
    width: 24px;
    height: 24px;
  }
  
  [data-theme="light"] .theme-toggle-slider {
    transform: translateX(34px);
  }
  
  .theme-toggle .icon {
    width: 14px;
    height: 14px;
  }
  
  .footer {
    height: 180px;
  }
  
  .footer-nav {
    gap: 60px;
    margin-bottom: 30px;
  }
  
  .footer-social {
    gap: 25px; /* Smaller spacing on mobile */
    margin-bottom: 36px;
  }
  
  .main-content {
    padding-top: 90px;
  }
}

/* -------------------------------------------- */

/* Import Source Sans Pro for links */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Update color variables */
:root {
  --color-hero-bg-light: #F8F8F8;
  --color-hero-bg-dark: #111111;
  --color-red-accent: #D52128;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --color-background-body: #111111;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #D9D9D9;
}

[data-theme="light"] {
  --color-background-body: #F8F8F8;
}

/* Hero Section - Corrected Alignment */
.hero-section {
  min-height: 100vh;
  background-color: var(--color-background-body);
  position: relative;
  overflow: hidden;
  padding-top: 170px; /* Space for fixed header - moved here from main-content */
}

.hero-container {
  position: relative;
  width: 100vw;
  height: auto; /* FIXED: Changed from 100vh to auto */
  max-width: none;
}

/* Hero Content - Properly aligned with header */
.hero-content {
  position: absolute;
  top: 100px;
  left: 200px; 
}

.hero-title {
  font-family: var(--font-family-primary);
  font-size: 64px;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: #000000;
  margin: 0;
  margin-bottom: 24px;
}

[data-theme="dark"] .hero-title {
  color: #FFFFFF;
}

.red-period {
  color: var(--color-red-accent);
}

.hero-subtitle {
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: #000000;
  margin: 0;
  margin-bottom: 40px;
}

[data-theme="dark"] .hero-subtitle {
  color: #FFFFFF;
}

.hero-cta-btn {
  display: inline-block;
  margin-bottom: 120px;
  text-decoration: none;
  transition: transform 0.2s ease;
  position: relative; /* Add this to establish positioning context */
}

.hero-cta-btn:hover {
  transform: scale(1.02);
}

.hero-cta-btn img {
  transition: opacity 0.3s ease;
  display: block; /* Ensure proper display */
}

/* Both images positioned absolutely within the container */
.hero-cta-btn .btn-day,
.hero-cta-btn .btn-night {
  position: absolute;
  top: 0;
  left: 50;
}

/* Show first image on first load to establish container size */
.hero-cta-btn .btn-day {
  position: relative; /* First image establishes the container size */
}

/* Simple theme switching */
[data-theme="light"] .btn-day {
  opacity: 1;
}

[data-theme="light"] .btn-night {
  opacity: 0;
}

[data-theme="dark"] .btn-day {
  opacity: 0;
}

[data-theme="dark"] .btn-night {
  opacity: 1;
}

.hero-links {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-links a {
  color: #000000;
  text-decoration: underline;
  transition: color 0.3s ease;
}

[data-theme="dark"] .hero-links a {
  color: #FFFFFF;
}

.hero-links a:hover {
  color: var(--color-red-accent);
}

.link-separator {
  color: #000000;
  margin: 0 4px;
}

[data-theme="dark"] .link-separator {
  color: #FFFFFF;
}

/* Hero Doodle - Moved right and aligned with text */
.hero-doodle {
  position: absolute;
  top: -50px;
  right: 200px;
  z-index: 1; /* Ensure it's visible */
}

.hero-doodle img {
  transition: opacity 0.3s ease;
  max-width: none; /* Allow full size */
  width: auto;
  height: auto;
}

/* Light mode - show day doodle */
[data-theme="light"] .hero-doodle .doodle-day {
  opacity: 1 !important;
  position: relative !important;
  display: block !important;
}

[data-theme="light"] .hero-doodle .doodle-night {
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
}

/* Dark mode - show night doodle */
[data-theme="dark"] .hero-doodle .doodle-day {
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
}

[data-theme="dark"] .hero-doodle .doodle-night {
  opacity: 1 !important;
  position: relative !important;
  display: block !important;
}

/* Scroll Down Indicator - Fixed with proper arrows */
.scroll-indicator {
  position: absolute;
  right: 102px;
  bottom: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px; /* 30px gap between text and arrow */
}

.scroll-text {
  font-family: var(--font-family-primary);
  font-size: 10px;
  font-weight: var(--font-weight-regular);
  color: #000000;
  letter-spacing: 2px;
  transform: rotate(90deg);
  transform-origin: center;
  white-space: nowrap;
}

[data-theme="dark"] .scroll-text {
  color: #FFFFFF;
}

.scroll-arrow img {
  width: auto;
  height: auto;
  transition: opacity 0.3s ease;
}

/* Show light arrow in light mode */
[data-theme="light"] .arrow-light {
  opacity: 1;
}

[data-theme="light"] .arrow-dark {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Show dark arrow in dark mode */
[data-theme="dark"] .arrow-light {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

[data-theme="dark"] .arrow-dark {
  opacity: 1;
}

/* FIXED: Hide hero doodle and scroll indicator below 1500px - applies to ALL themes */
@media (max-width: 1499px) {
  .hero-doodle {
    display: none !important;
  }
  
  .scroll-indicator {
    display: none !important;
  }
  
  /* FIXED: Also hide dark mode doodle specifically */
  [data-theme="dark"] .hero-doodle {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Responsive adjustments */
@media (max-width: 1440px) {
  .hero-content {
    left: 80px;
  }
  
  .hero-doodle {
    right: 150px;
  }
  
  .scroll-indicator {
    right: 60px;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
  
  .hero-content {
    left: 60px;
    top: 160px;
  }
  
  .hero-doodle {
    right: 100px;
    top: 160px;
  }
  
  .hero-doodle img {
    width: 400px;
    height: auto;
  }
}

/* FIXED: Single consolidated mobile breakpoint - no duplicates */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto; /* FIXED: Remove viewport height constraint */
    height: auto; /* FIXED: Let content determine height */
    padding-top: 70px;
    padding-bottom: 140px;
  }
  
  .hero-container {
    height: auto; /* FIXED: Remove container height constraint */
  }
  
  .hero-content {
    top: 40px; /* Reduced from 100px */
    left: 40px;
    position: relative; /* FIXED: Change to relative for better mobile flow */
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.4;
  }
  
  .hero-cta-btn {
    margin-bottom: 20px; /* FIXED: Reduced from 120px */
  }
  
  .hero-links {
    margin-bottom: 0; /* FIXED: Remove any bottom margin */
  }
  
  /* FIXED: Ensure scroll indicator is properly hidden on mobile */
  .scroll-indicator {
    display: none !important;
  }
}

/* Additional mobile refinements for very small screens */
@media (max-width: 480px) {
  .hero-section {
    padding-top: 20px; /* FIXED: Even less top space */
    padding-bottom: 60px;
  }
  
  .hero-content {
    top: 20px;
    left: 20px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-title br {
    display: none;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-subtitle br {
    display: none;
  }
  
  .hero-cta-btn {
    margin-bottom: 15px; /* FIXED: Even smaller margin */
  }
}

/* -------------------------------------------- */
/* ===== AREAS OF EXPERTISE SECTION ===== */

.expertise-section {
  background-color: #FFFFFF;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 120px 0 160px 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .expertise-section {
  background-color: #000000;
}

.expertise-container {
  max-width: 1528px;
  margin: 0 auto;
  position: relative;
}

/* Section Title */
.expertise-title {
  font-family: var(--font-family-primary);
  font-size: 48px;
  font-weight: var(--font-weight-regular);
  color: #000000;
  margin: 0 0 93px 100px;
  line-height: 1.2;
}

[data-theme="dark"] .expertise-title {
  color: #FFFFFF;
}

/* Cards Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: 644px 644px;
  grid-template-rows: 270px 270px;
  gap: 50px 40px;
  margin-left: 200px;
  margin-right: 200px;
  justify-content: space-between;
}

/* Individual Cards */
.expertise-card {
  width: 644px;
  height: 270px;
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .expertise-card {
  background-color: #141414;
}

/* Card Titles */
.expertise-card .card-title {
  font-family: var(--font-family-primary);
  font-size: 32px;
  font-weight: var(--font-weight-regular);
  color: #0f0e0e;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

[data-theme="dark"] .expertise-card .card-title {
  color: #F8F8F8;
}

/* Card Descriptions */
.card-description {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: #3A4755;
  line-height: 1.5;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

[data-theme="dark"] .card-description {
  color: #DCDEDF;
}

/* Card Tags */
.card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: #3A4755;
}

[data-theme="dark"] .tag {
  color: #F8F8F8;
}

.tag-separator {
  color: #D52128;
  font-size: 14px;
}

/* See Projects Buttons */
.see-projects-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.see-projects-btn img {
  transition: opacity 0.3s ease;
}

/* Light Mode Button States */
[data-theme="light"] .btn-light-normal {
  opacity: 1;
}

[data-theme="light"] .btn-light-hover {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

[data-theme="light"] .btn-dark-normal,
[data-theme="light"] .btn-dark-hover {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Light Mode Hover */
[data-theme="light"] .see-projects-btn:hover .btn-light-normal {
  opacity: 0;
}

[data-theme="light"] .see-projects-btn:hover .btn-light-hover {
  opacity: 1;
}

/* Dark Mode Button States */
[data-theme="dark"] .btn-dark-normal {
  opacity: 1;
}

[data-theme="dark"] .btn-dark-hover {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

[data-theme="dark"] .btn-light-normal,
[data-theme="dark"] .btn-light-hover {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Dark Mode Hover */
[data-theme="dark"] .see-projects-btn:hover .btn-dark-normal {
  opacity: 0;
}

[data-theme="dark"] .see-projects-btn:hover .btn-dark-hover {
  opacity: 1;
}

/* FIXED: View All Skills Button */
.view-all-skills {
  margin-top: 133px;
  margin-left: 200px;
}

.view-all-btn {
  display: inline-block;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease;
}

.view-all-btn:hover {
  transform: scale(1.02);
}

/* CORRECTED: View All Skills Button positioning */
.view-all-btn img {
  transition: opacity 0.3s ease;
  display: block;
  height: 30px;
  width: auto;
  max-width: none;
}

/* CORRECTED: Only day-normal establishes container size */
.view-all-btn .btn-day-normal {
  position: relative; /* This one establishes the container size */
}

/* CORRECTED: All other images are absolutely positioned */
.view-all-btn .btn-day-hover,
.view-all-btn .btn-night-normal,
.view-all-btn .btn-night-hover {
  position: absolute;
  top: 0;
  left: 0;
}

/* Light Mode - Default and Hover States */
[data-theme="light"] .view-all-btn .btn-day-normal {
  opacity: 1;
}

[data-theme="light"] .view-all-btn .btn-day-hover {
  opacity: 0;
}

[data-theme="light"] .view-all-btn .btn-night-normal,
[data-theme="light"] .view-all-btn .btn-night-hover {
  opacity: 0;
}

/* Light Mode Hover */
[data-theme="light"] .view-all-btn:hover .btn-day-normal {
  opacity: 0;
}

[data-theme="light"] .view-all-btn:hover .btn-day-hover {
  opacity: 1;
}

/* Dark Mode - Default and Hover States */
[data-theme="dark"] .view-all-btn .btn-night-normal {
  opacity: 1;
  /* REMOVED: position: relative - this was causing the shift */
}

[data-theme="dark"] .view-all-btn .btn-night-hover {
  opacity: 0;
}

[data-theme="dark"] .view-all-btn .btn-day-normal,
[data-theme="dark"] .view-all-btn .btn-day-hover {
  opacity: 0;
}

/* Dark Mode Hover */
[data-theme="dark"] .view-all-btn:hover .btn-night-normal {
  opacity: 0;
}

[data-theme="dark"] .view-all-btn:hover .btn-night-hover {
  opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1600px) {
  .expertise-container {
    max-width: calc(100vw - 48px);
  }
  
  .expertise-grid {
    margin-left: 120px;
    margin-right: 120px;
  }
  
  .expertise-title {
    margin-left: 80px;
  }
  
  .view-all-skills {
    margin-left: 160px; /* FIXED: Better responsive positioning */
  }
}

@media (max-width: 1440px) {
  .expertise-grid {
    grid-template-columns: 580px 580px;
    margin-left: 80px;
    margin-right: 80px;
  }
  
  .expertise-card {
    width: 580px;
    padding: 32px;
  }
  
  .expertise-title {
    margin-left: 60px;
    font-size: 40px;
  }
  
  .view-all-skills {
    margin-left: 120px; /* FIXED: Better responsive positioning */
  }
}

@media (max-width: 1200px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-left: 60px;
    margin-right: 60px;
  }
  
  .expertise-card {
    width: 100%;
    max-width: 644px;
    margin: 0 auto;
  }
  
  .view-all-skills {
    margin-left: 80px; /* FIXED: Better responsive positioning */
    
  }
}

@media (max-width: 768px) {
  .expertise-section {
    padding: 80px 0 120px 0;
  }
  
  .expertise-title {
    font-size: 32px;
    margin-left: 40px;
    margin-bottom: 60px;
  }
  
  .expertise-grid {
    margin-left: 40px;
    margin-right: 40px;
    gap: 30px;
  }
  
  .expertise-card {
    height: auto; /* FIXED: Remove fixed height */
    min-height: 280px; /* FIXED: Minimum height instead */
    padding: 24px;
    padding-bottom: 70px; /* FIXED: Extra space for button */
  }

  .card-tags {
    margin-bottom: 20px; /* Space between tags and button */
  }
  
  .card-title {
    font-size: 24px;
  }
  
  .card-description {
    font-size: 14px;
  }
  
  .view-all-skills {
    margin-top: 80px; /* FIXED: Reduced from 100px */
    margin-left: 0px;
  }

  .see-projects-btn {
    bottom: 20px; /* FIXED: Higher from bottom */
    right: 24px;
  }
}

@media (max-width: 480px) {
  .expertise-title {
    margin-left: 20px;
    font-size: 28px;
  }
  
  .expertise-grid {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .expertise-card {
    padding: 20px;
    padding-bottom: 60px; /* FIXED: Maintain button space */
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .view-all-skills {
    margin-left: 20px;
    margin-top: 60px; /* FIXED: Reduced spacing */
  }
  
  .see-projects-btn {
    right: 20px; /* FIXED: Match card padding */
  }
}

/* -------------------------------------------- */
/* ===== PORTFOLIO SECTION ===== */
/* ===== FEATURED PROJECTS SECTION ===== */

.featured-projects-section {
  background-color: #F8F8F8;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 10px;
  padding-bottom: 120px;
  position: relative;
}

[data-theme="dark"] .featured-projects-section {
  background-color: #111111;
}

.featured-projects-container {
  max-width: 100vw;
  position: relative;
}

/* Section Header */
.section-header {
  position: relative;
  margin-top: 70px;
  margin-bottom: 70px;
  margin-left: 200px;
}

.section-title {
  font-family: var(--font-family-primary);
  font-size: 48px;
  font-weight: var(--font-weight-regular);
  color: #000000;
  margin: 0;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .section-title {
  color: #FFFFFF;
}

/* Decorative Line */
.decorative-line {
  position: absolute;
  top: 40%;
  left: 430px; 
  transform: translateY(-50%);
  width: 120px;
  height: 1px;
  background-color: #D9D9D9;
}

/* Section Description */
.section-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #3A4755;
  margin: 30px 0 0 0;
  line-height: 1.5;
}

[data-theme="dark"] .section-description {
  color: #D9D9D9;
}

/* Projects List */
.projects-list {
  margin-top: 60px;
  margin: 0, 20px;
  padding: 0;
}

/* Individual Project Cards */
.project-card {
  width: 100%;
  height: 360px;
  border: 0.5px solid #D9D9D9;
  position: relative;
  display: flex;
  align-items: center;
  background-color: transparent;
}

[data-theme="dark"] .project-card {
  border-color: #000000;
}

/* Project Number and Line */
.project-number-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.project-line {
  width: 140px;
  height: 1px;
  background-color: #D9D9D9;
}

.project-number {
  font-family: var(--font-family-primary);
  font-size: 32px;
  font-weight: var(--font-weight-regular);
  color: #D9D9D9;
  margin-left: 10px;
  line-height: 1;
}

/* Project Content */
.project-content {
  position: absolute;
  left: 250px; /* 140px line + 10px gap + 25px from number */
  top: 50%;
  transform: translateY(-50%);
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-family-primary);
  font-size: 32px;
  font-weight: var(--font-weight-regular);
  color: #000000;
  margin: 0 0 25px 0;
  line-height: 1.2;
}

[data-theme="dark"] .project-title {
  color: #FFFFFF;
}

/* Project Tags */
.project-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tags .tag {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: #3A4755;
}

[data-theme="dark"] .project-tags .tag {
  color: #D9D9D9;
}

.project-tags .tag-separator {
  color: #D52128;
  font-size: 16px;
}




/* FIXED: View Project Buttons - Global Fix */
.view-project-btn {
  position: absolute;
  right: 300px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

/* Keep the working day mode approach */
.view-project-btn .btn-light-normal {
  position: relative; 
  display: block;
}

.view-project-btn .btn-light-hover,
.view-project-btn .btn-dark-normal,
.view-project-btn .btn-dark-hover {
  position: absolute;
  top: 0;
  left: 0;
}

/* Light Mode States */
[data-theme="light"] .view-project-btn .btn-light-normal {
  opacity: 1;
}

[data-theme="light"] .view-project-btn .btn-light-hover {
  opacity: 0;
}

[data-theme="light"] .view-project-btn .btn-dark-normal,
[data-theme="light"] .view-project-btn .btn-dark-hover {
  opacity: 0;
}

/* Light Mode Hover */
[data-theme="light"] .view-project-btn:hover .btn-light-normal {
  opacity: 0;
}

[data-theme="light"] .view-project-btn:hover .btn-light-hover {
  opacity: 1;
}

/* Dark Mode */
[data-theme="dark"] .view-project-btn .btn-light-normal {
  opacity: 0;
  display: block;
}

[data-theme="dark"] .view-project-btn .btn-dark-normal {
  opacity: 1;
}

[data-theme="dark"] .view-project-btn .btn-dark-hover {
  opacity: 0;
}

[data-theme="dark"] .view-project-btn .btn-light-hover {
  opacity: 0;
}

/* Dark Mode Hover */
[data-theme="dark"] .view-project-btn:hover .btn-dark-normal {
  opacity: 0;
}

[data-theme="dark"] .view-project-btn:hover .btn-dark-hover {
  opacity: 1;
}

/* Add smooth transitions */
.view-project-btn img {
  transition: opacity 0.3s ease;
}





/* View All Projects Button */
.view-all-projects {
  margin-top: 70px;
  margin-left: 200px;
}

.view-all-projects-btn {
  display: inline-block;
  text-decoration: none;
  position: relative;
}

.view-all-projects-btn img {
  transition: opacity 0.3s ease;
  display: block;
}

/* Positioning for all button states */
.view-all-projects-btn .btn-day-normal {
  position: relative; /* Establishes container size */
}

.view-all-projects-btn .btn-day-hover,
.view-all-projects-btn .btn-night-normal,
.view-all-projects-btn .btn-night-hover {
  position: absolute;
  top: 0;
  left: 0;
}

/* Light Mode - Default and Hover States */
[data-theme="light"] .view-all-projects-btn .btn-day-normal {
  opacity: 1;
}

[data-theme="light"] .view-all-projects-btn .btn-day-hover {
  opacity: 0;
}

[data-theme="light"] .view-all-projects-btn .btn-night-normal,
[data-theme="light"] .view-all-projects-btn .btn-night-hover {
  opacity: 0;
}

/* Light Mode Hover */
[data-theme="light"] .view-all-projects-btn:hover .btn-day-normal {
  opacity: 0;
}

[data-theme="light"] .view-all-projects-btn:hover .btn-day-hover {
  opacity: 1;
}

/* Dark Mode - Default and Hover States */
[data-theme="dark"] .view-all-projects-btn .btn-night-normal {
  opacity: 1;
}

[data-theme="dark"] .view-all-projects-btn .btn-night-hover {
  opacity: 0;
}

[data-theme="dark"] .view-all-projects-btn .btn-day-normal,
[data-theme="dark"] .view-all-projects-btn .btn-day-hover {
  opacity: 0;
}

/* Dark Mode Hover */
[data-theme="dark"] .view-all-projects-btn:hover .btn-night-normal {
  opacity: 0;
}

[data-theme="dark"] .view-all-projects-btn:hover .btn-night-hover {
  opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1600px) {
  .section-header {
    margin-left: 80px;
  }
  
  .section-title {
    font-size: 40px;
  }
  
  .decorative-line {
    right: -130px;
    width: 100px;
  }
  
  .project-content {
    left: 160px;
  }
  
  .view-project-btn {
    right: 180px;
  }
  
  .view-all-projects {
    margin-left: 80px;
  }
}

@media (max-width: 1545px) {
  .view-project-btn {
    right: 200px;
  }
  
  .project-content {
    max-width: calc(100% - 250px);
  }
}

/* REMOVED: The problematic 1430px breakpoint that was too broad */

/* FIXED: Only apply vertical layout at 1070px and below */
@media (max-width: 1070px) {
  .project-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 40px 40px 60px;
    justify-content: flex-start;
  }
  
  .project-number-line {
    position: static;
    transform: none;
    margin-bottom: 20px;
    align-self: flex-start;
  }
  
  .project-line {
    width: 80px;
  }
  
  .project-content {
    position: static;
    transform: none;
    left: auto;
    width: 100%;
    margin-bottom: 0; /* REMOVED margin-bottom */
  }
  
  /* FIXED: Ensure button appears after project-tags */
  .project-tags {
    margin-bottom: 20px; /* Add margin to tags instead */
  }
  
  .view-project-btn {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 0; /* No additional margin needed */
    margin-left: 0;
    right: auto;
    order: 3; /* Ensure it appears after content */
  }
}

@media (max-width: 1200px) {
  .section-header {
    margin-left: 60px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .decorative-line {
    right: -110px;
    width: 80px;
  }
  
  .project-title {
    font-size: 28px;
  }
  
  .project-line {
    width: 120px;
  }
  
  .view-all-projects {
    margin-left: 60px;
  }
}

@media (max-width: 768px) {
  .featured-projects-section {
    margin-top: 120px;
    padding-bottom: 80px;
  }
  
  .section-header {
    margin-left: 40px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .decorative-line {
    display: none;
  }
  
  .section-description {
    font-size: 14px;
  }
  
  .project-card {
    height: auto;
    min-height: 280px;
    padding: 40px;
    width: calc(100% + 250px)
  }
  
  .project-number {
    font-size: 24px;
  }
  
  .project-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .project-tags .tag {
    font-size: 14px;
  }
  
  /* FIXED: Ensure proper spacing on mobile */
  .project-tags {
    margin-bottom: 15px;
  }
  
  .view-all-projects {
    margin-left: 40px;
    margin-top: 50px;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-left: 20px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .project-card {
    padding: 20px;
    min-height: 240px;
  }
  
  .project-title {
    font-size: 18px;
  }
  
  .view-all-projects {
    margin-left: 20px;
  }

  
}

/* ===== DISABLE HOVER STATES ON TOUCH DEVICES ===== */
@media (hover: none) {
  /* Disable all hover effects on touch devices */
  .view-project-btn:hover .btn-light-normal,
  .view-project-btn:hover .btn-light-hover,
  .view-project-btn:hover .btn-dark-normal,
  .view-project-btn:hover .btn-dark-hover,
  .view-all-projects-btn:hover .btn-day-normal,
  .view-all-projects-btn:hover .btn-day-hover,
  .view-all-projects-btn:hover .btn-night-normal,
  .view-all-projects-btn:hover .btn-night-hover {
    opacity: inherit !important;
  }
  
  /* Force normal state to always show on touch devices */
  [data-theme="light"] .view-project-btn .btn-light-normal {
    opacity: 1 !important;
  }
  
  [data-theme="light"] .view-project-btn .btn-light-hover {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-project-btn .btn-dark-normal {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .view-project-btn .btn-dark-hover {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-all-projects-btn .btn-day-normal {
    opacity: 1 !important;
  }
  
  [data-theme="light"] .view-all-projects-btn .btn-day-hover {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-all-projects-btn .btn-night-normal {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .view-all-projects-btn .btn-night-hover {
    opacity: 0 !important;
  }
}

/* -------------------------------------------- */
/* ===== CONTACT SECTION ===== */
/* ===== CALL-TO-ACTION SECTION ===== */

.cta-section {
  background-color: #141414;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 220px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Decorative Elements */

.decorative-circle {
  position: absolute;
  right: 60px;
  top: -6%;
  transform: translateY(-50%);
  z-index: 1;
}

.cutted-circle {
  width: auto;
  height: auto;
  opacity: 0.8;
}

/* Main Content */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.cta-title {
  font-family: var(--font-family-primary);
  font-size: 48px;
  font-weight: var(--font-weight-regular);
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

.cta-description {
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: var(--font-weight-regular);
  color: #D9D9D9;
  margin: 30px 0 0 0;
  line-height: 1.5;
  text-align: center;
}

.say-hello-btn {
  display: inline-block;
  margin-top: 80px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.say-hello-btn:hover {
  transform: translateY(-2px);
}

.say-hello-btn img {
  width: auto;
  height: auto;
}

/* CTA Social Icons */
.cta-social {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 60px;
}

.cta-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.cta-social .social-link:hover {
  transform: translateY(-2px);
}

.cta-social .social-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

/* Social Icon Styling - Same as Footer */
.cta-social img.social-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(85%) contrast(85%);
}

.cta-social .social-link:hover img.social-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1600px) {
  .decorative-curve {
    width: 250px;
  }
  
  .decorative-curve::before {
    width: 350px;
    height: 350px;
    left: -120px;
  }
}

@media (max-width: 1200px) {
  .cta-title {
    font-size: 40px;
  }
  
  .cta-description {
    font-size: 16px;
  }
  
  .decorative-curve {
    width: 200px;
  }
  
  .decorative-curve::before {
    width: 300px;
    height: 300px;
    left: -100px;
  }
  
  .decorative-circle {
    right: -50px;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 80px 20px;
  }
  
  .cta-title {
    font-size: 32px;
  }
  
  .cta-description {
    font-size: 14px;
    margin-top: 20px;
  }
  
  .say-hello-btn {
    margin-top: 60px;
  }
  
  .cta-social {
    gap: 25px;
    margin-top: 40px;
  }
  
  .decorative-curve {
    display: none; /* Hide complex decorations on mobile */
  }
  
  .decorative-circle {
    display: none; /* Hide complex decorations on mobile */
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 60px 20px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .cta-description {
    margin-top: 15px;
  }
  
  .say-hello-btn {
    margin-top: 40px;
  }
  
  .cta-social {
    gap: 20px;
    margin-top: 30px;
  }
  
  .cta-social .social-icon {
    width: 20px;
    height: 20px;
  }
}

/* -------------------------------------------- */
/* ===== PORTFOLIO PAGE ===== */
/* Portfolio Page Styles */

/* Portfolio Section */
.portfolio-section {
  background-color: #F8F8F8;
  min-height: 100vh;
  padding: 80px 0 100px;
}

[data-theme="dark"] .portfolio-section {
  background-color: #111111;
}

.portfolio-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  text-align: center;
  margin: 0;
  color: #000000;
}

[data-theme="dark"] .portfolio-title {
  color: #ffffff;
}

.title-accent {
  color: #FF4444;
}

.portfolio-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  margin: 50px 0 0;
  color: #666666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .portfolio-description {
  color: #cccccc;
}

/* Filter Buttons */
.portfolio-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 130px;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #666666;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.filter-btn:hover {
  color: #D52128;
  background-color: rgba(213, 33, 40, 0.05);
}

.filter-btn.active {
  color: #D52128;
}

.filter-circle {
  width: 12px;
  height: 12px;
  border: 2px solid #cccccc;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.filter-btn:hover .filter-circle {
  border-color: #D52128;
}

.filter-btn.active .filter-circle {
  background-color: #D52128;
  border-color: #D52128;
}

/* ===== MOBILE DROPDOWN (HIDDEN BY DEFAULT) ===== */
/* Hide dropdown on desktop */
.portfolio-dropdown-container {
  display: none;
}

/* ===== MOBILE BREAKPOINT (768px and below) ===== */
@media (max-width: 768px) {
  
  /* Hide desktop filter buttons on mobile */
  .portfolio-filters {
    display: none !important;
  }
  
  /* Show dropdown on mobile */
  .portfolio-dropdown-container {
    display: flex !important;
    justify-content: center !important;
    margin-top: 60px !important;
    margin-bottom: 40px !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .portfolio-filter-dropdown {
    position: relative !important;
    width: 100% !important;
    max-width: 280px !important;
  }
  
  .dropdown-select,
  #portfolio-mobile-filter {
    width: 100% !important;
    height: 50px !important;
    background-color: #FFFFFF !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 0 50px 0 16px !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    cursor: pointer !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    transition: all 0.3s ease !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D52128' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 20px !important;
  }
  
  .dropdown-select:focus,
  #portfolio-mobile-filter:focus {
    border-color: #D52128 !important;
    box-shadow: 0 0 0 3px rgba(213, 33, 40, 0.08) !important;
  }
  
  .dropdown-select:hover,
  #portfolio-mobile-filter:hover {
    border-color: #F8D7DA !important;
    background-color: #FEFEFE !important;
  }
  
  /* Dark mode mobile dropdown */
  [data-theme="dark"] .dropdown-select,
  [data-theme="dark"] #portfolio-mobile-filter {
    background-color: #1F2937 !important;
    border-color: #374151 !important;
    color: #F9FAFB !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D52128' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  }
  
  [data-theme="dark"] .dropdown-select:focus,
  [data-theme="dark"] #portfolio-mobile-filter:focus {
    border-color: #D52128 !important;
    box-shadow: 0 0 0 3px rgba(213, 33, 40, 0.15) !important;
  }
  
  [data-theme="dark"] .dropdown-select:hover,
  [data-theme="dark"] #portfolio-mobile-filter:hover {
    border-color: #4B5563 !important;
    background-color: #252F3F !important;
  }
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 330px);
  gap: 20px;
  justify-content: center;
  margin-top: 60px;
}

/* Portfolio Cards */
.portfolio-card {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .portfolio-card {
  background-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.portfolio-card.card-large {
  height: 330px;
}

.portfolio-card.card-small {
  height: 300px;
}

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

[data-theme="dark"] .portfolio-card:hover {
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1);
}

.card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-image {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .card-image img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .card-overlay {
  opacity: 0.6;
}

.card-content {
  padding: 20px;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  margin: 0 0 8px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

/* Position title over image for visual effect */
.portfolio-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  height: auto;
  min-height: 100px;
  padding: 40px 20px 20px;
}

.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tag {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  opacity: 0.9;
}

.tag-separator {
  color: #FF4444;
  font-weight: bold;
  font-size: 12px;
}

/* Filter Animation */
.portfolio-card {
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s ease;
}

.portfolio-card.filtered-out {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* No Results */
.no-results {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
}

.no-results p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  color: #666666;
}

[data-theme="dark"] .no-results p {
  color: #cccccc;
}

/* Tools Section (placeholder) */
.tools-section {
  background-color: #ffffff;
  padding: 80px 0;
}

[data-theme="dark"] .tools-section {
  background-color: #000000;
}

.tools-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  text-align: left;
  margin: 0;
  color: #000000;
}

[data-theme="dark"] .tools-title {
  color: #ffffff;
}

.tools-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 0 0;
  color: #666666;
}

[data-theme="dark"] .tools-description {
  color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    padding: 0 20px;
  }
  
  .portfolio-card.card-large,
  .portfolio-card.card-small {
    height: 300px;
  }
  
  .portfolio-filters {
    gap: 30px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 60px 0 80px;
  }
  
  .portfolio-title {
    font-size: 36px;
  }
  
  .portfolio-description {
    font-size: 16px;
    margin-top: 30px;
    padding: 0 20px;
  }
  
  .portfolio-filters {
    gap: 20px;
    margin-top: 80px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 40px;
    padding: 0 20px;
  }
  
  .portfolio-card.card-large,
  .portfolio-card.card-small {
    height: 250px;
  }
  
  .card-title {
    font-size: 16px;
    line-height: 24px;
  }
  
  .card-tag {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-card.card-large,
  .portfolio-card.card-small {
    height: 280px;
  }
}

/* Individual Portfolio Page Styles */

.portfolio-single {
  background-color: #ffffff;
}

[data-theme="dark"] .portfolio-single {
  background-color: #000000;
}

/* Portfolio Hero Section */
.portfolio-hero {
  padding: 60px 0 40px;
  background-color: #F8F8F8;
}

[data-theme="dark"] .portfolio-hero {
  background-color: #111111;
}

.portfolio-breadcrumb {
  margin-bottom: 30px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
}

.breadcrumb-link {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #FF4444;
}

[data-theme="dark"] .breadcrumb-link {
  color: #cccccc;
}

.breadcrumb-separator {
  margin: 0 10px;
  color: #cccccc;
}

[data-theme="dark"] .breadcrumb-separator {
  color: #666666;
}

.breadcrumb-current {
  color: #333333;
}

[data-theme="dark"] .breadcrumb-current {
  color: #ffffff;
}

.portfolio-header {
  max-width: 800px;
}

.portfolio-single-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #000000;
}

[data-theme="dark"] .portfolio-single-title {
  color: #ffffff;
}

.portfolio-single-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 30px;
  color: #666666;
}

[data-theme="dark"] .portfolio-single-description {
  color: #cccccc;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.meta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #333333;
}

[data-theme="dark"] .meta-label {
  color: #ffffff;
}

.meta-value {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #666666;
}

[data-theme="dark"] .meta-value {
  color: #cccccc;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-tag {
  background-color: #FF4444;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 12px;
}

.portfolio-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #FF4444;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #e63939;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #333333;
  border-color: #333333;
}

.btn-secondary:hover {
  background-color: #333333;
  color: #ffffff;
}

[data-theme="dark"] .btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: #ffffff;
  color: #000000;
}

.btn-outline {
  background-color: transparent;
  color: #FF4444;
  border-color: #FF4444;
}

.btn-outline:hover {
  background-color: #FF4444;
  color: #ffffff;
}

/* Featured Image */
.portfolio-image {
  padding: 40px 0;
}

.image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .image-wrapper {
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.05);
}

/* Featured Image Scaling */
.featured-image {
  width: 100%;
  height: auto;
  max-height: 400px; /* Limit maximum height */
  object-fit: cover; /* Maintain aspect ratio and crop if needed */
  object-position: center; /* Center the image when cropping */
  display: block;
}

/* Adjust the image wrapper */
.image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-height: 400px; /* Match the image max-height */
}

[data-theme="dark"] .image-wrapper {
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.05);
}

/* Responsive scaling */
@media (max-width: 1024px) {
  .featured-image {
    max-height: 350px; /* Slightly smaller on tablets */
  }
  
  .image-wrapper {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .featured-image {
    max-height: 250px; /* Much smaller on mobile */
  }
  
  .image-wrapper {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .featured-image {
    max-height: 200px; /* Even smaller on small mobile */
  }
  
  .image-wrapper {
    max-height: 200px;
  }
}

/* Video Embeds in Portfolio Content */
.portfolio-body iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: 315px; /* Standard video height */
  border: none;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .portfolio-body iframe {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

/* Responsive Video Container */
.portfolio-body .video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .portfolio-body .video-wrapper {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.portfolio-body .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0; /* Remove margin when inside wrapper */
  box-shadow: none; /* Remove shadow when inside wrapper */
  border-radius: 0; /* Wrapper handles border radius */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-body iframe {
    min-height: 250px; /* Smaller on mobile */
  }
  
  .portfolio-body .video-wrapper {
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .portfolio-body iframe {
    min-height: 200px; /* Even smaller on small mobile */
  }
}

/* Content Section */
.portfolio-content {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-toc {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.portfolio-toc h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 20px;
  color: #333333;
}

[data-theme="dark"] .portfolio-toc h3 {
  color: #ffffff;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-item.toc-h3 {
  margin-left: 20px;
}

.toc-link {
  display: block;
  color: #666666;
  text-decoration: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.toc-link:hover {
  color: #FF4444;
}

[data-theme="dark"] .toc-link {
  color: #cccccc;
}

/* Portfolio Body Content */
.portfolio-body {
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.7;
  color: #333333;
}

[data-theme="dark"] .portfolio-body {
  color: #cccccc;
}

.portfolio-body h2 {
  font-weight: 600;
  font-size: 28px;
  margin: 40px 0 20px;
  color: #000000;
}

[data-theme="dark"] .portfolio-body h2 {
  color: #ffffff;
}

.portfolio-body h3 {
  font-weight: 600;
  font-size: 22px;
  margin: 30px 0 15px;
  color: #000000;
}

[data-theme="dark"] .portfolio-body h3 {
  color: #ffffff;
}

.portfolio-body p {
  margin: 0 0 20px;
  font-size: 16px;
}

.portfolio-body ul, .portfolio-body ol {
  margin: 0 0 20px;
  padding-left: 30px;
}

.portfolio-body li {
  margin-bottom: 8px;
}

.portfolio-body code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 14px;
}

[data-theme="dark"] .portfolio-body code {
  background-color: #2a2a2a;
  color: #ffffff;
}

.portfolio-body pre {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

[data-theme="dark"] .portfolio-body pre {
  background-color: #1a1a1a;
}

.portfolio-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.portfolio-body th,
.portfolio-body td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: left;
}

[data-theme="dark"] .portfolio-body th,
[data-theme="dark"] .portfolio-body td {
  border-color: #333333;
}

.portfolio-body th {
  background-color: #f5f5f5;
  font-weight: 600;
}

[data-theme="dark"] .portfolio-body th {
  background-color: #2a2a2a;
}

/* Portfolio Body Link Styling */
.portfolio-body a {
  color: inherit; /* Use same color as surrounding text */
  font-family: inherit; /* Use same font as surrounding text */
  font-size: inherit; /* Use same size as surrounding text */
  font-weight: 500; /* Medium weight */
  text-decoration: underline; /* Underlined */
  transition: opacity 0.3s ease;
}

.portfolio-body a:hover {
  opacity: 0.7; /* Subtle hover effect */
}

.portfolio-body a:visited {
  color: inherit; /* Keep same color for visited links */
}

/* Ensure links work properly in dark theme */
[data-theme="dark"] .portfolio-body a {
  color: inherit;
}

[data-theme="dark"] .portfolio-body a:visited {
  color: inherit;
}

/* Portfolio Body Images - Add this new CSS */
.portfolio-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .portfolio-body img {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

/* Ensure figures don't overflow */
.portfolio-body figure {
  max-width: 100%;
  margin: 20px 0;
  overflow: hidden;
}

.portfolio-body figure img {
  margin: 0; /* Remove margin when inside figure */
}

/* Tools Section */
.portfolio-tools {
  padding: 60px 0;
  background-color: #F8F8F8;
}

[data-theme="dark"] .portfolio-tools {
  background-color: #111111;
}

.portfolio-tools h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 30px;
  color: #000000;
}

[data-theme="dark"] .portfolio-tools h2 {
  color: #ffffff;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-item {
  background-color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
}

[data-theme="dark"] .tool-item {
  background-color: #1a1a1a;
  border-color: #333333;
}

.tool-name {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #333333;
}

[data-theme="dark"] .tool-name {
  color: #cccccc;
}

/* Navigation Section */
.portfolio-navigation {
  padding: 60px 0;
  border-top: 1px solid #e0e0e0;
}

[data-theme="dark"] .portfolio-navigation {
  border-top-color: #333333;
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.nav-prev {
  justify-self: start;
}

.nav-back {
  justify-self: center;
}

.nav-next {
  justify-self: end;
  text-align: right;
}

.nav-link {
  display: block;
  text-decoration: none;
  color: #333333;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #FF4444;
}

[data-theme="dark"] .nav-link {
  color: #cccccc;
}

.nav-direction {
  display: block;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.nav-title {
  display: block;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .portfolio-toc {
    position: static;
    order: -1;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
  }
  
  [data-theme="dark"] .portfolio-toc {
    background-color: #1a1a1a;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 40px 0 30px;
  }
  
  .portfolio-single-title {
    font-size: 32px;
  }
  
  .portfolio-meta {
    flex-direction: column;
    gap: 15px;
  }
  
  .portfolio-actions {
    flex-direction: column;
  }
  
  .nav-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  .nav-prev,
  .nav-next {
    justify-self: center;
    text-align: center;
  }
}



/* Header Spacing Fixes */

/* Add spacing between header and portfolio section */
.portfolio-page {
  padding-top: 210px;
  background-color: #F8F8F8;
}

[data-theme="dark"] .portfolio-page {
  background-color: #111111;
}

/* Ensure portfolio section starts immediately after the spacing */
.portfolio-section {
  padding-top: 0;
  margin-top: 0;
}

/* Individual portfolio page spacing fix */
.portfolio-single {
  padding-top: 0px;
  background-color: #ffffff;
}

[data-theme="dark"] .portfolio-single {
  background-color: #000000;
}

/* Adjust portfolio hero section to not double the padding */
.portfolio-hero {
  padding-top: 200px;
  padding-bottom: 50px;
}

/* Header styling fixes for day mode */
header nav {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

header nav a {
  color: #ffffff !important;
}

header nav a:hover {
  color: #FF4444 !important;
}

header nav a.active {
  color: #FF4444 !important;
}



/* Ensure header buttons are properly aligned */
header nav .nav-links {
  display: flex;
  align-items: center;
  height: 100%;
}

header nav .nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

/* Fix header positioning */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto;
}

/* Ensure proper header height */
header nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* Additional Header Styling Refinements */

/* Ensure header has consistent styling across all pages */
header {
  background: none !important;
}



/* Navigation links container */
header .nav-links,
header .nav-menu {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Individual navigation links */
header nav a,
header .nav-links a,
header .nav-menu a {
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 20px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  transition: color 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* Active and hover states */
header nav a:hover,
header .nav-links a:hover,
header .nav-menu a:hover {
  color: #FF4444 !important;
}

header nav a.active,
header .nav-links a.active,
header .nav-menu a.active {
  color: #FF4444 !important;
}


/* Mobile responsiveness for header */
@media (max-width: 768px) {
  header nav,
  header .navigation {
    width: calc(100% - 20px) !important;
    margin: 10px auto !important;
  }
  
  header nav a,
  header .nav-links a,
  header .nav-menu a {
    padding: 15px !important;
    font-size: 14px !important;
  }
}

/* Adjust body padding to account for fixed header */
body {
  margin: 0;
  padding: 0;
}

/* Ensure main content doesn't overlap with fixed header */
main {
  position: relative;
  z-index: 1;
}

/* Background Coverage Fix */

/* Ensure portfolio page background covers the entire area */
.portfolio-page {
  min-height: 100vh;
  position: relative;
}

/* Create a pseudo-element to fill the top space with portfolio section background */
.portfolio-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  background-color: #F8F8F8;
  z-index: -1;
}

[data-theme="dark"] .portfolio-page::before {
  background-color: #111111;
}

/* Individual portfolio page background coverage */
.portfolio-single {
  min-height: 100vh;
  position: relative;
}

.portfolio-single::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  background-color: #ffffff;
  z-index: -1;
}

[data-theme="dark"] .portfolio-single::before {
  background-color: #000000;
}



/* -------------------------------------------- */
/* ===== tools section ===== */
/* Tools Section */
.tools-section {
  background-color: #ffffff;
  padding: 80px 0 260px; /* 180px bottom margin + 80px base padding */
}

[data-theme="dark"] .tools-section {
  background-color: #0D0D0D;
}

.tools-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  text-align: left;
  margin: 0;
  color: #000000;
}

[data-theme="dark"] .tools-title {
  color: #ffffff;
}

.tools-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  margin: 50px 0 75px; /* 50px top, 75px bottom */
  color: #666666;
}

[data-theme="dark"] .tools-description {
  color: #cccccc;
}

/* Tools Grid */
.tools-grid {
  margin-bottom: 80px; /* Space before view all skills button */
}

.tools-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: flex-start;
}

.tools-row:last-child {
  margin-bottom: 0;
}

/* Tool Cards */
.tool-card {
  position: relative;
  border: 1px solid #A90007;
  border-radius: 10px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  height: 140px;
}

.tool-card-small {
  width: 429px;
}

.tool-card-large {
  width: 654px;
}

/* Tool Icons Container */
.tool-icons {
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  gap: 50px;
  padding: 20px;
  flex: 1;
  height: calc(100% - 40px); /* Account for category text height */
}

.tool-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Tool Category Text */
.tool-category {
  position: absolute;
  bottom: 7px;
  left: 20px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin: 0;
  color: #3A4755;
  z-index: 2;
}

[data-theme="dark"] .tool-category {
  color: #D9D9D9;
}

/* Fixed Theme Switching - Replace the existing theme switching sections */

/* GitHub Icon Theme Switching - FIXED */
.github-day {
  display: inline-block !important;
}

.github-dark {
  display: none !important;
}

body[data-theme="dark"] .github-day,
html[data-theme="dark"] .github-day {
  display: none !important;
}

body[data-theme="dark"] .github-dark,
html[data-theme="dark"] .github-dark {
  display: inline-block !important;
}

/* Ollama Icon Theme Switching - FIXED */
.ollama-day {
  display: inline-block !important;
}

.ollama-dark {
  display: none !important;
}

body[data-theme="dark"] .ollama-day,
html[data-theme="dark"] .ollama-day {
  display: none !important;
}

body[data-theme="dark"] .ollama-dark,
html[data-theme="dark"] .ollama-dark {
  display: inline-block !important;
}

/* View All Skills Theme Switching - FIXED */
.view-all-day {
  display: inline-block !important;
}

.view-all-dark {
  display: none !important;
}

body[data-theme="dark"] .view-all-day,
html[data-theme="dark"] .view-all-day {
  display: none !important;
}

body[data-theme="dark"] .view-all-dark,
html[data-theme="dark"] .view-all-dark {
  display: inline-block !important;
}

/* Ensure Research Rabbit logo stays visible in dark theme */
[data-theme="dark"] .tool-icon[src*="reseach-rabbit-logo"] {
  filter: brightness(1.2) contrast(1.1);
  background-color: rgba(255, 255, 255, 0.966);
  border-radius: 4px;
  padding: 2px;
}

/* View All Skills Button */
.view-all-skills {
  display: flex;
  justify-content: flex-start; /* Align with Tools heading */
  margin-top: 80px;
}

.view-all-btn {
  margin-left: -100px; /* Distance from left border - change this value */
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.view-all-btn:hover {
  transform: translateY(-2px);
}

.view-all-icon {
  height: 30px; /* Made larger */
  width: auto;
  max-width: none;
}

/* View All Skills Theme Switching */
.view-all-day {
  display: block;
}

.view-all-dark {
  display: none;
}

[data-theme="dark"] .view-all-day {
  display: none;
}

[data-theme="dark"] .view-all-dark {
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tools-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .tool-card-small,
  .tool-card-large {
    width: 100%;
    max-width: 700px;
  }
  
  .tool-icons {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px;
  }
  
  .tool-category {
    position: static;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
  }
  
  .tool-card {
    flex-direction: column;
    height: auto;
    min-height: 140px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .tools-section {
    padding: 60px 0 240px;
  }
  
  .tools-title {
    font-size: 28px;
  }
  
  .tools-description {
    margin: 30px 0 50px;
    padding: 0 20px;
  }
  
  .tools-grid {
    padding: 0 20px;
  }
  
  .tool-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    justify-items: center;
    padding: 20px;
    height: auto;
  }
  
  /* Center odd number of icons */
  .tool-icons .tool-icon:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }
  
  .tool-icon {
    width: 35px;
    height: 35px;
  }
  
  .tool-category {
    font-size: 14px;
    text-align: center;
    position: static;
    margin-top: 15px;
  }
  
  .tool-card {
    height: auto;
    min-height: 120px;
  }
  
  .view-all-skills {
    justify-content: center;
    padding: 0 20px;
  }
  
  .view-all-icon {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .tool-card {
    min-height: 120px;
  }
  
  .tool-icon {
    width: 30px;
    height: 30px;
  }
  
  .tool-icons {
    gap: 20px 15px;
  }
  
  .view-all-icon {
    height: 45px;
  }
}


/* -------------------------------------------- */
/* ===== ABOUT PAGE HERO SECTION ===== */

.about-hero-section {
  min-height: 100vh !important;
  background-image: url('/assets/images/about-hero-background/background-hero-section.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 80px 60px 40px !important; /* Added horizontal padding */
}

/* Dark overlay - same for both light and dark modes */
.about-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* SEO-optimized H1 - visually hidden but accessible to search engines */
.about-seo-title {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* Hero content container */
.about-hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* UX-optimized visual title */
.about-hero-title {
  font-family: var(--font-family-primary) !important;
  font-size: 28px !important; /* Reduced font size */
  font-weight: var(--font-weight-medium) !important;
  line-height: 1.2 !important;
  color: #D52128 !important;
  margin: 0 0 30px 0 !important; /* Reduced margin */
}

.about-introduction-container {
  margin: 0 60px !important; /* Centered margins */
  max-width: calc(100vw - 120px) !important;
}

.about-intro-title {
  font-family: var(--font-family-primary) !important;
  font-size: 28px !important; /* Reduced font size */
  font-weight: var(--font-weight-medium) !important;
  line-height: 1.2 !important;
  color: #1E1E1E !important;
  margin: 0 0 25px 0 !important; /* Reduced margin */
  position: relative !important;
  width: 100% !important;
  max-width: 600px !important; /* Reduced max-width */
}

.about-intro-description {
  width: 100% !important;
  max-width: 600px !important; /* Reduced max-width */
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 16px !important; /* Reduced font size */
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #000000 !important;
  margin: 0 !important;
}

/* Hero description */
.about-hero-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 400; /* regular */
  line-height: 1.4;
  color: #DCDEDF;
  margin: 0;
}

/* Scroll down indicator */
.about-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-scroll-icon {
  width: auto;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.about-scroll-indicator:hover .about-scroll-icon {
  opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens (1440px+) */
@media (min-width: 1440px) {
  .about-hero-title {
    font-size: 48px; /* Slightly larger on big screens */
  }
  
  .about-hero-description {
    font-size: 22px;
  }
}

/* Medium screens (1024px - 1439px) */
@media (max-width: 1439px) {
  .about-hero-title {
    font-size: 40px;
    margin-bottom: 40px;
  }
  
  .about-hero-description {
    font-size: 20px;
  }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
  .about-hero-section {
    min-height: 100vh; /* Full viewport height */
  }
  
  .about-hero-content {
    padding: 0 40px;
  }
  
  .about-hero-title {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .about-hero-description {
    font-size: 18px;
  }
  
  .about-scroll-indicator {
    bottom: 30px;
  }
}

/* Mobile landscape (640px - 767px) */
@media (max-width: 767px) and (orientation: landscape) {
  .about-hero-section {
    min-height: 100vh;
  }
  
  .about-hero-content {
    padding: 0 24px;
  }
  
  .about-hero-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .about-hero-description {
    font-size: 16px;
  }
  
  .about-scroll-indicator {
    bottom: 20px;
  }
}

/* Mobile portrait (up to 639px) */
@media (max-width: 639px) {
  .about-hero-section {
    min-height: 100vh; /* Full screen height */
    padding: 0 20px;
  }
  
  .about-hero-content {
    padding: 0;
    max-width: 100%;
  }
  
  .about-hero-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 24px; /* Tighter spacing on mobile */
  }
  
  .about-hero-description {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .about-scroll-indicator {
    bottom: 20px; /* Closer to bottom on mobile */
  }
}

/* Extra small mobile (up to 375px) */
@media (max-width: 375px) {
  .about-hero-title {
    font-size: 24px;
  }
  
  .about-hero-description {
    font-size: 14px;
  }
}


/* ===== ABOUT PAGE INTRODUCTION SECTION ===== */

.about-introduction-section {
  background-color: #F8F8F8;
  padding-top: 150px; /* 150px from section start */
  padding-bottom: 140px; /* 140px after last line */
  position: relative;
}

[data-theme="dark"] .about-introduction-section {
  background-color: #111111;
}

/* Introduction container */
.about-introduction-container {
  margin-left: 200px; /* 200px from left margin */
  max-width: calc(100vw - 200px - 40px); /* Account for right margin */
}

/* Introduction title */
.about-intro-title {
  font-family: var(--font-family-primary);
  font-size: 50px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #1E1E1E;
  margin: 0;
  margin-bottom: 45px; /* 45px gap to description */
  position: relative;
  width: 991px;
  max-width: 100%; /* Responsive fallback */
}

[data-theme="dark"] .about-intro-title {
  color: #FFFFFF;
}

/* Red dot at the end of title */
.about-intro-title::after {
  content: '.';
  color: #D52128;
}

/* Description container - fixed width 991x428 */
.about-intro-description {
  width: 991px;
  max-width: 100%; /* Responsive fallback */
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 400; /* regular */
  line-height: 1.6;
  color: #000000;
  margin: 0;
}

[data-theme="dark"] .about-intro-description {
  color: #F5F5F5;
}

/* Paragraph styling within description */
.about-intro-description p {
  margin: 0 0 24px 0; /* Space between paragraphs */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.about-intro-description p:last-child {
  margin-bottom: 0; /* No margin on last paragraph */
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large desktop (1600px+) */
@media (min-width: 1600px) {
  .about-introduction-container {
    margin-left: 200px; /* Keep full margin on large screens */
  }
  
  .about-intro-title {
    font-size: 50px;
    width: 991px;
  }
  
  .about-intro-description {
    font-size: 24px;
    width: 991px;
  }
  
  .about-intro-description p {
    margin-bottom: 24px;
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .about-introduction-container {
    margin-left: 160px; /* Proportionally reduced: 200px * 0.8 */
  }
  
  .about-intro-title {
    font-size: 46px; /* Slightly smaller */
    width: 850px; /* Proportionally reduced */
    max-width: calc(100vw - 200px);
  }
  
  .about-intro-description {
    font-size: 22px;
    width: 850px; /* Proportionally reduced */
    max-width: calc(100vw - 200px);
  }
  
  .about-intro-description p {
    margin-bottom: 23px;
  }
}

/* Medium desktop/laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .about-introduction-container {
    margin-left: 120px; /* 200px * 0.6 */
  }
  
  .about-intro-title {
    font-size: 42px;
    width: 700px;
    max-width: calc(100vw - 160px);
  }
  
  .about-intro-description {
    font-size: 20px;
    width: 700px;
    max-width: calc(100vw - 160px);
  }
  
  .about-intro-description p {
    margin-bottom: 22px;
  }
}

/* Tablet landscape (768px - 1023px) */
@media (max-width: 1023px) {
  .about-introduction-section {
    padding-top: 120px; /* Reduced padding */
    padding-bottom: 100px;
  }
  
  .about-introduction-container {
    margin-left: 80px; /* 200px * 0.4 */
    padding-right: 40px;
  }
  
  .about-intro-title {
    font-size: 36px;
    margin-bottom: 35px; /* Proportionally reduced */
    width: 100%;
    max-width: 600px;
  }
  
  .about-intro-description {
    font-size: 18px;
    width: 100%;
    max-width: 600px;
  }
  
  .about-intro-description p {
    margin-bottom: 22px;
  }
}

/* Tablet portrait (640px - 767px) */
@media (max-width: 767px) {
  .about-introduction-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .about-introduction-container {
    margin-left: 60px; /* 200px * 0.3 */
    padding-right: 40px;
  }
  
  .about-intro-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 30px;
    width: 100%;
  }
  
  .about-intro-description {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .about-intro-description p {
    margin-bottom: 20px; /* Reduced paragraph spacing */
  }
}

/* Mobile landscape (480px - 639px) */
@media (max-width: 639px) {
  .about-introduction-container {
    margin-left: 40px; /* 200px * 0.2 */
    padding-right: 20px;
  }
  
  .about-intro-title {
    font-size: 28px;
    width: 100%;
  }
  
  .about-intro-description {
    font-size: 15px;
  }
  
  .about-intro-description p {
    margin-bottom: 18px;
  }
}

/* Mobile portrait (up to 479px) */
@media (max-width: 479px) {
  .about-introduction-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .about-introduction-container {
    margin-left: 20px; /* 200px * 0.1 */
    padding-right: 20px;
  }
  
  .about-intro-title {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 24px;
    width: 100%;
  }
  
  .about-intro-description {
    font-size: 14px;
    line-height: 1.8;
  }
  
  .about-intro-description p {
    margin-bottom: 16px;
  }
}

/* Extra small mobile (up to 375px) */
@media (max-width: 375px) {
  .about-introduction-container {
    margin-left: 16px;
    padding-right: 16px;
  }
  
  .about-intro-title {
    font-size: 22px;
    width: 100%;
  }
  
  .about-intro-description {
    font-size: 13px;
  }
  
  .about-intro-description p {
    margin-bottom: 14px;
  }
}


/* ===== SVG-BASED TIMELINE STYLES ===== */

/* Remove all existing timeline styles and replace with these */



/* Independent Timeline Section */
.about-timeline-section {
  background-color: #FFFFFF;
  padding: 100px 0 140px; /* Keep original padding */
  position: relative;
}

[data-theme="dark"] .about-timeline-section {
  background-color: #000000;
}

/* Timeline container - same as before */
.about-timeline-container {
  margin-left: 200px;
  max-width: calc(100vw - 240px);
}

/* Section title */
.about-timeline-title {
  font-family: var(--font-family-primary);
  font-size: 40px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: #000000;
  margin: 0;
  margin-bottom: 20px;
  position: relative;
}

[data-theme="dark"] .about-timeline-title {
  color: #FFFFFF;
}

.about-timeline-title::after {
  content: '.';
  color: #D52128;
}

/* Subtitle */
.about-timeline-subtitle {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  color: #111111;
  margin: 0;
  margin-bottom: 95px;
}

[data-theme="dark"] .about-timeline-subtitle {
  color: #DCDEDF;
}

/* Main content container */
.about-timeline-content {
  width: 991px;
  max-width: 100%;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: #000000;
  margin: 0;
  margin-bottom: 95px; /* Space before timeline */
}

[data-theme="dark"] .about-timeline-content {
  color: #DCDEDF;
}

.about-timeline-content p {
  margin: 0 0 20px 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.about-timeline-content p:last-child {
  margin-bottom: 0;
}

.about-timeline-content ul {
  margin: 20px 0;
  padding-left: 30px;
}

.about-timeline-content li {
  margin-bottom: 8px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}


/* Timeline wrapper - adjusted for unified section */
.timeline-wrapper {
  position: relative;
  margin-top: 0; /* CHANGED: Remove extra margin since we have spacing from content */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Timeline SVG Container */
.timeline-svg-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center; /* Center the SVG on desktop */
  margin-bottom: 30px;
}

/* Desktop Timeline Styles */
.timeline-desktop {
  display: block; /* Show on desktop */
}

.timeline-mobile {
  display: none; /* Hide on desktop */
}

/* SVG Images */
.timeline-svg {
  position: relative; /* ← ADD: Make container relative */
}

.timeline-day {
  opacity: 1;
  display: block; /* ← ADD: Ensure proper display */
}

.timeline-night {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0; /* ← ADD: Full width */
  width: 100%; /* ← ADD: Match container width */
  display: block; /* ← ADD: Ensure proper display */
}

[data-theme="dark"] .timeline-day {
  opacity: 0;
}

[data-theme="dark"] .timeline-night {
  opacity: 1;
}

/* Timeline Years - positioned over SVG */
.timeline-years {
  position: absolute;
  top: -25px;
  width: 100%;
  max-width: 1200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  /* REMOVE: display: flex; justify-content: space-between; */
}

.timeline-year {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #000000;
  white-space: nowrap;
  position: absolute; /* ← ADD: Individual positioning */
}

[data-theme="dark"] .timeline-year {
  color: #F5F5F5;
}

/* MANUAL POSITIONING - Change these values as needed */
.timeline-year[data-year="2021"] {
  left: 0%; /* ← CHANGE: Position from left edge */
}

.timeline-year[data-year="2022"] {
  left: 20.5%; /* ← CHANGE: 25% from left */
}

.timeline-year[data-year="2023"] {
  left: 40.9%; /* ← CHANGE: 50% from left (center) */
  transform: translateX(-50%); /* Center the text */
}

.timeline-year[data-year="2024"] {
  left: 61.5%; /* ← CHANGE: 75% from left */
  transform: translateX(-50%); /* Center the text */
}

.timeline-year[data-year="2025"] {
  right: 15.7%; /* ← CHANGE: Position from right edge */
}

/* Timeline Content Containers */
.timeline-containers {
  display: flex;
  justify-content: space-between;
  margin-top: 0px;
  width: 100%;
  max-width: 1200px; /* Match the SVG width */
  gap: 20px;
}

.timeline-container {
  width: 220px;
  min-height: 200px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  color: #000000;
  position: relative;
}

[data-theme="dark"] .timeline-container {
  color: #DCDEDF;
}

.timeline-container p {
  margin: 0 0 10px 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.timeline-container p:last-child {
  margin-bottom: 0;
}

.timeline-container ul {
  margin: 10px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.timeline-container li {
  margin-bottom: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

/* ===== SIMPLIFIED ANIMATIONS ===== */

/* Initial state - hidden */
.timeline-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.timeline-year {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease-out;
}

.timeline-container {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

/* Animated state - visible */
.timeline-wrapper.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-wrapper.animate .timeline-year {
  opacity: 1;
  transform: translateY(0);
}

.timeline-wrapper.animate .timeline-container {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.timeline-year:nth-child(1) { transition-delay: 0.2s; }
.timeline-year:nth-child(2) { transition-delay: 0.3s; }
.timeline-year:nth-child(3) { transition-delay: 0.4s; }
.timeline-year:nth-child(4) { transition-delay: 0.5s; }
.timeline-year:nth-child(5) { transition-delay: 0.6s; }

.timeline-container:nth-child(1) { transition-delay: 0.3s; }
.timeline-container:nth-child(2) { transition-delay: 0.4s; }
.timeline-container:nth-child(3) { transition-delay: 0.5s; }
.timeline-container:nth-child(4) { transition-delay: 0.6s; }
.timeline-container:nth-child(5) { transition-delay: 0.7s; }

/* ===== RESPONSIVE DESIGN ===== */

/* Large desktop (1600px+) */
@media (min-width: 1600px) {
  .timeline-years {
    max-width: 1330px;
  }
  
  .timeline-containers {
    max-width: 1330px;
  }
  
  .timeline-container {
    width: 240px;
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .timeline-years {
    max-width: 1100px;
  }
  
  .timeline-containers {
    max-width: 1100px;
  }
  
  .timeline-container {
    width: 200px;
    font-size: 13px;
  }
}

/* Medium desktop/laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .timeline-years {
    max-width: 900px;
  }
  
  .timeline-containers {
    max-width: 900px;
  }
  
  .timeline-container {
    width: 170px;
    font-size: 12px;
  }
}

/* MOBILE LAYOUT - Complete redesign for 768px and below */
@media (max-width: 768px) {
  
  /* Hide desktop, show mobile SVG */
  .timeline-desktop {
    display: none !important;
  }
  
  .timeline-mobile {
    display: block !important;
  }
  
  /* Reset timeline wrapper for mobile */
  .timeline-wrapper {
    align-items: flex-start;
    margin-left: 0;
    padding: 0 20px;
  }
  
  /* SVG container - position to left */
  .timeline-svg-container {
    justify-content: flex-start;
    margin-left: 60px; /* Space for years */
    margin-bottom: 0;
    width: auto;
  }
  
  .timeline-svg {
    width: auto;
  }
  
  .timeline-svg-img {
    width: auto;
    max-width: none;
    height: 500px; /* Fixed height for mobile timeline */
  }
  
  /* Years positioning - left of vertical timeline */
  .timeline-years {
    position: absolute;
    left: 20px; /* Position from left edge */
    top: 0;
    flex-direction: column;
    height: 500px; /* Match SVG height */
    justify-content: space-between;
    width: auto;
    max-width: none;
    transform: none;
    z-index: 3;
  }
  
  .timeline-year {
    font-size: 14px;
    margin-bottom: 0; /* Remove margin, use justify-content instead */
    position: static;
    left: auto;
    right: auto;
    transform: none;
  }
  
  /* Content containers - right of vertical timeline */
  .timeline-containers {
    flex-direction: column;
    gap: 30px;
    margin-left: 120px; /* Position to right of SVG */
    margin-top: -500px; /* Overlap with SVG area */
    max-width: calc(100vw - 160px);
    height: 500px; /* Match SVG height */
    justify-content: space-between; /* Distribute evenly */
    align-items: flex-start;
  }
  
  .timeline-container {
    width: 100%;
    max-width: 250px;
    margin-bottom: 0; /* Remove individual margins */
    min-height: 80px; /* Smaller min-height */
    font-size: 12px;
    line-height: 16px;
  }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
  .timeline-wrapper {
    padding: 0 10px;
  }
  
  .timeline-svg-container {
    margin-left: 50px;
  }
  
  .timeline-years {
    left: 10px;
  }
  
  .timeline-year {
    font-size: 12px;
  }
  
  .timeline-containers {
    margin-left: 100px;
    max-width: calc(100vw - 120px);
  }
  
  .timeline-container {
    font-size: 11px;
    line-height: 15px;
    max-width: 200px;
  }
}

/* Extra small mobile */
@media (max-width: 375px) {
  .timeline-svg-container {
    margin-left: 40px;
  }
  
  .timeline-svg-img {
    height: 400px; /* Shorter timeline on very small screens */
  }
  
  .timeline-years {
    left: 5px;
    height: 400px;
  }
  
  .timeline-year {
    font-size: 11px;
  }
  
  .timeline-containers {
    margin-left: 80px;
    margin-top: -400px;
    height: 400px;
    max-width: calc(100vw - 100px);
  }
  
  .timeline-container {
    font-size: 10px;
    line-height: 14px;
    max-width: 180px;
  }
}
/* ADD this additional CSS for mobile SVG positioning: */

/* Mobile SVG specific fixes */
@media (max-width: 768px) {
  
  /* Ensure mobile timeline SVG displays correctly */
  .timeline-mobile .timeline-svg-img {
    display: block;
    margin: 0; /* Remove auto margin for mobile */
  }
  
  /* Fix dark mode SVG positioning on mobile */
  .timeline-mobile .timeline-night {
    position: absolute;
    top: 0;
    left: 0;
    right: auto; /* Remove right positioning */
    width: auto; /* Let it maintain natural width */
  }
  
  /* Ensure proper stacking */
  .timeline-mobile .timeline-svg {
    position: relative;
    display: block;
  }
}

/* REPLACE your mobile timeline CSS (768px and below) with this simple approach: */

/* REPLACE your mobile timeline containers CSS with this: */

@media (max-width: 768px) {
  
  /* Hide desktop timeline */
  .timeline-desktop {
    display: none !important;
  }
  
  .timeline-mobile {
    display: none !important;
  }
  
  /* Reset timeline wrapper */
  .timeline-wrapper {
    align-items: stretch;
    margin-left: 0;
    padding: 0 20px;
  }
  
  /* Hide SVG container completely on mobile */
  .timeline-svg-container {
    display: none;
  }
  
  /* Hide separate years */
  .timeline-years {
    display: none;
  }
  
  /* Simple content layout - REMOVE gap property */
  .timeline-containers {
    display: flex;
    flex-direction: column;
    gap: 0; /* REMOVE automatic gap */
    margin-left: 0;
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
  }
  
  /* Base container styles */
  .timeline-container {
    width: 100%;
    max-width: none;
    margin-bottom: 0; /* Reset base margin */
    font-size: 14px;
    line-height: 20px;
    border-left: 3px solid #D52128;
    padding-left: 20px;
    position: relative;
  }
  
  /* MANUAL SPACING - Adjust these values based on content height */
  .timeline-container[data-year="2021"] {
    margin-bottom: 220px; /* Large content with list - needs more space */
  }
  
  .timeline-container[data-year="2022"] {
    margin-bottom: 140px; /* Medium content - standard space */
  }
  
  .timeline-container[data-year="2023"] {
    margin-bottom: 140px; /* Medium content - standard space */
  }
  
  .timeline-container[data-year="2024"] {
    margin-bottom: 190px; /* Medium content - standard space */
  }
  
  .timeline-container[data-year="2025"] {
    margin-bottom: 200px; /* Last item - no bottom margin needed */
  }
  
  /* Year labels */
  .timeline-container::before {
    content: attr(data-year);
    display: block;
    font-weight: 600;
    color: #D52128;
    margin-bottom: 12px;
    font-size: 16px;
    font-family: var(--font-family-primary);
  }
  
  /* Dark mode adjustments */
  [data-theme="dark"] .timeline-container {
    border-left-color: #D52128;
  }
  
  [data-theme="dark"] .timeline-container::before {
    color: #D52128;
  }
}

/* Smaller mobile screens - adjust spacing proportionally */
@media (max-width: 480px) {
  .timeline-wrapper {
    padding: 0 10px;
  }
  
  .timeline-container {
    font-size: 13px;
    line-height: 19px;
    padding-left: 15px;
  }
  
  .timeline-container::before {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  /* Adjust spacing for smaller screens */
  .timeline-container[data-year="2021"] {
    margin-bottom: 40px; /* Reduced spacing */
  }
  
  .timeline-container[data-year="2022"] {
    margin-bottom: 35px;
  }
  
  .timeline-container[data-year="2023"] {
    margin-bottom: 30px;
  }
  
  .timeline-container[data-year="2024"] {
    margin-bottom: 35px;
  }
  .timeline-container[data-year="2025"] {
    margin-bottom: 120px; /* CHANGED: from 0px to 150px to prevent footer overlap */
  }
}

/* Extra small mobile - further reduce spacing */
@media (max-width: 375px) {
  .timeline-container {
    font-size: 12px;
    line-height: 18px;
    padding-left: 12px;
  }
  
  .timeline-container::before {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  /* Tight spacing for very small screens */
  .timeline-container[data-year="2021"] {
    margin-bottom: 35px;
  }
  
  .timeline-container[data-year="2022"] {
    margin-bottom: 30px;
  }
  
  .timeline-container[data-year="2023"] {
    margin-bottom: 25px;
  }
  
  .timeline-container[data-year="2024"] {
    margin-bottom: 30px;
  }

  .timeline-container[data-year="2025"] {
    margin-bottom: 100px;
  }
}

/* ADD THIS RESPONSIVE CSS for the timeline section text - it's missing! */

/* ===== RESPONSIVE DESIGN FOR TIMELINE SECTION TEXT ===== */

/* Large desktop (1600px+) - Keep base styles as default */
@media (min-width: 1600px) {
  .about-timeline-container {
    margin-left: 200px; /* Keep full margin on large screens */
  }
  
  .about-timeline-title {
    font-size: 40px;
    width: 991px;
  }
  
  .about-timeline-subtitle {
    font-size: 24px;
  }
  
  .about-timeline-content {
    font-size: 20px;
    width: 991px;
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .about-timeline-container {
    margin-left: 160px; /* Proportionally reduced: 200px * 0.8 */
  }
  
  .about-timeline-title {
    font-size: 36px; /* Slightly smaller */
    width: 850px; /* Proportionally reduced */
    max-width: calc(100vw - 200px);
  }
  
  .about-timeline-subtitle {
    font-size: 22px;
  }
  
  .about-timeline-content {
    font-size: 18px;
    line-height: 28px;
    width: 850px; /* Proportionally reduced */
    max-width: calc(100vw - 200px);
  }
}

/* Medium desktop/laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .about-timeline-container {
    margin-left: 120px; /* 200px * 0.6 */
  }
  
  .about-timeline-title {
    font-size: 32px;
    width: 700px;
    max-width: calc(100vw - 160px);
  }
  
  .about-timeline-subtitle {
    font-size: 20px;
  }
  
  .about-timeline-content {
    font-size: 16px;
    line-height: 26px;
    width: 700px;
    max-width: calc(100vw - 160px);
  }
}

/* Tablet landscape (768px - 1023px) */
@media (max-width: 1023px) {
  .about-timeline-section {
    padding: 80px 0 100px; /* Reduced padding */
  }
  
  .about-timeline-container {
    margin-left: 80px; /* 200px * 0.4 */
    padding-right: 40px;
  }
  
  .about-timeline-title {
    font-size: 32px;
    margin-bottom: 16px; /* Proportionally reduced */
    width: 100%;
    max-width: 600px;
  }
  
  .about-timeline-subtitle {
    font-size: 18px;
    margin-bottom: 60px; /* Proportionally reduced */
  }
  
  .about-timeline-content {
    font-size: 15px;
    line-height: 24px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 60px; /* Proportionally reduced */
  }
}

/* Tablet portrait (640px - 767px) */
@media (max-width: 767px) {
  .about-timeline-section {
    padding: 60px 0 800px;
  }
  
  .about-timeline-container {
    margin-left: 60px; /* 200px * 0.3 */
    padding-right: 40px;
  }
  
  .about-timeline-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 12px;
    width: 100%;
  }
  
  .about-timeline-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .about-timeline-content {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 40px;
  }
  
  .about-timeline-content p {
    margin-bottom: 16px; /* Reduced paragraph spacing */
  }
}

/* Mobile landscape (480px - 639px) */
@media (max-width: 639px) {
  .about-timeline-container {
    margin-left: 40px; /* 200px * 0.2 */
    padding-right: 20px;
  }
  
  .about-timeline-title {
    font-size: 32px;
    width: 100%;
  }
  
  .about-timeline-subtitle {
    font-size: 15px;
  }
  
  .about-timeline-content {
    font-size: 13px;
    line-height: 20px;
  }
  
  .about-timeline-content p {
    margin-bottom: 14px;
  }
}

/* Mobile portrait (up to 479px) */
@media (max-width: 479px) {
  .about-timeline-section {
    padding: 40px 0 60px;
  }
  
  .about-timeline-container {
    margin-left: 20px; /* 200px * 0.1 */
    padding-right: 20px;
  }
  
  .about-timeline-title {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 10px;
    width: 100%;
  }
  
  .about-timeline-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .about-timeline-content {
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 30px;
  }
  
  .about-timeline-content p {
    margin-bottom: 12px;
  }
}

/* Extra small mobile (up to 375px) */
@media (max-width: 375px) {
  .about-timeline-container {
    margin-left: 16px;
    padding-right: 16px;
  }
  
  .about-timeline-title {
    font-size: 18px;
    width: 100%;
  }
  
  .about-timeline-subtitle {
    font-size: 13px;
  }
  
  .about-timeline-content {
    font-size: 11px;
    line-height: 16px;
  }
  
  .about-timeline-content p {
    margin-bottom: 10px;
  }
}



/* ===== PROBLEM SOLVING PROCESS SECTION ===== */

.problem-solving-section {
  background-color: #F8F8F8;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* Break out of container */
  padding: 70px 0 600px; /* 70px top, 160px bottom */
  position: relative;
}

[data-theme="dark"] .problem-solving-section {
  background-color: #111111;
}

/* Section Introduction - Centrally Aligned */
.problem-solving-intro {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* "How I work" label */
.section-label {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 300; /* Light */
  line-height: 1.2;
  color: #111111;
  margin: 0;
  margin-bottom: 30px; /* 30px to title */
}

[data-theme="dark"] .section-label {
  color: #F8F8F8;
}

/* "Problem Solving Process." title */
.problem-solving-title {
  font-family: var(--font-family-primary); /* Inter */
  font-size: 40px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #111111;
  margin: 0;
  margin-bottom: 20px; /* 20px to description */
}

[data-theme="dark"] .problem-solving-title {
  color: #F8F8F8;
}

/* Red dot at end of title */
.red-dot {
  color: #D52128;
}

/* Description text */
.problem-solving-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 300; /* Light */
  line-height: 1.4;
  color: #111111;
  margin: 0;
  margin-bottom: 120px; /* 120px to SVG */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .problem-solving-description {
  color: #F8F8F8;
}

/* Problem Solving Timeline SVG */
.problem-solving-timeline {
  display: flex;
  justify-content: center;
  margin-bottom: 20px; /* 20px to steps */
}

.problem-solving-svg-container {
  position: relative;
  display: inline-block;
}

.problem-solving-svg {
  max-width: 1330px;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

/* SVG Theme Switching */
.problem-solving-day {
  opacity: 1;
}

.problem-solving-night {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

[data-theme="dark"] .problem-solving-day {
  opacity: 0;
}

[data-theme="dark"] .problem-solving-night {
  opacity: 1;
}

/* Problem Solving Steps Container */
.problem-solving-steps {
  position: relative;
  max-width: 1330px; /* Match SVG width */
  margin: 0 auto;
  padding: 0 24px;
}

/* Individual Steps - Custom Positioning */
.problem-solving-step {
  position: absolute;
  width: 300px; /* Fixed width for consistent layout */
}

/* Step Positioning - Adjust these values to align with SVG */
.problem-solving-step[data-step="1"] {
  left: 0%; /* Investigation */
  top: 0;
}

.problem-solving-step[data-step="2"] {
  left: 25%; /* Planning */
  top: 0;
}

.problem-solving-step[data-step="3"] {
  left: 50%; /* Execution */
  top: 0;
}

.problem-solving-step[data-step="4"] {
  left: 75%; /* Control & Feedback */
  top: 0;
}

/* Step Titles (H3) */
.step-title {
  font-family: var(--font-family-primary); /* Inter */
  font-size: 24px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #111111;
  margin: 0;
  margin-bottom: 30px; /* 50px to description */
}

[data-theme="dark"] .step-title {
  color: #F8F8F8;
}

/* Step Descriptions */
.step-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 300; /* Light */
  line-height: 1.5;
  color: #111111;
  margin: 0;
  margin-bottom: 20px; /* 20px to skills */
}

[data-theme="dark"] .step-description {
  color: #F8F8F8;
}

/* Skill Tags Container */
.step-skills {
  display: flex;
  flex-direction: column;
  gap: 17px; /* 17px vertical gap */
}

/* Individual Skill Tags */
.skill-tag {
  display: inline-block;
  background-color: #1E1E1E;
  border: 1px solid #D52128;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #F8F8F8;
  text-align: center;
  white-space: nowrap;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large desktop (1600px+) */
@media (min-width: 1600px) {
  .problem-solving-steps {
    max-width: 1330px;
  }
  
  .problem-solving-step {
    width: 320px; /* Slightly wider on large screens */
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .problem-solving-svg {
    max-width: 1100px;
  }
  
  .problem-solving-steps {
    max-width: 1100px;
  }
  
  .problem-solving-step {
    width: 260px;
  }
  
  .step-title {
    font-size: 22px;
  }
  
  .step-description {
    font-size: 15px;
  }
}

/* Medium desktop/laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .problem-solving-svg {
    max-width: 900px;
  }
  
  .problem-solving-steps {
    max-width: 900px;
  }
  
  .problem-solving-step {
    width: 220px;
  }
  
  .step-title {
    font-size: 20px;
    margin-bottom: 40px;
  }
  
  .step-description {
    font-size: 14px;
  }
  
  .skill-tag {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Mobile Layout (768px and below) */
@media (max-width: 768px) {
  
  /* Adjust section padding */
  .problem-solving-section {
    padding: 50px 0 120px;
  }
  
  /* Intro text responsive */
  .section-label {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  .problem-solving-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
  
  .problem-solving-description {
    font-size: 16px;
    margin-bottom: 60px;
  }
  
  /* Hide SVG on mobile */
  .problem-solving-timeline {
    display: none;
  }
  
  /* Mobile Steps Layout */
  .problem-solving-steps {
    max-width: 100%;
    padding: 0 20px;
    position: static; /* Remove absolute positioning */
  }
  
  .problem-solving-step {
    position: static; /* Remove absolute positioning */
    width: 100%;
    margin-bottom: 40px;
    border-left: 3px solid #D52128; /* Red line to left */
    padding-left: 20px;
  }
  
  .problem-solving-step:last-child {
    margin-bottom: 0;
  }
  
  .step-title {
    font-size: 20px;
    margin-bottom: 20px; /* Reduced spacing */
  }
  
  .step-description {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .step-skills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px; /* Reduced gap for mobile */
  }
  
  .skill-tag {
    font-size: 12px;
    padding: 6px 10px;
    line-height: 16px;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .problem-solving-section {
    padding: 40px 0 100px;
  }
  
  .problem-solving-intro {
    padding: 0 16px;
  }
  
  .section-label {
    font-size: 18px;
  }
  
  .problem-solving-title {
    font-size: 28px;
  }
  
  .problem-solving-description {
    font-size: 14px;
  }
  
  .problem-solving-steps {
    padding: 0 16px;
  }
  
  .step-title {
    font-size: 18px;
  }
  
  .step-description {
    font-size: 13px;
  }
  
  .skill-tag {
    font-size: 11px;
    padding: 5px 8px;
  }
}


/* ===== ABOUT PAGE CALL-TO-ACTION SECTION ===== */

.about-cta-section {
  background-color: #141414;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* Break out of container */
  padding-top: 290px; /* 290px from section start to header */
  padding-bottom: 284px; /* 284px after button */
  position: relative;
  overflow: hidden;
}

/* Container */
.about-cta-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Decorative Circle - positioned like in home CTA */
.about-decorative-circle {
  position: absolute;
  left: 450px;
  top: -6%;
  transform: translateY(-57%);
  z-index: 1;
}

.about-cutted-circle {
  width: auto;
  height: auto;
  opacity: 0.8;
}

/* Main Content Container */
.about-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
}

/* Projects Header */
.about-cta-title {
  font-family: var(--font-family-primary); /* Inter */
  font-size: 40px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
  margin-bottom: 30px; /* 30px to description */
}

/* Red dot for period */
.about-red-dot {
  color: #D52128;
}

/* Description Text */
.about-cta-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 300; /* Light */
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
  margin-bottom: 60px; /* 60px to button */
}

/* See My Works Button */
.about-see-works-btn {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.about-see-works-btn:hover {
  transform: translateY(-2px);
}

.about-see-works-img {
  width: auto;
  height: auto;
  display: block;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large desktop (1600px+) */
@media (min-width: 1600px) {
  .about-decorative-circle {
    right: 100px; /* More space on large screens */
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .about-decorative-circle {
    right: 60px;
  }
}

/* Medium desktop/laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .about-cta-title {
    font-size: 40px;
  }
  
  .about-cta-description {
    font-size: 22px;
  }
  
  .about-decorative-circle {
    right: 40px;
  }
}

/* Tablet landscape (768px - 1023px) */
@media (max-width: 1023px) {
  .about-cta-section {
    padding-top: 200px; /* Reduced padding */
    padding-bottom: 200px;
  }
  
  .about-cta-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
  
  .about-cta-description {
    font-size: 20px;
    margin-bottom: 50px;
  }
  
  .about-decorative-circle {
    right: 20px;
    top: 10%;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .about-cta-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }
  
  .about-cta-container {
    padding: 0 20px;
  }
  
  .about-cta-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .about-cta-description {
    font-size: 18px;
    margin-bottom: 40px;
  }
  
  /* Hide decorative element on mobile for cleaner layout */
  .about-decorative-circle {
    display: none;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .about-cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .about-cta-container {
    padding: 0 16px;
  }
  
  .about-cta-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .about-cta-description {
    font-size: 16px;
    margin-bottom: 32px;
  }
}


/* ===== ABOUT PAGE SKILLS SECTION ===== */

.about-skills-section {
  background-color: #FFFFFF;
  padding-bottom: 190px; /* 190px after last row of cards */
  position: relative;
}

[data-theme="dark"] .about-skills-section {
  background-color: #0D0D0D;
}

/* Skills Container */
.about-skills-container {
  max-width: 100vw;
  position: relative;
}

/* Skills Header */
.about-skills-header {
  margin-left: 200px; /* 200px from left border */
  padding-top: 170px; /* 170px from section start */
}

.about-skills-title {
  font-family: var(--font-family-primary); /* Inter */
  font-size: 40px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #0D0D0D;
  margin: 0;
  margin-bottom: 20px; /* 20px to description */
}

[data-theme="dark"] .about-skills-title {
  color: #F8F8F8;
}

.about-skills-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 300; /* Light */
  line-height: 1.4;
  color: #0D0D0D;
  margin: 0;
  margin-bottom: 50px; /* Space to Hard Skills H3 */
  max-width: 1100px;
}

[data-theme="dark"] .about-skills-description {
  color: #F8F8F8;
}

/* Skills Subtitles (H3) */
.about-skills-subtitle {
  font-family: var(--font-family-primary); /* Inter */
  font-size: 32px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #0D0D0D;
  margin: 0;
  margin-bottom: 42px; /* 42px to cards */
  margin-left: 200px; /* Align with header */
}

[data-theme="dark"] .about-skills-subtitle {
  color: #F8F8F8;
}

/* Hard Skills Section */
.about-hard-skills {
  margin-bottom: 70px; /* 70px to Soft Skills H3 */
}

/* Skills Grids */
.about-skills-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: 200px; /* Align with header */
  margin-right: 200px;
}

/* Hard Skills Grid - 5 cards in a row */
.hard-skills-grid {
  gap: 53px; /* 20px between cards */
}

.hard-skills-grid .about-skill-card {
  width: 300px; /* Fixed width for hard skills */
  height: 250px; /* Fixed height for hard skills */
}

/* Soft Skills Grid - Variable layout */
.soft-skills-grid {
  gap: 20px; /* 20px horizontal gap */
  row-gap: 40px; /* 40px vertical gap */
}

.soft-skills-grid .about-skill-card {
  width: calc(50% - 10px); /* Two cards per row with 20px gap */
  min-height: 130px; /* Variable height for soft skills */
}

/* Individual Skill Cards */
.about-skill-card {
  border: 1px solid #D52128;
  border-radius: 10px;
  background-color: #F8F8F8;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

[data-theme="dark"] .about-skill-card {
  background-color: #1E1E1E;
}

/* Card Titles */
.skill-card-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 300; /* Light */
  line-height: 1.2;
  color: #111111;
  margin: 0;
  margin-bottom: 16px; /* Space to content */
}

[data-theme="dark"] .skill-card-title {
  color: #F8F8F8;
}

/* Card Content Container */
.skill-card-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px; /* Base gap between items */
  line-height: 1.4;
}

/* Individual Skill Items */
.skill-item {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  font-weight: 300; /* Light */
  color: #000000;
  white-space: nowrap;
}

[data-theme="dark"] .skill-item {
  color: #F8F8F8;
}

/* Red Dots Between Skills */
.skill-dot {
  width: 4px;
  height: 4px;
  background-color: #D52128;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large desktop (1600px+) */
@media (min-width: 1600px) {
  .about-skills-header,
  .about-skills-subtitle {
    margin-left: 200px; /* Keep full margin */
  }
  
  .about-skills-grid {
    margin-left: 200px;
    margin-right: 200px;
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .about-skills-header,
  .about-skills-subtitle {
    margin-left: 160px; /* Proportionally reduced */
  }
  
  .about-skills-grid {
    margin-left: 160px;
    margin-right: 160px;
  }
  
  .about-skills-title {
    font-size: 36px;
  }
  
  .about-skills-description {
    font-size: 22px;
  }
}

/* Medium desktop/laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .about-skills-header,
  .about-skills-subtitle {
    margin-left: 120px;
  }
  
  .about-skills-grid {
    margin-left: 120px;
    margin-right: 120px;
  }
  
  .about-skills-title {
    font-size: 32px;
  }
  
  .about-skills-description {
    font-size: 20px;
  }
  
  .about-skills-subtitle {
    font-size: 28px;
  }
  
  /* Adjust hard skills to 4 cards per row */
  .hard-skills-grid .about-skill-card {
    width: calc(25% - 15px);
  }
}

/* Tablet landscape (768px - 1023px) */
@media (max-width: 1023px) {
  .about-skills-section {
    padding-bottom: 120px;
  }
  
  .about-skills-header {
    padding-top: 100px;
    margin-left: 80px;
  }
  
  .about-skills-subtitle {
    margin-left: 80px;
    margin-bottom: 30px;
  }
  
  .about-skills-grid {
    margin-left: 80px;
    margin-right: 80px;
  }
  
  .about-skills-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
  
  .about-skills-description {
    font-size: 18px;
    margin-bottom: 40px;
  }
  
  .about-skills-subtitle {
    font-size: 24px;
  }
  
  /* Hard skills - 3 cards per row */
  .hard-skills-grid .about-skill-card {
    width: calc(33.333% - 14px);
  }
  
  .about-hard-skills {
    margin-bottom: 50px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .about-skills-section {
    padding-bottom: 80px;
  }
  
  .about-skills-header {
    padding-top: 60px;
    margin-left: 40px;
    padding-right: 40px;
  }
  
  .about-skills-subtitle {
    margin-left: 40px;
    margin-bottom: 24px;
  }
  
  .about-skills-grid {
    margin-left: 40px;
    margin-right: 40px;
    flex-direction: column;
  }
  
  .about-skills-title {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .about-skills-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .about-skills-subtitle {
    font-size: 20px;
  }
  
  /* All cards full width on mobile */
  .hard-skills-grid .about-skill-card,
  .soft-skills-grid .about-skill-card {
    width: 100%;
    min-height: 140px;
  }
  
  .about-hard-skills {
    margin-bottom: 40px;
  }
  
  .soft-skills-grid {
    row-gap: 30px;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .about-skills-header {
    margin-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
  }
  
  .about-skills-subtitle {
    margin-left: 20px;
  }
  
  .about-skills-grid {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .about-skills-title {
    font-size: 24px;
  }
  
  .about-skills-description {
    font-size: 14px;
  }
  
  .about-skills-subtitle {
    font-size: 18px;
  }
  
  .skill-card-title {
    font-size: 18px;
  }
  
  .skill-item {
    font-size: 13px;
  }
}




/* ===== ABOUT PAGE EXPERIENCE & EDUCATION SECTION ===== */

.about-experience-section {
  background-color: #F8F8F8;
  padding-bottom: 100px;
  position: relative;
}

[data-theme="dark"] .about-experience-section {
  background-color: #111111;
}

/* Experience Container */
.about-experience-container {
  max-width: 100vw;
  position: relative;
}

/* Experience Header */
.about-experience-header {
  margin-left: 200px; /* 200px from left border */
  padding-top: 100px; /* 100px from section start */
  margin-bottom: 75px; /* 75px to content */
}

.about-experience-title {
  font-family: var(--font-family-primary); /* Inter */
  font-size: 40px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #0D0D0D;
  margin: 0;
  margin-bottom: 20px; /* Space to description */
}

[data-theme="dark"] .about-experience-title {
  color: #F8F8F8;
}

.about-experience-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 300; /* Light */
  line-height: 1.4;
  color: #0D0D0D;
  margin: 0;
  max-width: 600px;
}

[data-theme="dark"] .about-experience-description {
  color: #F8F8F8;
}

/* Content Layout */
.about-experience-content {
  display: flex;
  gap: 40px; /* Gap between columns */
  margin-left: 200px;
  margin-right: 200px;
}

/* Column Titles */
.experience-column-title,
.education-column-title {
  font-family: var(--font-family-primary); /* Inter */
  font-size: 32px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #0D0D0D;
  margin: 0;
  margin-bottom: 30px; /* Space to cards */
}

[data-theme="dark"] .experience-column-title,
[data-theme="dark"] .education-column-title {
  color: #F8F8F8;
}

/* Experience and Education Cards */
.experience-card,
.education-card {
  width: 830px;
  min-height: 1100px;
  background-color: #D9D9D9;
  border-radius: 20px;
  position: relative;
  padding: 40px;
}

[data-theme="dark"] .experience-card,
[data-theme="dark"] .education-card {
  background-color: #1E1E1E;
}

/* Entry Containers */
.experience-entries,
.education-entries {
  display: flex;
  flex-direction: column;
}

/* Individual Entries */
.experience-entry,
.education-entry {
  margin-bottom: 60px; /* 60px gap between entries */
}

.experience-entry:last-child,
.education-entry:last-child {
  margin-bottom: 0;
}

/* Entry Header - Contains decorative element and logo */
.entry-header {
  display: flex;
  align-items: center;
  gap: 20px; /* 20px gap between decorative and logo */
  margin-bottom: 18px; /* 18px under header */
}

/* Decorative Elements - Now next to each logo */
.entry-decorative {
  flex-shrink: 0;
  width: 3px;
  height: 3px; /* Match logo height */
  display: flex;
  align-items: center;
}

.decorative-icon {
  width: 100%;
  height: auto;
}

/* Entry Logos */
.entry-logo {
  flex-shrink: 0;
}

.company-logo,
.university-logo {
  max-height: 50px;
  width: auto;
  max-width: 200px;
}

/* VU Logo Theme Switching */
.vu-logo-light {
  display: block;
}

.vu-logo-dark {
  display: none;
}

[data-theme="dark"] .vu-logo-light {
  display: none;
}

[data-theme="dark"] .vu-logo-dark {
  display: block;
}

/* Entry Dates */
.entry-date {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  font-weight: 400; /* Regular */
  line-height: 1.2;
  color: #3A4755;
  margin: 0;
  margin-bottom: 5px; /* 5px to title */
  margin-left: 40px; /* Align with logo, not decorative */
}

[data-theme="dark"] .entry-date {
  color: #D9D9D9;
}

/* Entry Titles */
.entry-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 24px;
  font-weight: 400; /* Regular */
  line-height: 1.2;
  color: #000000;
  margin: 0;
  margin-bottom: 16px; /* Space to description */
  margin-left: 40px; /* Align with logo, not decorative */
}

[data-theme="dark"] .entry-title {
  color: #F8F8F8;
}

/* Entry Descriptions */
.entry-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 400; /* Regular */
  line-height: 1.5;
  color: #000000;
  margin-left: 40px; /* Align with logo, not decorative */
}

[data-theme="dark"] .entry-description {
  color: #F8F8F8;
}

.entry-description p {
  margin: 0 0 12px 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.entry-description ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
  list-style-type: disc;
}

.entry-description li {
  margin-bottom: 8px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.entry-description li:last-child {
  margin-bottom: 0;
}

/* Bold text styling */
.entry-description strong {
  font-weight: 600; /* Semi-bold for emphasis */
  color: inherit;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large desktop (1600px+) */
@media (min-width: 1600px) {
  .about-experience-header {
    margin-left: 200px; /* Keep full margin */
  }
  
  .about-experience-content {
    margin-left: 200px;
    margin-right: 200px;
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .about-experience-header {
    margin-left: 160px;
  }
  
  .about-experience-content {
    margin-left: 160px;
    margin-right: 160px;
  }
  
  .about-experience-title {
    font-size: 36px;
  }
  
  .about-experience-description {
    font-size: 22px;
  }
  
  .experience-column-title,
  .education-column-title {
    font-size: 28px;
  }
}

/* Medium desktop/laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .about-experience-header {
    margin-left: 120px;
  }
  
  .about-experience-content {
    margin-left: 120px;
    margin-right: 120px;
    gap: 20px;
  }
  
  .experience-card,
  .education-card {
    width: calc(50% - 10px);
    min-height: 900px;
  }
  
  .about-experience-title {
    font-size: 32px;
  }
  
  .about-experience-description {
    font-size: 20px;
  }
  
  .experience-column-title,
  .education-column-title {
    font-size: 24px;
  }
}

/* Tablet landscape (768px - 1023px) */
@media (max-width: 1023px) {
  .about-experience-section {
    padding-bottom: 80px;
  }
  
  .about-experience-header {
    padding-top: 80px;
    margin-left: 80px;
    margin-bottom: 50px;
  }
  
  .about-experience-content {
    margin-left: 80px;
    margin-right: 80px;
  }
  
  .about-experience-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
  
  .about-experience-description {
    font-size: 18px;
  }
  
  .experience-column-title,
  .education-column-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .experience-card,
  .education-card {
    padding: 30px;
    min-height: 800px;
  }
  
  .entry-header {
    gap: 15px;
  }
  
  .entry-date,
  .entry-title,
  .entry-description {
    margin-left: 35px; /* Adjust for smaller decorative gap */
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .about-experience-section {
    padding-bottom: 60px;
  }
  
  .about-experience-header {
    padding-top: 60px;
    margin-left: 40px;
    margin-bottom: 40px;
    padding-right: 40px;
  }
  
  .about-experience-content {
    flex-direction: column;
    margin-left: 40px;
    margin-right: 40px;
    gap: 40px;
  }
  
  .about-experience-title {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .about-experience-description {
    font-size: 16px;
  }
  
  .experience-column-title,
  .education-column-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .experience-card,
  .education-card {
    width: 100%;
    min-height: auto;
    padding: 24px;
  }
  
  .entry-header {
    gap: 12px;
  }
  
  .entry-decorative {
    width: 16px;
    height: 40px;
  }
  
  .company-logo,
  .university-logo {
    max-height: 40px;
    max-width: 150px;
  }
  
  .entry-date,
  .entry-title,
  .entry-description {
    margin-left: 28px; /* Adjust for mobile */
  }
  
  .entry-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .entry-description {
    font-size: 13px;
  }
  
  .experience-entry,
  .education-entry {
    margin-bottom: 40px;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .about-experience-header {
    margin-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
  }
  
  .about-experience-content {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .about-experience-title {
    font-size: 24px;
  }
  
  .about-experience-description {
    font-size: 14px;
  }
  
  .experience-column-title,
  .education-column-title {
    font-size: 18px;
  }
  
  .experience-card,
  .education-card {
    padding: 20px;
  }
  
  .entry-header {
    gap: 10px;
  }
  
  .entry-decorative {
    width: 14px;
    height: 35px;
  }
  
  .entry-date,
  .entry-title,
  .entry-description {
    margin-left: 24px;
  }
  
  .entry-title {
    font-size: 18px;
  }
  
  .entry-description {
    font-size: 12px;
  }
  
  .company-logo,
  .university-logo {
    max-height: 35px;
    max-width: 120px;
  }
}


/* ===== ABOUT PAGE ONLINE COURSES & SELF-LEARNING SECTION ===== */

.about-courses-section {
  background-color: #F8F8F8;
  padding-bottom: 300px;
  position: relative;
}

[data-theme="dark"] .about-courses-section {
  background-color: #111111;
}

/* Courses Container */
.about-courses-container {
  max-width: 100vw;
  position: relative;
}

/* Courses Header */
.about-courses-header {
  margin-left: 200px; /* 200px from left border */
  padding-top: 100px; /* 100px from section start */
  margin-bottom: 90px; /* 90px to accordion */
  max-width: calc(100vw - 240px);
}

.about-courses-title {
  font-family: var(--font-family-primary); /* Inter */
  font-size: 40px;
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.2;
  color: #0D0D0D;
  margin: 0;
  margin-bottom: 20px; /* 20px to description */
}

[data-theme="dark"] .about-courses-title {
  color: #F8F8F8;
}

.about-courses-description {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 300; /* Light */
  line-height: 1.4;
  color: #000000;
  margin: 0;
  max-width: 900px;
}

[data-theme="dark"] .about-courses-description {
  color: #F8F8F8;
}

/* Accordion Container */
.courses-accordion {
  margin-left: 200px;
  margin-right: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px; /* Gap between accordion items */
}

/* Individual Accordion Items */
.accordion-item {
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  background-color: #F5F5F5;
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-theme="dark"] .accordion-item {
  background-color: #1E1E1E;
}

.accordion-item.active {
  border-color: #A90007;
}

/* Accordion Header */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(169, 0, 7, 0.05);
}

[data-theme="dark"] .accordion-header:hover {
  background-color: rgba(169, 0, 7, 0.1);
}

/* Accordion Title */
.accordion-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 600; /* SemiBold */
  line-height: 1.2;
  color: #000000;
  margin: 0;
  flex-grow: 1;
}

[data-theme="dark"] .accordion-title {
  color: #F8F8F8;
}

/* Accordion Arrow Container */
.accordion-arrow {
  position: relative;
  width: 24px;
  height: 24px;
  margin-left: 21px; /* 21px from end of container */
  flex-shrink: 0;
}

.arrow-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

/* Arrow Visibility Logic */
/* Default: Closed state */
.arrow-closed-day {
  opacity: 1;
}

.arrow-opened-day,
.arrow-closed-dark,
.arrow-opened-dark {
  opacity: 0;
}

/* Dark mode default: Closed state */
[data-theme="dark"] .arrow-closed-day,
[data-theme="dark"] .arrow-opened-day {
  opacity: 0;
}

[data-theme="dark"] .arrow-closed-dark {
  opacity: 1;
}

[data-theme="dark"] .arrow-opened-dark {
  opacity: 0;
}

/* Active (opened) state - Light mode */
.accordion-item.active .arrow-closed-day {
  opacity: 0;
}

.accordion-item.active .arrow-opened-day {
  opacity: 1;
}

/* Active (opened) state - Dark mode */
.accordion-item.active[data-theme="dark"] .arrow-closed-dark,
[data-theme="dark"] .accordion-item.active .arrow-closed-dark {
  opacity: 0;
}

.accordion-item.active[data-theme="dark"] .arrow-opened-dark,
[data-theme="dark"] .accordion-item.active .arrow-opened-dark {
  opacity: 1;
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px; /* Large enough for content */
}

.accordion-text {
  padding: 0 24px 24px 24px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 300; /* Light */
  line-height: 20px;
  color: #000000;
}

[data-theme="dark"] .accordion-text {
  color: #F8F8F8;
}

.accordion-text p {
  margin: 0 0 12px 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.accordion-text p:last-child {
  margin-bottom: 0;
}

.accordion-text ul {
  margin: 12px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.accordion-text li {
  margin-bottom: 6px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.accordion-text li:last-child {
  margin-bottom: 0;
}

.accordion-text strong {
  font-weight: 600; /* Semi-bold for emphasis */
  color: inherit;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large desktop (1600px+) */
@media (min-width: 1600px) {
  .about-courses-header {
    margin-left: 200px;
  }
  
  .courses-accordion {
    margin-left: 200px;
    margin-right: 200px;
  }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
  .about-courses-header {
    margin-left: 160px;
  }
  
  .courses-accordion {
    margin-left: 160px;
    margin-right: 160px;
  }
  
  .about-courses-title {
    font-size: 36px;
  }
  
  .about-courses-description {
    font-size: 18px;
  }
}

/* Medium desktop/laptop (1024px - 1199px) */
@media (max-width: 1199px) {
  .about-courses-header {
    margin-left: 120px;
  }
  
  .courses-accordion {
    margin-left: 120px;
    margin-right: 120px;
  }
  
  .about-courses-title {
    font-size: 32px;
  }
  
  .about-courses-description {
    font-size: 16px;
  }
  
  .accordion-title {
    font-size: 18px;
  }
}

/* Tablet landscape (768px - 1023px) */
@media (max-width: 1023px) {
  .about-courses-section {
    padding-bottom: 80px;
  }
  
  .about-courses-header {
    padding-top: 80px;
    margin-left: 80px;
    margin-bottom: 60px;
    padding-right: 40px;
  }
  
  .courses-accordion {
    margin-left: 80px;
    margin-right: 80px;
  }
  
  .about-courses-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
  
  .about-courses-description {
    font-size: 16px;
  }
  
  .accordion-header {
    padding: 16px 20px;
  }
  
  .accordion-text {
    padding: 0 20px 20px 20px;
  }
  
  .accordion-title {
    font-size: 18px;
  }
  
  .accordion-arrow {
    margin-left: 16px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .about-courses-section {
    padding-bottom: 60px;
  }
  
  .about-courses-header {
    padding-top: 60px;
    margin-left: 40px;
    margin-bottom: 50px;
    padding-right: 40px;
  }
  
  .courses-accordion {
    margin-left: 40px;
    margin-right: 40px;
  }
  
  .about-courses-title {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .about-courses-description {
    font-size: 14px;
  }
  
  .accordion-header {
    padding: 14px 16px;
  }
  
  .accordion-text {
    padding: 0 16px 16px 16px;
    font-size: 13px;
    line-height: 18px;
  }
  
  .accordion-title {
    font-size: 16px;
  }
  
  .accordion-arrow {
    margin-left: 12px;
    width: 20px;
    height: 20px;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .about-courses-header {
    margin-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
  }
  
  .courses-accordion {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .about-courses-title {
    font-size: 24px;
  }
  
  .about-courses-description {
    font-size: 13px;
  }
  
  .accordion-title {
    font-size: 15px;
  }
  
  .accordion-text {
    font-size: 12px;
    line-height: 16px;
  }
}

/* ===== CALL-TO-ACTION SECTION ===== */

.cta-section {
  background-color: #141414;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 220px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Decorative Elements */

.decorative-circle {
  position: absolute;
  right: 60px;
  top: -6%;
  transform: translateY(-50%);
  z-index: 1;
}

.cutted-circle {
  width: auto;
  height: auto;
  opacity: 0.8;
}

/* Main Content */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.cta-title {
  font-family: var(--font-family-primary);
  font-size: 48px;
  font-weight: var(--font-weight-regular);
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

.cta-description {
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: var(--font-weight-regular);
  color: #D9D9D9;
  margin: 30px 0 0 0;
  line-height: 1.5;
  text-align: center;
}

.say-hello-btn {
  display: inline-block;
  margin-top: 80px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.say-hello-btn:hover {
  transform: translateY(-2px);
}

.say-hello-btn img {
  width: auto;
  height: auto;
}

/* CTA Social Icons */
.cta-social {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 60px;
}

.cta-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.cta-social .social-link:hover {
  transform: translateY(-2px);
}

.cta-social .social-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

/* Social Icon Styling - Same as Footer */
.cta-social img.social-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(85%) contrast(85%);
}

.cta-social .social-link:hover img.social-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1600px) {
  .decorative-curve {
    width: 250px;
  }
  
  .decorative-curve::before {
    width: 350px;
    height: 350px;
    left: -120px;
  }
}

@media (max-width: 1200px) {
  .cta-title {
    font-size: 40px;
  }
  
  .cta-description {
    font-size: 16px;
  }
  
  .decorative-curve {
    width: 200px;
  }
  
  .decorative-curve::before {
    width: 300px;
    height: 300px;
    left: -100px;
  }
  
  .decorative-circle {
    right: -50px;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 80px 20px;
  }
  
  .cta-title {
    font-size: 32px;
  }
  
  .cta-description {
    font-size: 14px;
    margin-top: 20px;
  }
  
  .say-hello-btn {
    margin-top: 60px;
  }
  
  .cta-social {
    gap: 25px;
    margin-top: 40px;
  }
  
  .decorative-curve {
    display: none; /* Hide complex decorations on mobile */
  }
  
  .decorative-circle {
    display: none; /* Hide complex decorations on mobile */
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 60px 20px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .cta-description {
    margin-top: 15px;
  }
  
  .say-hello-btn {
    margin-top: 40px;
  }
  
  .cta-social {
    gap: 20px;
    margin-top: 30px;
  }
  
  .cta-social .social-icon {
    width: 20px;
    height: 20px;
  }
}





/* ===== CONTACT PAGE STYLES ===== */
/* ===== CONTACT PAGE STYLES ===== */
.contact-page {
    background-color: var(--bg-primary);
    min-height: 100vh;
    padding: 150px 0 80px 0;
}

.contact-page .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 120px;
    align-items: start;
}

/* Left Column - Form Section */
.contact-form-section {
    max-width: 615px;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 50px;
    line-height: 1.2;
    color: var(--contact-title-color);
    margin: 0 0 30px 0;
}

.accent-dot {
    color: #D52128;
}

.contact-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    color: var(--contact-description-color);
    margin: 0;
}

/* Contact Form */
.contact-form {
    width: 100%;
    max-width: 615px;
    border-radius: 20px;
    padding: 40px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 35px;
}

.form-group:last-of-type {
    margin-bottom: 45px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--form-border);
    padding: 15px 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--input-text-color);
    outline: none;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--form-placeholder);
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #D52128;
}

.contact-form textarea {
    min-height: 60px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.submit-btn {
    width: 280px;
    height: 60px;
    border-radius: 8px;
    border: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #F8F8F8;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Right Column - Info Section */
.contact-info-section {
    padding-top: 110px;
    width: 100%;
}

.info-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.2;
    color: var(--info-title-color);
    margin: 0 0 40px 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 30px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 20px;
    color: var(--contact-link-color);
}

/* Theme Variables - keep as is */
:root {
    --form-border: #1E1E1E;
    --form-placeholder: #888;
    --input-text-color: #1E1E1E;
    --contact-link-color: #1E1E1E; /* This was already updated for links */
}

[data-theme="dark"] {
    --form-border: #F8F8F8;
    --form-placeholder: #999;
    --input-text-color: #F8F8F8;
    --contact-link-color: #F8F8F8;
}

/* Theme-specific Form Backgrounds - keep as is */
[data-theme="light"] .contact-form {
    background-color: #DCDEDF;
}

[data-theme="dark"] .contact-form {
    background-color: #2C2C2C;
}

/* Theme-specific Button Backgrounds - keep as is */
[data-theme="light"] .submit-btn {
    background-color: #2C2C2C;
}

[data-theme="dark"] .submit-btn {
    background-color: #0D0D0D;
}

[data-theme="dark"] .contact-title {
    color: #F8F8F8;
}

[data-theme="dark"] .contact-description {
    color: #F8F8F8;
}

[data-theme="dark"] .info-title {
    color: #F8F8F8;
}


/* Responsive Design */
@media (max-width: 1400px) {
    .contact-page .container {
        padding: 0 80px;
    }
    
    .contact-content {
        gap: 80px;
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 1200px) {
    .contact-page .container {
        padding: 0 60px;
    }
    
    .contact-content {
        gap: 60px;
        grid-template-columns: 1fr 300px;
    }
    
    .contact-title {
        font-size: 44px;
    }
    
    .contact-description {
        font-size: 22px;
    }
}

@media (max-width: 1024px) {
    .contact-page .container {
        padding: 0 40px;
    }
    
    .contact-content {
        gap: 40px;
        grid-template-columns: 1fr 280px;
    }
    
    .contact-title {
        font-size: 40px;
    }
    
    .contact-description {
        font-size: 20px;
    }
    
    .info-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .contact-page .container {
        padding: 0 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-info-section {
        padding-top: 0;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-title {
        font-size: 36px;
    }
    
    .contact-description {
        font-size: 18px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .info-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .contact-links {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 32px;
    }
    
    .contact-description {
        font-size: 16px;
    }
    
    .info-title {
        font-size: 28px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        font-size: 18px;
    }
    
    .submit-btn {
        width: 100%;
        max-width: 280px;
        height: 50px;
    }
    
    .contact-text {
        font-size: 13px;
    }
}


/* Fix Hero Section Dark Mode */
[data-theme="dark"] .hero-section {
  background-color: #111111 !important;
}

/* Fix Hero Content Dark Mode */
[data-theme="dark"] .hero-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .hero-subtitle {
  color: #FFFFFF !important;
}

[data-theme="dark"] .hero-links a {
  color: #FFFFFF !important;
}

[data-theme="dark"] .link-separator {
  color: #FFFFFF !important;
}

[data-theme="dark"] .scroll-text {
  color: #FFFFFF !important;
}

/* Fix Hero Doodle Dark Mode Switching */
[data-theme="dark"] .doodle-day {
  opacity: 0 !important;
}

[data-theme="dark"] .doodle-night {
  opacity: 1 !important;
}

/* Fix Hero Scroll Arrow Dark Mode */
[data-theme="dark"] .arrow-light {
  opacity: 0 !important;
}

[data-theme="dark"] .arrow-dark {
  opacity: 1 !important;
}

/* Fix Hero CTA Button Dark Mode */
[data-theme="dark"] .btn-day {
  opacity: 0 !important;
}

[data-theme="dark"] .btn-night {
  opacity: 1 !important;
}

/* Fix Expertise Section Dark Mode */
[data-theme="dark"] .expertise-section {
  background-color: #000000 !important;
}

/* Fix Featured Projects Section Dark Mode */
[data-theme="dark"] .featured-projects-section {
  background-color: #111111 !important;
}

/* Fix "See Projects" Button Positioning in Dark Mode */
[data-theme="dark"] .see-projects-btn .btn-light-normal,
[data-theme="dark"] .see-projects-btn .btn-light-hover {
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

[data-theme="dark"] .see-projects-btn .btn-dark-normal {
  opacity: 1 !important;
  position: relative !important;
}

[data-theme="dark"] .see-projects-btn .btn-dark-hover {
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Fix "View Project" Button Positioning in Dark Mode */
[data-theme="dark"] .view-project-btn .btn-light-normal,
[data-theme="dark"] .view-project-btn .btn-light-hover {
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

[data-theme="dark"] .view-project-btn .btn-dark-normal {
  opacity: 1 !important;
  position: relative !important;
}

[data-theme="dark"] .view-project-btn .btn-dark-hover {
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Fix "View All" Button Dark Mode */
[data-theme="dark"] .view-all-btn .btn-day {
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

[data-theme="dark"] .view-all-btn .btn-night {
  opacity: 1 !important;
  position: relative !important;
}


/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-color, #ffffff);
  border-top: 2px solid var(--primary-color, #6366f1);
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  font-size: 0.9rem;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-details {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-accept, .cookie-decline {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.cookie-accept {
  background: var(--primary-color, #6366f1);
  color: white;
}

.cookie-accept:hover {
  background: var(--primary-dark, #4f46e5);
}

.cookie-decline {
  background: transparent;
  color: var(--text-color, #374151);
  border: 1px solid var(--border-color, #d1d5db);
}

.cookie-decline:hover {
  background: var(--bg-secondary, #f9fafb);
}

/* Dark mode support */
[data-theme="dark"] .cookie-banner {
  background: var(--bg-dark, #1f2937);
  border-top-color: var(--primary-color, #6366f1);
}

[data-theme="dark"] .cookie-decline {
  color: var(--text-dark, #e5e7eb);
  border-color: var(--border-dark, #374151);
}

[data-theme="dark"] .cookie-decline:hover {
  background: var(--bg-secondary-dark, #374151);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-accept, .cookie-decline {
    flex: 1;
  }
}



/* ===== MOBILE VERSIONS ===== */
/* ===== MOBILE RESPONSIVE CSS FOR HOME PAGE ===== */
/* Replace all existing mobile CSS with this code */

/* ===== HEADER MOBILE FIXES ===== */
/* Fix Mobile Theme Toggle Icons */
@media (max-width: 768px) {
  /* Base mobile toggle styles - keep existing */
  .mobile-theme-toggle {
    background: #FFFFFF;
    border: none;
    border-radius: 100px;
    width: 55px;
    height: 26px;
    cursor: pointer;
    padding: 1px;
    display: flex;
    align-items: center;
    position: relative;
  }
  
  /* Base circle position */
  .mobile-theme-toggle .theme-toggle-slider {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 24px;
    height: 24px;
    background-color: #0D0D0D;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 2;
    transform: translateX(0px); /* Default position */
  }
  
  /* FORCE circle movement with higher specificity */
  html[data-theme="light"] .mobile-theme-toggle .theme-toggle-slider,
  body[data-theme="light"] .mobile-theme-toggle .theme-toggle-slider,
  [data-theme="light"] .mobile-theme-toggle .theme-toggle-slider {
    transform: translateX(29px) !important;
  }
  
  html[data-theme="dark"] .mobile-theme-toggle .theme-toggle-slider,
  body[data-theme="dark"] .mobile-theme-toggle .theme-toggle-slider,
  [data-theme="dark"] .mobile-theme-toggle .theme-toggle-slider {
    transform: translateX(0px) !important;
  }
  
  /* Icon styles */
  .mobile-theme-toggle .sun-icon {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    stroke: #0D0D0D;
    fill: none;
    z-index: 1;
  }
  
  .mobile-theme-toggle .moon-icon {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    fill: #0D0D0D;
    z-index: 1;
  }
  
  /* Icon colors */
  [data-theme="dark"] .mobile-theme-toggle .sun-icon {
    stroke: #FFFFFF !important;
  }

  [data-theme="dark"] .mobile-theme-toggle .moon-icon {
    stroke: #0D0D0D !important;
  }
  
  [data-theme="light"] .mobile-theme-toggle .moon-icon {
    fill: #FFFFFF !important;
  }
}


@media (max-width: 768px) {
  .header {
    top: 16px;
    width: calc(100vw - 32px);
  }
  
  .nav-container {
    padding: 0 20px;
    height: 50px;
    justify-content: center;
  }
  
  /* Hide ALL navigation variations */
  .nav-menu,
  .desktop-nav,
  ul.nav-menu,
  .nav-menu li,
  .nav-item {
    display: none !important;
  }
  
  /* Show only mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* ===== HERO SECTION MOBILE ===== */
@media (max-width: 767px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
  }
  
  .hero-container {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 140px);
  }
  
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 24px;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.4;
  }
  
  .hero-subtitle br {
    display: none;
  }
  
  .hero-cta-btn {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;     
    text-align: center;      
    width: 100%;             
  }
  
  .hero-cta-btn img {
    max-width: 180px;
    width: 100%;
    height: auto;
  }
  
  .hero-links {
    font-size: 14px;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  /* Hide decorative elements on mobile */
  .hero-doodle,
  .scroll-indicator {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .hero-section {
    padding-top: 60px;
    padding-bottom: 40px;
  }
  
  .hero-content {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }
  
  .hero-cta-btn img {
    max-width: 150px;
  }
  
  .hero-links {
    font-size: 13px;
  }
}

/* ===== EXPERTISE SECTION MOBILE ===== */
@media (max-width: 767px) {
  .expertise-section {
    padding: 60px 0 80px 0;
  }
  
  .expertise-title {
    font-size: 28px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .expertise-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .expertise-card {
    width: 100%;
    height: auto;
    min-height: 280px;
    padding: 24px;
    padding-bottom: 80px;
    position: relative;
  }
  
  .card-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .card-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .card-tags {
    margin-bottom: 24px;
  }
  
  .tag {
    font-size: 12px;
  }
  
  .see-projects-btn {
    bottom: 24px;
    right: 24px;
  }
  
  .view-all-skills {
    margin-top: 60px;
    margin-left: 0;
    text-align: center;
  }
  
  .view-all-btn img {
    max-width: 200px;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 390px) {
  .expertise-section {
    padding: 50px 0 60px 0;
  }
  
  .expertise-title {
    font-size: 24px;
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 32px;
  }
  
  .expertise-grid {
    margin-left: 16px;
    margin-right: 16px;
    gap: 20px;
  }
  
  .expertise-card {
    min-height: 260px;
    padding: 20px;
    padding-bottom: 70px;
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .card-description {
    font-size: 13px;
  }
  
  .tag {
    font-size: 11px;
  }
  
  .see-projects-btn {
    bottom: 20px;
    right: 20px;
  }
  
  .view-all-skills {
    margin-top: 50px;
  }
  
  .view-all-btn img {
    max-width: 180px;
  }
}

/* ===== MOBILE-ONLY FEATURED PROJECTS FIX ===== */
/* Add this to your mobile CSS section - replaces the existing featured projects mobile CSS */

@media (max-width: 767px) {
  /* Force section to stay within viewport */
  .featured-projects-section {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Force container to stay within bounds */
  .featured-projects-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Section header - contained within margins */
  .section-header {
    margin-top: 50px;
    margin-bottom: 40px;
    margin-left: 20px !important;
    margin-right: 20px !important;
    text-align: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .decorative-line {
    display: none !important;
  }
  
  .section-description {
    font-size: 14px;
    margin-top: 16px;
  }
  
  /* Projects list container */
  .projects-list {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Project cards - completely override desktop breakout behavior */
  .project-card {
    width: calc(100% - 40px) !important;  /* Full width minus side margins */
    max-width: calc(100% - 40px) !important;
    margin-left: 20px !important;         /* Side margin */
    margin-right: 20px !important;        /* Side margin */
    margin-bottom: 24px !important;
    height: auto !important;
    min-height: 200px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    
    /* Layout changes */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    
    /* Remove desktop border behavior */
    border-left: 1px solid #D9D9D9 !important;
    border-right: 1px solid #D9D9D9 !important;
    border-top: 1px solid #D9D9D9 !important;
    border-bottom: 1px solid #D9D9D9 !important;

    /* Add rounded corners */
    border-radius: 12px !important;  /* ← Add this line */
    
    /* Prevent any overflow */
    overflow: hidden !important;
    position: relative !important;
  }

  
  /* Dark mode border fix */
  [data-theme="dark"] .project-card {
    border-color: #333333 !important;
  }
  
  /* Project number line */
  .project-number-line {
    position: static !important;
    transform: none !important;
    margin-bottom: 16px !important;
    align-self: flex-start !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .project-line {
    width: 60px !important;
  }
  
  .project-number {
    font-size: 24px !important;
    margin-left: 8px !important;
  }
  
  /* Project content */
  .project-content {
    position: static !important;
    transform: none !important;
    left: auto !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .project-title {
    font-size: 20px !important;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .project-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  
  .project-tags .tag {
    font-size: 12px !important;
  }
  
  .project-tags .tag-separator {
    font-size: 12px !important;
  }
  
  /* View project button */
  .view-project-btn {
    position: static !important;
    transform: none !important;
    align-self: flex-start !important;
    margin-top: 0 !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
  
  /* View all projects button */
  .view-all-projects {
    margin-top: 50px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .view-all-projects-btn img {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 390px) {
  .featured-projects-section {
    padding-bottom: 60px !important;
  }
  
  .section-header {
    margin-top: 30px !important;
    margin-bottom: 32px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  
  .section-title {
    font-size: 24px !important;
  }
  
  .section-description {
    font-size: 13px !important;
  }
  
  .project-card {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 24px !important;
    height: auto !important;
    min-height: 200px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    
    /* Add rounded corners */
    border-radius: 12px !important;  /* ← Add this line */
    
    /* Layout changes */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    
    /* Remove desktop border behavior */
    border-left: 1px solid #D9D9D9 !important;
    border-right: 1px solid #D9D9D9 !important;
    border-top: 1px solid #D9D9D9 !important;
    border-bottom: 1px solid #D9D9D9 !important;
    
    /* Prevent any overflow */
    overflow: hidden !important;
    position: relative !important;
  }
  
  .project-title {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  .project-tags .tag {
    font-size: 11px !important;
  }
  
  .project-number {
    font-size: 20px !important;
  }
  
  .project-line {
    width: 50px !important;
  }
  
  .view-all-projects {
    margin-top: 40px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  
  .view-all-projects-btn img {
    max-width: 180px !important;
  }
}

/* ===== CTA SECTION MOBILE ===== */
@media (max-width: 767px) {
  .cta-section {
    padding: 60px 20px;
  }
  
  .cta-container {
    padding: 0;
  }
  
  .cta-content {
    padding: 0 20px;
  }
  
  .cta-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .cta-description {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 40px;
  }
  
  .say-hello-btn {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  
  .say-hello-btn img {
    max-width: 200px;
    width: 100%;
    height: auto;
  }
  
  .cta-social {
    gap: 24px;
    margin-top: 40px;
  }
  
  .cta-social .social-icon {
    width: 20px;
    height: 20px;
  }
  
  /* Hide decorative elements on mobile */
  .decorative-circle,
  .decorative-curve {
    display: none;
  }
}

@media (max-width: 390px) {
  .cta-section {
    padding: 50px 16px;
  }
  
  .cta-content {
    padding: 0;
  }
  
  .cta-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .cta-description {
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 32px;
  }
  
  .say-hello-btn {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  
  .say-hello-btn img {
    max-width: 180px;
  }
  
  .cta-social {
    gap: 20px;
    margin-top: 32px;
  }
  
  .cta-social .social-icon {
    width: 18px;
    height: 18px;
  }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 767px) {
  .footer {
    height: 180px;
    padding: 40px 20px;
  }
  
  .footer-nav {
    gap: 90px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-nav .nav-link {
    font-size: 14px;
  }
  
  .footer-social {
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .footer-social .social-icon {
    width: 20px;
    height: 20px;
  }
  
  .footer-copyright {
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .footer {
    height: 160px;
    padding: 32px 16px;
  }
  
  .footer-nav {
    gap: 32px;
    margin-bottom: 24px;
  }
  
  .footer-nav .nav-link {
    font-size: 13px;
  }
  
  .footer-social {
    gap: 20px;
    margin-bottom: 24px;
  }
  
  .footer-social .social-icon {
    width: 18px;
    height: 18px;
  }
  
  .footer-copyright {
    font-size: 11px;
  }
}

/* ===== MAIN CONTENT MOBILE SPACING ===== */
@media (max-width: 767px) {
  .main-content {
    padding-top: 0;
    min-height: auto;
    padding-bottom: 0;
  }
}

/* ===== DISABLE HOVER STATES ON TOUCH DEVICES ===== */
@media (hover: none) {
  .view-project-btn:hover .btn-light-normal,
  .view-project-btn:hover .btn-light-hover,
  .view-project-btn:hover .btn-dark-normal,
  .view-project-btn:hover .btn-dark-hover,
  .view-all-projects-btn:hover .btn-day-normal,
  .view-all-projects-btn:hover .btn-day-hover,
  .view-all-projects-btn:hover .btn-night-normal,
  .view-all-projects-btn:hover .btn-night-hover,
  .view-all-btn:hover .btn-day-normal,
  .view-all-btn:hover .btn-day-hover,
  .view-all-btn:hover .btn-night-normal,
  .view-all-btn:hover .btn-night-hover {
    opacity: inherit !important;
  }
  
  .see-projects-btn:hover .btn-light-normal,
  .see-projects-btn:hover .btn-light-hover,
  .see-projects-btn:hover .btn-dark-normal,
  .see-projects-btn:hover .btn-dark-hover {
    opacity: inherit !important;
  }
}

/* ===== ABOUT PAGE MOBILE RESPONSIVE FIXES ===== */

/* ===== 1. INTRODUCTION SECTION MOBILE FIXES ===== */
@media (max-width: 767px) {
  .about-introduction-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .about-introduction-container {
    margin-left: 20px !important;  /* Much wider margins */
    margin-right: 20px !important; /* Add right margin */
    padding-right: 0 !important;
    max-width: calc(100vw - 40px) !important;
  }
  
  .about-intro-title {
    font-size: 28px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .about-intro-description {
    font-size: 16px !important;
    line-height: 1.6 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  .about-introduction-container {
    margin-left: 16px !important;
    margin-right: 16px !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  .about-intro-title {
    font-size: 24px !important;
  }
  
  .about-intro-description {
    font-size: 14px !important;
  }
}

/* ===== 2. TIMELINE SECTION MOBILE FIXES ===== */
@media (max-width: 768px) {
  
  /* STEP 1: Completely hide all timeline visual elements */
  .timeline-desktop,
  .timeline-mobile,
  .timeline-svg-container,
  .timeline-svg,
  .timeline-svg-img,
  .timeline-years,
  .timeline-year {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
  }
  
  /* STEP 2: Reset timeline wrapper completely */
  .timeline-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
  }
  
  /* STEP 3: Force timeline containers to be a simple vertical list */
  .timeline-containers {
    display: block !important; /* Change from flex to block */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    height: auto !important;
    gap: 0 !important;
    flex-direction: initial !important;
    justify-content: initial !important;
    align-items: initial !important;
  }
  
  /* STEP 4: Style individual timeline items */
  .timeline-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 0 40px 0 !important;
    padding: 0 0 0 24px !important;
    height: auto !important;
    min-height: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    border-left: 3px solid #D52128 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #000000 !important;
  }
  
  /* Dark mode timeline container text */
  [data-theme="dark"] .timeline-container {
    color: #DCDEDF !important;
  }
  
  /* STEP 5: Add year headers using CSS content */
  .timeline-container:nth-child(1)::before {
    content: "2021" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
  }
  
  .timeline-container:nth-child(2)::before {
    content: "2022" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
  }
  
  .timeline-container:nth-child(3)::before {
    content: "2023" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
  }
  
  .timeline-container:nth-child(4)::before {
    content: "2024" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
  }
  
  .timeline-container:nth-child(5)::before {
    content: "2025" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
  }
  
  /* STEP 6: Style timeline content */
  .timeline-container p {
    margin: 0 0 16px 0 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: inherit !important;
  }
  
  .timeline-container p:last-child {
    margin-bottom: 0 !important;
  }
  
  .timeline-container ul {
    margin: 16px 0 !important;
    padding-left: 20px !important;
    list-style-type: disc !important;
  }
  
  .timeline-container li {
    margin-bottom: 8px !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: inherit !important;
  }
  
  .timeline-container li:last-child {
    margin-bottom: 0 !important;
  }
  
  /* STEP 7: Remove any animation states */
  .timeline-wrapper,
  .timeline-container,
  .timeline-year {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* STEP 8: Last timeline item extra spacing */
  .timeline-container:last-child {
    margin-bottom: 60px !important;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 390px) {
  .timeline-container {
    padding-left: 20px !important;
    margin-bottom: 35px !important;
  }
  
  .timeline-container:nth-child(1)::before,
  .timeline-container:nth-child(2)::before,
  .timeline-container:nth-child(3)::before,
  .timeline-container:nth-child(4)::before,
  .timeline-container:nth-child(5)::before {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }
  
  .timeline-container p {
    font-size: 13px !important;
  }
  
  .timeline-container li {
    font-size: 13px !important;
  }
  
  .timeline-container:last-child {
    margin-bottom: 50px !important;
  }
}

/* STEP 9: Override any JavaScript-set inline styles (if needed) */
.timeline-wrapper[style] {
  display: block !important;
  opacity: 1 !important;
}

.timeline-container[style] {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ===== 3. EXPERIENCE SECTION MOBILE FIXES ===== */
@media (max-width: 767px) {
  .about-experience-section {
    padding-bottom: 80px !important;
  }
  
  .about-experience-header {
    padding-top: 60px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 40px !important;
    max-width: calc(100vw - 40px) !important;
  }
  
  .about-experience-title {
    font-size: 28px !important;
    margin-bottom: 16px !important;
  }
  
  .about-experience-description {
    font-size: 16px !important;
    max-width: 100% !important;
  }
  
  .about-experience-content {
    flex-direction: column !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    gap: 40px !important;
  }
  
  .experience-column-title,
  .education-column-title {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }
  
  .experience-card,
  .education-card {
    width: 100% !important;
    min-height: auto !important;
    padding: 24px !important;
  }
  
  /* FIXED: Decorative element alignment */
  .entry-header {
    gap: 15px !important;
    margin-bottom: 16px !important;
    align-items: flex-start !important; /* Align to top */
  }
  
  .entry-decorative {
    width: 16px !important;
    height: 50px !important; /* Match logo height area */
    margin-top: 0 !important; /* Remove any top margin */
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: flex-start !important; /* Align icon to top of container */
  }
  
  .decorative-icon {
    width: 100% !important;
    height: auto !important;
    margin-top: 15px !important; /* Push icon down to align with logo center */
  }
  
  .entry-logo {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important; /* Center logo vertically */
  }
  
  .company-logo,
  .university-logo {
    max-height: 45px !important;
    max-width: 160px !important;
  }
  
  .entry-date,
  .entry-title,
  .entry-description {
    margin-left: 31px !important; /* Align with logo, accounting for decorative width + gap */
  }
  
  .entry-title {
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }
  
  .entry-description {
    font-size: 13px !important;
  }
  
  .experience-entry,
  .education-entry {
    margin-bottom: 35px !important;
  }
}

@media (max-width: 390px) {
  .about-experience-header {
    margin-left: 16px !important;
    margin-right: 16px !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  .about-experience-content {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  
  .about-experience-title {
    font-size: 24px !important;
  }
  
  .about-experience-description {
    font-size: 14px !important;
  }
  
  .experience-column-title,
  .education-column-title {
    font-size: 20px !important;
  }
  
  .entry-decorative {
    width: 14px !important;
    height: 45px !important;
  }
  
  .decorative-icon {
    margin-top: 12px !important;
  }
  
  .company-logo,
  .university-logo {
    max-height: 40px !important;
    max-width: 140px !important;
  }
  
  .entry-date,
  .entry-title,
  .entry-description {
    margin-left: 29px !important;
  }
}

/* ===== 4. SELF-LEARNING SECTION MOBILE FIXES ===== */
@media (max-width: 767px) {
  .about-courses-section {
    padding-bottom: 80px !important;
  }
  
  .about-courses-header {
    padding-top: 60px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 40px !important;
    max-width: calc(100vw - 40px) !important;
  }
  
  .about-courses-title {
    font-size: 28px !important;
    margin-bottom: 16px !important;
  }
  
  .about-courses-description {
    font-size: 16px !important;
    max-width: 100% !important;
  }
  
  .courses-accordion {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
  
  .accordion-header {
    padding: 16px 20px !important;
  }
  
  .accordion-title {
    font-size: 18px !important;
  }
  
  .accordion-text {
    padding: 0 20px 20px 20px !important;
    font-size: 14px !important;
    line-height: 20px !important;
  }
}

@media (max-width: 390px) {
  .about-courses-header {
    margin-left: 16px !important;
    margin-right: 16px !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  .about-courses-title {
    font-size: 24px !important;
  }
  
  .about-courses-description {
    font-size: 14px !important;
  }
  
  .courses-accordion {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  
  .accordion-title {
    font-size: 16px !important;
  }
  
  .accordion-text {
    font-size: 13px !important;
    line-height: 18px !important;
  }
}

@media (max-width: 767px) {
  
  /* Timeline section container - controls overall margins */
  .about-timeline-container {
    margin-left: 20px !important;
    margin-right: 20px !important;
    max-width: calc(100vw - 40px) !important;
  }
  
  /* Main timeline title - "Marketing first mindset." */
  .about-timeline-title {
    font-size: 28px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
  }
  
  /* Subtitle - "Mixing analytical & technical thinking..." */
  .about-timeline-subtitle {
    font-size: 18px !important;
    margin-bottom: 30px !important;
    line-height: 1.3 !important;
  }
  
  /* Main description text - paragraph above timeline */
  .about-timeline-content {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Paragraph spacing within content */
  .about-timeline-content p {
    margin-bottom: 16px !important;
  }
  
  .about-timeline-content p:last-child {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 390px) {
  
  /* Smaller margins for very small screens */
  .about-timeline-container {
    margin-left: 16px !important;
    margin-right: 16px !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  /* Smaller font sizes for small screens */
  .about-timeline-title {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }
  
  .about-timeline-subtitle {
    font-size: 16px !important;
    margin-bottom: 24px !important;
  }
  
  .about-timeline-content {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 32px !important;
  }
  
  .about-timeline-content p {
    margin-bottom: 14px !important;
  }
}

/* ===== 5. ADDITIONAL MOBILE FIXES ===== */

/* Problem Solving Section Mobile */
@media (max-width: 767px) {
  .problem-solving-section {
    padding: 50px 0 80px !important;
  }
  
  .problem-solving-intro {
    padding: 0 20px !important;
  }
  
  .problem-solving-steps {
    padding: 0 20px !important;
  }
}

@media (max-width: 390px) {
  .problem-solving-intro {
    padding: 0 16px !important;
  }
  
  .problem-solving-steps {
    padding: 0 16px !important;
  }
}

/* About CTA Section Mobile */
@media (max-width: 767px) {
  .about-cta-section {
    padding: 80px 20px !important;
  }
  
  .about-cta-container {
    padding: 0 !important;
  }
}

@media (max-width: 390px) {
  .about-cta-section {
    padding: 60px 16px !important;
  }
}

/* Skills Section Mobile */
@media (max-width: 767px) {
  .about-skills-header {
    margin-left: 20px !important;
    margin-right: 20px !important;
    max-width: calc(100vw - 40px) !important;
  }
  
  .about-skills-subtitle {
    margin-left: 20px !important;
  }
  
  .about-skills-grid {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}

@media (max-width: 390px) {
  .about-skills-header {
    margin-left: 16px !important;
    margin-right: 16px !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  .about-skills-subtitle {
    margin-left: 16px !important;
  }
  
  .about-skills-grid {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}

/* ===== CONTACT PAGE MOBILE RESPONSIVE FIXES ===== */

/* ===== ENHANCED MOBILE LAYOUT (767px and below) ===== */
@media (max-width: 767px) {
  
  /* Contact page container */
  .contact-page {
    padding: 150px 0 60px 0 !important; /* Increased from 80px to 120px */
  }
  
  .contact-page .container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important; /* Consistent side padding */
  }
  
  /* Single column layout for mobile */
  .contact-content {
    display: block !important; /* Change from grid to block */
    gap: 0 !important;
    width: 100% !important;
  }
  
  /* ===== FORM SECTION ===== */
  .contact-form-section {
    max-width: 100% !important;
    margin-bottom: 50px !important; /* Space between form and info */
  }
  
  /* Contact header - mobile optimized */
  .contact-header {
    margin-bottom: 40px !important;
    text-align: center !important; /* Center align on mobile */
  }
  
  .contact-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 32px !important; /* Smaller but readable */
    line-height: 1.2 !important;
    color: var(--contact-title-color) !important;
    margin: 0 0 20px 0 !important;
    margin-top: 40px !important;
  }
  
  .contact-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important; /* Slightly smaller */
    line-height: 1.4 !important;
    color: var(--contact-description-color) !important;
    margin: 0 !important;
  }
  
  /* Contact form - mobile optimized */
  .contact-form {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 15px !important;
    padding: 30px !important; /* Reduced padding */
    box-sizing: border-box !important;
  }
  
  .form-group {
    margin-bottom: 30px !important; /* Consistent spacing */
  }
  
  .form-group:last-of-type {
    margin-bottom: 35px !important;
  }
  
  /* Form inputs - mobile optimized */
  .contact-form input,
  .contact-form textarea {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--form-border) !important; /* Thicker for mobile */
    padding: 18px 0 !important; /* More padding for easier tapping */
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important; /* Larger for readability */
    color: var(--input-text-color) !important;
    outline: none !important;
    resize: none !important;
    line-height: 1.4 !important;
    -webkit-appearance: none !important; /* Remove iOS styling */
    -moz-appearance: none !important;
    appearance: none !important;
  }
  
  /* Placeholder text - mobile optimized */
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    color: var(--form-placeholder) !important;
    opacity: 1 !important;
  }
  
  /* Focus states - enhanced for mobile */
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-bottom-color: #D52128 !important;
    border-bottom-width: 3px !important; /* Thicker focus indicator */
  }
  
  /* Textarea specific */
  .contact-form textarea {
    min-height: 80px !important; /* Larger minimum height */
    max-height: 200px !important; /* Prevent excessive height */
  }
  
  /* Submit button - mobile optimized */
  .submit-btn {
    width: 100% !important; /* Full width on mobile */
    max-width: 300px !important; /* But with reasonable max */
    height: 55px !important; /* Larger for easier tapping */
    border-radius: 8px !important;
    border: none !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 500 !important; /* Slightly bolder */
    font-size: 16px !important;
    color: #F8F8F8 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important; /* Center the button */
    display: block !important;
  }
  
  .submit-btn:hover,
  .submit-btn:active {
    opacity: 0.9 !important;
    transform: translateY(1px) !important;
  }
  
  /* ===== INFO SECTION ===== */
  .contact-info-section {
    text-align: left !important; /* Changed from center to left */
  }
  
  .info-title {
    text-align: left !important; /* Left align title */
    margin: 0 0 30px 0 !important;
  }
  
  /* Contact links - mobile layout */
  .contact-links {
    align-items: flex-start !important; /* Changed from center to flex-start */
  }
  
  .contact-link {
    justify-content: flex-start !important; /* Ensure links align left */
    text-align: left !important;
    width: 100% !important;
    max-width: 300px !important; /* Optional: limit width for better readability */
  }
  
  .contact-link:hover,
  .contact-link:active {
    opacity: 0.8 !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
  }
  
  [data-theme="dark"] .contact-link:hover,
  [data-theme="dark"] .contact-link:active {
    background-color: rgba(255, 255, 255, 0.05) !important;
  }
  
  /* Contact icons - mobile size */
  .contact-icon {
    width: 35px !important; /* Slightly smaller */
    height: 35px !important;
    margin-right: 20px !important; /* Reduced margin */
    flex-shrink: 0 !important;
  }
  
  .contact-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  
  /* Contact text - mobile optimized */
  .contact-text {
    text-align: left !important;
  }
}

/* ===== SMALLER MOBILE DEVICES (390px and below) ===== */
@media (max-width: 390px) {
  
  /* Further optimizations for small screens */
  .contact-page {
    padding: 130px 0 50px 0 !important; /* Slightly less but still more than original */
  }
  
  .contact-page .container {
    padding: 0 16px !important; /* Tighter margins */
  }
  
  /* Header adjustments */
  .contact-title {
    font-size: 28px !important;
    margin-top: 30px !important;
    margin-bottom: 16px !important;
  }
  
  .contact-description {
    font-size: 16px !important;
  }
  
  /* Form adjustments */
  .contact-form {
    padding: 24px !important;
    border-radius: 12px !important;
  }
  
  .form-group {
    margin-bottom: 25px !important;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 16px 0 !important;
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    font-size: 16px !important;
  }
  
  /* Submit button */
  .submit-btn {
    height: 50px !important;
    font-size: 15px !important;
  }
  
  /* Info section */
  .info-title {
    text-align: left !important;
    margin-bottom: 24px !important;
  } 
  
  .contact-links {
    gap: 25px !important;
  }
  
  .contact-icon {
    width: 30px !important;
    height: 30px !important;
    margin-right: 16px !important;
  }
  
  .contact-text {
    font-size: 14px !important;
  }
}

/* ===== ACCESSIBILITY & TOUCH IMPROVEMENTS ===== */
@media (max-width: 767px) {
  
  /* Improve touch targets */
  .contact-form input,
  .contact-form textarea {
    min-height: 44px !important; /* Minimum touch target */
  }
  
  /* Focus visible for keyboard navigation */
  .contact-form input:focus-visible,
  .contact-form textarea:focus-visible,
  .submit-btn:focus-visible,
  .contact-link:focus-visible {
    outline: 3px solid #D52128 !important;
    outline-offset: 2px !important;
  }
  
  /* Prevent horizontal scroll */
  .contact-page,
  .contact-content,
  .contact-form,
  .contact-info-section {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
}

/* ===== DARK MODE MOBILE SPECIFIC ADJUSTMENTS ===== */
@media (max-width: 767px) {
  [data-theme="dark"] .contact-title {
    color: #F8F8F8 !important;
  }
  
  [data-theme="dark"] .contact-description {
    color: #F8F8F8 !important;
  }
  
  [data-theme="dark"] .info-title {
    color: #F8F8F8 !important;
  }
  
  [data-theme="dark"] .contact-form {
    background-color: #2C2C2C !important;
  }
  
  [data-theme="dark"] .submit-btn {
    background-color: #0D0D0D !important;
  }
}



/* ===== PORTFOLIO MOBILE COMPLETE FIX - CLEAN IMPLEMENTATION ===== */

@media (max-width: 767px) {
  
    /* ===== 1. DROPDOWN APPROACH FROM SCRATCH ===== */

    /* Hide desktop filter buttons */
    .portfolio-filters {
    display: none !important;
    }

    /* Create dropdown container */
    .portfolio-dropdown-container {
    display: flex !important;
    justify-content: center !important;
    margin-top: 60px !important;
    margin-bottom: 40px !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    }

    /* Dropdown wrapper */
    .portfolio-filter-dropdown {
    position: relative !important;
    width: 100% !important;
    max-width: 280px !important;
    display: block !important;
    }

    .dropdown-select,
    #portfolio-mobile-filter {
    /* Remove browser default styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Override browser focus colors */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    
    /* OVERRIDE BROWSER DEFAULT BLUE - Use accent-color */
    accent-color: #D52128 !important;
    color-scheme: light !important;
    }
    
    /* Selected option styling - override blue */
    .dropdown-select option:checked,
    #portfolio-mobile-filter option:checked {
    background-color: #D52128 !important; /* Red background instead of blue */
    color: #FFFFFF !important; /* White text on red background */
    }
    
    /* Hover option styling */
    .dropdown-select option:hover,
    #portfolio-mobile-filter option:hover {
    background-color: rgba(213, 33, 40, 0.1) !important; /* Light red background */
    color: #D52128 !important; /* Red text */
    }
    
    /* All options default styling */
    .dropdown-select option,
    #portfolio-mobile-filter option {
    background-color: #FFFFFF !important; /* White background */
    color: #374151 !important; /* Dark text */
    padding: 8px 12px !important; /* Add padding for better touch targets */
    }
    
    /* Remove browser default focus outline */
    .dropdown-select:focus,
    #portfolio-mobile-filter:focus {
    outline: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: 0 0 0 3px rgba(213, 33, 40, 0.08) !important; /* Your custom red glow */
    border-color: #D52128 !important; /* Red border instead of blue */
    }
    
    /* Override any webkit/safari specific blue styling */
    .dropdown-select::-webkit-focus-inner,
    #portfolio-mobile-filter::-webkit-focus-inner {
    border: 0 !important;
    outline: none !important;
    }
    
    /* Firefox specific overrides */
    .dropdown-select::-moz-focus-inner,
    #portfolio-mobile-filter::-moz-focus-inner {
    border: 0 !important;
    outline: none !important;
    }
    
    /* Dark mode selected option */
    [data-theme="dark"] .dropdown-select,
    [data-theme="dark"] #portfolio-mobile-filter {
    accent-color: #D52128 !important;
    color-scheme: dark !important;
    }
    
    [data-theme="dark"] .dropdown-select option:checked,
    [data-theme="dark"] #portfolio-mobile-filter option:checked {
    background-color: #D52128 !important;
    color: #FFFFFF !important;
    }
    
    [data-theme="dark"] .dropdown-select option:hover,
    [data-theme="dark"] #portfolio-mobile-filter option:hover {
    background-color: rgba(213, 33, 40, 0.2) !important;
    color: #D52128 !important;
    }
    
    [data-theme="dark"] .dropdown-select option,
    [data-theme="dark"] #portfolio-mobile-filter option {
    background-color: #1F2937 !important;
    color: #F9FAFB !important;
    }

    /* The actual select element */
    .dropdown-select,
    .portfolio-category-dropdown,
    select.portfolio-filter {
    width: 100% !important;
    height: 50px !important;
    background-color: #FFFFFF !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 0 50px 0 16px !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #374151 !important; /* Keep text neutral */
    cursor: pointer !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    transition: all 0.3s ease !important;
    /* RED ARROW - Subtle red accent */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D52128' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 20px !important;
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
    }

    /* Focus and hover states */
    .dropdown-select:focus,
    .portfolio-category-dropdown:focus,
    select.portfolio-filter:focus {
    border-color: #D52128 !important; /* RED FOCUS - Your red color */
    box-shadow: 0 0 0 3px rgba(213, 33, 40, 0.08) !important; /* Subtle red glow */
    }

    .dropdown-select:hover,
    .portfolio-category-dropdown:hover,
    select.portfolio-filter:hover {
    border-color: #F8D7DA !important; /* SUBTLE RED HOVER - Very light red */
    background-color: #FEFEFE !important; /* Slightly brighter white */
    }

    /* Dark mode dropdown */
    [data-theme="dark"] .dropdown-select,
    [data-theme="dark"] .portfolio-category-dropdown,
    [data-theme="dark"] select.portfolio-filter {
    background-color: #1F2937 !important;
    border-color: #374151 !important;
    color: #F9FAFB !important;
    /* RED ARROW IN DARK MODE - Same red arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D52128' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    }

    /* Dark mode focus state */
    [data-theme="dark"] .dropdown-select:focus,
    [data-theme="dark"] .portfolio-category-dropdown:focus,
    [data-theme="dark"] select.portfolio-filter:focus {
    border-color: #D52128 !important; /* RED FOCUS in dark mode */
    box-shadow: 0 0 0 3px rgba(213, 33, 40, 0.15) !important; /* Slightly more visible red glow in dark */
    }

    [data-theme="dark"] .dropdown-select:hover,
    [data-theme="dark"] .portfolio-category-dropdown:hover,
    [data-theme="dark"] select.portfolio-filter:hover {
    border-color: #4B5563 !important; /* Keep neutral gray hover in dark mode */
    background-color: #252F3F !important; /* Slightly lighter dark background */
    }
  
  /* ===== 2. TOOLS CONTAINERS - CLEAN LAYOUT ===== */
  
  .tools-section {
    background-color: #ffffff !important;
    padding: 60px 0 80px !important;
  }
  
  [data-theme="dark"] .tools-section {
    background-color: #0D0D0D !important;
  }
  
  .tools-container {
    max-width: 100% !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
  }
  
  .tools-title {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 600 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 0 16px 0 !important;
    color: #000000 !important;
  }
  
  [data-theme="dark"] .tools-title {
    color: #ffffff !important;
  }
  
  .tools-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin: 0 0 50px 0 !important;
    color: #666666 !important;
    text-align: center !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  [data-theme="dark"] .tools-description {
    color: #cccccc !important;
  }
  
  /* Tools grid - centered */
  .tools-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* Tool cards - consistent and clean */
  .tool-card {
    width: 100% !important;
    max-width: 300px !important;
    background-color: #F8F9FA !important;
    border: 2px solid #E9ECEF !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
    min-height: 180px !important;
  }
  
  [data-theme="dark"] .tool-card {
    background-color: #1F2937 !important;
    border-color: #374151 !important;
  }
  
  .tool-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: #FF4444 !important;
  }
  
  /* Tool category titles - centrally aligned */
  .tool-category {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: #374151 !important;
    text-align: center !important;
    margin: 16px 0 0 0 !important;
    order: 2 !important; /* Ensure title comes after icons */
  }
  
  [data-theme="dark"] .tool-category {
    color: #D1D5DB !important;
  }
  
  /* Icons container - proper 3-per-row layout */
  .tool-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 240px !important;
    order: 1 !important; /* Ensure icons come before title */
  }
  
  /* Each icon - consistent sizing */
  .tool-icon {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
  }
  
  .tool-icon:hover {
    transform: scale(1.1) !important;
  }

  /* Portfolio card titles - improved readability */
  .portfolio-card .card-title,
  .card-title {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important; /* Changed from 600 to 400 (less bold) */
    font-size: 16px !important; /* Changed from 18px to 16px (smaller) */
    line-height: 1.5 !important; /* Changed from 1.4 to 1.5 (more space between lines) */
    margin: 0 0 12px !important;
    color: #FFFFFF !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important; /* Add subtle shadow for better readability */
  }
  
  /* Ensure proper spacing in card content */
  .portfolio-card .card-content,
  .card-content {
    padding: 30px 16px 16px !important;
    min-height: 100px !important;
  }
  
  /* Card tags - also improve spacing */
  .portfolio-card .card-tags,
  .card-tags {
    margin-top: 8px !important; /* Reduced from 12px for better proportions */
    gap: 6px !important;
  }
  
  .portfolio-card .card-tag,
  .card-tag {
    font-size: 12px !important;
    padding: 3px 6px !important; /* Slightly smaller padding */
    border-radius: 4px !important; /* Smaller border radius */
  }
  
  /* ===== SPECIFIC CONTAINER LAYOUTS ===== */
  
  /* Planning & Project Management - 3 icons in one row */
  .tool-card[data-category="planning"] .tool-icons {
    max-width: 180px !important;
  }
  
  /* CRM - 3 icons total, auto-wrap (HubSpot, Salesforce, Dynamics) */
  .tool-card[data-category="crm"] .tool-icons {
    max-width: 180px !important;
  }
  
  /* AI & Research - 4 icons: 3 in first row, 1 centered in second */
  .tool-card[data-category="ai"] .tool-icons {
    max-width: 180px !important;
  }
  
  /* Data Science - 5 icons: 3 in first row, 2 in second row */
  .tool-card[data-category="data-science"] .tool-icons {
    max-width: 180px !important;
  }
  
  /* Creative - 8 icons: 3-3-2 layout */
  .tool-card[data-category="creative"] .tool-icons {
    max-width: 180px !important;
  }
}

  /* ===== 3. VIEW ALL SKILLS BUTTON - SINGLE LINE FIX ===== */
  /* View All Skills Theme Switching - FIXED */
.view-all-btn {
  position: relative !important;
  display: inline-block !important;
}

.view-all-icon {
  transition: opacity 0.3s ease !important;
}

/* Day mode - show day icon only */
.view-all-day {
  display: block !important;
  opacity: 1 !important;
  position: relative !important;
}

.view-all-dark {
  display: none !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Dark mode - show dark icon only */
[data-theme="dark"] .view-all-day {
  display: none !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

[data-theme="dark"] .view-all-dark {
  display: block !important;
  opacity: 1 !important;
  position: relative !important;
}

/* ===== SMALLER MOBILE DEVICES (390px and below) ===== */
@media (max-width: 390px) {
  
  .portfolio-dropdown-container,
  .portfolio-filter-container {
    padding: 0 16px !important;
    margin: 50px 16px 30px !important;
  }
  
  .tools-container {
    padding: 0 16px !important;
  }
  
  .tools-title {
    font-size: 24px !important;
  }
  
  .tools-description {
    font-size: 14px !important;
  }
  
  .tool-card {
    max-width: 280px !important;
    padding: 20px !important;
    min-height: 160px !important;
  }
  
  .tool-icon {
    width: 32px !important;
    height: 32px !important;
  }
  
  .tool-category {
    font-size: 14px !important;
  }
  
  .view-all-btn img {
    height: 26px !important;
  }
  
  /* Adjust icon container max-width for smaller screens */
  .tool-icons {
    max-width: 200px !important;
    gap: 12px !important;
  }

  .dropdown-select,
  .portfolio-category-dropdown,
  select.portfolio-filter,
  .portfolio-filter-select {
    font-size: 15px !important;
    height: 46px !important;
  }
  
  /* Smaller card titles for very small screens */
  .portfolio-card .card-title,
  .card-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  
  .portfolio-card .card-content,
  .card-content {
    padding: 25px 12px 12px !important;
    min-height: 90px !important;
  }
  
  .portfolio-card .card-tag,
  .card-tag {
    font-size: 11px !important;
    padding: 2px 5px !important;
  }

}

/* ===== EXTRA SMALL DEVICES (320px and below) ===== */
@media (max-width: 320px) {
  
  .tool-card {
    max-width: 260px !important;
    padding: 16px !important;
  }
  
  .tool-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  .tool-icons {
    max-width: 180px !important;
    gap: 10px !important;
  }
  
  .view-all-btn img {
    height: 24px !important;
  }
}



/* ===== PORTFOLIO SINGLE PAGE MOBILE FIXES ===== */

@media (max-width: 767px) {
  
  /* ===== 1. HEADER/BREADCRUMB FIXES ===== */
  
  /* Portfolio single page container */
  .portfolio-single {
    padding-top: 100px !important; /* Reduced from desktop padding */
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Portfolio hero section */
  .portfolio-hero {
    padding: 20px !important;
    background-color: #F8F8F8 !important;
    overflow-x: hidden !important;
  }
  
  [data-theme="dark"] .portfolio-hero {
    background-color: #111111 !important;
  }
  
  /* Container with proper margins */
  .portfolio-hero .container,
  .portfolio-content .container {
    max-width: 100% !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  
  /* Breadcrumb navigation */
  .portfolio-breadcrumb {
    margin-bottom: 20px !important;
    font-size: 12px !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }
  
  .breadcrumb-link,
  .breadcrumb-current {
    display: inline !important;
    font-size: 12px !important;
  }
  
  .breadcrumb-separator {
    margin: 0 4px !important;
    font-size: 12px !important;
  }
  
  /* Portfolio header */
  .portfolio-header {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Main title - prevent overflow */
  .portfolio-single-title {
    font-size: 24px !important; /* Reduced from desktop */
    line-height: 1.3 !important;
    margin: 0 0 16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
  }
  
  /* Description */
  .portfolio-single-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 0 20px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Meta information */
  .portfolio-meta {
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
  
  .meta-group {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  
  .meta-tags {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  
  .meta-tag {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }
  
  /* Action buttons */
  .portfolio-actions {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  .btn {
    width: 100% !important;
    max-width: 200px !important;
    text-align: center !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
  }
  
  /* ===== 2. CONTENT SECTION FIXES ===== */
  
  .portfolio-content {
    padding: 40px 0 !important;
    overflow-x: hidden !important;
  }
  
  .content-grid {
    display: block !important; /* Single column on mobile */
    gap: 0 !important;
  }
  
  /* Table of contents - hide on mobile or make it collapsible */
  .portfolio-toc {
    display: none !important; /* Hide on mobile for space */
  }
  
  /* Portfolio body */
  .portfolio-body {
    font-size: 14px !important;
    line-height: 1.6 !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
  }
  
  .portfolio-body h2 {
    font-size: 20px !important;
    margin: 30px 0 15px !important;
    word-wrap: break-word !important;
  }
  
  .portfolio-body h3 {
    font-size: 18px !important;
    margin: 25px 0 12px !important;
    word-wrap: break-word !important;
  }
  
  .portfolio-body p {
    font-size: 14px !important;
    margin: 0 0 16px !important;
  }
  
  /* Images responsive */
  .portfolio-body img,
  .featured-image {
    max-width: 100% !important;
    height: auto !important;
    margin: 16px 0 !important;
  }
  
  /* ===== 3. NAVIGATION SECTION FIXES ===== */
  
/* ===== 3. NAVIGATION SECTION FIXES ===== */
  
  .portfolio-navigation {
    padding: 40px 0 !important;
    overflow-x: hidden !important;
    border-top: 1px solid #e0e0e0 !important;
  }
  
  [data-theme="dark"] .portfolio-navigation {
    border-top-color: #333333 !important;
  }
  
  .portfolio-navigation .container {
    padding: 0 20px !important;
    max-width: 100% !important;
  }
  
  /* Navigation grid - stack vertically on mobile */
  .portfolio-navigation .nav-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  
  .portfolio-navigation .nav-prev,
  .portfolio-navigation .nav-next,
  .portfolio-navigation .nav-back {
    width: 100% !important;
    text-align: center !important;
    justify-self: center !important;
  }
  
  /* SPECIFIC TO PORTFOLIO NAVIGATION ONLY - NOT FOOTER */
  .portfolio-navigation .nav-link {
    display: block !important;
    padding: 12px 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background-color: #FFFFFF !important;
    transition: all 0.3s ease !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
  }
  
  [data-theme="dark"] .portfolio-navigation .nav-link {
    border-color: #333333 !important;
    background-color: #1a1a1a !important;
  }
  
  .portfolio-navigation .nav-link:hover {
    background-color: #f5f5f5 !important;
    transform: translateY(-2px) !important;
  }
  
  [data-theme="dark"] .portfolio-navigation .nav-link:hover {
    background-color: #2a2a2a !important;
  }
  
  /* Navigation text - PORTFOLIO ONLY */
  .portfolio-navigation .nav-direction {
    font-size: 12px !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
    opacity: 0.7 !important;
  }
  
  .portfolio-navigation .nav-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
  }
  
  /* Back to Portfolio button - PORTFOLIO ONLY */
  .portfolio-navigation .nav-back .nav-link {
    background-color: #D52128 !important;
    color: #FFFFFF !important;
    border-color: #D52128 !important;
    font-weight: 600 !important;
  }
  
  .portfolio-navigation .nav-back .nav-link:hover {
    background-color: #B91C1C !important;
  }
  
  /* ===== PRESERVE FOOTER STYLING ===== */
  
  /* Ensure footer links remain clean - override any conflicting styles */
  .footer .nav-link,
  .footer a {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  
  .footer .nav-link:hover,
  .footer a:hover {
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* ===== 4. TOOLS SECTION MOBILE ===== */
  
  .portfolio-tools {
    padding: 40px 0 !important;
    overflow-x: hidden !important;
  }
  
  .portfolio-tools .container {
    padding: 0 20px !important;
  }
  
  .portfolio-tools h2 {
    font-size: 20px !important;
    margin-bottom: 20px !important;
  }
  
  .tools-grid {
    gap: 8px !important;
  }
  
  .tool-item {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  
  /* ===== 5. GENERAL MOBILE FIXES ===== */
  
  /* Prevent any horizontal scrolling - EXCLUDE FOOTER */
  .portfolio-single .portfolio-hero,
  .portfolio-single .portfolio-content,
  .portfolio-single .portfolio-navigation,
  .portfolio-single .portfolio-tools {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* PRESERVE ORIGINAL FOOTER - Do not modify */
  .footer {
    /* Keep existing footer styles unchanged */
  }
  
  /* Fix any overflowing tables */
  .portfolio-body table {
    width: 100% !important;
    font-size: 12px !important;
    overflow-x: auto !important;
    display: block !important;
    white-space: nowrap !important;
  }
  
  .portfolio-body th,
  .portfolio-body td {
    padding: 8px 4px !important;
    font-size: 12px !important;
  }
  
  /* Fix code blocks */
  .portfolio-body pre {
    overflow-x: auto !important;
    font-size: 12px !important;
    padding: 12px !important;
  }
  
  .portfolio-body code {
    font-size: 12px !important;
  }
}

/* ===== SMALLER MOBILE (390px and below) ===== */
@media (max-width: 390px) {
  
  .portfolio-hero .container,
  .portfolio-content .container,
  .portfolio-navigation .container {
    padding: 0 16px !important;
  }
  
  .portfolio-single-title {
    font-size: 20px !important;
  }
  
  .portfolio-single-description {
    font-size: 13px !important;
  }
  
  .portfolio-body {
    font-size: 13px !important;
  }
  
  .portfolio-body h2 {
    font-size: 18px !important;
  }
  
  .portfolio-body h3 {
    font-size: 16px !important;
  }
  
  .nav-title {
    font-size: 13px !important;
  }
  
  .nav-direction {
    font-size: 11px !important;
  }
}



/* ===== COMPLETE MOBILE LANDSCAPE BREAKPOINTS ===== */

/* ===== 1. SMALL MOBILE LANDSCAPE (iPhone SE, iPhone 12 mini, etc.) ===== */
/* ===== EXTENDED SMALL-MEDIUM MOBILE LANDSCAPE FIX ===== */
/* Covers iPhone SE, Galaxy S8+, and similar devices */
/* Dimensions: 568px-780px width × 320px-390px height */

@media (min-width: 568px) and (max-width: 780px) and (orientation: landscape) and (max-height: 390px) {
  
  /* ===== 1. HERO SECTION UNIVERSAL FIX ===== */
  
  .hero-section {
    min-height: 85vh !important;
    padding-top: 70px !important; /* INCREASED for both devices */
    padding-bottom: 25px !important;
    overflow-x: hidden !important;
  }
  
  .hero-container {
    min-height: calc(85vh - 95px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .hero-title {
    font-size: 24px !important; /* Slightly larger for better readability */
    line-height: 1.2 !important;
    margin-bottom: 18px !important;
    word-wrap: break-word !important;
  }
  
  .hero-subtitle {
    font-size: 14px !important; /* More readable */
    margin-bottom: 24px !important;
    line-height: 1.4 !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .hero-cta-btn {
    margin-bottom: 24px !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .hero-cta-btn img {
    max-width: 140px !important; /* Larger for better visibility */
    width: auto !important;
    height: auto !important;
  }
  
  .hero-links {
    font-size: 12px !important; /* More readable */
    justify-content: center !important;
    gap: 6px !important;
  }
  
  /* ===== 2. ABOUT HERO SECTION FIX ===== */
  
  .about-hero-section {
    min-height: 85vh !important;
    padding-top: 70px !important;
    padding-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .about-hero-content {
    padding: 40px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    min-height: auto !important;
    max-width: 90% !important;
  }
  
  .about-hero-title {
    font-size: 24px !important;
    margin-bottom: 18px !important;
    line-height: 1.2 !important;
  }
  
  .about-hero-description {
    font-size: 14px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }
  
  /* ===== 3. FOOTER COMPLETE RESTRUCTURE ===== */
  
  .footer {
    position: relative !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100px !important; /* Adequate height for content */
    background-color: var(--color-background-footer) !important;
    padding: 16px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* CLEAR ALL EXISTING FOOTER CONTENT FIRST */
  .footer > * {
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* Footer navigation - clean single row */
  .footer-nav {
    display: flex !important;
    gap: 40px !important; /* Adequate spacing for touch */
    margin: 0 0 16px 0 !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    order: 1 !important;
  }
  
  .footer-nav .nav-link {
    font-family: var(--font-family-primary) !important;
    font-size: 12px !important;
    font-weight: var(--font-weight-regular) !important;
    line-height: 1.2 !important;
    color: #D9D9D9 !important;
    text-decoration: none !important;
    text-transform: capitalize !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important;
    padding: 4px 8px !important; /* Touch-friendly padding */
  }
  
  .footer-nav .nav-link:hover {
    color: var(--color-primary) !important;
  }
  
  /* Footer social - clean single row */
  .footer-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important; /* Touch-friendly spacing */
    margin: 0 0 16px 0 !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    order: 2 !important;
  }
  
  .footer-social .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important; /* Touch-friendly size */
    height: 32px !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
  }
  
  .footer-social .social-link:hover {
    transform: translateY(-2px) !important;
  }
  
  .footer-social .social-icon {
    width: 18px !important; /* Visible but proportional */
    height: 18px !important;
    transition: all 0.3s ease !important;
  }
  
  /* Ensure SVG icons have proper styling */
  .footer-social svg.social-icon {
    fill: #D9D9D9 !important;
  }
  
  .footer-social .social-link:hover svg.social-icon {
    fill: var(--color-text-primary) !important;
  }
  
  /* For IMG elements */
  .footer-social img.social-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(85%) contrast(85%) !important;
  }
  
  .footer-social .social-link:hover img.social-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) !important;
  }
  
  /* Footer copyright - clean single line */
  .footer-copyright {
    font-family: var(--font-family-primary) !important;
    font-size: 10px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #D9D9D9 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    width: 100% !important;
    order: 3 !important;
  }
  
  /* ===== 4. PREVENT FOOTER ELEMENT DUPLICATION ===== */
  
  /* Hide any duplicate footer elements that might be generated */
  .footer .footer-nav:nth-of-type(n+2),
  .footer .footer-social:nth-of-type(n+2),
  .footer .footer-copyright:nth-of-type(n+2) {
    display: none !important;
  }
  
  /* ===== 5. LAYOUT STRUCTURE FIXES ===== */
  
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
  }
  
  .main-content {
    flex: 1 !important;
    min-height: calc(100vh - 100px) !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  /* ===== 6. HEADER REFINEMENTS ===== */
  
  .header {
    top: 8px !important;
    width: calc(100vw - 32px) !important;
    transform: translateX(-50%) scale(0.92) !important;
  }
  
  .nav-container {
    height: 40px !important;
    padding: 0 16px !important;
    justify-content: center !important;
  }
  
  .mobile-menu-toggle {
    width: 24px !important;
    height: 24px !important;
    gap: 3px !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .hamburger-line {
    width: 16px !important;
    height: 2px !important;
    background-color: var(--color-text-secondary) !important;
    border-radius: 1px !important;
  }
  
  /* ===== 7. SECTION SPACING OPTIMIZATION ===== */
  
  .expertise-section,
  .featured-projects-section,
  .cta-section,
  .about-introduction-section,
  .about-timeline-section,
  .problem-solving-section,
  .about-skills-section,
  .about-experience-section,
  .about-courses-section,
  .about-cta-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  .expertise-title,
  .section-title,
  .about-intro-title,
  .about-timeline-title,
  .problem-solving-title,
  .about-skills-title,
  .about-experience-title,
  .about-courses-title {
    font-size: 22px !important;
    margin-bottom: 24px !important;
    line-height: 1.2 !important;
  }
  
  /* ===== 8. MOBILE THEME TOGGLE REFINEMENTS ===== */
  
  .mobile-theme-toggle {
    width: 48px !important;
    height: 24px !important;
    background: #FFFFFF !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer !important;
    padding: 1px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }
  
  .mobile-theme-toggle .theme-toggle-slider {
    position: absolute !important;
    top: 1px !important;
    left: 1px !important;
    width: 22px !important;
    height: 22px !important;
    background-color: #0D0D0D !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    z-index: 2 !important;
  }
  
  [data-theme="light"] .mobile-theme-toggle .theme-toggle-slider {
    transform: translateX(24px) !important;
  }
  
  [data-theme="dark"] .mobile-theme-toggle .theme-toggle-slider {
    transform: translateX(0px) !important;
  }
  
  .mobile-theme-toggle .sun-icon,
  .mobile-theme-toggle .moon-icon {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 10px !important;
    height: 10px !important;
    z-index: 1 !important;
  }
  
  .mobile-theme-toggle .sun-icon {
    left: 7px !important;
  }
  
  .mobile-theme-toggle .moon-icon {
    right: 7px !important;
  }
}

/* ===== 2. MEDIUM MOBILE LANDSCAPE (iPhone 12, iPhone 13, Galaxy S21, etc.) ===== */
/* Landscape: ~844px x 390px, ~812px x 375px */
@media (min-width: 668px) and (max-width: 844px) and (orientation: landscape) and (max-height: 390px) {
  
  /* Header compact */
  .header {
    top: 6px !important;
    transform: translateX(-50%) scale(0.9) !important;
  }
  
  .nav-container {
    height: 40px !important;
    padding: 0 16px !important;
  }
  
  .mobile-menu-toggle {
    width: 22px !important;
    height: 22px !important;
    gap: 3px !important;
  }
  
  .hamburger-line {
    width: 15px !important;
    height: 2px !important;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 85vh !important;
    padding-top: 40px !important;
    padding-bottom: 20px !important;
  }
  
  .hero-content {
    padding: 0 16px !important;
  }
  
  .hero-title {
    font-size: 24px !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
  }
  
  .hero-subtitle {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }
  
  .hero-cta-btn img {
    max-width: 130px !important;
  }
  
  .hero-links {
    font-size: 11px !important;
  }
  
  /* About hero */
  .about-hero-title {
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }
  
  .about-hero-description {
    font-size: 14px !important;
  }
  
  /* Sections */
  .expertise-section,
  .featured-projects-section,
  .cta-section {
    padding: 35px 0 45px 0 !important;
  }
  
  .expertise-title,
  .section-title {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }
  
  .expertise-card {
    min-height: 180px !important;
    padding: 16px !important;
    padding-bottom: 50px !important;
  }
  
  .card-title {
    font-size: 16px !important;
  }
  
  .card-description {
    font-size: 11px !important;
  }
  
  .project-card {
    min-height: 130px !important;
    padding: 16px !important;
  }
  
  /* Footer */
  .footer {
    height: 80px !important;
    padding: 12px 0 !important;
  }
  
  .footer-nav {
    gap: 35px !important;
    margin-bottom: 10px !important;
  }
  
  .footer-nav .nav-link {
    font-size: 12px !important;
  }
  
  .footer-social {
    gap: 16px !important;
    margin-bottom: 10px !important;
  }
  
  .footer-social .social-icon {
    width: 16px !important;
    height: 16px !important;
  }
  
  .footer-copyright {
    font-size: 10px !important;
  }
}

/* ===== 3. LARGE MOBILE LANDSCAPE (iPhone 14 Plus, iPhone 15 Pro Max, Galaxy S23 Ultra, etc.) ===== */
/* Landscape: ~926px x 428px, ~896px x 414px */
@media (min-width: 845px) and (max-width: 926px) and (orientation: landscape) and (max-height: 428px) {
  
  /* Header standard mobile */
  .header {
    top: 8px !important;
    transform: translateX(-50%) scale(0.95) !important;
  }
  
  .nav-container {
    height: 44px !important;
    padding: 0 18px !important;
  }
  
  .mobile-menu-toggle {
    width: 24px !important;
    height: 24px !important;
    gap: 3px !important;
  }
  
  .hamburger-line {
    width: 16px !important;
    height: 2px !important;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 90vh !important;
    padding-top: 50px !important;
    padding-bottom: 25px !important;
  }
  
  .hero-content {
    padding: 0 20px !important;
  }
  
  .hero-title {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
  }
  
  .hero-subtitle {
    font-size: 15px !important;
    margin-bottom: 24px !important;
  }
  
  .hero-cta-btn img {
    max-width: 150px !important;
  }
  
  .hero-links {
    font-size: 12px !important;
  }
  
  /* About hero */
  .about-hero-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }
  
  .about-hero-description {
    font-size: 15px !important;
  }
  
  /* Sections */
  .expertise-section,
  .featured-projects-section,
  .cta-section {
    padding: 45px 0 55px 0 !important;
  }
  
  .expertise-title,
  .section-title {
    font-size: 26px !important;
    margin-bottom: 24px !important;
  }
  
  .expertise-card {
    min-height: 200px !important;
    padding: 20px !important;
    padding-bottom: 60px !important;
  }
  
  .card-title {
    font-size: 18px !important;
  }
  
  .card-description {
    font-size: 12px !important;
  }
  
  .project-card {
    min-height: 160px !important;
    padding: 20px !important;
  }
  
  .project-title {
    font-size: 18px !important;
  }
  
  /* Footer */
  .footer {
    height: 100px !important;
    padding: 16px 0 !important;
  }
  
  .footer-nav {
    gap: 50px !important;
    margin-bottom: 12px !important;
  }
  
  .footer-nav .nav-link {
    font-size: 13px !important;
  }
  
  .footer-social {
    gap: 20px !important;
    margin-bottom: 12px !important;
  }
  
  .footer-social .social-icon {
    width: 18px !important;
    height: 18px !important;
  }
  
  .footer-copyright {
    font-size: 11px !important;
  }
}

/* ===== 4. EXTRA LARGE MOBILE LANDSCAPE (Foldable phones unfolded, etc.) ===== */
/* Landscape: ~1000px+ x 400px+ */
@media (min-width: 927px) and (max-width: 1100px) and (orientation: landscape) and (max-height: 450px) {
  
  /* Header approaching tablet size */
  .header {
    top: 10px !important;
    transform: translateX(-50%) !important;
  }
  
  .nav-container {
    height: 48px !important;
    padding: 0 20px !important;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 95vh !important;
    padding-top: 60px !important;
    padding-bottom: 30px !important;
  }
  
  .hero-content {
    padding: 0 24px !important;
  }
  
  .hero-title {
    font-size: 32px !important;
    margin-bottom: 24px !important;
  }
  
  .hero-subtitle {
    font-size: 16px !important;
    margin-bottom: 28px !important;
  }
  
  .hero-cta-btn img {
    max-width: 170px !important;
  }
  
  .hero-links {
    font-size: 13px !important;
  }
  
  /* About hero */
  .about-hero-title {
    font-size: 32px !important;
    margin-bottom: 24px !important;
  }
  
  .about-hero-description {
    font-size: 16px !important;
  }
  
  /* Sections */
  .expertise-section,
  .featured-projects-section,
  .cta-section {
    padding: 50px 0 60px 0 !important;
  }
  
  .expertise-title,
  .section-title {
    font-size: 28px !important;
    margin-bottom: 28px !important;
  }
  
  .expertise-card {
    min-height: 220px !important;
    padding: 24px !important;
    padding-bottom: 70px !important;
  }
  
  .card-title {
    font-size: 20px !important;
  }
  
  .card-description {
    font-size: 13px !important;
  }
  
  /* Footer */
  .footer {
    height: 120px !important;
    padding: 20px 0 !important;
  }
  
  .footer-nav {
    gap: 60px !important;
    margin-bottom: 16px !important;
  }
  
  .footer-nav .nav-link {
    font-size: 14px !important;
  }
  
  .footer-social {
    gap: 24px !important;
    margin-bottom: 16px !important;
  }
  
  .footer-social .social-icon {
    width: 20px !important;
    height: 20px !important;
  }
  
  .footer-copyright {
    font-size: 12px !important;
  }
}

/* ===== 5. MOBILE THEME TOGGLE REFINEMENTS FOR ALL LANDSCAPE SIZES ===== */
@media (orientation: landscape) and (max-width: 926px) {
  
  .mobile-theme-toggle {
    background: #FFFFFF !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-theme-toggle .theme-toggle-slider {
    position: absolute !important;
    background-color: #0D0D0D !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    z-index: 2 !important;
  }
  
  /* Small mobile landscape toggle */
  @media (max-width: 667px) {
    .mobile-theme-toggle {
      width: 40px !important;
      height: 20px !important;
    }
    
    .mobile-theme-toggle .theme-toggle-slider {
      width: 18px !important;
      height: 18px !important;
      top: 1px !important;
      left: 1px !important;
    }
    
    [data-theme="light"] .mobile-theme-toggle .theme-toggle-slider {
      transform: translateX(20px) !important;
    }
    
    .mobile-theme-toggle .sun-icon,
    .mobile-theme-toggle .moon-icon {
      width: 8px !important;
      height: 8px !important;
    }
  }
  
  /* Medium mobile landscape toggle */
  @media (min-width: 668px) and (max-width: 844px) {
    .mobile-theme-toggle {
      width: 45px !important;
      height: 22px !important;
    }
    
    .mobile-theme-toggle .theme-toggle-slider {
      width: 20px !important;
      height: 20px !important;
      top: 1px !important;
      left: 1px !important;
    }
    
    [data-theme="light"] .mobile-theme-toggle .theme-toggle-slider {
      transform: translateX(23px) !important;
    }
    
    .mobile-theme-toggle .sun-icon,
    .mobile-theme-toggle .moon-icon {
      width: 9px !important;
      height: 9px !important;
    }
  }
  
  /* Large mobile landscape toggle */
  @media (min-width: 845px) {
    .mobile-theme-toggle {
      width: 50px !important;
      height: 24px !important;
    }
    
    .mobile-theme-toggle .theme-toggle-slider {
      width: 22px !important;
      height: 22px !important;
      top: 1px !important;
      left: 1px !important;
    }
    
    [data-theme="light"] .mobile-theme-toggle .theme-toggle-slider {
      transform: translateX(26px) !important;
    }
    
    .mobile-theme-toggle .sun-icon,
    .mobile-theme-toggle .moon-icon {
      width: 10px !important;
      height: 10px !important;
    }
  }
}


/* ===== SAMSUNG GALAXY S8+ AGGRESSIVE LANDSCAPE FIXES ===== */
/* Dimensions: 740px × 360px */

@media (min-width: 735px) and (max-width: 745px) and (orientation: landscape) and (max-height: 365px) {
  
  /* ===== 1. HERO SECTION - AGGRESSIVE TOP SPACING ===== */
  
  .hero-section {
    min-height: 80vh !important; /* Reduced viewport height */
    padding-top: 90px !important; /* MUCH MORE padding from top */
    padding-bottom: 30px !important;
    overflow-x: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .hero-container {
    min-height: auto !important; /* Remove height constraints */
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 20px 0 !important; /* Additional internal padding */
  }
  
  .hero-content {
    position: static !important; /* Completely remove positioning */
    top: auto !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
    padding: 0 24px !important;
    margin: 0 auto !important;
    max-width: 90% !important;
    width: auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .hero-title {
    font-size: 26px !important; /* Larger for Galaxy S8+ screen */
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    word-wrap: break-word !important;
    text-align: center !important;
  }
  
  .hero-subtitle {
    font-size: 15px !important; /* More readable */
    margin-bottom: 28px !important;
    line-height: 1.4 !important;
    max-width: 85% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  
  .hero-cta-btn {
    margin-bottom: 28px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .hero-cta-btn img {
    max-width: 160px !important; /* Larger for S8+ */
    width: auto !important;
    height: auto !important;
  }
  
  .hero-links {
    font-size: 13px !important; /* Readable size */
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
    flex-wrap: wrap !important;
  }
  
  /* ===== 2. ABOUT HERO SECTION - SAME AGGRESSIVE SPACING ===== */
  
  .about-hero-section {
    min-height: 80vh !important;
    padding-top: 90px !important; /* Match main hero */
    padding-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .about-hero-content {
    padding: 40px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    min-height: auto !important;
    max-width: 85% !important;
    margin: 0 auto !important;
  }
  
  .about-hero-title {
    font-size: 26px !important; /* Match main hero */
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
  }
  
  .about-hero-description {
    font-size: 15px !important; /* Match main hero */
    line-height: 1.4 !important;
    max-width: 100% !important;
  }
  
  /* ===== 3. FOOTER - COMPLETE RESET AND REBUILD ===== */
  
  /* First, completely reset footer */
  .footer {
    position: relative !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 110px !important; /* Taller for better spacing */
    background-color: var(--color-background-footer) !important;
    padding: 20px 0 !important;
    display: block !important; /* Change to block for reset */
    margin-top: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    clear: both !important;
  }
  
  /* Force single footer layout container */
  .footer::before {
    content: '' !important;
    display: block !important;
    clear: both !important;
  }
  
  /* COMPLETELY HIDE ALL EXISTING FOOTER ELEMENTS FIRST */
  .footer > * {
    display: none !important;
  }
  
  /* Show only the FIRST instance of each footer element */
  .footer .footer-nav:first-of-type {
    display: flex !important;
    gap: 50px !important;
    margin: 0 auto 18px auto !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }
  
  .footer .footer-social:first-of-type {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important;
    margin: 0 auto 18px auto !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }
  
  .footer .footer-copyright:first-of-type {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }
  
  /* Style the visible footer elements */
  .footer .footer-nav:first-of-type .nav-link {
    font-family: var(--font-family-primary) !important;
    font-size: 13px !important;
    font-weight: var(--font-weight-regular) !important;
    line-height: 1.2 !important;
    color: #D9D9D9 !important;
    text-decoration: none !important;
    text-transform: capitalize !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important;
    padding: 6px 10px !important;
  }
  
  .footer .footer-nav:first-of-type .nav-link:hover {
    color: var(--color-primary) !important;
  }
  
  .footer .footer-social:first-of-type .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
  }
  
  .footer .footer-social:first-of-type .social-link:hover {
    transform: translateY(-2px) !important;
  }
  
  .footer .footer-social:first-of-type .social-icon {
    width: 20px !important;
    height: 20px !important;
    transition: all 0.3s ease !important;
  }
  
  .footer .footer-copyright:first-of-type {
    font-family: var(--font-family-primary) !important;
    font-size: 11px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #D9D9D9 !important;
    line-height: 1.2 !important;
  }
  
  /* ===== 4. MOBILE MENU TOGGLE - COMPLETE FIX ===== */
  
  .header {
    top: 10px !important;
    width: calc(100vw - 32px) !important;
    transform: translateX(-50%) !important; /* Remove scaling */
    z-index: 1000 !important;
  }
  
  .nav-container {
    height: 44px !important;
    padding: 0 20px !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    position: relative !important;
    background-color: var(--color-background-nav) !important;
    border-radius: 50px !important;
  }
  
  .mobile-menu-toggle {
    width: 28px !important;
    height: 28px !important;
    gap: 4px !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1001 !important;
  }
  
  .hamburger-line {
    width: 18px !important;
    height: 2px !important;
    background-color: var(--color-text-secondary) !important;
    border-radius: 1px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    position: relative !important;
  }
  
  /* Hamburger active state */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
  }
  
  /* Mobile menu dropdown */
  .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: var(--color-background-nav) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 24px 0 32px 0 !important;
    transform: translateY(-10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 999 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .mobile-menu.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .mobile-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .mobile-nav-item {
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  
  .mobile-nav-link {
    display: block !important;
    padding: 12px 20px !important;
    color: var(--color-text-secondary) !important;
    text-decoration: none !important;
    font-weight: var(--font-weight-medium) !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 0 20px !important;
    text-align: center !important;
  }
  
  .mobile-nav-link:hover {
    color: var(--color-text-primary) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .mobile-nav-link.active {
    color: var(--color-primary) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
  }
  
  /* Mobile theme toggle in menu */
  .mobile-theme-item {
    margin-top: 16px !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .mobile-theme-toggle {
    width: 50px !important;
    height: 26px !important;
    background: #FFFFFF !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer !important;
    padding: 1px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }
  
  .mobile-theme-toggle .theme-toggle-slider {
    position: absolute !important;
    top: 1px !important;
    left: 1px !important;
    width: 24px !important;
    height: 24px !important;
    background-color: #0D0D0D !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    z-index: 2 !important;
  }
  
  [data-theme="light"] .mobile-theme-toggle .theme-toggle-slider {
    transform: translateX(24px) !important;
  }
  
  [data-theme="dark"] .mobile-theme-toggle .theme-toggle-slider {
    transform: translateX(0px) !important;
  }
  
  /* ===== 5. LAYOUT STRUCTURE ===== */
  
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
  }
  
  .main-content {
    flex: 1 !important;
    min-height: calc(100vh - 110px) !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}

/* ===== LARGE MOBILE LANDSCAPE COMPLETE RESPONSIVE CSS ===== */
/* Devices: iPhone 14 Plus, iPhone 15 Pro Max, Galaxy S23 Ultra, etc. */
/* Dimensions: 845px-1024px width × 390px-450px height */

@media (min-width: 845px) and (max-width: 1024px) and (orientation: landscape) and (max-height: 450px) {
  
  /* ===== 1. HEADER & NAVIGATION SYSTEM ===== */
  
  .header {
    position: fixed !important;
    top: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    width: calc(100vw - 48px) !important;
    max-width: 900px !important;
  }
  
  .nav-container {
    background-color: var(--color-background-nav) !important;
    border-radius: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 24px !important;
    position: relative !important;
    justify-content: center !important;
    }
  
  /* FORCE HIDE DESKTOP NAVIGATION */
  .desktop-nav,
  .nav-menu,
  ul.nav-menu,
  .nav-menu li,
  .nav-item,
  .nav-link,
  .desktop-theme-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* FORCE SHOW MOBILE MENU TOGGLE */
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 30px !important;
    height: 30px !important;
    gap: 4px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: absolute !important;
    right: 24px !important;
    z-index: 1001 !important;
    }
  
  .hamburger-line {
    width: 20px !important;
    height: 2px !important;
    background-color: var(--color-text-secondary) !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
    display: block !important;
  }
  
  /* Hamburger active states */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
  }
  
  /* Mobile menu dropdown */
  .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: var(--color-background-nav) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 24px 0 32px 0 !important;
    transform: translateY(-10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 999 !important;
  }
  
  .mobile-menu.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .mobile-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .mobile-nav-item {
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  
  .mobile-nav-link {
    display: block !important;
    padding: 12px 20px !important;
    color: var(--color-text-secondary) !important;
    text-decoration: none !important;
    font-weight: var(--font-weight-medium) !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 0 20px !important;
    text-align: center !important;
  }
  
  .mobile-nav-link:hover {
    color: var(--color-text-primary) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .mobile-nav-link.active {
    color: var(--color-primary) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
  }
  
  .mobile-theme-item {
    margin-top: 16px !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .mobile-theme-toggle {
    width: 55px !important;
    height: 28px !important;
    background: #FFFFFF !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer !important;
    padding: 1px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }
  
  .mobile-theme-toggle .theme-toggle-slider {
    position: absolute !important;
    top: 1px !important;
    left: 1px !important;
    width: 26px !important;
    height: 26px !important;
    background-color: #0D0D0D !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    z-index: 2 !important;
  }
  
  [data-theme="light"] .mobile-theme-toggle .theme-toggle-slider {
    transform: translateX(27px) !important;
  }
  
  [data-theme="dark"] .mobile-theme-toggle .theme-toggle-slider {
    transform: translateX(0px) !important;
  }
  
  /* ===== 2. HERO SECTION WITH DOODLE ===== */
  
  .hero-section {
    min-height: 100vh !important;
    background-color: var(--color-background-body) !important;
    position: relative !important;
    overflow: hidden !important;
    padding-top: 0px !important;
    padding-bottom: 200px !important;
    display: flex !important;
    align-items: center !important;
    }
  
  [data-theme="dark"] .hero-section {
    background-color: #111111 !important;
  }
  
  .hero-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    min-height: calc(100vh - 120px) !important;
    padding: 0 60px !important;
    }
  
  /* Hero Content - Left Side */
  .hero-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 450px !important;
    flex: 1 !important;
    }
  
  .hero-title {
    font-family: var(--font-family-primary) !important;
    font-size: 36px !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: 1.1 !important;
    color: #000000 !important;
    margin: 0 0 24px 0 !important;
  }
  
  [data-theme="dark"] .hero-title {
    color: #FFFFFF !important;
  }
  
  .red-period {
    color: var(--color-red-accent) !important;
  }
  
  .hero-subtitle {
    font-family: var(--font-family-primary) !important;
    font-size: 18px !important;
    font-weight: var(--font-weight-regular) !important;
    line-height: 1.4 !important;
    color: #000000 !important;
    margin: 0 0 40px 0 !important;
  }
  
  [data-theme="dark"] .hero-subtitle {
    color: #FFFFFF !important;
  }
  
  .hero-cta-btn {
    display: inline-block !important;
    margin-bottom: 40px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease !important;
    position: relative !important;
  }
  
  .hero-cta-btn:hover {
    transform: scale(1.02) !important;
  }
  
  .hero-cta-btn img {
    transition: opacity 0.3s ease !important;
    display: block !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
  }
  
  /* Hero button theme switching */
  .hero-cta-btn .btn-day {
    position: relative !important;
  }
  
  .hero-cta-btn .btn-night {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  [data-theme="light"] .btn-day {
    opacity: 1 !important;
  }
  
  [data-theme="light"] .btn-night {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .btn-day {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .btn-night {
    opacity: 1 !important;
  }
  
  .hero-links {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  .hero-links a {
    color: #000000 !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
  }
  
  [data-theme="dark"] .hero-links a {
    color: #FFFFFF !important;
  }
  
  .hero-links a:hover {
    color: var(--color-red-accent) !important;
  }
  
  .link-separator {
    color: #000000 !important;
    margin: 0 4px !important;
  }
  
  [data-theme="dark"] .link-separator {
    color: #FFFFFF !important;
  }
  
  /* SHOW HERO DOODLE - Right Side */
  .hero-doodle {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    margin-left: 120px !important;
    padding-bottom: 180px !important;
    }
  
  .hero-doodle img {
    transition: opacity 0.3s ease !important;
    max-width: 400px !important;
    width: auto !important;
    height: auto !important;
    }
  
  /* Doodle theme switching */
  [data-theme="light"] .hero-doodle .doodle-day {
    opacity: 1 !important;
    position: relative !important;
    display: block !important;
  }
  
  [data-theme="light"] .hero-doodle .doodle-night {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
  }
  
  [data-theme="dark"] .hero-doodle .doodle-day {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
  }
  
  [data-theme="dark"] .hero-doodle .doodle-night {
    opacity: 1 !important;
    position: relative !important;
    display: block !important;
  }
  
 
 
  
  /* ===== 3. EXPERTISE SECTION ===== */
  
  .expertise-section {
    background-color: #FFFFFF !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 80px 0 100px 0 !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  [data-theme="dark"] .expertise-section {
    background-color: #000000 !important;
  }
  
  .expertise-container {
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative !important;
  }
  
  .expertise-title {
    font-family: var(--font-family-primary) !important;
    font-size: 36px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #000000 !important;
    margin: 0 0 60px 60px !important;
    line-height: 1.2 !important;
  }
  
  [data-theme="dark"] .expertise-title {
    color: #FFFFFF !important;
  }
  
  .expertise-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 30px !important;
    margin-left: 60px !important;
    margin-right: 60px !important;
    justify-content: space-between !important;
  }
  
  .expertise-card {
    width: 100% !important;
    height: 280px !important; /* Increased height */
    background-color: #F8F8F8 !important;
    border-radius: 10px !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transition: background-color 0.3s ease !important;
    }
  
  [data-theme="dark"] .expertise-card {
    background-color: #141414 !important;
  }
  
  .expertise-card .card-title {
    font-family: var(--font-family-primary) !important;
    font-size: 24px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #0f0e0e !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.2 !important;
  }
  
  [data-theme="dark"] .expertise-card .card-title {
    color: #F8F8F8 !important;
  }
  
  .card-description {
    font-family: var(--font-family-primary) !important;
    font-size: 14px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #3A4755 !important;
    line-height: 1.5 !important;
    margin: 0 0 15px 0 !important; /* Reduced margin */
    flex-grow: 1 !important;
    max-height: 90px !important; /* Limit height */
    overflow: hidden !important;
    }
  
  [data-theme="dark"] .card-description {
    color: #DCDEDF !important;
  }
  
  .card-tags {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 45px !important; /* Increased margin for button space */
    flex-wrap: wrap !important;
    }
  
  .tag {
    font-family: var(--font-family-primary) !important;
    font-size: 12px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #3A4755 !important;
  }
  
  [data-theme="dark"] .tag {
    color: #F8F8F8 !important;
  }
  
  .tag-separator {
    color: #D52128 !important;
    font-size: 12px !important;
  }
  
  .see-projects-btn {
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
  }
  
  .see-projects-btn {
    position: absolute !important;
    bottom: 20px !important; /* Reduced from 30px */
    right: 30px !important;
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
    }
  
  /* See projects button theme switching */
  [data-theme="light"] .btn-light-normal {
    opacity: 1 !important;
  }
  
  [data-theme="light"] .btn-light-hover {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  [data-theme="light"] .btn-dark-normal,
  [data-theme="light"] .btn-dark-hover {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  [data-theme="light"] .see-projects-btn:hover .btn-light-normal {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .see-projects-btn:hover .btn-light-hover {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .btn-dark-normal {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .btn-dark-hover {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  [data-theme="dark"] .btn-light-normal,
  [data-theme="dark"] .btn-light-hover {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  [data-theme="dark"] .see-projects-btn:hover .btn-dark-normal {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .see-projects-btn:hover .btn-dark-hover {
    opacity: 1 !important;
  }
  
  .view-all-skills {
    margin-top: 60px !important;
    margin-left: 157px !important;
    margin-right: 60px !important;
    display: flex !important;
    justify-content: flex-start !important;
    }
  
  .view-all-btn {
    display: inline-block !important;
    text-decoration: none !important;
    position: relative !important;
    transition: transform 0.2s ease !important;
    }
  
  .view-all-btn:hover {
    transform: scale(1.02) !important;
  }
  
  .view-all-btn img {
    transition: opacity 0.3s ease !important;
    display: block !important;
    height: 30px !important;
    width: auto !important;
    max-width: 200px !important; /* Added max-width */
    }
  
  /* View all skills theme switching */
  .view-all-btn .btn-day-normal {
    position: relative !important;
  }
  
  .view-all-btn .btn-day-hover,
  .view-all-btn .btn-night-normal,
  .view-all-btn .btn-night-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  [data-theme="light"] .view-all-btn .btn-day-normal {
    opacity: 1 !important;
  }
  
  [data-theme="light"] .view-all-btn .btn-day-hover {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-all-btn .btn-night-normal,
  [data-theme="light"] .view-all-btn .btn-night-hover {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-all-btn:hover .btn-day-normal {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-all-btn:hover .btn-day-hover {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .view-all-btn .btn-night-normal {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .view-all-btn .btn-night-hover {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-all-btn .btn-day-normal,
  [data-theme="dark"] .view-all-btn .btn-day-hover {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-all-btn:hover .btn-night-normal {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-all-btn:hover .btn-night-hover {
    opacity: 1 !important;
  }
  
  /* ===== 4. FEATURED PROJECTS SECTION ===== */
  
  .featured-projects-section {
    background-color: #F8F8F8 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-top: 10px !important;
    padding-bottom: 80px !important;
    position: relative !important;
  }
  
  [data-theme="dark"] .featured-projects-section {
    background-color: #111111 !important;
  }
  
  .featured-projects-container {
    max-width: 100vw !important;
    position: relative !important;
  }
  
  .section-header {
    position: relative !important;
    margin-top: 60px !important;
    margin-bottom: 50px !important;
    margin-left: 60px !important;
  }
  
  .section-title {
    font-family: var(--font-family-primary) !important;
    font-size: 36px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #000000 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    position: relative !important;
    display: inline-block !important;
  }
  
  [data-theme="dark"] .section-title {
    color: #FFFFFF !important;
  }
  
  .decorative-line {
    position: absolute !important;
    top: 40% !important;
    left: 380px !important;
    transform: translateY(-50%) !important;
    width: 100px !important;
    height: 1px !important;
    background-color: #D9D9D9 !important;
  }
  
  .section-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #3A4755 !important;
    margin: 20px 0 0 0 !important;
    line-height: 1.5 !important;
  }
  
  [data-theme="dark"] .section-description {
    color: #D9D9D9 !important;
  }
  
  .projects-list {
    margin-top: 40px !important;
    margin: 0 20px !important;
    padding: 0 !important;
  }
  
  /* PROJECT CARDS - PROPERLY SIZED */
  .project-card {
    width: 100% !important;
    height: 180px !important; /* REDUCED from oversized */
    border: 0.5px solid #D9D9D9 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background-color: transparent !important;
    margin-bottom: 20px !important;
  }
  
  [data-theme="dark"] .project-card {
    border-color: #000000 !important;
  }
  
  .project-number-line {
    position: absolute !important;
    left: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .project-line {
    width: 80px !important;
    height: 1px !important;
    background-color: #D9D9D9 !important;
  }
  
  .project-number {
    font-family: var(--font-family-primary) !important;
    font-size: 24px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #D9D9D9 !important;
    margin-left: 10px !important;
    line-height: 1 !important;
  }
  
  .project-content {
    position: absolute !important;
    left: 180px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex-grow: 1 !important;
  }
  
  .project-title {
    font-family: var(--font-family-primary) !important;
    font-size: 24px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #000000 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.2 !important;
  }
  
  [data-theme="dark"] .project-title {
    color: #FFFFFF !important;
  }
  
  .project-tags {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  
  .project-tags .tag {
    font-family: var(--font-family-primary) !important;
    font-size: 14px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #3A4755 !important;
  }
  
  [data-theme="dark"] .project-tags .tag {
    color: #D9D9D9 !important;
  }
  
  .project-tags .tag-separator {
    color: #D52128 !important;
    font-size: 14px !important;
  }
  
  /* VIEW PROJECT BUTTONS - PROPERLY SIZED */
  .view-project-btn {
    position: absolute !important;
    right: 60px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
  }
  
  .view-project-btn img {
    transition: opacity 0.3s ease !important;
    max-width: 100px !important; /* REDUCED size */
    width: auto !important;
    height: auto !important;
  }
  
  .view-project-btn .btn-light-normal {
    position: relative !important;
    display: block !important;
  }
  
  .view-project-btn .btn-light-hover,
  .view-project-btn .btn-dark-normal,
  .view-project-btn .btn-dark-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  [data-theme="light"] .view-project-btn .btn-light-normal {
    opacity: 1 !important;
  }
  
  [data-theme="light"] .view-project-btn .btn-light-hover {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-project-btn .btn-dark-normal,
  [data-theme="light"] .view-project-btn .btn-dark-hover {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-project-btn:hover .btn-light-normal {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-project-btn:hover .btn-light-hover {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .view-project-btn .btn-light-normal {
    opacity: 0 !important;
    display: block !important;
  }
  
  [data-theme="dark"] .view-project-btn .btn-dark-normal {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .view-project-btn .btn-dark-hover {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-project-btn .btn-light-hover {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-project-btn:hover .btn-dark-normal {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-project-btn:hover .btn-dark-hover {
    opacity: 1 !important;
  }
  
  /* VIEW ALL PROJECTS BUTTON - PROPERLY SIZED */
  .view-all-projects {
    margin-top: 50px !important;
    margin-left: 60px !important;
  }
  
  .view-all-projects-btn {
    display: inline-block !important;
    text-decoration: none !important;
    position: relative !important;
  }
  
  .view-all-projects-btn img {
    transition: opacity 0.3s ease !important;
    display: block !important;
    height: 30px !important;
    max-width: 100px !important; /* REDUCED size */
    width: auto !important;
    height: auto !important;
  }
  
  .view-all-projects-btn .btn-day-normal {
    position: relative !important;
  }
  
  .view-all-projects-btn .btn-day-hover,
  .view-all-projects-btn .btn-night-normal,
  .view-all-projects-btn .btn-night-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  [data-theme="light"] .view-all-projects-btn .btn-day-normal {
    opacity: 1 !important;
  }
  
  [data-theme="light"] .view-all-projects-btn .btn-day-hover {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-all-projects-btn .btn-night-normal,
  [data-theme="light"] .view-all-projects-btn .btn-night-hover {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-all-projects-btn:hover .btn-day-normal {
    opacity: 0 !important;
  }
  
  [data-theme="light"] .view-all-projects-btn:hover .btn-day-hover {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .view-all-projects-btn .btn-night-normal {
    opacity: 1 !important;
  }
  
  [data-theme="dark"] .view-all-projects-btn .btn-night-hover {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-all-projects-btn .btn-day-normal,
  [data-theme="dark"] .view-all-projects-btn .btn-day-hover {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-all-projects-btn:hover .btn-night-normal {
    opacity: 0 !important;
  }
  
  [data-theme="dark"] .view-all-projects-btn:hover .btn-night-hover {
    opacity: 1 !important;
  }
  
  /* ===== 5. CTA SECTION ===== */
  
  .cta-section {
    background-color: #141414 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 120px 0 !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
  }
  
  .cta-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
  }
  
  .decorative-circle {
    position: absolute !important;
    right: 40px !important;
    top: -6% !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
  }
  
  .cutted-circle {
    width: auto !important;
    height: auto !important;
    opacity: 0.8 !important;
  }
  
  .cta-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    z-index: 3 !important;
  }
  
  .cta-title {
    font-family: var(--font-family-primary) !important;
    font-size: 36px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  
  .cta-description {
    font-family: var(--font-family-primary) !important;
    font-size: 16px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #D9D9D9 !important;
    margin: 24px 0 0 0 !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }
  
  .say-hello-btn {
    display: inline-block !important;
    margin-top: 60px !important;
    text-decoration: none !important;
    transition: transform 0.3s ease !important;
  }
  
  .say-hello-btn:hover {
    transform: translateY(-2px) !important;
  }
  
  .say-hello-btn img {
    width: auto !important;
    height: auto !important;
    max-width: 180px !important;
  }
  
  .cta-social {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-top: 50px !important;
  }
  
  .cta-social .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
  }
  
  .cta-social .social-link:hover {
    transform: translateY(-2px) !important;
  }
  
  .cta-social .social-icon {
    width: 24px !important;
    height: 24px !important;
    transition: all 0.3s ease !important;
  }
  
  .cta-social img.social-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(85%) contrast(85%) !important;
  }
  
  .cta-social .social-link:hover img.social-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) !important;
  }
  
  /* ===== 6. FOOTER - PROPER POSITIONING ===== */
  
  .footer {
    position: relative !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 140px !important; /* Reduced height */
    background-color: var(--color-background-footer) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-top: 0px !important; /* Reduced margin */
    padding: 0 !important;
    box-sizing: border-box !important;
    }

  
  .footer-nav {
    display: flex !important;
    gap: 80px !important; /* Reduced gap */
    margin-bottom: 20px !important; /* Reduced margin */
    position: relative !important;
    }


  
  .footer-nav .nav-link {
    color: #D9D9D9 !important;
    font-size: 16px !important;
    font-weight: var(--font-weight-regular) !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    line-height: 24px !important;
  }
  
  .footer-nav .nav-link:hover {
    color: var(--color-primary) !important;
  }
  
  .footer-social {
    display: flex !important;
    justify-content: center !important;
    gap: 25px !important; /* Reduced gap */
    margin-bottom: 20px !important; /* Reduced margin */
    }
  
  .footer-social .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
  }
  
  .footer-social .social-link:hover {
    transform: translateY(-2px) !important;
  }
  
  .footer-social .social-icon {
    width: 24px !important;
    height: 24px !important;
    transition: all 0.3s ease !important;
  }
  
  .footer-social svg.social-icon {
    fill: #D9D9D9 !important;
  }
  
  .footer-social .social-link:hover svg.social-icon {
    fill: var(--color-text-primary) !important;
  }
  
  .footer-social img.social-icon {
    filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(85%) contrast(85%) !important;
  }
  
  .footer-social .social-link:hover img.social-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) !important;
  }
  
  .footer-copyright {
    color: #D9D9D9 !important;
    font-size: 14px !important;
    font-weight: var(--font-weight-regular) !important;
  }
  
  /* ===== 7. LAYOUT STRUCTURE ===== */
  
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
  }
  
  .main-content {
    flex: 1 !important;
    padding-top: 0px !important;
    min-height: auto !important;
    padding-bottom: 0px !important;
  }
   
    /* ===== 8. ABOUT PAGE LANDSCAPE - MOBILE-INSPIRED DESIGN ===== */

    .about-hero-section {
    min-height: 100vh !important;
    background-image: url('/assets/images/about-hero-background/background-hero-section.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 80px 40px 40px !important;
    }

    .about-hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 1 !important;
    }

    .about-seo-title {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    }

    .about-hero-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    }

    .about-hero-title {
    font-family: var(--font-family-primary) !important;
    font-size: 24px !important;
    font-weight: var(--font-weight-medium) !important;
    line-height: 1.2 !important;
    color: #D52128 !important;
    margin: 0 0 20px 0 !important;
    }

    .about-hero-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #DCDEDF !important;
    margin: 0 !important;
    }

    .about-scroll-indicator {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    }

    .about-scroll-icon {
    width: auto !important;
    height: auto !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
    }

    .about-scroll-indicator:hover .about-scroll-icon {
    opacity: 1 !important;
    }

    /* About introduction section */
    .about-introduction-section {
    background-color: #F8F8F8 !important;
    padding: 50px 0 60px 0 !important;
    position: relative !important;
    }

    [data-theme="dark"] .about-introduction-section {
    background-color: #111111 !important;
    }

    .about-introduction-container {
    margin: 0 40px !important;
    max-width: calc(100vw - 80px) !important;
    }

    .about-intro-title {
    font-family: var(--font-family-primary) !important;
    font-size: 24px !important;
    font-weight: var(--font-weight-medium) !important;
    line-height: 1.2 !important;
    color: #1E1E1E !important;
    margin: 0 0 20px 0 !important;
    position: relative !important;
    width: 100% !important;
    }

    [data-theme="dark"] .about-intro-title {
    color: #FFFFFF !important;
    }

    .about-intro-title::after {
    content: '.' !important;
    color: #D52128 !important;
    }

    .about-intro-description {
    width: 100% !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #000000 !important;
    margin: 0 !important;
    }

    [data-theme="dark"] .about-intro-description {
    color: #F5F5F5 !important;
    }

    .about-intro-description p {
    margin: 0 0 14px 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    }

    .about-intro-description p:last-child {
    margin-bottom: 0 !important;
    }

    /* ===== TIMELINE SECTION - MOBILE CONTAINER SYSTEM ===== */

    .timeline-section {
    background-color: #FFFFFF !important;
    padding: 50px 0 60px 0 !important;
    position: relative !important;
    }

    [data-theme="dark"] .timeline-section {
    background-color: #000000 !important;
    }

    .about-timeline-container {
    margin: 0 40px !important;
    max-width: calc(100vw - 80px) !important;
    }

    .about-timeline-title {
    font-family: var(--font-family-primary) !important;
    font-size: 24px !important;
    font-weight: var(--font-weight-medium) !important;
    color: #1E1E1E !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
    width: 100% !important;
    }

    [data-theme="dark"] .about-timeline-title {
    color: #FFFFFF !important;
    }

    .about-timeline-subtitle {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.4 !important;
    }

    [data-theme="dark"] .about-timeline-subtitle {
    color: #CCCCCC !important;
    }

    .about-timeline-content {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    line-height: 1.5 !important;
    margin: 0 0 30px 0 !important;
    width: 100% !important;
    }

    [data-theme="dark"] .about-timeline-content {
    color: #F5F5F5 !important;
    }

    .about-timeline-content p {
    margin: 0 0 14px 0 !important;
    }

    .about-timeline-content p:last-child {
    margin-bottom: 0 !important;
    }

    /* Hide all timeline visual elements */
    .timeline-desktop,
    .timeline-mobile,
    .timeline-svg-container,
    .timeline-svg,
    .timeline-svg-img,
    .timeline-years,
    .timeline-year {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    }

    /* Reset timeline wrapper */
    .timeline-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
    }

    /* Timeline containers as vertical list */
    .timeline-containers {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    height: auto !important;
    }

    /* Individual timeline items */
    .timeline-container {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 0 30px 0 !important;
    padding: 0 0 0 20px !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    border-left: 3px solid #D52128 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #000000 !important;
    }

    [data-theme="dark"] .timeline-container {
    color: #DCDEDF !important;
    }

    /* Year headers using CSS content */
    .timeline-container:nth-child(1)::before {
    content: "2021" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    }

    .timeline-container:nth-child(2)::before {
    content: "2022" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    }

    .timeline-container:nth-child(3)::before {
    content: "2023" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    }

    .timeline-container:nth-child(4)::before {
    content: "2024" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    }

    .timeline-container:nth-child(5)::before {
    content: "2025" !important;
    display: block !important;
    font-family: 'Inter', var(--font-family-primary), sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #D52128 !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    }

    /* Timeline content styling */
    .timeline-container p {
    margin: 0 0 10px 0 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: inherit !important;
    }

    .timeline-container p:last-child {
    margin-bottom: 0 !important;
    }

    .timeline-container ul {
    margin: 10px 0 !important;
    padding-left: 16px !important;
    list-style-type: disc !important;
    }

    .timeline-container li {
    margin-bottom: 6px !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: inherit !important;
    }

    .timeline-container li:last-child {
    margin-bottom: 0 !important;
    }

    .timeline-container:last-child {
    margin-bottom: 40px !important;
    }

  /* ===== SKILLS SECTION - CORRECT CLASS TARGETING ===== */

    .about-skills-grid,
    .hard-skills-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 columns for landscape */
    gap: 20px !important;
    margin: 0 40px !important;
    width: calc(100vw - 80px) !important;
    max-width: none !important;
    }

    .about-skill-card {
    background-color: #FFFFFF !important;
    border: 2px solid #D52128 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    position: relative !important;
    height: 210px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    }

    [data-theme="dark"] .about-skill-card {
    background-color: #1A1A1A !important;
    }

    .skill-card-title {
    font-family: var(--font-family-primary) !important;
    font-size: 16px !important;
    font-weight: var(--font-weight-medium) !important;
    color: #1E1E1E !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
    }

    [data-theme="dark"] .skill-card-title {
    color: #FFFFFF !important;
    }

    .skill-card-content {
    flex-grow: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px 0 !important;
    max-height: 160px !important; /* Enable scrolling */
    scrollbar-width: thin !important;
    scrollbar-color: #D52128 transparent !important;
    }

    .skill-card-content::-webkit-scrollbar {
    width: 4px !important;
    }

    .skill-card-content::-webkit-scrollbar-track {
    background: transparent !important;
    }

    .skill-card-content::-webkit-scrollbar-thumb {
    background-color: #D52128 !important;
    border-radius: 2px !important;
    }

    .skill-item {
    display: inline-block !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    background-color: #F8F8F8 !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 12px !important;
    padding: 4px 8px !important;
    margin: 2px 3px 4px 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    }


    [data-theme="dark"] .skill-item {
    color: #CCCCCC !important;
    background-color: #2A2A2A !important;
    border-color: #404040 !important;
    }

    .skill-dot {
    color: #D52128 !important;
    font-size: 12px !important;
    margin: 0 4px !important;
    }


    /* ===== EXPERIENCE SECTION - MOBILE ENTRY SYSTEM ===== */

    .experience-section {
    background-color: #FFFFFF !important;
    padding: 50px 0 60px 0 !important;
    position: relative !important;
    }

    [data-theme="dark"] .experience-section {
    background-color: #000000 !important;
    }

    .about-experience-header {
    margin: 0 40px 30px 40px !important;
    max-width: calc(100vw - 80px) !important;
    }

    .about-experience-title {
    font-family: var(--font-family-primary) !important;
    font-size: 24px !important;
    font-weight: var(--font-weight-medium) !important;
    color: #1E1E1E !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
    }

    [data-theme="dark"] .about-experience-title {
    color: #FFFFFF !important;
    }

    .about-experience-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    }

    [data-theme="dark"] .about-experience-description {
    color: #CCCCCC !important;
    }

    .about-experience-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    margin: 0 40px !important;
    }

    .experience-column,
    .education-column {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    }

    .experience-card,
    .education-card {
    background-color: #E8E8E8 !important; /* Changed to grey */
    border: 1px solid #D52128 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 140px !important;
    width: 100% !important;
    max-width: none !important;
    }

    /* Dark mode for experience and education cards */
    [data-theme="dark"] .experience-card,
    [data-theme="dark"] .education-card {
    background-color: #2A2A2A !important; /* Dark grey background */
    border: 1px solid #D52128 !important; /* Keep red border */
    }

    .experience-column-title,
    .education-column-title {
    font-family: var(--font-family-primary) !important;
    font-size: 18px !important;
    font-weight: var(--font-weight-medium) !important;
    color: #1E1E1E !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #D52128 !important;
    }

    [data-theme="dark"] .experience-column-title,
    [data-theme="dark"] .education-column-title {
    color: #FFFFFF !important;
    }

    /* Experience and Education Entries */
    .experience-entry,
    .education-entry {
    margin-bottom: 24px !important;
    }

    .experience-entry:last-child,
    .education-entry:last-child {
    margin-bottom: 0 !important;
    }

    .entry-header {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    align-items: flex-start !important;
    }

    .entry-decorative {
    width: 12px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    }

    .decorative-icon {
    width: 100% !important;
    height: auto !important;
    margin-top: 12px !important;
    }

    .entry-logo {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    }

    .company-logo,
    .university-logo {
    max-height: 35px !important;
    max-width: 120px !important;
    object-fit: contain !important;
    }

    .entry-date {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #D52128 !important;
    margin: 0 0 6px 24px !important;
    line-height: 1.2 !important;
    }

    .entry-title {
    font-family: var(--font-family-primary) !important;
    font-size: 14px !important;
    font-weight: var(--font-weight-medium) !important;
    color: #1E1E1E !important;
    margin: 0 0 8px 24px !important;
    line-height: 1.2 !important;
    }

    [data-theme="dark"] .entry-title {
    color: #FFFFFF !important;
    }

    .entry-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    line-height: 1.4 !important;
    margin: 0 0 0 24px !important;
    }

    [data-theme="dark"] .entry-description {
    color: #CCCCCC !important;
    }
  
/* ===== 9. PORTFOLIO PAGE LANDSCAPE ===== */
  
  .portfolio-page {
    padding-top: 80px !important;
    background-color: #F8F8F8 !important;
  }
  
  [data-theme="dark"] .portfolio-page {
    background-color: #111111 !important;
  }
  
  .portfolio-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding: 60px 0 80px !important;
  }
  
  .portfolio-title {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 600 !important;
    font-size: 36px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
    color: #000000 !important;
  }
  
  [data-theme="dark"] .portfolio-title {
    color: #ffffff !important;
  }
  
  .title-accent {
    color: #FF4444 !important;
  }
  
  .portfolio-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin: 30px 0 0 !important;
    color: #666666 !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  [data-theme="dark"] .portfolio-description {
    color: #cccccc !important;
  }
  
  .portfolio-filters {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    margin-top: 80px !important;
    flex-wrap: wrap !important;
  }
  
  .filter-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #666666 !important;
    transition: all 0.3s ease !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
  }
  
  .filter-btn:hover {
    color: #D52128 !important;
    background-color: rgba(213, 33, 40, 0.05) !important;
  }
  
  .filter-btn.active {
    color: #D52128 !important;
  }
  
  .filter-circle {
    width: 12px !important;
    height: 12px !important;
    border: 2px solid #cccccc !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
  }
  
  .filter-btn:hover .filter-circle {
    border-color: #D52128 !important;
  }
  
  .filter-btn.active .filter-circle {
    background-color: #D52128 !important;
    border-color: #D52128 !important;
  }
  
  .portfolio-dropdown-container {
    display: none !important;
  }
  
  .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    justify-content: center !important;
    margin-top: 40px !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px !important;
  }
  
  .portfolio-card {
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    height: 220px !important;
  }
  
  [data-theme="dark"] .portfolio-card {
    background-color: #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05) !important;
  }
  
  .portfolio-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  }
  
  [data-theme="dark"] .portfolio-card:hover {
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1) !important;
  }
  
  .card-link {
    display: block !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
  }
  
  .card-image {
    position: relative !important;
    height: 70% !important;
    overflow: hidden !important;
  }
  
  .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
  }
  
  .portfolio-card:hover .card-image img {
    transform: scale(1.05) !important;
  }
  
  .card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    transition: opacity 0.3s ease !important;
  }
  
  .portfolio-card:hover .card-overlay {
    opacity: 0.6 !important;
  }
  
  .portfolio-card .card-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
    height: auto !important;
    min-height: 80px !important;
    padding: 30px 16px 16px !important;
  }
  
  .portfolio-card .card-title {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    margin: 0 0 8px !important;
    color: #ffffff !important;
    position: relative !important;
    z-index: 2 !important;
  }
  
  .portfolio-card .card-tags {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  .portfolio-card .card-tag {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    color: #ffffff !important;
    opacity: 0.9 !important;
  }
  
  .portfolio-card .tag-separator {
    color: #FF4444 !important;
    font-weight: bold !important;
    font-size: 10px !important;
  }
  
  /* Tools Section */
  .tools-section {
    background-color: #ffffff !important;
    padding: 60px 0 80px !important;
  }
  
  [data-theme="dark"] .tools-section {
    background-color: #000000 !important;
  }
  
  .tools-container {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
  }
  
  .tools-title {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 600 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    margin: 0 !important;
    color: #000000 !important;
  }
  
  [data-theme="dark"] .tools-title {
    color: #ffffff !important;
  }
  
  .tools-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 30px 0 50px !important;
    color: #666666 !important;
  }
  
  [data-theme="dark"] .tools-description {
    color: #cccccc !important;
  }
  
  .tools-grid {
    margin-bottom: 40px !important; /* Reduced margin */
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    }
  
  .tools-row {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
    width: 100% !important;
    }
  
  .tools-row:last-child {
    margin-bottom: 0 !important;
  }
  
  .tool-card {
    position: relative !important;
    border: 1px solid #A90007 !important;
    border-radius: 10px !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 !important;
    height: 80px !important; /* Reduced height */
    }

   .tool-card-small {
     width: calc(50% - 7.5px) !important; /* Adjusted for gap */
    }
  
    .tool-card-large {
    width: 100% !important;
    }
  
    .tool-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important; /* Reduced gap */
    padding: 12px !important; /* Reduced padding */
    flex: 1 !important;
    height: calc(100% - 24px) !important;
    }

    .tool-icon {
    width: 24px !important; /* Reduced size */
    height: 24px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    }

    .tool-category {
    position: absolute !important;
    bottom: 4px !important; /* Reduced from 6px */
    left: 12px !important; /* Reduced from 16px */
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 10px !important; /* Reduced font size */
    margin: 0 !important;
    color: #3A4755 !important;
    z-index: 2 !important;
    }
  
  [data-theme="dark"] .tool-category {
    color: #D9D9D9 !important;
  }
  
  /* ===== 10. CONTACT PAGE LANDSCAPE ===== */
  
  .contact-page {
    background-color: var(--bg-primary) !important;
    min-height: 100vh !important;
    padding: 100px 0 60px 0 !important;
  }
  
  .contact-page .container {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
  }
  
  .contact-content {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    gap: 60px !important;
    align-items: start !important;
  }
  
  .contact-form-section {
    max-width: 100% !important;
  }
  
  .contact-header {
    margin-bottom: 40px !important;
  }
  
  .contact-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 36px !important;
    line-height: 1.2 !important;
    color: var(--contact-title-color) !important;
    margin: 0 0 20px 0 !important;
  }
  
  .accent-dot {
    color: #D52128 !important;
  }
  
  .contact-description {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    color: var(--contact-description-color) !important;
    margin: 0 !important;
  }
  
  .contact-form {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-sizing: border-box !important;
  }
  
  .form-group {
    margin-bottom: 25px !important;
  }
  
  .form-group:last-of-type {
    margin-bottom: 35px !important;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--form-border) !important;
    padding: 12px 0 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: var(--input-text-color) !important;
    outline: none !important;
    resize: none !important;
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: var(--form-placeholder) !important;
    opacity: 1 !important;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-bottom-color: #D52128 !important;
  }
  
  .contact-form textarea {
    min-height: 50px !important;
  }
  
  .submit-btn {
    width: 240px !important;
    height: 50px !important;
    border-radius: 8px !important;
    border: none !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #F8F8F8 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
  }
  
  .submit-btn:hover {
    opacity: 0.9 !important;
  }
  
  .submit-btn:active {
    transform: translateY(1px) !important;
  }
  
  .contact-info-section {
    padding-top: 80px !important;
    width: 100% !important;
  }
  
  .info-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    color: var(--info-title-color) !important;
    margin: 0 0 30px 0 !important;
  }
  
  .contact-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
  }
  
  .contact-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    transition: opacity 0.2s ease !important;
  }
  
  .contact-link:hover {
    opacity: 0.8 !important;
  }
  
  .contact-icon {
    width: 32px !important;
    height: 32px !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
  }
  
  .contact-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  
  .contact-text {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 18px !important;
    color: var(--contact-link-color) !important;
  }
}

[data-theme="dark"] .about-intro-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .about-intro-description {
  color: #F5F5F5 !important;
}
