/* Base Styles & Variables */
:root {
  --primary: #6b7bff;
  --primary-hover: #4f5cf0;
  --secondary: #4f5cf0;
  --accent: #72757e;
  --background: #16161a;
  --text: #fffffe;
  --glass-bg: rgba(107, 123, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
  --border: 1px solid rgba(107, 123, 255, 0.1);
  --animation-timing: 0.3s ease;
  --blur-intensity: blur(10px);
  --progress: 90;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  transition: background-color var(--animation-timing),
    box-shadow var(--animation-timing);
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  background: #000010;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  width: 100%;
  margin-inline: auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #000010;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#logo {
  color: #6b7bff;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: 1000;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.logo-symbol {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 2px;
  line-height: 1;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  text-decoration: none;
  color: whitesmoke;
  font-size: 1.2rem;
  font-weight: 600;
  transition: box-shadow 0.3s ease;
  padding: 5px 0;
}

.navbar ul li a:hover {
  box-shadow: inset 0 -5px 0 0 #6b7bff;
}

/* Hamburger Menu Styling */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hamburger:hover {
  background-color: rgba(107, 123, 255, 0.1);
}

.hamburger .line {
  width: 30px;
  height: 3px;
  background-color: whitesmoke;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.navbar.show .hamburger .line:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.navbar.show .hamburger .line:nth-child(2) {
  opacity: 0;
}

.navbar.show .hamburger .line:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 32, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

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

  .navbar ul li {
    text-align: center;
    margin: 12px 0;
    width: 100%;
  }

  .navbar ul li a {
    display: block;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .navbar ul li a:hover {
    background-color: rgba(107, 123, 255, 0.1);
    box-shadow: none;
  }

  .navbar.show ul {
    display: flex;
  }

  #logo {
    font-size: 2rem;
  }

  .navbar {
    padding: 15px 20px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem;
  overflow: hidden;
  background-color: #16182a;
}


/* Enhanced Background Animation */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
      #6b7bff,
      #4f5cf0,
      #72757e,
      #16161a,
      #6b7bff);
  background-size: 400% 400%;
  animation: gradient-flow 20s ease infinite;
  z-index: 1;
  opacity: 0.3;
  filter: blur(80px);
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Floating Particles */
.floating-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(107, 123, 255, 0.15);
  border-radius: 50%;
  animation: float 25s infinite linear;
  filter: blur(1px);
  will-change: transform;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }

  50% {
    transform: translate(50vw, -50vh) scale(1.2);
    opacity: 0.4;
  }

  100% {
    transform: translate(100vw, -100vh) scale(0.5);
    opacity: 0;
  }
}

/* Randomize particles */
.particle:nth-child(1) {
  top: 10%;
  left: 20%;
  width: 8px;
  height: 8px;
  animation-duration: 20s;
}

.particle:nth-child(2) {
  top: 70%;
  left: 80%;
  width: 12px;
  height: 12px;
  animation-duration: 25s;
}

.particle:nth-child(3) {
  top: 40%;
  left: 50%;
  width: 6px;
  height: 6px;
  animation-duration: 22s;
}

.particle:nth-child(4) {
  top: 25%;
  left: 65%;
  width: 10px;
  height: 10px;
  animation-duration: 28s;
}

.particle:nth-child(5) {
  top: 85%;
  left: 35%;
  width: 7px;
  height: 7px;
  animation-duration: 24s;
}

.particle:nth-child(6) {
  top: 60%;
  left: 15%;
  width: 9px;
  height: 9px;
  animation-duration: 26s;
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero__text {
  position: relative;
  padding-top: 4rem;
}

.hero__eyebrow {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.hero__title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--text) 25%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__description {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Button Spacing */
.cta-wrapper {
  display: flex;
  gap: 2rem;
  /* Increased spacing between buttons */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1rem;
    min-height: 90vh;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__description {
    font-size: 1.1rem;
  }

  .cta-wrapper {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero::before,
  .particle,
  .bubble {
    /* Included bubble in reduced motion */
    animation: none !important;
    display: none;
    /* Also hide bubbles when motion is reduced */
  }

  .hero::before {
    background: #16161a;
    filter: blur(50px);
  }
}

/* Social Icons Animation */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-card {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
  transition: all var(--animation-timing);
  border: 1px solid rgba(107, 123, 255, 0.2);

  &::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--primary);
    transform: scale(0);
    transition: transform var(--animation-timing);
    border-radius: 50%;
    z-index: 0;
  }

  i {
    position: relative;
    z-index: 1;
    transition: all var(--animation-timing);
    color: var(--text);
    font-size: 1.2rem;
  }

  &:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(107, 123, 255, 0.3);

    &::before {
      transform: scale(1.2);
    }

    i {
      color: white;
      transform: rotate(360deg) scale(1.1);
    }
  }

  &:active {
    transform: scale(0.95);
  }
}

