/**
 * Component Styles
 * 
 * This file contains styles for reusable UI components:
 * - Navigation
 * - Buttons
 * - Cards
 * 
 * Requirements: 3.2, 3.3, 3.4, 3.5, 4.3, 4.4, 8.2
 */

/* ============================================
   NAVIGATION COMPONENT
   ============================================
   Fixed/sticky navigation bar with smooth scroll behavior,
   active state indicators, and mobile menu toggle.
   
   Requirements: 3.2, 3.3, 4.4, 8.2
*/

.nav {
  /* Fixed positioning at top of viewport */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  
  /* Background with subtle transparency */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Soft shadow for subtle elevation */
  box-shadow: 0 2px 12px var(--shadow-soft);
  
  /* Smooth transitions for scroll-based appearance */
  transition: all var(--duration-normal) var(--ease-smooth);
  
  /* Initial state - hidden above viewport */
  transform: translateY(-100%);
  opacity: 0;
}

/* Navigation visible state (added via JavaScript on scroll) */
.nav--visible {
  transform: translateY(0);
  opacity: 1;
}

/* Navigation container */
.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-md);
}

/* Logo/Brand */
.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-fast) var(--ease-smooth);
  
  /* Ensure proper touch target */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__logo:hover {
  color: var(--accent-soft);
  transform: scale(1.05);
}

.nav__logo:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Mobile Menu Toggle Button */
.nav__toggle {
  /* Button reset */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  
  /* Size and touch target */
  width: 44px;
  height: 44px;
  
  /* Smooth transition */
  transition: all var(--duration-fast) var(--ease-smooth);
  
  /* Border radius for organic feel */
  border-radius: var(--radius-sm);
  
  /* Show only on mobile */
  display: flex;
}

.nav__toggle:hover {
  background: var(--bg-main);
}

.nav__toggle:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Hamburger icon */
.nav__toggle-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.nav__toggle-icon::before {
  top: -8px;
}

.nav__toggle-icon::after {
  bottom: -8px;
}

/* Hamburger icon animation when menu is open */
.nav__toggle[aria-expanded="true"] .nav__toggle-icon {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Navigation Menu */
.nav__menu {
  /* Reset list styles */
  list-style: none;
  margin: 0;
  padding: 0;
  
  /* Mobile: vertical menu */
  display: flex;
  flex-direction: column;
  gap: 0;
  
  /* Mobile: absolute positioning for dropdown */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--shadow-soft);
  
  /* Mobile: hidden by default */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  
  /* Smooth transition for mobile menu */
  transition: all var(--duration-normal) var(--ease-smooth);
}

/* Mobile menu open state */
.nav__menu--open {
  max-height: 400px;
  opacity: 1;
  padding: var(--space-sm) 0;
}

/* Navigation Item */
.nav__item {
  margin: 0;
  font-family: "Oswald", sans-serif;
}

/* Navigation Link */
.nav__link {
  /* Display and layout */
  display: block;
  padding: var(--space-sm) var(--space-md);
  
  /* Typography */
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-fast) var(--ease-smooth);
  
  /* Ensure proper touch target */
  min-height: 44px;
  display: flex;
  align-items: center;
  
  /* Position for active indicator */
  position: relative;
}

/* Hover state */
.nav__link:hover {
  color: var(--accent-strong);
  background: var(--bg-main);
}

/* Active state indicator */
.nav__link--active {
  color: var(--accent-strong);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: 0;
  height: 3px;
  background: var(--accent-strong);
  border-radius: 2px;
}

/* Focus state for keyboard navigation */
.nav__link:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: -3px;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
  .nav__container {
    padding: var(--space-sm) var(--space-lg);
  }
  
  /* Hide mobile toggle on larger screens */
  .nav__toggle {
    display: none;
  }
  
  /* Navigation Menu - horizontal layout */
  .nav__menu {
    /* Reset mobile styles */
    position: static;
    flex-direction: row;
    gap: var(--space-xs);
    max-height: none;
    opacity: 1;
    overflow: visible;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  
  /* Navigation Link - compact for horizontal layout */
  .nav__link {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
  }
  
  .nav__link:hover {
    background: var(--bg-main);
  }
  
  /* Active indicator - bottom border for horizontal layout */
  .nav__link--active::after {
    left: var(--space-xs);
    right: var(--space-xs);
    bottom: -2px;
  }
}

