/* ==============================================
   Portfolio Rebuild - Custom Styles (Reference: Venissa)
   ============================================== */

/* --- CSS Variables --- */
:root {
  /* Colors (Inspired by Reference) */
  --primary-color-light: #FFFFFF;
  --primary-color-dark: #111111; /* Using near black instead of pure */
  --text-color-light: #333333;
  --text-color-dark: #F0F0F0;
  --accent-color: #FF4D6D; /* Bright Pink/Red from reference */
  --accent-hover: #E03C5A;
  --border-color-light: #EAEAEA;
  --border-color-dark: #333333;
  --muted-text-light: #777777;
  --muted-text-dark: #AAAAAA;
  --accent-color-rgb: 255, 77, 109; /* RGB for alpha */

  /* Typography (Using Poppins/Inter) */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: 'Poppins', var(--font-family-sans);
  --body-font-size: 1rem; /* 16px */
  --body-line-height: 1.7;
  --heading-font-weight: 600;
  --heading-line-height: 1.2;

  /* Spacing */
  --space-xxs: 0.25rem; /* 4px */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 0.75rem;  /* 12px */
  --space-md: 1.25rem;  /* 20px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3.5rem;   /* 56px */
  --space-xxl: 5rem;    /* 80px */

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 10px;
  --border-width: 1px;
  /* Subtle shadows for light theme */
  --shadow-sm-light: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md-light: 0 5px 15px rgba(0,0,0,0.06);
  /* Minimal/no shadows for dark theme often looks cleaner */

  /* Transitions */
  --transition-fast: all 0.2s ease-out;
  --transition-base: all 0.3s ease-out;

  /* Z-Index */
  --z-index-header: 1000;
  --z-index-overlay: 900;
  --z-index-modal: 1050;

  /* Default Theme: Light */
  --bg-color: var(--primary-color-light);
  --text-color: var(--text-color-light);
  --heading-color: var(--primary-color-dark);
  --border-color: var(--border-color-light);
  --muted-text-color: var(--muted-text-light);
  --card-bg: var(--primary-color-light);
  --shadow-sm: var(--shadow-sm-light);
  --shadow-md: var(--shadow-md-light);
  --bg-alt-color: #f8f9fa; /* Light grey for light mode cards/boxes */
}

/* --- Dark Theme Variables --- */
body.dark-theme {
  --bg-color: var(--primary-color-dark);
  --text-color: var(--text-color-dark);
  --heading-color: var(--primary-color-light);
  --border-color: var(--border-color-dark);
  --muted-text-color: var(--muted-text-dark);
  --card-bg: #1A1A1A; /* Slightly off-black */
  --shadow-sm: none;
  --shadow-md: none;
  --bg-alt-color: #222222; /* Darker grey for dark mode cards/boxes */
}

/* --- CSS Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0; /* Reset borders */
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

/* --- Base Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
  color: var(--heading-color);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 7vw + 1rem, 5rem); } /* Larger, impactful */
h2 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  max-width: 65ch; /* Improve readability */
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text-color); /* Default text color */
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-color);
  text-decoration: none; /* No underline on hover by default */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle; /* Remove bottom space */
}

ul, ol {
    list-style: none;
}

/* --- Layout & Base Components --- */
.container {
  width: 90%;
  max-width: 1300px; /* Slightly wider max-width */
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header p {
  color: var(--muted-text-color);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto; /* Center block */
  margin-right: auto; /* Center block */
  text-align: center; /* Explicitly center text inside */
}

/* Base styles, specific sections might override */

/* Base Button Styles (Reference Style) */
.btn {
  display: inline-block;
  font-family: var(--font-family-heading);
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: none; /* No border by default */
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: var(--border-radius-sm); /* Slightly sharp corners */
  transition: var(--transition-base);
  text-decoration: none !important;
  letter-spacing: 0.5px;
}

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

.btn-secondary {
  /* Define if needed, e.g., outline button */
  color: var(--accent-color);
  background-color: transparent;
  border: 2px solid var(--accent-color);
}
.btn-secondary:hover {
  background-color: rgba(var(--accent-color-rgb), 0.1); /* Use RGB for alpha */
  color: var(--accent-color);
}

.btn-small {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(var(--accent-color-rgb), 0.2);
  border-radius: var(--border-radius-sm);
}

/* --- Initial Theme Toggle Appearance --- */
.theme-toggle {
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-xs);
  font-size: 1.3rem; /* Adjust size */
  color: var(--text-color);
  transition: color var(--transition-fast);
  line-height: 1; /* Prevent extra space */
}
.theme-toggle:hover {
    color: var(--accent-color);
}
.theme-toggle i {
    display: block;
    transition: transform var(--transition-fast);
}
.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* OVERRIDE FOR DARK MODE ICON COLOR */
body.dark-theme .theme-toggle i {
    color: #FFFFFF !important; /* Target 'i' directly, hardcoded white */
}
/* END OVERRIDE */