/* Button Designs */
.cta-button {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--animation-timing);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  border: none;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--animation-timing);
  }

  &:hover {
    transform: translateY(-2px);

    &::before {
      opacity: 1;
    }
  }

  &:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
  }
}

.cta-button--primary {
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(107, 123, 255, 0.3);

  &:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 25px rgba(107, 123, 255, 0.5);
  }
}

.cta-button--secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);

  &:hover {
    background: var(--primary);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(107, 123, 255, 0.3);
  }
}

/* Hover effect for both buttons */
.cta-button:hover {

  .fa-download,
  .fa-envelope {
    animation: buttonIconBounce 0.6s ease;
  }
}

@keyframes buttonIconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/*About section style */
.about {
  padding: 2rem;
  margin: 0.1rem auto;
  color: #ffffff;
  background-color: #16182a;
}

.section-heading {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #6b7bff;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #6b7bff;
  margin: 1rem auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 123, 255, 0.1);
}

.profile-image {
  position: relative;
  margin-bottom: 2rem;
}

.profile-image img {
  width: 100%;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.image-border {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #6b7bff;
  border-radius: 15px;
  top: 15px;
  left: 15px;
  z-index: 0;
}

.profile-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a0a0a0;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #6b7bff;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #6b7bff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 123, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(107, 123, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(107, 123, 255, 0);
  }
}

.bio {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(107, 123, 255, 0.1);
}

.bio-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #6b7bff;
}

.highlight {
  color: #6b7bff;
  font-weight: 600;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.expertise-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(107, 123, 255, 0.1);
  border-radius: 8px;
}

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

.tech-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-10px);
}

