/* ============================================
   RESUME WEBSITE - CUSTOM STYLES
   Author: Shazzreen Elyana

   ⚠️  DO NOT EDIT THIS FILE DIRECTLY!

   This file is auto-generated by: npm run build

   To make CSS changes, edit the source modules in assets/css/:
   - variables.css  → Colors, fonts, spacing
   - base.css       → Body, typography, links
   - components.css → Navbar, buttons, cards
   - layouts.css    → Sections, grids, containers
   - responsive.css → Media queries

   Then run: npm run build
   ============================================ */

/* ============================================
   CSS VARIABLES FOR THEMING
   Author: Shazzreen Elyana
   ============================================ */

:root {
  /* Color Scheme Option 1: Minimalist (Charcoal + Coral) - DEFAULT */
  --primary-color: #751113;
  --secondary-color: #000000;
  --accent-color: #751113;
  --accent-hover: #000000;

  /* Color Scheme Option 2: Creative (Deep Purple + Gold) - Uncomment to use */
  /* --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --accent-color: #fdcb6e;
  --accent-hover: #feca57; */

  /* Color Scheme Option 3: Modern (Dark Navy + Teal) - Uncomment to use */
  /* --primary-color: #0a3d62;
  --secondary-color: #3c6382;
  --accent-color: #38ada9;
  --accent-hover: #079992; */

  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --gray: #dfe6e9;
  --dark-gray: #b2bec3;
  --text-dark: #2d3436;
  --text-light: #636e72;

  /* Semantic Colors - Light Mode */
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-surface-elevated: #f8f9fa;
  --color-text-primary: #2d3436;
  --color-text-secondary: #636e72;
  --color-border: #dfe6e9;
  --color-hover-bg: rgba(117, 17, 19, 0.08);
  --color-active-bg: rgba(117, 17, 19, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-strong: rgba(0, 0, 0, 0.15);
  --shadow-accent: rgba(117, 17, 19, 0.25);

  /* Gradient Colors - Light Mode */
  --gradient-start: #751113;
  --gradient-end: #000000;

  /* Carousel Arrow Color */
  --carousel-arrow-color: #751113;

  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px var(--shadow-color);
  --shadow-md: 0 4px 6px var(--shadow-color);
  --shadow-lg: 0 10px 25px var(--shadow-color-strong);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ============================================
   DARK MODE VARIABLES
   ============================================ */

[data-theme="dark"] {
  /* Brand Colors - Lighter for dark mode readability */
  --primary-color: #e88a8c;
  --accent-color: #e88a8c;
  --accent-hover: #f5a3a5;

  /* Neutral Colors - Dark Mode */
  --white: #1a1a1a;
  --light-gray: #2d2d2d;
  --gray: #404040;
  --dark-gray: #606060;
  --text-dark: #f5f5f5;
  --text-light: #b0b0b0;

  /* Semantic Colors - Dark Mode */
  --color-background: #1a1a1a;
  --color-surface: #2d2d2d;
  --color-surface-elevated: #363636;
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #b0b0b0;
  --color-border: #404040;
  --color-hover-bg: rgba(232, 138, 140, 0.15);
  --color-active-bg: rgba(232, 138, 140, 0.25);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-color-strong: rgba(0, 0, 0, 0.4);
  --shadow-accent: rgba(232, 138, 140, 0.35);

  /* Gradient Colors - Dark Mode */
  --gradient-start: #3d2526;
  --gradient-end: #1a1a1a;

  /* Carousel Arrow Color */
  --carousel-arrow-color: #e88a8c;
}


/* ============================================
   RESET AND BASE STYLES
   ============================================ */

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--color-background);
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

/* Bootstrap display class override for consistency */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.display-4 {
  font-size: 2.5rem !important;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

/* ============================================
   LINKS
   ============================================ */

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================
   IMAGES
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ============================================
   NAVIGATION STYLES
   ============================================ */

.navbar {
  padding: 1rem 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--accent-color) !important;
}

.navbar-brand img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-color) !important;
  background-color: var(--color-hover-bg);
}

.navbar .nav-link.active,
.nav-link.active {
  color: var(--accent-color) !important;
  font-weight: 600 !important;
  background-color: var(--color-active-bg) !important;
  border-bottom: 3px solid var(--accent-color) !important;
  border-radius: 4px 4px 0 0;
}

