:root {
  /* Modern Color Palette */
  --primary: #6366f1;          /* Indigo */
  --primary-light: #818cf8;    /* Light Indigo */
  --primary-dark: #4f46e5;     /* Dark Indigo */
  --secondary: #ec4899;        /* Pink */
  --secondary-light: #f472b6;  /* Light Pink */
  --accent: #10b981;           /* Emerald */
  --dark: #1e293b;             /* Slate 800 */
  --dark-light: #334155;       /* Slate 700 */
  --light: #f8fafc;            /* Slate 50 */
  --light-gray: #e2e8f0;       /* Slate 200 */
  --gray: #94a3b8;             /* Slate 400 */
  
  /* Typography */
  --ff-primary: 'Inter', sans-serif;
  --ff-heading: 'Poppins', sans-serif;
  --fs-1: clamp(2.5rem, 5vw, 4rem);
  --fs-2: clamp(2rem, 4vw, 3rem);
  --fs-3: clamp(1.5rem, 3vw, 2.5rem);
  --fs-4: clamp(1.25rem, 2vw, 1.75rem);
  --fs-5: clamp(1rem, 1.5vw, 1.25rem);
  --fs-6: clamp(0.875rem, 1vw, 1rem);
    /* Spacing */  --section-padding: clamp(35px, 5vw, 60px);
  --container-padding: clamp(1rem, 3vw, 2rem);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Dark Mode Colors */
[data-theme="dark"] {
  --primary: #818cf8;
  --primary-light: #a5b4fc;
  --primary-dark: #4f46e5;
  --secondary: #f472b6;
  --secondary-light: #f9a8d4;
  --accent: #34d399;
  --dark: #f8fafc;
  --dark-light: #e2e8f0;
  --light: #0f172a;
  --light-gray: #1e293b;
  --gray: #64748b;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-primary);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
}

input, textarea {
  font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--light);
}

.h1 { font-size: var(--fs-1); }
.h2 { font-size: var(--fs-2); }
.h3 { font-size: var(--fs-3); }
.h4 { font-size: var(--fs-4); }

p {
  margin-bottom: 1.5rem;
  color: var(--dark-light);
}

[data-theme="dark"] p {
  color: var(--light-gray);
}