/* Basic icon visibility */
/* Default to Light Theme: Show Moon */
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }

/* Explicit Light Theme: Show Moon */
body.light-theme .theme-toggle .fa-sun { display: none; }
body.light-theme .theme-toggle .fa-moon { display: block; }

/* Dark Theme: Show Sun */
body.dark-theme .theme-toggle .fa-sun { display: block; }
body.dark-theme .theme-toggle .fa-moon { display: none; }

/* End of Foundational Styles */

/* --- Header Styling --- */
.site-header {
  padding: var(--space-md) 0;
  position: absolute; /* Position over hero initially */
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-index-header);
  background-color: transparent; /* Transparent initially */
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.sticky {
  position: fixed;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--heading-color);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: var(--space-lg);
}

.main-nav a {
  font-family: var(--font-family-sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  padding-bottom: var(--space-xs);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-base);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-color); /* Keep color, rely on underline */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hamburger Menu (Initially Hidden) */
.hamburger-menu {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 25px;
  height: 20px;
  position: relative;
  z-index: var(--z-index-header) + 1; /* Above nav potentially */
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu .bar:nth-child(3) { bottom: 0; }

/* --- Hero Section Styling --- */
.hero {
  padding-top: 120px; /* Extra padding top to account for absolute header */
  padding-bottom: var(--space-xl); /* Less padding bottom */
  min-height: 80vh;
  display: flex;
  flex-direction: column; /* Stack main content and contact info */
  position: relative;
  background-color: var(--bg-color);
}

.hero-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 12 column grid */
  gap: var(--space-lg);
  align-items: center;
  flex-grow: 1; /* Allow hero content to take space */
}

.hero-text {
  grid-column: 1 / span 6; /* Span first 6 columns */
  text-align: left;
}

.hero-subtitle {
  font-family: var(--font-family-heading);
  font-weight: 500;
  color: var(--muted-text-color);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  letter-spacing: 1px;
}

.hero-title {
  font-weight: 700; /* Bold */
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--accent-color);
  /* Add subtle effect if desired */
}

.hero-tagline {
  font-size: 1.5rem; /* Larger tagline */
  font-weight: 400;
  color: var(--heading-color);
  margin-bottom: var(--space-xl);
  line-height: 1.4;
}

.hero .btn {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

.hero-image-area {
  grid-column: 7 / span 6; /* Span last 6 columns */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  max-width: 100%;
  height: auto;
  /* More complex styling needed to replicate reference image composition */
  /* This is just a basic placeholder */
  border-radius: var(--border-radius-lg);
}

/* Hero Contact Info Area */
.hero-contact-info {
  padding: var(--space-lg) 0;
  border-top: var(--border-width) solid var(--border-color);
  margin-top: var(--space-xl);
}

.info-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.info-item {
  text-align: left;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-text-color);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item a,
.info-item p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0;
}

.info-item a {
    text-decoration: none;
}
.info-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Style the wrapper for icon+value */
.info-item > div {
    display: flex;
    align-items: center;
    gap: var(--space-sm); /* Space between icon and text */
}

/* Style the icons within the info items */
.info-item > div > i {
    font-size: 1rem; /* Adjust icon size */
    color: var(--accent-color);
    width: 16px; /* Give icon fixed width */
    text-align: center;
}

