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

/* Reset and Base Styles */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Scroll snapping */
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  /* Mobile-first: smaller font size */
  font-size: 15px;
  font-weight: 600; /* Light weight for body text */
}

/* Typography - Headings with semi-bold weight */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600; /* Semi-bold for headings */
}

/* Body text, paragraphs, descriptions */
p,
li,
span,
a,
label,
input,
textarea,
button {
  font-family: "Montserrat", sans-serif;
  font-weight: 300; /* Light weight for body text */
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Animation utility classes */
.animate-on-scroll {
  opacity: 0;
  transition: none;
}

.animate-on-scroll.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.fade-in-up {
  animation-name: fadeInUp;
}

.fade-in-left {
  animation-name: fadeInLeft;
}

.fade-in-right {
  animation-name: fadeInRight;
}

.fade-in {
  animation-name: fadeIn;
}

.scale-in {
  animation-name: scaleIn;
}

.bounce-in {
  animation-name: bounceIn;
  animation-duration: 0.6s;
}

/* Mobile-first: Container with full-width approach */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* Tablet and up */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 20px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* Mobile-first: Fixed Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #000000;
  box-shadow: 0 2px 10px rgba(216, 166, 211, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Mobile-first: Nav container */
.nav-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

/* Tablet and up */
@media (min-width: 768px) {
  .nav-container {
    max-width: 720px;
    height: 70px;
    padding: 0 20px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-container {
    max-width: 960px;
    height: 80px;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .nav-container {
    max-width: 1200px;
  }
}

/* Mobile-first: Logo */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #097cef;
  cursor: pointer;
}

/* Tablet and up */
@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .logo {
    font-size: 1.8rem;
  }
}

/* Mobile-first: Navigation menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-menu {
    gap: 2rem;
  }
}

/* Mobile-first: Nav links */
.nav-link {
  text-decoration: none;
  color: #f9f5f5;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.875rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

.nav-link:hover {
  color: #e0a9d4;
  background-color: #b935d4;
}

.nav-link.active {
  color: #f5adec;
  background-color: #dbeafe;
}

/* Mobile-first: Section Styles with scroll snap */
.section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  padding: 80px 0 40px;
  display: flex;
  align-items: center;
  /* Scroll snapping */
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Tablet and up */
@media (min-width: 768px) {
  .section {
    padding: 100px 0 60px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .section {
    padding: 120px 0 80px;
  }
}

.section:nth-child(even) {
  background-color: #ffffff;
}

/* Mobile-first: Section titles */
.section-title {
  font-size: 1.75rem;
  color: #097cef;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

/* Tablet and up */
@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 2px;
}

/* ========================================
   About Me Section - Split Layout Design
   ======================================== */

/* Black background for About Me section */
.about-section {
  background-color: #000000 !important;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

/* Split Container - Two Column Layout */
.about-split-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 3rem;
}

/* Desktop: Two columns side by side */
@media (min-width: 1024px) {
  .about-split-container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 0 60px;
  }
}

/* Left Side - Large Headline */
.about-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-headline {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  /* Pink to white gradient */
  background: linear-gradient(90deg, #ff6b9d 0%, #ffa8c5 30%, #ffffff 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

@media (min-width: 768px) {
  .about-headline {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .about-headline {
    font-size: 4rem;
  }
}

@media (min-width: 1280px) {
  .about-headline {
    font-size: 4.5rem;
  }
}

/* Right Side - Description */
.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-right-content {
  max-width: 600px;
}

.about-subheading {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .about-subheading {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .about-subheading {
    font-size: 2rem;
  }
}

.about-description {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #e5e7eb;
  margin: 0 0 1.5rem 0;
}

@media (min-width: 768px) {
  .about-description {
    font-size: 1.125rem;
    line-height: 1.9;
  }
}

@media (min-width: 1024px) {
  .about-description {
    font-size: 1.25rem;
    line-height: 2;
  }
}

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

/* Remove old About styles */
.about-section .section-title,
.about-section .section-title::after,
.about-content,
.about-text,
.highlight-name {
  display: none;
}

/* Mobile-first: Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

/* Tablet */
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile-first: Project cards */
.project-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  width: 100%;
}

/* Tablet and up */
@media (min-width: 768px) {
  .project-card {
    padding: 2rem;
  }
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  color: #1f2937;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .project-card h3 {
    font-size: 1.5rem;
  }
}

.project-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #eff6ff;
  color: #2563eb;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ========================================
   Skills Section - Static Category Boxes
   ======================================== */

/* Black background for Skills section */
.skills-section {
  background-color: #000000 !important;
  color: #ffffff;
}

.skills-section .section-title {
  color: #ffffff;
}

.skills-section .section-title::after {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Ensure all text in Skills section is white */
.skills-section h1,
.skills-section h2,
.skills-section h3,
.skills-section h4,
.skills-section h5,
.skills-section h6 {
  color: #ffffff;
}

/* Skills Container - Responsive Grid */
.skills-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Individual Skill Box */
.skill-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(139, 10, 100, 0.07);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid #f0f4f8;
  opacity: 0;
  transform: translateY(30px);
}

/* Animation when scrolled into view */
.skill-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.skill-box:nth-child(1).visible {
  transition-delay: 0.1s;
}

.skill-box:nth-child(2).visible {
  transition-delay: 0.2s;
}

.skill-box:nth-child(3).visible {
  transition-delay: 0.3s;
}

/* Hover effect - lift and shadow */
@media (hover: hover) {
  .skill-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ef;
  }
}

/* Active/tap effect for touch devices */
.skill-box:active {
  transform: translateY(-4px) scale(1.01);
}

/* Skill Box Header */
.skill-box-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Skill Icon */
.skill-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.skill-box:hover .skill-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Color variants for each category */
.skill-box-technical .skill-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #2563eb;
}

.skill-box-creative .skill-icon {
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  color: #db2777;
}

.skill-box-leadership .skill-icon {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  color: #059669;
}

/* Skill Box Title */
.skill-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0c0c0c;
  margin: 0;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .skill-box h3 {
    font-size: 1.375rem;
  }
}

/* Skill Box List */
.skill-box-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-box-list li {
  color: #141414;
  font-size: 0.9375rem;
  line-height: 1.7;
  padding: 0.625rem 0;
  padding-left: 1.5rem;
  position: relative;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .skill-box-list li {
    font-size: 1rem;
  }
}

/* Custom bullet points */
.skill-box-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.skill-box-technical .skill-box-list li::before {
  background: #3b82f6;
}

.skill-box-creative .skill-box-list li::before {
  background: #ec4899;
}

.skill-box-leadership .skill-box-list li::before {
  background: #10b981;
}

/* Hover effect on list items */
.skill-box:hover .skill-box-list li::before {
  transform: translateY(-50%) scale(1.5);
}

.skill-box:hover .skill-box-list li {
  color: #3164a6;
}

/* Remove old skill badge styles */
/* (Keeping for backward compatibility but not used) */
.skills-badges,
.skill-badge,
.skill-badge-icon {
  display: none;
}

/* Remove old skills-grid if not needed elsewhere */
.skills-grid {
  display: none;
}

.skill-category {
  display: none;
}

.skill-list {
  display: none;
}

/* ========================================
   Art & Passions Section - Media Carousel
   ======================================== */

/* Black background for Art & Passions section */
.art-section {
  background-color: #000000 !important;
  color: #ffffff;
}

/* Section title styling */
.art-section .section-title {
  color: #ffffff;
}

.art-section .section-title::after {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Art description title */
.art-section .art-title {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Art description text */
.art-section .art-text {
  color: #e5e7eb;
}

/* Ensure all text elements are white */
.art-section h1,
.art-section h2,
.art-section h3,
.art-section h4,
.art-section h5,
.art-section h6,
.art-section p,
.art-section span,
.art-section li {
  color: #ffffff;
}

/* Carousel indicators on black background */
.art-section .carousel-indicator {
  border-color: #6b7280;
}

.art-section .carousel-indicator:hover {
  border-color: #60a5fa;
}

.art-section .carousel-indicator.active {
  background: #3b82f6;
  border-color: #3b82f6;
}

/* Carousel Container */
.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Main Carousel Wrapper */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1f2937;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .carousel {
    aspect-ratio: 16 / 9;
  }
}

/* Carousel Items */
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease-in-out,
    visibility 0.6s ease-in-out;
  z-index: 1;
}

.carousel-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide animation classes */
.carousel-item.slide-out-left {
  animation: slideOutLeft 0.5s ease-in-out;
}

.carousel-item.slide-out-right {
  animation: slideOutRight 0.5s ease-in-out;
}

.carousel-item.slide-in-left {
  animation: slideInLeft 0.5s ease-in-out;
}

.carousel-item.slide-in-right {
  animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Carousel Media (Images and Videos) */
.carousel-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
}

/* Show arrows on hover (desktop) or always on mobile */
@media (hover: hover) {
  .carousel:hover .carousel-arrow {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .carousel-arrow {
    opacity: 0.7;
  }
}

.carousel-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
  left: 1rem;
}

.carousel-arrow-right {
  right: 1rem;
}

@media (min-width: 768px) {
  .carousel-arrow {
    width: 50px;
    height: 50px;
  }

  .carousel-arrow-left {
    left: 1.5rem;
  }

  .carousel-arrow-right {
    right: 1.5rem;
  }
}

/* Carousel Indicators (Dots) */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  border-color: #3b82f6;
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: #2563eb;
  border-color: #2563eb;
  width: 12px;
  height: 12px;
}

@media (min-width: 768px) {
  .carousel-indicator {
    width: 12px;
    height: 12px;
  }

  .carousel-indicator.active {
    width: 14px;
    height: 14px;
  }
}

/* Art Description */
.art-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.art-title {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .art-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .art-title {
    font-size: 2rem;
  }
}

.art-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  text-align: left;
}