.section-title {
  position: relative;
  margin-bottom: 1.75rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.section-subtitle {
  display: block;
  text-align: center;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-size: var(--fs-5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Custom text animation for section subtitles */
.section-subtitle {
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 3s linear infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Grid and Flex Layouts */
.grid-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: width var(--transition-normal);
}

.btn:hover::after {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .btn-primary {
  background-color: var(--primary-light);
  box-shadow: 0 4px 6px -1px rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
  background-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(129, 140, 248, 0.5);
}

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

.btn-secondary::after {
  background-color: var(--secondary-light);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline::after {
  background-color: var(--primary);
}

.btn-outline:hover {
  color: white;
}

/* Resume Link Styles */
.resume-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  position: relative;
  transition: all var(--transition-fast);
}

.resume-link:hover {
  color: var(--secondary);
}

.resume-link ion-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.resume-link:hover ion-icon {
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header {
  background-color: rgba(15, 23, 42, 0.95);
}

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

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Header Social Icons - Match Footer Style */
.nav-actions .social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.nav-actions .social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-actions .social-icon:hover {
  color: var(--light);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.nav-actions .social-icon:hover::before {
  opacity: 1;
}

[data-theme="dark"] .nav-actions .social-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-actions .social-icon:hover {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Theme Toggle - Match Social Icons Style */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.theme-toggle:hover {
  color: var(--light);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.theme-toggle:hover::before {
  opacity: 1;
}

[data-theme="dark"] .theme-toggle {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: var(--light);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 1.5rem;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }
  
  [data-theme="dark"] .nav-list {
    background-color: var(--light-gray);
  }
  
  .nav-list.show {
    right: 0;
  }
}

/* Mobile Social Icons */
.mobile-social {
  display: none;
  margin-top: 1.5rem;
  justify-content: center;
  gap: 1rem;
}

.mobile-social .social-icon {
  display: flex;
  margin: 0;
}

@media (max-width: 768px) {
  .mobile-social {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: var(--section-padding);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(224, 231, 255, 0.8));
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0.1;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  opacity: 0.1;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.hero-subtitle {
  font-size: var(--fs-4);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-description {
  margin-bottom: 2.5rem;
  font-size: var(--fs-5);
}

.hero-image {
  margin-top: 3rem;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal);
}

.hero-image img {
  width: 100%;
  transition: transform var(--transition-slow);
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: left;
    align-items: flex-start;
  }
  
  .hero-image {
    margin-top: 0;
  }
}

/* About Section */
.about {
  background-color: var(--light);
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--light-gray) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: -1;
}

[data-theme="dark"] .about {
  background-color: var(--light-gray);
}

[data-theme="dark"] .about::before {
  background-image: radial-gradient(var(--dark-light) 1px, transparent 1px);
}

.about-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.about-text {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  z-index: 1;
}

.about-text:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .about-text {
  background-color: rgba(30, 41, 59, 0.85);
}

.about-text-title {
  margin-bottom: 1rem;
  font-size: var(--fs-4);
  position: relative;
  display: inline-block;
}

.about-text-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.skills-container {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.skills-container::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  z-index: 1;
}

.skills-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .skills-container {
  background-color: rgba(30, 41, 59, 0.85);
}

.skills-title {
  margin-bottom: 1.25rem;
  font-size: var(--fs-4);
  position: relative;
  display: inline-block;
}

.skills-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary), var(--primary));
  border-radius: var(--radius-full);
}

.skill-item {
  margin-bottom: 1.25rem;
}

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

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--dark);
}

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

.skill-percentage {
  color: var(--primary);
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skill-bar {
  height: 10px;
  background-color: var(--light-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .skill-bar {
  background-color: rgba(15, 23, 42, 0.5);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  position: relative;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
                 rgba(255, 255, 255, 0.1), 
                 rgba(255, 255, 255, 0.3), 
                 rgba(255, 255, 255, 0.1));
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

@media (min-width: 768px) {
  .about-container {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
  
  .contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
  }
}

/* Service Cards */
.service-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .service-card {
  background-color: var(--dark-light);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: background-color var(--transition-fast);
}

[data-theme="dark"] .service-icon {
  background-color: var(--light);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
}

.service-title {
  font-size: var(--fs-4);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--gray);
  margin-bottom: 1rem;
}

.service-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 0.75rem;
}

/* Portfolio/Projects */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  background-color: var(--light-gray);
  color: var(--dark);
  font-weight: 500;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .filter-btn {
  background-color: var(--dark-light);
  color: var(--light);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary);
  color: white;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  background-color: white;
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="dark"] .project-card {
  background-color: var(--dark-light);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

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

.project-action {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background-color: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.project-card:hover .project-action {
  transform: translateY(0);
  opacity: 1;
}

.project-action:hover {
  background-color: var(--primary);
  color: white;
}

.project-action:nth-child(2) {
  transition-delay: 0.1s;
}

.project-content {
  padding: 1.5rem;
}

.project-category {
  color: var(--primary);
  font-weight: 500;
  font-size: var(--fs-6);
  display: block;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: var(--fs-4);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.project-link {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-fast);
}

.project-link:hover {
  gap: 0.75rem;
}

/* Portfolio Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(99, 102, 241, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-icon {
  color: white;
  font-size: 2rem;
  transform: scale(0);
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-icon {
  transform: scale(1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 1rem;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  display: block;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
}

.modal-prev,
.modal-next {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.modal-prev:hover,
.modal-next:hover {
  background-color: var(--primary);
}

/* Contact */
.contact-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .contact-card {
  background-color: var(--dark-light);
}

.contact-info {
  background-color: var(--primary);
  color: white;
  padding: 3rem;
}

.contact-title {
  color: white;
  margin-bottom: 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-form {
  padding: 3rem;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  background-color: var(--light);
  transition: border-color var(--transition-fast);
}

[data-theme="dark"] .form-control {
  background-color: var(--light-gray);
  border-color: var(--dark-light);
  color: var(--light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

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

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Form Status Messages */
#form-status {
  margin: 1rem 0;
}

.success-message {
  background-color: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.success-message ion-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.error-message {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--dark);
}

.sending-message {
  background-color: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--dark);
  text-align: center;
}

[data-theme="dark"] .success-message,
[data-theme="dark"] .error-message,
[data-theme="dark"] .sending-message {
  color: var(--light);
}

/* Footer */
.footer {
  background-color: var(--light-gray);
  padding: 1.75rem 0;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

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

.footer .container {
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background-color: var(--light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-link:hover {
  color: var(--light);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.social-link:hover::before {
  opacity: 1;
}

[data-theme="dark"] .social-link {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-link:hover {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: var(--fs-6);
  color: var(--dark-light);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

[data-theme="dark"] .copyright {
  color: var(--light-gray);
  background-color: rgba(0, 0, 0, 0.2);
}

.back-to-top-container {
  position: absolute;
  right: 2rem;
  bottom: -1.5rem;
  z-index: 10;
}

.back-to-top {
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .back-to-top {
  background-color: var(--primary-light);  border-color: rgba(0, 0, 0, 0.2);
}

/* Responsive footer for small screens */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    padding-bottom: 2rem;
  }
  
  .social-links::after {
    bottom: -5px;
  }
  
  .back-to-top-container {
    right: 50%;
    transform: translateX(50%);
  }
  
  .copyright {
    margin-bottom: 1rem;
  }
}