/* --- Header & Hero Responsive --- */
@media (max-width: 991px) {
  .main-nav {
    display: none; /* Hide desktop nav */
    /* Mobile nav TBD */
  }

  .header-actions .btn {
      display: none; /* Hide Schedule button on mobile */
  }

  .hamburger-menu {
    display: block; /* Show hamburger */
  }

  .hero-container {
    grid-template-columns: 1fr; /* Stack */
    text-align: center;
  }

  .hero-text {
    grid-column: 1 / -1;
    order: 2; /* Text below image */
    margin-top: var(--space-lg);
  }

  .hero-image-area {
    grid-column: 1 / -1;
    order: 1; /* Image first */
    max-width: 400px; /* Limit image size */
    margin: 0 auto;
  }

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

  /* Styles for the active (visible) mobile menu */
  .main-nav.active {
      display: block; /* Make the nav visible */
      position: absolute;
      top: 100%; /* Position below the header */
      left: 0;
      right: 0;
      background-color: var(--card-bg); /* Use card background for contrast */
      padding: var(--space-md);
      border-top: var(--border-width) solid var(--border-color);
      box-shadow: var(--shadow-md);
      z-index: var(--z-index-overlay); /* Ensure it's above content below */
  }

  /* Style mobile menu links */
  .main-nav.active ul {
      flex-direction: column; /* Stack links vertically */
      align-items: center;
      gap: var(--space-md);
  }

  .main-nav.active ul a {
      display: block; /* Make links take full width */
      width: 100%;
      text-align: center;
      padding: var(--space-sm) 0;
  }
   .main-nav.active ul a::after {
      /* Optionally hide or adjust the underline for mobile */
       display: none;
   }

  /* Hamburger Animation when active */
  .hamburger-menu.active .bar:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(2) {
      opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 767px) {
  .hero {
      padding-top: 100px; /* Adjust for header */
  }
  .info-container {
      flex-direction: column;
      align-items: flex-start; /* Align items to the left */
      text-align: left;      /* Ensure text within items is left aligned */
      gap: var(--space-md);
  }
}

/* --- About Section Styling --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal columns */
  gap: var(--space-xl);
  align-items: flex-start; /* Align items top */
}

.about-bio h3 {
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

/* Decorative underline for headings */
.about-bio h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-bio p {
  color: var(--text-color);
  margin-bottom: var(--space-md);
}

.about-bio .btn {
    margin-top: var(--space-lg);
}

.about-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: var(--space-lg);
}

/* Skills List */
.skills-section {
    margin-bottom: var(--space-xl);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive columns */
  gap: var(--space-md);
}

.skills-list li {
  display: flex;
  align-items: center;
  justify-content: center; /* Center icon and text */
  background-color: var(--bg-alt-color); /* Use distinct alt background */
  padding: var(--space-md); /* Increase padding */
  border-radius: var(--border-radius-lg); /* Softer corners */
  border: var(--border-width) solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition-base);
}

body.dark-theme .skills-list li {
    border-color: rgba(255, 255, 255, 0.08); /* Make border very subtle in dark mode */
}

.skills-list li:hover {
    transform: scale(1.03); /* Scale up slightly */
    /* Slightly change background on hover */
    background-color: var(--bg-color); /* Use main background for contrast */
    box-shadow: var(--shadow-md); /* Use more noticeable shadow */
    border-color: var(--accent-color); /* Keep accent border */
}

.skills-list i {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-right: var(--space-sm); /* Keep or adjust spacing */
  /* width: 20px; */
  /* text-align: center; */
}

/* Timeline */
.timeline-section {
    position: relative;
}

.timeline {
  list-style: none;
  padding-left: var(--space-lg); /* Space for the line */
  position: relative;
}

/* The vertical timeline line */
.timeline::before {
  content: '';
  position: absolute;
  top: 5px; /* Start below first item padding */
  bottom: 5px;
  left: 0;
  width: 3px;
  background-color: var(--border-color);
  border-radius: 2px;
}

.timeline li {
  position: relative;
  padding-left: var(--space-lg); /* Space from line */
  padding-bottom: var(--space-xl);
}

.timeline li:last-child {
    padding-bottom: 0;
}

/* Timeline item dot */
.timeline li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 1.5px; /* Align dot's left edge to the line's center */
  transform: translateX(-263%); /* Shift dot left by half its width */
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 3px solid var(--accent-color);
  z-index: 1;
}

.timeline-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-text-color);
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: var(--space-sm);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--muted-text-color);
  margin-bottom: 0;
  max-width: none; /* Override base p max-width */
}

/* --- About Responsive --- */
@media (max-width: 991px) {
  .about-content {
    grid-template-columns: 1fr; /* Stack */
  }

  .about-bio {
      margin-bottom: var(--space-xl);
  }
}

@media (max-width: 576px) {
    .skills-list {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}

/* --- Portfolio Section Styling --- */

/* Filter Buttons */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  font-weight: 500;
  font-size: 0.9rem;
}