@media (min-width: 768px) {
  .art-text {
    font-size: 1.05rem;
    line-height: 1.8;
  }
}

@media (min-width: 1024px) {
  .art-text {
    font-size: 1.1rem;
  }
}

/* White background for Contact section */
.contact-section {
  background-color: #ffffff;
}

/* Contact Section */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Mobile-first: Contact description */
.contact-description {
  text-align: center;
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .contact-description {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .contact-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
}

/* Mobile-first: Contact form */
.contact-form {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  /* Soft blue glowing border effect */
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.1),
    0 0 20px rgba(59, 130, 246, 0.15),
    0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.2);
  margin-bottom: 1.5rem;
  width: 100%;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Enhanced glow on focus-within */
.contact-form:focus-within {
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.3),
    0 0 30px rgba(59, 130, 246, 0.25),
    0 8px 16px rgba(59, 130, 246, 0.1);
  border-color: rgba(96, 165, 250, 0.4);
}

/* Tablet and up */
@media (min-width: 768px) {
  .contact-form {
    padding: 2rem;
    margin-bottom: 2rem;
    /* Slightly stronger glow on larger screens */
    box-shadow:
      0 0 0 1px rgba(59, 130, 246, 0.15),
      0 0 25px rgba(59, 130, 246, 0.2),
      0 4px 8px rgba(0, 0, 0, 0.05);
  }

  .contact-form:hover {
    box-shadow:
      0 0 0 1px rgba(59, 130, 246, 0.25),
      0 0 35px rgba(59, 130, 246, 0.3),
      0 8px 16px rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.35);
  }
}

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

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Mobile-first: Form elements */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Tablet and up - larger touch targets */
@media (min-width: 768px) {
  .form-group input,
  .form-group textarea {
    padding: 0.875rem;
  }
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

/* Mobile-first: Submit button */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Tablet and up */
@media (min-width: 768px) {
  .btn-submit {
    font-size: 1.05rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .btn-submit {
    font-size: 1.1rem;
  }
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.contact-info {
  text-align: center;
  color: #4b5563;
  line-height: 2;
}

.contact-info strong {
  color: #1f2937;
}

/* LinkedIn link styling */
.linkedin-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.linkedin-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.linkedin-link:active {
  color: #1e40af;
}

/* Footer */
footer {
  background-color: #1f2937;
  color: #9ca3af;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  width: 100%;
  /* Prevent scroll snap on footer */
  scroll-snap-align: none;
}

/* Tablet and up */
@media (min-width: 768px) {
  footer {
    padding: 2rem 0;
    font-size: 1rem;
  }
}

/* Desktop-only: Remove old responsive rules and add touch improvements */
@media (hover: hover) {
  .nav-link:hover {
    color: #2563eb;
    background-color: #f0f7ff;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }

  .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  }
}

/* Active states for touch devices */
.nav-link:active,
.btn-submit:active {
  transform: scale(0.98);
}

/* Ensure full-width sections */
main {
  width: 100%;
  overflow-x: hidden;
}

.section > .container {
  width: 100%;
}

/* Optimize for mobile scrolling performance */
@media (max-width: 767px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* Disable scroll snap on mobile for better UX */
  html {
    scroll-snap-type: none;
  }

  .section {
    scroll-snap-align: none;
  }
}

/* Enable scroll snap only on larger screens */
@media (min-width: 768px) {
  html {
    scroll-snap-type: y proximity;
  }

  .section {
    scroll-snap-align: start;
  }
}