@media (min-width: 1024px) {
  .nav__container {
    padding: var(--space-md) var(--space-xl);
  }
  
  .nav__menu {
    gap: var(--space-sm);
  }
  
  .nav__link {
    padding: var(--space-sm) var(--space-md);
    font-size: 1.0625rem;
  }
}

@media (min-width: 1440px) {
  .nav__menu {
    gap: var(--space-md);
  }
}

/* Smooth scroll behavior for navigation links */
html {
  scroll-behavior: smooth;
}

/* Offset scroll position to account for fixed navigation */
section[id] {
  scroll-margin-top: 80px;
}


/* ============================================
   BUTTON COMPONENTS
   ============================================
   Modern button styles with large border radius
   and smooth hover micro-interactions.
   
   Requirements: 3.2, 3.3, 3.4, 4.3
*/

.btn {
  /* Base button styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  
  /* Spacing - organic padding */
  padding: var(--space-sm) var(--space-md);
  
  /* Large border radius for modern, organic feel */
  border-radius: var(--radius-md);
  
  /* Typography */
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  
  /* Remove default button styles */
  border: none;
  background: none;
  
  /* Interaction */
  cursor: pointer;
  user-select: none;
  
  /* Smooth transitions for hover micro-interactions */
  transition: all var(--duration-fast) var(--ease-smooth);
  
  /* Ensure proper touch targets on mobile */
  min-height: 44px;
  min-width: 44px;
}

/* Primary Button Variant */
.btn--primary {
  background: var(--accent-strong);
  color: white;
  box-shadow: 0 4px 12px var(--shadow-soft);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
}

.btn--primary:hover {
  /* Hover micro-interaction: lift and enhance shadow */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn--primary:active {
  /* Active state: press down slightly */
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.btn--primary:focus-visible {
  /* Keyboard focus indicator */
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Secondary Button Variant */
.btn--secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 2px solid var(--accent-soft);
}

.btn--secondary:hover {
  /* Hover micro-interaction: fill with accent color */
  background: var(--accent-soft);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-soft);
}

.btn--secondary:active {
  /* Active state: press down slightly */
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.btn--secondary:focus-visible {
  /* Keyboard focus indicator */
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}



/* ============================================
   CARD COMPONENTS
   ============================================
   Card components with soft shadows and hover elevation.
   Uses organic spacing and large border radius.
   
   Requirements: 3.2, 3.3, 3.4, 3.5
*/

.card {
  /* Base card styles */
  background: var(--bg-surface);
  
  /* Large border radius for organic, modern feel */
  border-radius: var(--radius-lg);
  
  /* Organic spacing */
  padding: var(--space-md);
  
  /* Soft shadow for subtle elevation */
  box-shadow: 0 4px 20px var(--shadow-soft);
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
  
  /* Ensure proper stacking context */
  position: relative;
}

.card:hover {
  /* Hover elevation effect: lift card and enhance shadow */
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

/* Card with image */
.card__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  object-fit: cover;
}

/* Card header */
.card__header {
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 var(--space-xs) 0;
}

.card__subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Card body */
.card__body {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

/* Card footer */
.card__footer {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--accent-soft);
}

/* Card variants */
.card--compact {
  padding: var(--space-sm);
}

.card--elevated {
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.card--elevated:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-medium);
}


/* ============================================
   SKILL CARD COMPONENTS
   ============================================
   Skill cards for the Skills/Tech Stack section.
   Features grid layout, hover interactions, and scroll reveal animations.
   
   Requirements: 7.3, 4.2, 4.3
*/

.skills__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.skill-card {
  /* Base card styles with organic design */
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  
  /* Soft shadow for subtle elevation */
  box-shadow: 0 4px 20px var(--shadow-soft);
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
  
  /* Flexbox layout for content */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  
  /* Ensure proper stacking context */
  position: relative;
  
  /* Initial state for scroll animations */
  opacity: 0;
}

/* Hover interaction - lift and enhance shadow */
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

/* Icon container */
.skill-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Circular background with accent color */
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
  border-radius: 50%;
  
  /* Icon color */
  color: white;
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
}

.skill-card:hover .skill-card__icon {
  /* Rotate slightly on hover for playful interaction */
  transform: rotate(5deg) scale(1.05);
}

