/* ===== MODERN RESPONSIVE PORTFOLIO STYLES ===== */

/* === CSS CUSTOM PROPERTIES & ROOT SETTINGS === */
:root {
  /* Color Palette */
  --primary-color: #00abf0;
  --secondary-color: #161142;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-teal: #00fff7;
  --text-color: #040425;
  --light-text: #ededed;
  --bg-color: #020b11;
  --card-bg: #040311;
  --glass-bg: rgba(12, 5, 82, 0.82);

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 25%, #06b6d4 75%, #0891b2 100%);
  --luxury-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 30%, #06b6d4 70%, #0891b2 100%);
  --bg-gradient: linear-gradient(135deg, #040822 0%, #0c1b3a 50%, #0f0c3a 100%);
  --luxury-border: linear-gradient(135deg, #1e293b 0%, #2563eb 25%, #06b6d4 75%, #0891b2 100%);

  /* Shadows & Effects */
  --shadow-small: 0 4px 20px 0 rgba(37, 99, 235, 0.25), 0 2px 8px 0 rgba(6, 182, 212, 0.15);
  --shadow-medium: 0 8px 40px 0 rgba(37, 99, 235, 0.35), 0 4px 16px 0 rgba(6, 182, 212, 0.25);
  --shadow-large: 0 16px 60px 0 rgba(37, 99, 235, 0.4), 0 8px 24px 0 rgba(6, 182, 212, 0.3);
  --shadow-hover: 0 24px 80px 0 rgba(6, 182, 212, 0.5), 0 12px 32px 0 rgba(37, 99, 235, 0.4);
  --glass-blur: blur(20px);

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-medium: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
}

/* === PERFORMANCE OPTIMIZATIONS === */
.hero-image-glass-better,
.service-card,
.skill-item,
.section-frame {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.animate-on-scroll {
  will-change: opacity, transform;
}

.gradient-text {
  will-change: background-position;
}

/* === BASE RESET & FOUNDATION === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeInBody 1.2s var(--transition-smooth);
  position: relative;
  will-change: scroll-position;
}

/* === ANIMATED BACKGROUND === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 10%, rgba(5, 29, 80, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(22, 50, 121, 0.6) 0%, transparent 70%);
  animation: bgMove 16s linear infinite alternate;
}

@keyframes bgMove {
  0% {
    background-position: 60% 10%, 20% 80%;
  }

  100% {
    background-position: 70% 20%, 10% 90%;
  }
}

@keyframes fadeInBody {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* === PARTICLES BACKGROUND === */
.particles {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
}

.particles .particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  background: linear-gradient(120deg, #06b6d4, #2563eb, #00fff7);
  filter: blur(2px);
  animation: particleFloat 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    opacity: 0.18;
  }

  25% {
    transform: translateY(-30px) translateX(20px) scale(1.1) rotate(90deg);
    opacity: 0.25;
  }

  50% {
    transform: translateY(-60px) translateX(-10px) scale(1.3) rotate(180deg);
    opacity: 0.3;
  }

  75% {
    transform: translateY(-30px) translateX(-25px) scale(1.1) rotate(270deg);
    opacity: 0.25;
  }

  100% {
    transform: translateY(0) translateX(0) scale(1) rotate(360deg);
    opacity: 0.18;
  }
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

a {
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* === UTILITY CLASSES === */
.gradient-text {
  background: var(--primary-gradient);
  background-size: 300% 300%;
  animation: gradientMove 8s ease-in-out infinite;
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  filter: drop-shadow(0 2px 15px rgba(37, 99, 235, 0.4));
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 25%;
  }

  50% {
    background-position: 100% 75%;
  }

  75% {
    background-position: 0% 25%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === LAYOUT CONTAINERS === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.section-frame {
  background: rgba(3, 12, 23, 0.92);
  box-shadow: var(--shadow-medium), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(6, 182, 212, 0.2);
  backdrop-filter: var(--glass-blur);
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: var(--space-xl) auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-frame:hover {
  box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
}

.section-title {
  font-size: x-large;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 4rem;
  font-family: 'Sen', sans-serif;
  position: relative;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.4rem;
  background: var(--primary-gradient);
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.7);
}

/* === HEADER STYLES === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  /* background: rgba(2, 11, 17, 0.95); */
  /* backdrop-filter: blur(20px) saturate(180%); */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(0px);
  transition: var(--transition-smooth);
  /* box-shadow: 0 2px 20px rgba(2, 9, 97, 0.856), 0 1px 0 rgba(6, 182, 212, 0.1); */
  /* border-bottom: 1px solid rgba(6, 182, 212, 0.15); */
}

#header.sticky {
  background: rgba(2, 11, 17, 0.98);
  box-shadow: 0 4px 32px rgba(6, 182, 212, 0.2), 0 2px 0 rgba(6, 182, 212, 0.2);
  border-bottom-color: rgba(6, 182, 212, 0.25);
  /* transform: translateY(0); */
  padding: 1.5rem 9%;

}

.logo {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: 'Saira Stencil One', sans-serif;
  color: #eaebf1;
  position: relative;
  transition: var(--transition-medium);
  /* letter-spacing: 0.5px; */
}

.logo span {
  color: var(--primary-color);
}

.logo:hover {
  transform: scale(1.05);
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 4rem;
  /* align-items: center;
  list-style: none; */
}

.nav-links li a {
  font-size: 1.8rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  /* padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.8rem, 2vw, 1.2rem); */
  /*  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px; */
  color: var(--light-text);
  /* text-decoration: none; */
}

.nav-links li a:hover::before {
  width: 100%;
  /* opacity: 1; */
}

.nav-links li a::before {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 0.2rem;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  /* opacity: 0; */
  transition: var(--transition);
  /* z-index: -1; */
}


.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3em;
  /* width: 0; */
  height: 0.18em;
  background: var(--primary-gradient);
  border-radius: 1em;
  transform: scaleX(0);
  transition: width var(--transition-medium), box-shadow var(--transition-medium);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 90%;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.mobile-menu-btn {
  font-size: 3rem;
  color: var(--light-text);
  cursor: pointer;
  display: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-medium);
  background: transparent;
  z-index: 1001;
}

.mobile-menu-btn:hover {
  color: var(--primary-color);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  transform: scale(1.05);
}

/* Removed stray border property */

.mobile-menu-btn:hover {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  transform: scale(1.05);
}

/* === HERO SECTION === */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12rem;
  position: relative;
  z-index: 2;
  max-width: 148.5rem;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 100rem;
  z-index: 10;
  max-height: 50rem;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  font-family: 'Sen', sans-serif;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.hero-job {
  font-size: clamp(1.4rem, calc(3vw + 1rem), 3.2rem);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hero-job span {
  color: var(--primary-color);
  font-size: x-large;
  font-weight: 700;
}

.hero-description {
  font-size: 1.8rem;
  margin-bottom: var(--space-xl);
  color: rgba(225, 232, 241, 0.92);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  /*  max-width: 500px;
  font-weight: 400; */
}

.social-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
  /* flex-wrap: wrap; */
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 0.2rem solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-small);
  /* position: relative; */
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 0 1.5rem var(--primary-color);
  /* transform: scale(1.1) rotate(-5deg); */
}

.hero-image-wrapper {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  /* max-width: 500px;
  min-width: 300px; */
  margin-top: 1.5rem;
  min-height: 320px;
  z-index: 2;
  position: relative;
}

.hero-image-glass-better {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(280px, 35vw, 350px);
  height: clamp(280px, 35vw, 350px);
  border-radius: 50%;

  box-shadow: var(--shadow-large), inset 0 0 30px rgba(6, 182, 212, 0.1);

  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(24, 135, 155, 0.733);
}

.hero-image-glass-better:hover {
  transform: scale(1.05) translateY(-8px) rotate(2deg);
  box-shadow: var(--shadow-hover), inset 0 0 50px rgba(34, 160, 250, 0.3);
  border-color: var(--primary-color);
  filter: brightness(1.1);
}

.hero-image-circular-better {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  border: 3px solid rgba(118, 154, 236, 0.795);
}

.hero-image-circular-better img {
  width: 114.5%;
  height: 114.5%;
  object-fit: cover;
  border-radius: 50%;
}

/* === BUTTONS === */
.cta-button,
button[type="submit"],
input[type="submit"] {
  display: inline-block;
  background: var(--primary-gradient);
  color: #fff;
  padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-small), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-medium), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.15) saturate(1.1);
}