.navbar-toggler {
  border: 2px solid var(--accent-color);
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--shadow-accent);
}

/* Dropdown Styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 0.3rem;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 220px;
  padding: 0.75rem 0;
  margin: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px var(--shadow-color-strong);
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--color-hover-bg);
  color: var(--accent-color);
  border-left-color: var(--accent-color);
}

.dropdown-item i {
  color: var(--accent-color);
}

.dropdown-divider {
  margin: 0.5rem 1rem;
  border-top: 1px solid var(--gray);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 16px var(--shadow-color-strong), 0 4px 8px var(--shadow-color);
  transition: all var(--transition-base);
  overflow: hidden;
  height: 100%;
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow-accent), 0 8px 16px var(--shadow-color-strong);
  z-index: 2;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
  width: 100%;
}

/* Full-width project cards (col-12) have taller images */
.col-12 .card-img-top {
  height: 500px;
}

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

.card-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.25rem;
}

.card-text {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
}

.badge-primary {
  background-color: var(--accent-color);
}

/* Tools Used badges - all grey */
.card-body .badge {
  background-color: #6c757d !important;
  color: white !important;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  background-color: var(--light-gray);
  padding: var(--spacing-lg) 0;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skill-item {
  margin-bottom: var(--spacing-md);
}

.skill-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
  display: flex;
  justify-content: space-between;
}

.progress {
  height: 10px;
  border-radius: var(--radius-sm);
  background-color: var(--gray);
}

.progress-bar {
  background-color: var(--accent-color);
  border-radius: var(--radius-sm);
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding: var(--spacing-md) 0;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: var(--spacing-md);
  border-left: 2px solid var(--gray);
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
}

.timeline-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.timeline-description {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-control,
.form-select {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem var(--shadow-accent);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
}

.form-control::placeholder {
  color: var(--color-text-secondary);
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

.valid-feedback {
  display: block;
  color: #28a745;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info {
  background-color: var(--light-gray);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: var(--spacing-sm);
  width: 30px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

/* Ensure proper spacing for alert boxes */
.alert.mt-4 {
  margin-top: var(--spacing-md) !important;
  margin-bottom: var(--spacing-lg) !important;
  clear: both;
  position: relative;
  z-index: 1000;
  display: block !important;
  visibility: visible !important;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb-item {
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--text-light);
  padding: 0 0.5rem;
}

.breadcrumb-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--accent-color);
}

.breadcrumb-item.active {
  color: var(--accent-color);
  font-weight: 500;
}

/* ============================================
   CAROUSEL STYLES
   ============================================ */

/* Carousel Controls - Minimalist Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
  background: none !important;
  width: 2rem;
  height: 2rem;
  position: relative;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-left: 3px solid var(--carousel-arrow-color);
  border-bottom: 3px solid var(--carousel-arrow-color);
  background: transparent;
}

.carousel-control-prev-icon::after {
  transform: translate(-40%, -50%) rotate(45deg);
}

.carousel-control-next-icon::after {
  transform: translate(-60%, -50%) rotate(-135deg);
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0.7;
  transition: opacity var(--transition-base);
  width: auto;
  padding: 0 1rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Carousel Indicators - Slim Lines Inside Image */
.carousel-indicators {
  margin-bottom: 0 !important;
  position: absolute !important;
  bottom: 200px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  z-index: 15 !important;
}

.carousel-indicators [data-bs-target] {
  background-color: #ffffff !important;
  width: 35px !important;
  height: 3px !important;
  border-radius: 2px !important;
  border: none !important;
  opacity: 0.7 !important;
  transition: all var(--transition-base) !important;
  margin: 0 !important;
  text-indent: -999px !important;
  padding: 0 !important;
}

.carousel-indicators .active {
  opacity: 1 !important;
  width: 50px !important;
  background-color: #ffffff !important;
}

/* Carousel Section Spacing */
section:has(.carousel) {
  padding-top: 0rem;
  padding-bottom: 1rem;
}

/* Carousel Item Spacing */
.carousel-item {
  padding: 1rem 0;
}

.carousel-inner {
  padding-bottom: 1rem;
}

/* Carousel Card Height */
.carousel .card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.carousel .card-img-top {
  height: 350px;
  object-fit: cover;
  width: 100%;
  position: relative;
}

.carousel .card-body {
  padding: 1.5rem;
}

/* Position indicators at bottom of image */
.carousel-item .card {
  position: relative;
}

/* ============================================
   ARTWORK CAROUSEL STYLES
   ============================================ */

/* Artwork carousel - natural image size */
.artwork-carousel .carousel-inner img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

/* Position indicators at bottom of image - NOT in the middle */
.artwork-carousel .carousel-indicators,
.artwork-carousel.carousel .carousel-indicators {
  bottom: 15px !important;
  top: auto !important;
  margin-bottom: 0 !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  margin-left: 1rem;
  border-radius: 50%;
  background-color: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background-color: var(--color-hover-bg);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.05);
}

.theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem var(--shadow-accent);
}

.theme-toggle i {
  font-size: 1.1rem;
  transition: transform var(--transition-base);
}

.theme-toggle:hover i {
  transform: rotate(15deg);
}

/* Dark mode icon states */
[data-theme="light"] .theme-toggle #theme-icon::before {
  content: "\F5A2"; /* bi-sun-fill */
}

[data-theme="dark"] .theme-toggle #theme-icon::before {
  content: "\F497"; /* bi-moon-fill */
}

/* ============================================
   DARK MODE - NAVBAR OVERRIDES
   ============================================ */

[data-theme="dark"] .navbar {
  background-color: var(--color-surface) !important;
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .navbar-light .navbar-toggler-icon {
  filter: invert(1);
}

/* ============================================
   DARK MODE - CARD OVERRIDES
   ============================================ */

[data-theme="dark"] .card {
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .card-title {
  color: var(--primary-color);
}

[data-theme="dark"] .card-text {
  color: var(--color-text-secondary);
}

/* ============================================
   DARK MODE - STATS SECTION
   ============================================ */

[data-theme="dark"] .stats-section {
  background-color: var(--color-surface);
}

/* ============================================
   DARK MODE - CONTACT INFO
   ============================================ */

[data-theme="dark"] .contact-info {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* ============================================
   DARK MODE - TIMELINE
   ============================================ */

[data-theme="dark"] .timeline-item {
  border-left-color: var(--color-border);
}

[data-theme="dark"] .timeline-dot {
  border-color: var(--color-surface);
}

/* ============================================
   DARK MODE - PROGRESS BARS
   ============================================ */

[data-theme="dark"] .progress {
  background-color: var(--color-border);
}

/* ============================================
   DARK MODE - BREADCRUMBS
   ============================================ */

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
  color: var(--color-text-secondary);
}

/* ============================================
   DARK MODE - MOBILE NAV
   ============================================ */

@media (max-width: 992px) {
  [data-theme="dark"] .navbar-collapse {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
  }
}

@media (max-width: 991px) {
  [data-theme="dark"] .nav-item.dropdown .dropdown-menu {
    background-color: var(--color-surface-elevated);
  }
}

/* ============================================
   DARK MODE - BOOTSTRAP OVERRIDES
   ============================================ */

[data-theme="dark"] .bg-white {
  background-color: var(--color-surface) !important;
}

[data-theme="dark"] .bg-light {
  background-color: var(--color-surface-elevated) !important;
}

[data-theme="dark"] .text-dark {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .border {
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .shadow-sm {
  box-shadow: 0 2px 4px var(--shadow-color) !important;
}

/* ============================================
   DARK MODE - TEXT & CONTENT OVERRIDES
   ============================================ */

/* All text elements inside cards */
[data-theme="dark"] .card h5,
[data-theme="dark"] .card h6,
[data-theme="dark"] .card li,
[data-theme="dark"] .card p:not(.card-text),
[data-theme="dark"] .card span,
[data-theme="dark"] .card label {
  color: var(--color-text-primary);
}

/* List items everywhere */
[data-theme="dark"] li {
  color: var(--color-text-primary);
}

/* Headings inside bg-white containers */
[data-theme="dark"] .bg-white h5,
[data-theme="dark"] .bg-white h6 {
  color: var(--color-text-primary);
}

/* Lead text and muted text inside dark sections */
[data-theme="dark"] .lead {
  color: var(--color-text-secondary);
}

/* Section titles */
[data-theme="dark"] .section-title p {
  color: var(--color-text-secondary);
}

/* General paragraphs */
[data-theme="dark"] p {
  color: var(--color-text-secondary);
}

/* Headings in dark mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--primary-color);
}

/* But keep hero/footer headings white */
[data-theme="dark"] .hero h1,
[data-theme="dark"] .page-hero h1,
[data-theme="dark"] .footer h5 {
  color: #ffffff;
}

/* Small text and muted text */
[data-theme="dark"] small,
[data-theme="dark"] .small {
  color: var(--color-text-secondary);
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb-item a {
  color: var(--color-text-secondary);
}

[data-theme="dark"] .breadcrumb-item.active {
  color: var(--primary-color);
}

/* Form labels */
[data-theme="dark"] .form-label {
  color: var(--primary-color);
}

/* Skill names */
[data-theme="dark"] .skill-name {
  color: var(--primary-color);
}

[data-theme="dark"] .skill-name span {
  color: var(--color-text-primary);
}

/* Timeline text */
[data-theme="dark"] .timeline-description {
  color: var(--color-text-secondary);
}

/* Stat labels */
[data-theme="dark"] .stat-label {
  color: var(--color-text-secondary);
}

/* Contact info text */
[data-theme="dark"] .contact-info-item {
  color: var(--color-text-primary);
}


/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #ffffff;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Optional: Background pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  animation: fadeInUp 0.8s ease;
}

.hero .lead {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease;
}

.hero .btn {
  margin: 0.5rem;
  animation: fadeInUp 1.2s ease;
}

/* Page Hero (for About, Portfolio, Contact pages) */
.page-hero {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #ffffff;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0;
}

.page-hero .lead {
  color: #fbf3c1;
}

/* ============================================
   ANIMATIONS AND TRANSITIONS
   ============================================ */

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

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* Scroll animations (optional - add class via JS) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
  padding: var(--spacing-lg) 0;
  position: relative;
  z-index: 1;
  clear: both;
  overflow: hidden;
}

/* Ensure proper spacing between sections */
section + section {
  margin-top: 0;
}

/* Add breathing room to alerts */
.alert {
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-md);
  clear: both;
  position: relative;
  z-index: 100;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: var(--spacing-sm) auto 0;
  border-radius: var(--radius-sm);
}

/* Container adjustments */
.container {
  max-width: 1200px;
}

/* Spacing utilities */
.mb-section {
  margin-bottom: var(--spacing-lg);
}

.mt-section {
  margin-top: var(--spacing-lg);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #ffffff;
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer h5 {
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
  font-size: 1rem;
}

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

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.social-link i {
  font-size: 1.2rem;
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================
   OVERLAP PREVENTION
   ============================================ */

/* Ensure rows don't overlap */
.row {
  margin-bottom: var(--spacing-md);
}

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

/* Prevent column content overflow */
.col,
[class*="col-"] {
  position: relative;
}

/* Add consistent bottom margin to common elements */
.timeline,
.contact-info,
.skill-item:last-child,
form {
  margin-bottom: var(--spacing-md);
}

/* Remove bottom margin from last elements in containers */
.container > *:last-child,
.row > *:last-child > *:last-child {
  margin-bottom: 0;
}

/* Add buffer space between major sections */
section.bg-light-gray {
  padding-top: calc(var(--spacing-lg) + 1rem);
  padding-bottom: calc(var(--spacing-lg) + 1rem);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.bg-light-gray {
  background-color: var(--color-surface-elevated);
}

.rounded-custom {
  border-radius: var(--radius-lg);
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}

/* Spacing utility classes */
.mb-safe {
  margin-bottom: var(--spacing-md) !important;
}

.mt-safe {
  margin-top: var(--spacing-md) !important;
}

.pb-safe {
  padding-bottom: var(--spacing-md) !important;
}

.pt-safe {
  padding-top: var(--spacing-md) !important;
}

/* Sticky navigation enhancement */
.navbar.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}


/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Hover dropdown for desktop */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu,
  .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Invisible bridge to prevent dropdown from closing */
  .nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
  }
}

/* Mobile dropdown styles */
@media (max-width: 991px) {
  .nav-item.dropdown .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
    margin: 0.5rem 0;
    padding: 0.5rem 0;
  }

  .nav-item.dropdown.show .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-left: none;
  }

  .dropdown-item:hover {
    border-left: none;
    padding-left: 1.5rem;
  }

  .dropdown-divider {
    margin: 0.25rem 1rem;
  }

  .dropdown-arrow {
    float: right;
    margin-top: 0.2rem;
  }
}