.tech-icon {
  font-size: 2.5rem;
  color: #6b7bff;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* Projects Section */
.projects-section {
  padding: 3rem 2rem;
  margin: 0.1rem auto;
  background-color: rgb(22, 24, 42);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 3.5rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* Project Grid */
.projects-grid {
  display: grid;
  gap: 2rem;
  position: relative;
}

/* Flip Card Container */
.project-card {
  aspect-ratio: 1/1;
  perspective: 1000px;
  border-radius: 20px;
  overflow: hidden;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.project-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Card Sides */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  padding: 2rem;
}

/* Front Side */
.card-front {
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--glass);
  backdrop-filter: blur(12px);
}

.card-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-stack {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tech-item {
  padding: 0.5rem 1rem;
  background: var(--primary-hover);
  border-radius: 10px;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back Side */
.card-back {
  background: var(--primary);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1rem;
  color: #e2e8f0;
  opacity: 0.9;
  margin-bottom: 2rem;
  text-align: justify;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.demo-btn,
.github-btn {
  padding: 1rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.github-btn {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-btn:hover {
  background: white;
  transform: translateY(-2px);
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.project-card:hover .card-front {
  box-shadow: 0 8px 32px rgba(107, 123, 255, 0.1);
}

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

/* Mobile First Approach */
@media (max-width: 768px) {
  .projects-section {
    padding: 2rem 1rem;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .project-card {
    aspect-ratio: auto;
    height: auto;
  }

  .card-inner {
    position: static;
    transform: none !important;
    height: auto;
  }

  .card-front,
  .card-back {
    position: relative;
    transform: none;
    backface-visibility: visible;
    height: auto;
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .card-back {
    transform: none;
    background: var(--card-bg);
    margin-top: -1rem;
  }

  .card-actions {
    flex-direction: column;
    margin-top: 1.5rem;
  }

  .demo-btn,
  .github-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .project-card:hover .card-inner {
    transform: rotateY(180deg);
  }

  .card-back {
    transform: rotateY(180deg);
    background: var(--primary);
  }
}

/* Medium screens: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens: 1 column */
@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Skills Section */
.skills {
  background: rgb(22, 24, 42);
  padding: 2rem;
}

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

/* Desktop Styles */
.skill-card {
  perspective: 1000px;
  position: relative;
  height: 350px;
  width: 100%;
  z-index: 1;
}

.skill-content {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}

.skill-card:hover .skill-content {
  transform: rotateY(180deg);
}

.skill-front,
.skill-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill-front {
  border-radius: 10px 10px 0px 0px;
}

.skill-back {
  transform: rotateY(180deg);
  background: var(--glass-bg);
}

/* Content Styling */
.skill-icon {
  font-size: 4rem;
  color: var(--primary-hover);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(107, 123, 255, 0.3);
}

.skill-icon i {
  color: var(--primary);
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
}

.skill-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.skill-list {
  list-style: none;
  padding: 0;
  text-align: center;
  margin-bottom: 2rem;
}

.skill-list li {
  margin: 0.8rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.skill-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Progress Circle */
.skill-progress-circle {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.skill-progress-circle svg {
  width: 100%;
  height: 100%;
}

.skill-progress-circle circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transform: translate(5px, 5px);
}

.skill-progress-circle .progress {
  stroke: var(--primary);
  stroke-dasharray: 251;
  stroke-dashoffset: calc(251 - (251 * var(--progress)) / 100);
  animation: progress 1.5s ease-out forwards;
}

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: var(--text);
}

@keyframes progress {
  0% {
    stroke-dashoffset: 251;
    opacity: 0;
  }

  100% {
    stroke-dashoffset: calc(251 - (251 * var(--progress)) / 100);
    opacity: 1;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .skill-card {
    height: auto;
    perspective: none;
  }

  .skill-content {
    position: relative;
    transform: none !important;
    height: auto;
    box-shadow: none;
  }

  .skill-front,
  .skill-back {
    position: relative;
    transform: none;
    backface-visibility: visible;
    height: auto;
    margin-bottom: 1rem;
  }

  .skill-back {
    display: none;
    margin-top: -1rem;
    animation: slideUp 0.3s ease;
  }

  .skill-content.active .skill-back {
    display: block;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

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

/* Contact Section Style */
.contact {
  margin-top: 0.1rem;
  background-color: rgb(22, 24, 42);
  padding: 2rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.5fr;
  /* Improved responsive columns */
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
  /* Added spacing after heading */
}

.contact-info,
.contact-form {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--glass-bg);
  backdrop-filter: blur(8px);
}

.info-title,
.form-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--glass-bg);
  padding-bottom: 0.5rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Info Card - Enhanced Version */
.info-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--glass-bg);
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  text-decoration: none;
  will-change: transform;
  /* Optimize animation performance */
}

.info-card:hover,
.info-card:focus-visible {
  transform: translateX(8px);
  border-color: var(--primary);
  background: linear-gradient(to right,
      rgba(107, 123, 255, 0.08) 20%,
      transparent 100%);
  outline: none;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--primary);
  color: #fff;
  /* Better contrast than var(--text) */
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.05);
}

.info-content {
  overflow: hidden;
}

.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-content p {
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 768px) {
  .info-card {
    gap: 1rem;
    padding: 1rem;
  }

  .info-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .info-content h4 {
    font-size: 1rem;
  }

  .info-content p {
    font-size: 0.88rem;
  }
}

@media (hover: none) {
  .info-card:hover {
    transform: none;
    background: var(--glass-bg);
  }
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bg);
  border-radius: 8px;
  color: var(--text);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(107, 123, 255, 0.2);
}

.submit-btn {
  background: var(--primary);
  color: var(--text);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: minmax(250px, 1fr);
    /* Better mobile handling */
    margin-top: 1.5rem;
  }

  .contact-info,
  .contact-form {
    padding: 1.5rem;
    /* Reduced padding for mobile */
  }
}

/*Footer section style */
.footer {
  background-color: #16182a;
  padding: 2rem;
  color: whitesmoke;
  position: relative;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(107, 123, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(107, 123, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-link:hover .social-icon {
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(107, 123, 255, 0.3);
}

.social-icon i {
  font-size: 1.4rem;
}

.footer-divider {
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem auto;
}

.footer-copyright {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 1.5rem;
  }

  .footer-social {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-link {
    flex-direction: row;
    justify-content: center;
  }

  .footer-divider {
    width: 100%;
    margin: 1.5rem 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.footer-link:hover .social-icon {
  animation: float 1.2s ease-in-out infinite;
}

/* Notification Purpose */
.notification {
  position: fixed;
  top: 20px;
  right: -300px;
  padding: 1rem 2rem;
  border-radius: 8px;
  color: white;
  transition: transform 0.3s ease;
  z-index: 10000;
}

.notification.show {
  transform: translateX(-320px);
}

.notification.success {
  background: #4caf50;
}

.notification.error {
  background: #f44336;
}

.notification.info {
  background: #2196f3;
}