/* Add image wrapper for better control */
.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(45deg, rgba(6, 182, 212, 0.1), rgba(37, 99, 235, 0.1));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* === ABOUT SECTION === */
.about-container {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 2fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-large), 0 0 30px rgba(6, 182, 212, 0.2);
  border: 2px solid rgba(6, 182, 212, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.about-image:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: var(--shadow-hover), 0 0 40px rgba(6, 182, 212, 0.4);
  border-color: rgba(6, 182, 212, 0.6);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-md) 0;
}

.about-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-xl);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.about-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  transition: var(--transition-medium);
  backdrop-filter: blur(10px);
}

.about-item:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15);
}

.about-item i {
  color: var(--primary-color);
  font-size: 2.2rem;
  min-width: 2.5rem;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.8rem;
  border-radius: 50%;
  transition: var(--transition-medium);
}

.about-item:hover i {
  background: rgba(6, 182, 212, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.about-item div {
  font-size: clamp(1rem, 2vw, 1.6rem);
  line-height: 1.4;
}

.about-item strong {
  color: var(--primary-color);
}

/* === SERVICES SECTION === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

/* Ensure equal height cards */
.services-grid>* {
  height: 100%;
}

.service-card {
  background: rgba(3, 12, 23, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2), 0 0 30px rgba(6, 182, 212, 0.15);
  background: rgba(3, 12, 23, 0.98);
}

.service-icon {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 25px var(--primary-color));
}

.service-title {
  font-size: Large;
  margin-bottom: var(--space-md);
  color: var(--light-text);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.service-description {
  font-size: 1.8rem;
  color: rgba(250, 253, 255, 0.88);
  line-height: 1.6;
  flex-grow: 1;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* === SKILLS SECTION === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: var(--space-xl);
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16, 26, 46, 0.95);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: clamp(160px, 20vw, 200px);
  border: 2px solid rgba(6, 182, 212, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  opacity: 0.3;
  transition: opacity var(--transition-medium);
}

.skill-item:hover::before {
  opacity: 0.6;
}

.skill-item:hover {
  transform: scale(1.08) rotate(-2deg);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: var(--shadow-large), 0 0 30px rgba(0, 255, 247, 0.3);
  background: rgba(16, 26, 46, 1);
}

.skill-icon {
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  object-fit: contain;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-medium);
  position: relative;
  z-index: 1;
}

.skill-item:hover .skill-icon {
  transform: scale(1.2);
  filter: brightness(1.3) drop-shadow(0 0 20px rgba(0, 255, 247, 0.8));
}

.skill-name {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  text-align: center;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

/* === CONTACT SECTION === */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  background: rgba(20, 30, 60, 0.45);
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  position: relative;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-medium);
}

