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

/* Custom Color Variables - Updated Theme */
:root {
  --primary-color: #0c1446;
  --accent-color: #2b7c85;
  --accent-hover: #1e5a62;
  --secondary-color: #175873;
  --tertiary-color: #87aca3;
  --text-light: #f0f8ff;
  --text-dark: #1a202c;
  --text-muted: #787878;
  --border-light: #efefef;
  --background-light: #f8fffe;
  --background-warm: #fefbf7;
  --card-background: #fffef9;
  --gradient-primary: linear-gradient(135deg, #2b7c85 0%, #1a237e 100%);
  --gradient-secondary: linear-gradient(135deg, #2b7c85 0%, #87aca3 100%);

  /* Enhanced variables with fallbacks */
  --focus-color: var(--accent-color, #2b7c85);
  --transition-timing: 0.3s ease;
  --border-radius: 8px;
  --shadow-light: 0 2px 10px rgb(0 0 0 / 10%);
  --shadow-medium: 0 4px 20px rgb(0 0 0 / 15%);
  --shadow-heavy: 0 8px 30px rgb(0 0 0 / 20%);
}

/*
	Foundation Styles
	Based on HTML5 UP Strata Template
	html5up.net | @ajlkn
*/

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

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
}

/* Improve rendering performance */
.card,
.project-card,
.timeline-content,
.value-card,
.skill-category {
  contain: layout style paint;
}

/* Better scroll performance */
.nav-menu,
.achievements-content {
  contain: layout;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
em,
img,
strong,
sub,
sup,
ol,
ul,
li,
fieldset,
form,
label,
table,
tbody,
thead,
tr,
th,
td,
article,
aside,
figure,
figcaption,
footer,
header,
nav,
section {
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
figcaption,
figure,
footer,
header,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input,
select,
textarea {
  appearance: none;
}

/* Base Styles */
html {
  font-size: 18px; /* Increased from 16px for better readability on modern screens */
  scroll-behavior: smooth; /* Smooth scrolling for modern browsers */
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--background-light);
  color: var(--text-dark);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6; /* Improved from 1.75 for better reading density */
}

input,
select,
textarea {
  color: #a2a2a2;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6; /* Improved consistency with body */
}

body.is-preload *,
body.is-preload *::before,
body.is-preload *::after {
  animation: none !important;
  transition: none !important;
}

/* Typography */
a {
  transition:
    color 0.2s ease-in-out,
    border-color 0.2s ease-in-out;
  border-bottom: dotted 1px;
  color: #49bf9d;
  text-decoration: none;
}

a:hover {
  border-bottom-color: transparent;
  color: #49bf9d !important;
}

/* Enhanced focus styles for accessibility - only show on keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Remove focus outline on mouse click */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 3px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

strong,
b {
  color: var(--text-muted);
  font-weight: 400;
}

em,
i {
  font-style: italic;
}

p {
  margin: 0 0 1.8em; /* Slightly tighter spacing for better rhythm */
  line-height: 1.6; /* Consistent with body */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4; /* Improved from 1.5 for better heading hierarchy */
  margin: 0 0 1em;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-size: 2.2em; /* Slightly increased for better desktop hierarchy */
  line-height: 1.2;
}

h2 {
  font-size: 1.6em; /* Improved scaling */
  line-height: 1.3;
}

h3 {
  font-size: 1.3em; /* Better proportions */
  line-height: 1.3;
}

h4 {
  font-size: 1.1em;
  line-height: 1.4;
}

h5 {
  font-size: 0.9em;
}

h6 {
  font-size: 0.7em;
}

sub,
sup {
  font-size: 0.8em;
  position: relative;
}

sub {
  top: 0.5em;
}

sup {
  top: -0.5em;
}

/* Content Elements */
hr {
  border: 0;
  border-bottom: solid 2px #efefef;
  margin: 2em 0;
}

hr.major {
  margin: 3em 0;
}

blockquote {
  border-left: solid 6px #efefef;
  font-style: italic;
  margin: 0 0 2em;
  padding: 0.5em 0 0.5em 1.5em;
}

code {
  background: #f7f7f7;
  border-radius: 0.35em;
  border: solid 2px #efefef;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}

pre {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  margin: 0 0 2em;
  overflow-x: auto;
}

pre code {
  display: block;
  line-height: 1.5; /* Adjusted for better code readability */
  padding: 1em 1.5em;
  overflow-x: auto;
}

/* Text Alignment */
.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

/* Container */
.container {
  margin: 0 auto;
  max-width: calc(100% - 4em);
  width: 100%;
}

@media (width <= 980px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (width <= 480px) {
  .container {
    max-width: calc(100% - 3em);
  }
}

/* Button Styles */
input[type='submit'],
input[type='reset'],
input[type='button'],
.button {
  appearance: none;
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 140px;
  position: relative;
}

input[type='submit']:hover,
input[type='reset']:hover,
input[type='button']:hover,
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgb(43 124 133 / 30%);
}

/* Enhanced focus states for buttons - keyboard only */
input[type='submit']:focus-visible,
input[type='reset']:focus-visible,
input[type='button']:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--tertiary-color);
  outline-offset: 2px;
}

/* Remove focus outline on mouse click for buttons */
input[type='submit']:focus:not(:focus-visible),
input[type='reset']:focus:not(:focus-visible),
input[type='button']:focus:not(:focus-visible),
.button:focus:not(:focus-visible) {
  outline: none;
}

/* Loading state for form submissions */
.button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentcolor;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

.button.primary,
input[type='submit'].primary,
input[type='reset'].primary,
input[type='button'].primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.button.primary:hover,
input[type='submit'].primary:hover,
input[type='reset'].primary:hover,
input[type='button'].primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgb(12 20 70 / 95%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(43 124 133 / 30%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s ease;
}

.hamburger:focus {
  outline: 3px solid var(--tertiary-color);
  outline-offset: 2px;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 3px 0;
  background-color: var(--background-warm);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* Menu backdrop overlay */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 50%);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Show hamburger only on mobile */
@media (width <= 768px) {
  .hamburger {
    display: flex;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tertiary-color);
  text-decoration: none !important;
  border-bottom: none !important;
}

.logo:hover {
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: rgb(255 255 255 / 80%);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

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

/* Common Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Page Headers */
.page-header {
  text-align: center;
  padding: 8rem 0 4rem;
  background: var(--gradient-primary);
  color: white;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--tertiary-color);
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  opacity: 0.95;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Filter Tabs */
.filter-tabs {
  padding: 2rem 0;
  background: white;
  border-bottom: 1px solid #eee;
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--accent-color);
  background: white;
  color: var(--accent-color);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--accent-color) !important;
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Common Section Backgrounds */
.section-warm {
  background: var(--background-warm);
}

.section-light {
  background: var(--background-light);
}

/* Card Styles */
.card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  background: var(--card-background);
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 15px rgb(43 124 133 / 10%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--secondary-color)
  );
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgb(43 124 133 / 20%);
  border-color: var(--secondary-color);
}

/* Enhanced focus state for interactive cards - keyboard only */
.card:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Remove focus outline on mouse click for cards */
.card:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure cards have proper semantic structure */
.card[tabindex] {
  cursor: pointer;
}

.card[tabindex]:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.card[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

.card-icon {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card-desc {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Text Highlights */
.highlight {
  color: var(--accent-color);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1px;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  border: 2px solid var(--accent-color);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: white;
  color: var(--accent-color);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgb(0 0 0 / 20%);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card,
  .button,
  .form-group input,
  .form-group textarea,
  .form-group select {
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hamburger,
  .menu-backdrop,
  .cta-buttons,
  .project-actions,
  .contact-form {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .hero {
    background: none !important;
    color: black !important;
    padding: 2rem 0 !important;
  }
}

/* Responsive Design */
@media (width <= 768px) {
  /* Mobile typography improvements */
  html {
    font-size: 16px; /* Optimal mobile size, smaller than desktop 18px */
  }

  body {
    font-size: 1rem;
    line-height: 1.6; /* Consistent with desktop */
  }

  /* Heading adjustments for mobile */
  h1 {
    font-size: 1.9rem; /* Slightly larger for mobile impact */
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem; /* Better mobile hierarchy */
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem; /* Improved mobile scaling */
    line-height: 1.3;
  }

  h4 {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  p {
    margin: 0 0 1.5em;
    font-size: 1rem;
    line-height: 1.6;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 75px;
    flex-direction: column;
    background: linear-gradient(
      135deg,
      var(--accent-color) 0%,
      var(--primary-color) 100%
    );
    width: 65vw;
    max-width: 200px;
    height: calc(100vh - 75px);
    text-align: left;
    transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -4px 0 20px rgb(0 0 0 / 15%);
    padding: 2rem 1rem;
    gap: 0.75rem;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: rgb(255 255 255 / 80%);
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(20px);
    animation: none;
    min-height: 44px; /* Better touch target */
    display: flex;
    align-items: center;
    margin: 0 0.25rem;
    background: rgb(255 255 255 / 5%);
  }

  .nav-menu.active .nav-link {
    animation: slideInFromRight 0.4s ease forwards;
  }

  .nav-menu.active .nav-link:nth-child(1) {
    animation-delay: 0.1s;
  }

  .nav-menu.active .nav-link:nth-child(2) {
    animation-delay: 0.15s;
  }

  .nav-menu.active .nav-link:nth-child(3) {
    animation-delay: 0.2s;
  }

  .nav-menu.active .nav-link:nth-child(4) {
    animation-delay: 0.25s;
  }

  .nav-menu.active .nav-link:nth-child(5) {
    animation-delay: 0.3s;
  }

  .nav-menu.active .nav-link:nth-child(6) {
    animation-delay: 0.35s;
  }

  @keyframes slideInFromRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--background-warm);
    border-bottom-color: var(--background-warm);
    background: rgb(255 255 255 / 15%);
    transform: translateX(3px);
  }

  /* Mobile button improvements */
  .btn,
  .button,
  .tab-btn,
  input[type='submit'],
  input[type='reset'],
  input[type='button'] {
    min-height: 44px; /* Apple recommended touch target */
    padding: 12px 20px;
    font-size: 1rem;
    touch-action: manipulation; /* Prevents zoom on touch */
    -webkit-tap-highlight-color: transparent; /* Removes tap highlight */
    user-select: none; /* Prevents text selection on touch */
  }

  /* CTA buttons stack on mobile */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-buttons .btn,
  .cta-buttons .button {
    width: 100%;
    max-width: 280px;
  }

  /* Project links improvements */
  .project-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-links .btn,
  .project-links .tab-btn {
    width: 100%;
    text-align: center;
  }

  /* Tab buttons mobile improvements */
  .tab-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    min-width: 120px;
  }

  .page-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .page-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .section-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  /* Card content typography */
  .card-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .card-desc {
    font-size: 1rem;
    line-height: 1.5;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (width >= 1400px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
  }
}

/* Home Page */

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #2b7c85 0%, #1a237e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--tertiary-color);
  text-shadow: 0 2px 8px rgb(0 0 0 / 30%);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: rgb(240 248 255 / 90%);
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: rgb(240 248 255 / 80%);
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

/* Hero Mobile Responsive */
@media (width <= 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-buttons .btn,
  .cta-buttons .button {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    font-size: 1.1rem;
  }
}

/* About Page */

/* About Content */
.about-content {
  padding: 4rem 0;
  background: var(--background-warm);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent-color);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

/* Journey Section */
.journey {
  padding: 4rem 0;
  background: var(--background-warm);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 2rem;
}

.timeline-content {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 20px rgb(43 124 133 / 10%);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Gradient top bar for timeline consistency */
.timeline-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color), #4a9ca8);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgb(43 124 133 / 15%);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -30px;
  border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -30px;
  border-right-color: white;
}

.timeline-year {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.timeline-desc {
  color: #666;
}

/* Values Section */
.values {
  padding: 4rem 0;
  background: var(--background-warm);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.value-card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgb(43 124 133 / 10%);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Gradient top bar for consistency with skills page */
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color), #4a9ca8);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgb(43 124 133 / 20%);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  display: block;
}

.value-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.value-desc {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* About Page Responsive */
@media (width >= 1400px) {
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
  }
}

@media (width <= 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }

  .timeline-content::before {
    left: -30px !important;
    border-right-color: white !important;
    border-left-color: transparent !important;
  }
}

@media (width <= 767px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Skills Page */

/* Skills Overview */
.skills-overview {
  padding: 4rem 0;
  background: var(--background-warm);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Skill Category Cards */
.skill-category {
  background: var(--card-background);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgb(43 124 133 / 10%);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Gradient top bar */
.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color), #4a9ca8);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgb(43 124 133 / 20%);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skill-category p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.skill-list {
  list-style: none;
  text-align: left;
  margin: 0;
  padding: 0;
}

.skill-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgb(43 124 133 / 10%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.skill-list li:last-child {
  border-bottom: none;
}

/* Skills Page Responsive */
@media (width <= 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Portfolio Page */

/* Portfolio Grid */
.portfolio {
  padding: 4rem 0;
  background: var(--background-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgb(0 0 0 / 10%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgb(0 0 0 / 15%);
}

.project-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgb(43 124 133 / 90%),
    rgb(135 172 163 / 90%)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-actions {
  display: flex;
  gap: 1rem;
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.project-description {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.tech-tag {
  background: rgb(43 124 133 / 5%);
  color: var(--text-dark);
  border: 1px solid rgb(43 124 133 / 10%);
  padding: 0.35rem 0.9rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-links {
  display: flex;
  gap: 1rem;
}

/* Featured Project */
.featured-project {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  margin-bottom: 3rem;
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.featured-info {
  padding: 3rem;
}

.featured-badge {
  background: var(--tertiary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.featured-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.featured-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.featured-image {
  height: 400px;
  background-size: cover;
  background-position: center;
}

/* Carousel Styles */
.featured-image-carousel {
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 0 15px 15px 0;
}

.carousel-container {
  position: relative;
  height: 100%;
  width: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(255 255 255 / 80%);
  border: 2px solid rgb(0 0 0 / 30%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
}

.indicator:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.indicator.active {
  background: var(--accent-color);
  border-color: rgb(255 255 255 / 80%);
  transform: scale(1.2);
  box-shadow: 0 2px 6px rgb(0 0 0 / 40%);
}

.indicator:hover:not(.active) {
  background: rgb(255 255 255 / 95%);
  transform: scale(1.1);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 90%);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 2% auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

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

#schemaImage {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 50%);
}

/* Portfolio Page Responsive */
@media (width <= 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .featured-content {
    grid-template-columns: 1fr;
  }

  /* Stack featured project buttons vertically on mobile */
  .featured-info .project-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .featured-info .btn,
  .featured-info .tab-btn {
    text-align: center;
    width: 100%;
  }

  .featured-image-carousel {
    height: 250px;
    border-radius: 0;
  }

  .featured-image {
    height: 250px;
  }
}

/* Experience Page Styles - Simple Timeline Layout */
.experience-section {
  padding: 4rem 0;
  background: var(--background-light);
}

.experience-grid {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Timeline center line */
.experience-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--accent-color),
    var(--tertiary-color)
  );
  transform: translateX(-50%);
  z-index: 1;
}

.experience-card {
  position: relative;
  margin-bottom: 4rem;
}

/* Main position content card */
.position-content {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 2px solid var(--accent-color);
  box-shadow: 0 8px 25px rgb(43 124 133 / 10%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 45%;
}

/* Alternating card positioning */
.experience-card:nth-child(odd) .position-content {
  margin-left: 0;
  margin-right: auto;
}

.experience-card:nth-child(even) .position-content {
  margin-left: auto;
  margin-right: 0;
}

.position-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--tertiary-color)
  );
}

.position-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgb(43 124 133 / 15%);
}

/* Timeline dots */
.experience-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border: 4px solid white;
  border-radius: 50%;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 2px 10px rgb(43 124 133 / 30%);
}

/* Position header styling */
.position-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.company-info {
  flex: 1;
}

.company-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.3;
}

.position-content h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  line-height: 1.2;
  width: 100%;
}

.date-range {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.experience-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.achievements h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.achievements-toggle {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  margin: 0 -1rem;
  border-radius: 10px;
  user-select: none;
  transition: all 0.3s ease;
  background: rgb(43 124 133 / 5%);
  border: 1px solid transparent;
}

.achievements-toggle:hover {
  background: rgb(43 124 133 / 10%);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  line-height: 1;
  padding-bottom: 2px;
}

.achievements-toggle:hover .toggle-icon {
  background: var(--primary-color);
  transform: scale(1.1);
}

.achievements-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.achievements-content.expanded {
  max-height: 1000px;
}

.achievements ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

.achievements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Responsive adjustments for experience */
@media (width <= 768px) {
  .experience-section {
    padding: 2rem 0;
  }

  .experience-grid {
    padding: 0.5rem;
  }

  /* Hide the timeline line on mobile */
  .experience-grid::before {
    display: none;
  }

  .experience-card {
    margin-left: 0;
    margin-bottom: 1.5rem;
  }

  /* Hide timeline dots on mobile */
  .experience-card::after {
    display: none;
  }

  .position-content {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.25rem;
    border-radius: 15px;
  }

  .position-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .position-content h4 {
    font-size: 1.4rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .company-info h3 {
    font-size: 1.15rem;
  }

  .date-range {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .experience-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .achievements-toggle {
    padding: 0.75rem 1rem;
    margin: 0 -1rem;
    font-size: 1rem;
    min-height: 44px; /* Better touch target */
  }

  .achievements li {
    font-size: 0.95rem;
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .toggle-icon {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }
}

/* Contact Page */

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: var(--background-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  padding-right: 2rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Contact Methods */
.contact-methods {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.contact-methods li {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.contact-methods li:last-child {
  margin-bottom: 0;
}

.contact-methods li:hover {
  transform: translateX(5px);
}

.contact-methods a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  border-radius: 15px;
  background: rgb(43 124 133 / 5%);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.contact-methods a:hover {
  background: rgb(43 124 133 / 10%);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgb(43 124 133 / 10%);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 0.3rem;
}

.contact-details p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgb(43 124 133 / 10%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgb(43 124 133 / 30%);
  border-color: var(--accent-color);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 5px 15px rgb(0 0 0 / 10%);
  position: relative;
  overflow: visible;
}

.contact-form::before {
  display: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: #f9f9f9;
  line-height: 1.2;
  vertical-align: middle;
}

.form-group select option:first-child {
  color: #999;
  font-style: italic;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  background: white;
  box-shadow: 0 0 0 3px rgb(43 124 133 / 10%);
}

/* Form validation states */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
  border-color: #e74c3c;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
  border-color: #27ae60;
}

/* Form messages */
.form-message {
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border: 2px solid;
  font-size: 1rem;
  line-height: 1.5;
}

.form-success {
  background: #d4edda;
  border-color: #27ae60;
  color: #155724;
}

.form-success strong {
  color: #155724;
}

.form-message p {
  margin: 0 0 0.5rem 0;
}

.form-message p:last-child {
  margin-bottom: 0;
}

/* Error message styling */
.form-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.form-message.form-error {
  background: #f8d7da;
  border-color: #e74c3c;
  color: #721c24;
}

.form-message.form-error strong {
  color: #721c24;
}

.form-message.form-error a {
  color: #721c24;
  text-decoration: underline;
}

.form-message.form-error a:hover {
  color: #e74c3c;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background: var(--background-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgb(0 0 0 / 10%);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgb(43 124 133 / 15%);
  border-color: var(--accent-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Contact Page Responsive */
@media (width <= 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    padding-right: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: center;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  /* Contact methods touch improvements */
  .contact-methods a {
    min-height: 60px;
    padding: 1.25rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Social links touch improvements */
  .social-link {
    width: 56px;
    height: 56px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Form submit button */
  .contact-form .btn,
  .contact-form .button,
  .contact-form input[type='submit'] {
    width: 100%;
    min-height: 48px;
    font-size: 1.1rem;
  }
}