/* Large tablets and below */
@media (max-width: 992px) {
  /* Adjust navigation for tablets */
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    border-radius: var(--radius-sm);
  }

  /* Adjust hero for tablets */
  .hero {
    min-height: 70vh;
    padding: var(--spacing-lg) 0;
  }

  /* Card adjustments */
  .card-img-top {
    height: 220px;
  }

  /* Better mobile navigation */
  .navbar-nav {
    width: 100%;
  }

  .nav-link {
    border: 1px solid transparent;
  }

  .nav-link:hover,
  .nav-link:active {
    background-color: var(--light-gray);
    border-color: var(--accent-color);
  }

  .nav-link.active {
    background-color: var(--color-active-bg);
    border-color: var(--accent-color);
  }
}

/* Tablet and below */
@media (max-width: 768px) {
  /* Typography adjustments */
  h1, .display-4 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead, .page-hero .lead {
    font-size: 1.1rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .page-hero h1, .page-hero .display-4 {
    font-size: 2rem !important;
  }

  /* Spacing adjustments */
  section {
    padding: var(--spacing-md) 0;
  }

  /* Stats adjustments */
  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  /* Navigation adjustments */
  .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }

  /* Card adjustments */
  .card-img-top {
    height: 200px;
  }

  .card-body {
    padding: 1.25rem;
  }

  /* Timeline adjustments */
  .timeline-item {
    padding-left: 2rem;
  }

  /* Form adjustments for better touch targets */
  .form-control,
  .form-select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  /* Button adjustments - larger touch targets */
  .btn {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    min-height: 48px; /* Minimum touch target size */
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  /* Footer adjustments */
  .footer {
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
    margin-top: var(--spacing-md);
  }

  /* Mobile-specific overlap prevention */
  section {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-sm);
  }

  .alert {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .row {
    margin-bottom: var(--spacing-md);
  }

  .col-md-6,
  .col-lg-4,
  .col-lg-3 {
    margin-bottom: var(--spacing-sm);
  }

  /* Carousel responsive */
  .carousel-indicators {
    bottom: 180px !important;
  }
}

/* Mobile */
@media (max-width: 576px) {
  /* Reset base font size for better readability */
  html {
    font-size: 16px;
  }

  /* Typography for mobile */
  h1, .display-4 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  h4 {
    font-size: 1.15rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  /* Hero section mobile */
  .hero {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }

  .hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  .page-hero {
    padding: var(--spacing-md) 0;
  }

  .page-hero h1, .page-hero .display-4 {
    font-size: 1.75rem !important;
  }

  .page-hero .lead {
    font-size: 1.05rem;
  }

  /* Buttons - full width on mobile for better UX */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.75rem;
    min-height: 48px; /* Touch target accessibility */
  }

  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }

  /* Exception: inline buttons */
  .btn-sm {
    width: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
  }

  /* Stats mobile layout */
  .stat-number {
    font-size: 1.875rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-item {
    padding: var(--spacing-sm);
  }

  /* Cards mobile optimization */
  .card {
    margin-bottom: 1.5rem;
  }

  .card-img-top {
    height: 180px;
  }

  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .card-text {
    font-size: 0.95rem;
  }

  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-toggler {
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
  }

  /* Section spacing mobile */
  section {
    padding: var(--spacing-sm) 0;
  }

  .section-title {
    margin-bottom: var(--spacing-md);
  }

  /* Timeline mobile */
  .timeline-item {
    padding-left: 1.5rem;
    font-size: 0.95rem;
  }

  .timeline-dot {
    width: 12px;
    height: 12px;
    left: -7px;
  }

  /* Skills mobile */
  .skill-name {
    font-size: 0.9rem;
  }

  .progress {
    height: 8px;
  }

  /* Form mobile optimization */
  .form-control,
  .form-select,
  textarea.form-control {
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: var(--radius-md);
    min-height: 48px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .form-label {
    font-size: 0.95rem;
    font-weight: 600;
  }

  /* Social links mobile */
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-link {
    width: 44px;
    height: 44px;
    margin: 0.25rem;
  }

  /* Contact info mobile */
  .contact-info {
    padding: var(--spacing-sm);
  }

  .contact-info-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .contact-info-item i {
    margin-bottom: 0.5rem;
  }

  /* Footer mobile */
  .footer {
    padding: var(--spacing-md) 0 var(--spacing-sm);
  }

  .footer h5 {
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
  }

  .footer p,
  .footer a {
    font-size: 0.9rem;
  }

  /* Spacing utilities mobile */
  .mb-section {
    margin-bottom: var(--spacing-md);
  }

  .mt-section {
    margin-top: var(--spacing-md);
  }

  /* Mobile form usability */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }

  .form-control,
  .form-select {
    margin-bottom: 1rem;
  }

  button[type="submit"],
  input[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Better spacing for mobile grids */
  .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }

  .row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Container padding adjustment */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Extra spacing for very small screens */
  section {
    padding: calc(var(--spacing-sm) + 0.5rem) 0;
  }

  section.bg-light-gray {
    padding-top: calc(var(--spacing-md) + 0.5rem);
    padding-bottom: calc(var(--spacing-md) + 0.5rem);
  }

  .timeline-item {
    margin-bottom: var(--spacing-sm);
  }

  .card,
  form,
  .alert {
    margin-bottom: var(--spacing-md);
  }

  /* Mobile utility classes */
  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-mb-3 {
    margin-bottom: 1rem !important;
  }

  .mobile-hide {
    display: none !important;
  }

  /* Carousel responsive */
  .carousel-indicators {
    bottom: 175px !important;
  }

  .carousel-indicators [data-bs-target] {
    width: 25px !important;
    height: 2px !important;
  }

  .carousel-indicators .active {
    width: 35px !important;
  }

  .carousel .card {
    margin: 0;
  }

  .carousel .card-img-top {
    height: 220px;
  }

  .carousel .card-body {
    padding: 1rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .carousel-control-prev-icon::after,
  .carousel-control-next-icon::after {
    width: 8px;
    height: 8px;
  }

  /* Artwork carousel */
  .artwork-carousel .carousel-indicators,
  .artwork-carousel.carousel .carousel-indicators {
    bottom: 10px !important;
  }
}

/* Very small mobile devices */
@media (max-width: 375px) {
  html {
    font-size: 15px;
  }

  h1, .display-4 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 1.5rem !important;
  }

  .page-hero h1, .page-hero .display-4 {
    font-size: 1.5rem !important;
  }

  .lead {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .card-img-top {
    height: 160px;
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--spacing-md) 0;
  }

  .page-hero {
    padding: var(--spacing-sm) 0;
  }

  section {
    padding: var(--spacing-sm) 0;
  }
}

/* ============================================
   MOBILE-SPECIFIC ENHANCEMENTS
   ============================================ */

/* Prevent text size adjustment on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Improve touch scrolling on iOS */
body {
  -webkit-overflow-scrolling: touch;
}

/* Remove tap highlight on mobile */
a,
button,
.btn,
.card,
.nav-link {
  -webkit-tap-highlight-color: transparent;
}

/* Add active state for better touch feedback */
.btn:active,
.card:active,
.nav-link:active {
  opacity: 0.8;
  transform: scale(0.98);
}

/* Loading optimization for images */
.card-img-top,
img {
  loading: lazy;
}

/* Safe area for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .navbar,
  .footer {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ============================================
   CAROUSEL RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .carousel-indicators {
    bottom: 190px !important;
  }

  .carousel .card {
    max-width: 750px;
  }

  .carousel .card-img-top {
    height: 320px;
  }

  .carousel .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 992px) {
  .carousel-indicators {
    bottom: 185px !important;
  }

  .carousel .card {
    max-width: 650px;
  }

  .carousel .card-img-top {
    height: 280px;
  }

  .carousel .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .carousel .card {
    max-width: 100%;
    margin: 0 0.5rem;
  }

  .carousel .card-img-top {
    height: 250px;
  }

  .carousel .card-body {
    padding: 1rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .carousel-control-prev-icon::after,
  .carousel-control-next-icon::after {
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--carousel-arrow-color);
    border-bottom: 2px solid var(--carousel-arrow-color);
  }

  .carousel-item {
    padding: 0.5rem 0;
  }

  .carousel-control-prev,
  .carousel-control-next {
    padding: 0 0.25rem;
  }
}