.contact-item:hover {
  background: rgba(77, 171, 247, 0.1);
  transform: translateX(5px);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  background: rgba(77, 171, 247, 0.13);
  border-radius: 50%;
  padding: 0.7rem;
  transition: var(--transition-medium);
}

.contact-item i:hover {
  background: rgba(77, 171, 247, 0.25);
  box-shadow: 0 4px 16px 0 rgba(77, 171, 247, 0.18);
}

.contact-item div {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.contact-form {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-control,
.contact-inputs {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1rem, 2vw, 1.2rem);
  background: rgba(255, 255, 255, 0.13);
  border: 1.5px solid rgba(77, 171, 247, 0.25);
  border-radius: var(--radius-md);
  color: var(--light-text);
  backdrop-filter: blur(2px);
  transition: var(--transition-medium);
  outline: none;
  font-family: inherit;
}

.form-control:focus,
.contact-inputs:focus {
  border-color: var(--primary-color);
  background: rgba(77, 171, 247, 0.08);
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.13);
}

.form-control::placeholder,
.contact-inputs::placeholder {
  color: rgba(176, 196, 212, 0.85);
}

textarea.form-control,
textarea.contact-inputs {
  resize: vertical;
  min-height: 150px;
  max-height: 300px;
}

/* === FOOTER === */
footer {
  background: linear-gradient(120deg, rgba(13, 28, 91, 0.98) 60%, rgba(12, 12, 52, 0.726) 100%);
  backdrop-filter: blur(12px) saturate(1.18);
  box-shadow: 0 -8px 48px 0 rgba(178, 179, 184, 0.9);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-text {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: var(--space-lg);
  color: #fff;
  font-weight: 700;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: clamp(3.5rem, 6vw, 5.2rem);
  height: clamp(3.5rem, 6vw, 5.2rem);
  background: linear-gradient(120deg, #0a0e23 60%, #2563eb 100%);
  border-radius: 50%;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  border: 2px solid rgba(0, 255, 247, 0.8);
  transition: var(--transition-medium);
  box-shadow: var(--shadow-small);
}

.footer-link:hover {
  background: linear-gradient(120deg, #00fff7 0%, #2563eb 100%);
  color: #0a0e23;
  transform: translateY(-5px) scale(1.1) rotate(-6deg);
  box-shadow: var(--shadow-medium);
}

.copyright {
  font-size: clamp(1rem, 2vw, 1.7rem);
  color: #fff;
  font-weight: 600;
}

.section-divider {
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
  margin: var(--space-lg) 0;
  opacity: 0.3;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

/* === ANIMATIONS === */
.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInLeft 1s forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  animation: slideInRight 1s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInNav {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typewriter {
  display: inline-block;
  font-family: 'Saira Stencil One', 'Sen', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  border-right: 2.5px solid var(--primary-color);
  padding-right: 0.2em;
  white-space: nowrap;
  animation: blink-cursor 0.8s steps(1) infinite;
}

@keyframes blink-cursor {

  0%,
  100% {
    border-color: var(--primary-color);
  }

  50% {
    border-color: transparent;
  }
}

.typing-cursor {
  animation: blink-cursor 1s infinite;
}

/* === RESPONSIVE DESIGN === */

/* Large Desktops (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero-content {
    max-width: 1400px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    max-width: 1200px;
    gap: clamp(2rem, 4vw, 3rem);
  }

  .skills-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Large Tablets/Small Desktops (1024px - 1199px) */
@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-container {
    gap: 3rem;
  }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
  #hero {
    flex-direction: column;
    text-align: center;
    padding-top: 13rem;
    gap: clamp(2rem, 5vw, 3rem);
    min-height: 90vh;
  }

  .hero-content {
    order: 2;
    max-width: 600px;
  }

  .hero-image-wrapper {
    order: 1;
    max-width: 400px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(2rem, 5vw, 3rem);
    max-width: 800px;
  }

  .about-image {
    max-width: 280px;
    margin: 0 auto;
    justify-self: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-links {
    justify-content: center;
  }
}

/* Mobile Landscape (640px - 767px) */
@media (max-width: 767px) {
  #header {
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 4vw, 1.5rem);

  }

  .logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(2, 11, 17, 0.98), rgba(12, 5, 82, 0.95));
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left var(--transition-slow);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInNav 0.5s forwards;
  }

  .nav-links li:nth-child(1) {
    animation-delay: 0.1s;
  }

  .nav-links li:nth-child(2) {
    animation-delay: 0.2s;
  }

  .nav-links li:nth-child(3) {
    animation-delay: 0.3s;
  }

  .nav-links li:nth-child(4) {
    animation-delay: 0.4s;
  }

  .nav-links li:nth-child(5) {
    animation-delay: 0.5s;
  }

  .nav-links li a {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(6, 182, 212, 0.2);
    background: rgba(6, 182, 212, 0.05);
    min-width: 200px;
    text-align: center;
    display: block;
  }

  .mobile-menu-btn {
    display: block;
    /* z-index: 1001; */
    position: relative;
    unicode-bidi: isolate;
  }

  .mobile-menu-btn.active {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.2);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 600px;
  }

  .service-card {
    min-height: 250px;
    padding: clamp(1.2rem, 4vw, 1.8rem);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #hero {
    padding-top: 6rem;
    gap: 2rem;
  }

  .section-frame {
    margin: var(--space-lg) auto;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

/* Mobile Portrait (480px - 639px) */
@media (max-width: 639px) {
  .container {
    padding: 0 1rem;
  }

  #hero {
    padding: clamp(5rem, 8vh, 6rem) 1rem clamp(2rem, 4vh, 3rem);
    gap: clamp(1.5rem, 4vw, 2rem);
  }

  .hero-content {
    max-width: 100%;
    z-index: 10;
  }

  .section-frame {
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-lg);
  }

  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 1rem;
    max-width: 400px;
  }

  .service-card {
    min-height: 240px;
    padding: clamp(1.2rem, 4vw, 1.8rem);
  }

  .hero-image-glass-better {
    width: clamp(220px, 55vw, 280px);
    height: clamp(220px, 55vw, 280px);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .social-links {
    gap: 1rem;
    justify-content: center;
  }

  .social-link {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 12rem;
  }

}


/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  #hero {
    padding: clamp(4rem, 8vh, 5rem) 0.75rem clamp(1.5rem, 3vh, 2rem);
    gap: 1.5rem;
  }

  .hero-description {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    line-height: 1.5;
  }

  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 0.8rem;
    max-width: 350px;
  }

  .service-card {
    min-height: 220px;
    padding: 1rem;
  }

  .service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .service-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .service-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .nav-links {
    gap: 2rem;
  }

  .hero-image-glass-better {
    width: clamp(180px, 65vw, 240px);
    height: clamp(180px, 65vw, 240px);
  }

  .social-links {
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
  }

  .social-link {
    width: 3rem;
    height: 3rem;
    font-size: 1.3rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .about-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .about-item i {
    font-size: 1.6rem;
    margin-bottom: 0;
  }

  .about-image {
    max-width: 180px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Ultra-wide screens (1600px+) */
@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }

  .skills-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 3rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .hero-image-glass-better,
  .service-card,
  .skill-item {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

/* Reduced 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;
  }

  .particles {
    display: none;
  }
}

/* Print styles */
@media print {

  .particles,
  .social-links,
  .mobile-menu-btn,
  #header {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section-frame {
    box-shadow: none;
    border: 1px solid #eddede;
  }
}