.skill-card__icon svg {
  width: 32px;
  height: 32px;
}

/* Card title */
.skill-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
  font-family: "Prosto One", sans-serif;
}

/* Card description */
.skill-card__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-family: "Geom", sans-serif;
  font-weight: 600;
}

.skill-card__icon .material-symbols-outlined {
  font-size: 32px;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
}

/* Responsive grid layouts */
@media (min-width: 768px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .skills__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1440px) {
  .skills__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
  
  .skill-card {
    padding: var(--space-lg);
  }
  
  .skill-card__icon {
    width: 72px;
    height: 72px;
  }
  
  .skill-card__icon svg {
    width: 36px;
    height: 36px;
  }
}


/* ============================================
   PROJECT CARD COMPONENTS
   ============================================
   Project cards for the Projects section.
   Features responsive grid layout, image display, hover interactions,
   and scroll reveal animations.
   
   Requirements: 7.4, 4.2, 4.3
*/

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.project-card {
  /* Base card styles with organic design */
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  
  /* Soft shadow for subtle elevation */
  box-shadow: 0 4px 20px var(--shadow-soft);
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
  
  /* Flexbox layout for content */
  display: flex;
  flex-direction: column;
  
  /* Ensure proper stacking context */
  position: relative;
  
  /* Initial state for scroll animations */
  opacity: 0;
  
  /* Remove default article margins */
  margin: 0;
  
  /* Overflow hidden for image border radius */
  overflow: hidden;
}

/* Hover interaction - lift and enhance shadow */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-medium);
}

/* Project image container */
.project-card__image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--bg-main);
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
}

.project-card__image svg,
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
  /* Smooth transition for hover zoom effect */
  transition: transform var(--duration-slow) var(--ease-smooth);
}

/* Hover effect on image - subtle zoom */
.project-card:hover .project-card__image svg,
.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

/* Project content container */
.project-card__content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

/* Project title */
.project-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
  
  /* Smooth transition for hover effect */
  transition: color var(--duration-fast) var(--ease-smooth);
}

.project-card:hover .project-card__title {
  color: var(--accent-strong);
}

/* Project description */
.project-card__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Technology tags */
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-soft);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-fast) var(--ease-smooth);
}

.project-card:hover .tag {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

/* Project links */
.project-card__links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Small button variant for project links */
.btn--small {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  min-height: 36px;
  min-width: auto;
}

.btn--small svg {
  width: 16px;
  height: 16px;
}

/* Responsive grid layouts */
@media (min-width: 768px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .project-card__image {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .project-card__image {
    height: 240px;
  }
  
  .project-card__content {
    padding: var(--space-lg);
  }
}

@media (min-width: 1440px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
  
  .project-card__image {
    height: 220px;
  }
}


/* ============================================
   TIMELINE COMPONENTS
   ============================================
   Timeline components for the Experience section.
   Features vertical timeline layout with connecting line,
   styled timeline items, and scroll reveal animations.
   
   Requirements: 7.5, 4.2
*/

.timeline {
  position: relative;
  max-width: 900px;
  margin: var(--space-lg) auto 0;
  padding: 0;
}

/* Vertical connecting line */
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-soft) 0%,
    var(--accent-strong) 50%,
    var(--accent-soft) 100%
  );
}

/* Timeline item */
.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--space-lg);
  margin: 0;
  
  /* Initial state for scroll animations */
  opacity: 0;
}

/* Remove bottom padding from last item */
.timeline-item:last-child {
  padding-bottom: 0;
}

/* Timeline marker (dot) */
.timeline-item__marker {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border: 3px solid var(--accent-strong);
  border-radius: 50%;
  z-index: 1;
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
}

/* Marker hover effect */
.timeline-item:hover .timeline-item__marker {
  transform: scale(1.3);
  background: var(--accent-strong);
  box-shadow: 0 0 0 6px rgba(199, 53, 46, 0.1);
}

/* Timeline content container */
.timeline-item__content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 4px 20px var(--shadow-soft);
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
}