.filter-btn:hover {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.filter-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-image {
  position: relative;
  overflow: hidden; /* Ensure image zoom stays contained */
}

.portfolio-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10; /* Adjust aspect ratio as needed */
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

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

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--primary-color-dark-rgb, 17, 17, 17), 0) 0%, rgba(var(--primary-color-dark-rgb, 17, 17, 17), 0.8) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  flex-direction: column; /* Stack info */
  justify-content: flex-end; /* Align to bottom */
  padding: var(--space-md);
  pointer-events: none; /* Allow hover on item itself */
}
/* Need --primary-color-dark-rgb */
:root { --primary-color-dark-rgb: 17, 17, 17; }

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  color: var(--primary-color-light); /* White text on overlay */
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.4s 0.1s ease-out, opacity 0.4s 0.1s ease-out;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-info h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--primary-color-light);
}

.portfolio-info p {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(240, 240, 240, 0.9);
  margin-bottom: var(--space-sm);
}

/* Tech Stack Icons */
.tech-stack {
    margin-bottom: var(--space-sm);
}
.tech-stack i {
    font-size: 1.2rem;
    margin-right: var(--space-sm);
    opacity: 0.8;
}

/* Portfolio Links (Icons) */
.portfolio-links {
  display: flex;
  gap: var(--space-sm);
  pointer-events: auto; /* Make links clickable */
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--primary-color-light);
  border-radius: 50%;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(2px); /* Subtle glass effect */
}

.icon-link:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: scale(1.1);
  text-decoration: none;
}

/* Portfolio Responsive */
@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* Stack on small mobile */
    }
}

/* --- Contact Section Styling --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Info smaller, form larger */
  gap: var(--space-xl);
  align-items: flex-start;
  background-color: var(--card-bg);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-details-wrapper h4,
.contact-form-wrapper h4 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--heading-color);
}

.contact-details-wrapper p {
    margin-bottom: var(--space-lg);
    color: var(--text-color);
}

.contact-info-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.contact-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-info-list i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: var(--space-md);
    width: 20px; /* Align icons */
    text-align: center;
}

.contact-info-list a,
.contact-info-list span {
    color: var(--text-color);
    text-decoration: none;
}

.contact-info-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Contact Social Links */
.contact-social-links {
  display: flex;
  gap: var(--space-md);
}

.contact-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  transition: var(--transition-base);
  font-size: 1.1rem;
}

.contact-social-links a:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Contact Form Styling */
.contact-form .form-group {
  margin-bottom: var(--space-lg);
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-text-color);
    margin-bottom: var(--space-xs);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--bg-color); /* Match overall background */
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-color);
  font-family: var(--font-family-sans);
  font-size: 1rem;
  transition: var(--transition-base);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.2);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form ::placeholder {
  color: var(--muted-text-color);
  opacity: 0.8;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: var(--space-md);
    font-size: 1.05rem;
}

/* --- Contact Responsive --- */
@media (max-width: 991px) {
  .contact-content {
    grid-template-columns: 1fr; /* Stack */
    padding: var(--space-lg);
  }
  .contact-details-wrapper {
      margin-bottom: var(--space-xl);
  }
}

/* --- Footer Styling --- */
.site-footer-bottom {
  padding: var(--space-lg) 0;
  background-color: var(--bg-alt-color, var(--bg-color)); /* Use alt bg if defined */
  border-top: var(--border-width) solid var(--border-color);
  margin-top: var(--space-xxl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Wrap on smaller screens */
  gap: var(--space-md);
}

.footer-info {
  text-align: left;
}

.footer-logo {
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--heading-color);
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-info p {
  font-size: 0.9rem;
  color: var(--muted-text-color);
  margin-bottom: 0;
}

.footer-nav ul {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-text-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Footer Responsive */
@media (max-width: 767px) {
  .footer-content {
    flex-direction: column; /* Stack vertically */
    align-items: center; /* Center items */
    text-align: center;
  }

  .footer-info {
      margin-bottom: var(--space-md);
  }

  .footer-nav ul {
      justify-content: center;
      gap: var(--space-md);
  }
}

/* Ensure theme toggle is clearly visible in dark mode */
body.dark-theme .theme-toggle {
  color: var(--primary-color-light); /* Use bright white for contrast */
}

/* Hover color should still be distinct */
body.dark-theme .theme-toggle:hover {
  color: var(--accent-color); /* Accent color usually works well */
}

/* Ensure theme toggle ICON is clearly visible in dark mode */
/* Remove the rules added previously at the end of the file */
/* body.dark-theme .theme-toggle i::before { ... } */
/* body.dark-theme .theme-toggle:hover i::before { ... } */

/* Utility class for hiding portfolio items */
.portfolio-item.hidden {
  display: none; /* Revert to display: none */
  /* Remove opacity, transform, pointer-events */
} 