/* Content hover effect */
.timeline-item:hover .timeline-item__content {
  transform: translateX(8px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

/* Date */
.timeline-item__date {
  display: inline-block;
  font-size: 0.600rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Prosto One", sans-serif;
}

/* Title */
.timeline-item__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 var(--space-xs) 0;
  line-height: 0.6;
  font-family: "Prosto One", sans-serif;
}

/* Company */
.timeline-item__company {
  font-size: 0.500rem;
  font-weight: 500;
  color: var(--accent-soft);
  margin: 0 0 var(--space-sm) 0;
  font-family: "Prosto One", sans-serif;
}

/* Highlights list */
.timeline-item__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-item__highlights li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: "Geom", sans-serif;
  font-weight: 600;
}

/* Custom bullet point */
.timeline-item__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .timeline {
    padding-left: var(--space-md);
  }
  
  .timeline::before {
    left: 24px;
  }
  
  .timeline-item {
    padding-left: 80px;
  }
  
  .timeline-item__marker {
    left: 15px;
    width: 20px;
    height: 20px;
  }
  
  .timeline-item__content {
    padding: var(--space-lg);
  }
  
  .timeline-item__title {
    font-size: 1.75rem;
  }
  
  .timeline-item__company {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .timeline {
    max-width: 1000px;
  }
  
  .timeline::before {
    left: 28px;
  }
  
  .timeline-item {
    padding-left: 100px;
  }
  
  .timeline-item__marker {
    left: 19px;
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 1440px) {
  .timeline {
    max-width: 1100px;
  }
  
  .timeline-item__content {
    padding: var(--space-xl);
  }
}


/* ============================================
   CONTACT SECTION COMPONENTS
   ============================================
   Contact section with styled contact links as cards/buttons.
   Features hover interactions and scroll reveal animations.
   
   Requirements: 7.6, 4.3
*/

.blog__intro {
  text-align: left;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 100%;
  margin: var(--space-md) 0 var(--space-lg) 0;
  font-family: "Geom", sans-serif;
  font-weight: 600;
  
  /* Initial state for scroll animations */
  opacity: 0;
}

.blog__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
  
  /* Initial state for scroll animations */
  opacity: 0;
}

.blog-link {
  /* Base card styles with organic design */
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  
  /* Soft shadow for subtle elevation */
  box-shadow: 0 4px 20px var(--shadow-soft);
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
  
  /* Flexbox layout */
  display: flex;
  align-items: center;
  gap: var(--space-md);
  
  /* Remove default link styles */
  text-decoration: none;
  color: inherit;
  
  /* Ensure proper stacking context */
  position: relative;
  
  /* Max width for better appearance */
  max-width: 500px;
  width: 100%;
}

/* Hover interaction - lift and enhance shadow */
.blog-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px var(--shadow-medium);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-main) 100%);
}

/* Focus state for keyboard navigation */
.blog-link:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Icon container */
.blog-link__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Circular background with gradient */
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
  border-radius: 50%;
  
  /* Icon color */
  color: white;
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
}

.blog-link:hover .blog-link__icon {
  /* Rotate and scale on hover for playful interaction */
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(199, 53, 46, 0.3);
}

.blog-link__icon .material-symbols-outlined {
  font-size: 32px;
}

/* Content container */
.blog-link__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Title */
.blog-link__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
  font-family: "Prosto One", sans-serif;
  
  /* Smooth transition for hover effect */
  transition: color var(--duration-fast) var(--ease-smooth);
}

.blog-link:hover .blog-link__title {
  color: var(--accent-strong);
}

/* Description */
.blog-link__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
  font-family: "Geom", sans-serif;
  font-weight: 600;
}

/* Arrow icon */
.blog-link__arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
}

.blog-link:hover .blog-link__arrow {
  transform: translateX(8px);
}

.blog-link__arrow .material-symbols-outlined {
  font-size: 32px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .blog__intro {
    font-size: 1.25rem;
  }
  
  .blog-link {
    padding: var(--space-lg);
  }
  
  .blog-link__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }
  
  .blog-link__icon .material-symbols-outlined {
    font-size: 36px;
  }
  
  .blog-link__title {
    font-size: 1.5rem;
  }
  
  .blog-link__description {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .blog-link {
    max-width: 600px;
  }
}

.contact__intro {
  text-align: left;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 100%;
  margin: var(--space-md) 0 var(--space-lg) 0;
  font-family: "Geom", sans-serif;
  font-weight: 600;
  
  /* Initial state for scroll animations */
  opacity: 0;
}

.contact__links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: var(--space-sm);
  max-width: 100%;
  margin: 0;
}

/* Contact link card/button */
.contact-link {
  /* Base card styles with organic design */
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  
  /* Soft shadow for subtle elevation */
  box-shadow: 0 4px 20px var(--shadow-soft);
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
  
  /* Flexbox layout for icon only */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Remove default link styles */
  text-decoration: none;
  color: inherit;
  
  /* Ensure proper stacking context */
  position: relative;
  
  /* Initial state for scroll animations */
  opacity: 0;
  
  /* Smaller size for icon-only display */
  width: 80px;
  height: 80px;
}

/* Hover interaction - lift and enhance shadow */
.contact-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px var(--shadow-medium);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-main) 100%);
}

/* Focus state for keyboard navigation */
.contact-link:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Icon container */
.contact-link__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Circular background with gradient */
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
  border-radius: 50%;
  
  /* Icon color */
  color: white;
  
  /* Smooth transition for hover effect */
  transition: all var(--duration-normal) var(--ease-smooth);
}

.contact-link:hover .contact-link__icon {
  /* Rotate and scale on hover for playful interaction */
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(199, 53, 46, 0.3);
}

.contact-link__icon svg,
.contact-link__icon .material-symbols-outlined {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

/* Content container */
.contact-link__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Title */
.contact-link__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
  
  /* Smooth transition for hover effect */
  transition: color var(--duration-fast) var(--ease-smooth);
}

.contact-link:hover .contact-link__title {
  color: var(--accent-strong);
}

/* Text/Description */
.contact-link__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Responsive grid layouts */
@media (min-width: 768px) {
  .contact__links {
    gap: var(--space-md);
  }
  
  .contact-link {
    width: 90px;
    height: 90px;
    padding: var(--space-md);
  }
  
  .contact-link__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }
  
  .contact-link__icon svg,
  .contact-link__icon .material-symbols-outlined {
    width: 28px;
    height: 28px;
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .contact__intro {
    font-size: 1.25rem;
  }
  
  .contact__links {
    gap: var(--space-lg);
  }
  
  .contact-link {
    width: 100px;
    height: 100px;
  }
  
  .contact-link__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  
  .contact-link__icon svg,
  .contact-link__icon .material-symbols-outlined {
    width: 32px;
    height: 32px;
    font-size: 32px;
  }
}

@media (min-width: 1440px) {
  .contact__links {
    gap: var(--space-xl);
  }
  
  .contact-link {
    width: 110px;
    height: 110px;
  }
  
  .contact-link__icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }
  
  .contact-link__icon svg,
  .contact-link__icon .material-symbols-outlined {
    width: 36px;
    height: 36px;
    font-size: 36px;
  }
}
  
  .contact-link__title {
    font-size: 1.5rem;
  }
  
  .contact-link__text {
    font-size: 1rem;
  }
}


/* ============================================
   ACCESSIBILITY - FOCUS INDICATORS
   ============================================
   Visible focus indicators for keyboard navigation.
   Ensures all interactive elements have clear focus states.
   
   Requirements: 11.5
*/

/* Enhanced focus styles for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Focus styles for navigation links - already defined above but ensuring consistency */
.nav__link:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: -3px;
  background: var(--bg-main);
}

/* Focus styles for buttons - already defined above but ensuring consistency */
.btn:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

.btn--primary:focus-visible {
  outline-color: var(--accent-strong);
  box-shadow: 0 6px 20px var(--shadow-medium), 0 0 0 3px rgba(199, 53, 46, 0.3);
}

.btn--secondary:focus-visible {
  outline-color: var(--accent-soft);
  box-shadow: 0 4px 16px var(--shadow-soft), 0 0 0 3px rgba(156, 175, 136, 0.3);
}

/* Focus styles for cards (when they contain links) */
.card:focus-within {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.skill-card:focus-within,
.project-card:focus-within {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Focus styles for contact links - already defined above but ensuring consistency */
.contact-link:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Focus styles for timeline items */
.timeline-item:focus-within {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

/* Focus styles for skip link - already defined in base.css but ensuring consistency */
.skip-link:focus {
  outline: 3px solid white;
  outline-offset: 2px;
}

/* Ensure focus is visible on all interactive SVG elements */
svg:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Focus styles for tags */
.tag:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible {
    outline-width: 4px;
    outline-offset: 3px;
  }
}
