/* Smooth transition */
/* Prevent horizontal scroll due to animation or overflow */
html,
body {
  overflow-x: hidden;
  width: 100vw;
  transition: background-color 0.3s, color 0.3s;
  scroll-behavior: smooth;
}

/* Profile image shadow */
img.rounded-circle {
  border: 4px solid #fff;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.animated-bg {
  background: linear-gradient(-45deg, #1d3557, #457b9d, #a8dadc, #f1faee);
  background-size: 200% 200%;
  animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

.dark-hero {
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1c1c1c);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

.glow-text {
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px #00bcd4, 0 0 15px #00bcd4,
    0 0 20px #00bcd4, 0 0 25px #00bcd4;
}

.typewriter-text {
  border-right: 2px solid #fff;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2s steps(20, end) forwards, blink 0.75s step-end infinite;
  display: inline-block;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Navbar css */

/* HAMBURGER ICON */
.hamburger-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hamburger-icon:hover {
  opacity: 1;
}

.hamburger-icon span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 5px #00f0ff;
  transition: all 0.3s ease;
}

/* HIDE HAMBURGER WHEN OVERLAY IS ACTIVE */
.hide-hamburger {
  display: none !important;
}

/* OVERLAY MENU */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s ease;
}

.overlay-menu.active {
  display: flex;
  animation: fadeInScale 0.5s ease forwards;
}

.overlay-menu a {
  width: 200px;
  color: #00f0ff;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  margin: 0.7rem 0;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  animation: neonPulse 2s infinite alternate;
}

.overlay-menu a:hover {
  color: #fff;
  background-color: rgba(0, 240, 255, 0.1);
  border: 2px solid #00f0ff;
  box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #00f0ff;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.5s ease, color 0.3s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
  color: #fff;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 5px #00f0ff, 0 0 15px #00f0ff, 0 0 30px #00f0ff;
  }
  50% {
    box-shadow: 0 0 15px #00f0ff, 0 0 25px #00f0ff, 0 0 50px #00f0ff;
  }
}

/* SHOW ONLY ON SMALL SCREENS */
/* @media screen and (min-width: 992px) {
  .hamburger-icon {
    display: none;
  }
} */

/* Hero css */

.hero-welcome {
  font-size: 2rem;
  font-weight: 700;
  color: #ccc;
  text-shadow: 1px 1px 2px #222;
  text-align: center;
  letter-spacing: 1px;
}

/* Ensure hero content stays above particles */
.hero-container {
  position: relative;
  z-index: 1;
  pointer-events: auto; /* Ensures content remains clickable */
}

/* About Section Responsive Fixes */
.about {
  padding: 3rem 1rem !important;
}

.about-img {
  /* cursor: pointer; */
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  width: 300px; /* Base size */
}

.about-img:hover {
  transform: scale(1.05);
}

/* Text sizing adjustments */
.about h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.text-grey-400{
  color: #ababab;
}

/* Skills badges */
.skills .badge {
  /* cursor: pointer; */
  font-size: 0.9rem;
  padding: 0.6em 1em;
  border-radius: 999px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills .badge:hover {
  transform: scale(1.05);
  background-color: #1e1e1e;
  color: #fff;
}

/* Responsive Breakpoints */
@media (max-width: 1399.98px) {
  /* Large laptops */
  .about-img {
    width: 280px;
  }
  .about h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 1199.98px) {
  /* Small laptops */
  .about-img {
    width: 300px;
  }
  .about h2 {
    font-size: 2.1rem;
  }
  .about p {
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) {
  /* Tablets */
  .about .row {
    flex-direction: column;
    text-align: center;
  }
  .about-img {
    width: 240px;
    margin-bottom: 2rem;
  }
  .about h2 {
    font-size: 2rem;
  }
  .skills {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  /* Small tablets */
  .about-img {
    width: 300px;
  }
  .about h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  /* Mobile */
  .about {
    padding: 2rem 1.5rem !important;
  }
  .about-img {
    width: 250px;
  }
  .about h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  .about p {
    font-size: 0.95rem;
  }
  .skills .badge {
    font-size: 0.8rem;
    padding: 0.5em 0.8em;
    margin: 0.3rem;
  }
}

/* Smooth animation improvements */
[data-aos] {
  transition-duration: 0.8s !important;
  transition-timing-function: ease-in-out !important;
}

/* Fix animation jank (force hardware acceleration) */
.animated-bg {
  will-change: background-position;
  backface-visibility: hidden;
  perspective: 1000;
  transform: translateZ(0);
}

/* Skills Section with Theme Support */
.skills-section {
  padding: 80px 20px;
  transition: background-color 0.3s, color 0.3s;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  transition: color 0.3s ease;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* Updated Hover Effects for Skill Boxes */
.skill-box {
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* cursor: pointer; */
}

/* Light theme skill box */
html[data-theme="light"] .skill-box {
  background-color: #fee2e2; /* Light red */
  color: #1e293b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dark theme skill box */
html[data-theme="dark"] .skill-box {
  background-color: #1e293b; /* Dark slate blue */
  color: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Light theme hover */
html[data-theme="light"] .skill-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #fecaca; /* Slightly darker red on hover */
}

/* Dark theme hover */
html[data-theme="dark"] .skill-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: #334155; /* Slightly lighter blue on hover */
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 15px;
  /* margin-bottom: 10px; */
}

.skill-header i {
  font-size: 2rem;
  transition: color 0.3s ease;
}

html[data-theme="light"] .skill-header i {
  color: #dc2626; /* Red in light theme */
}

html[data-theme="dark"] .skill-header i {
  color: #38bdf8; /* Light blue in dark theme */
}

.skill-header h3 {
  font-size: 1.5rem;
  margin: 0;
  transition: color 0.3s ease;
}

html[data-theme="light"] .skill-header h3 {
  color: #1e293b;
}

html[data-theme="dark"] .skill-header h3 {
  color: #f1f5f9;
}

.skill-bar {
  border-radius: 8px;
  overflow: hidden;
  height: 20px;
  transition: background-color 0.3s;
}

html[data-theme="light"] .skill-bar {
  background: #fecaca; /* Light red background */
}

html[data-theme="dark"] .skill-bar {
  background: #334155; /* Dark blueish background */
}

.skill-progress {
  height: 100%;
  padding-left: 10px;
  line-height: 20px;
  color: white;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.3s;
}

html[data-theme="light"] .skill-progress {
  background-color: #ef4444; /* Red bar in light theme */
}

html[data-theme="dark"] .skill-progress {
  background-color: #0ea5e9; /* Light blue bar in dark theme */
}

/* Skill bar width handled with inline --width var */
.skill-progress {
  width: var(--width);
}

.skill-progress::after {
  content: attr(style);
  display: none;
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: var(--width);
  }
}

@media (max-width: 768px) {
  .skills-section .skills-grid {
    margin-left: 100px;
    margin-right: 100px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-box {
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .skill-header {
    gap: 10px;
  }

  .skill-header i {
    font-size: 1.5rem;
  }

  .skill-header h3 {
    font-size: 1.2rem;
  }

  .skill-bar {
    height: 20px; /* Reduced from 20px */
  }
}

@media screen and (max-width: 480px) {
  .skill-box{
    padding: 15px;
  }

  .skills-section .skills-grid {
    margin-left: 20px;
    margin-right: 20px;
  }

  .skill-header {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .skill-header i {
    font-size: 1.2rem;
  }

  .skill-header h3 {
    font-size: 1rem;
  }

  .skill-bar {
    height: 20px; 
  }
  
}

/* Projects css */
.projects-section {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  transition: background-color 0.3s, color 0.3s;
  z-index: 1;
}

.projects-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
  pointer-events: none;
}

.glowing {
  position: relative;
  min-width: 700px;
  height: 550px;
  margin: -150px;
  transform-origin: right;
  animation: colorChange 5s linear infinite;
}

.glowing:nth-child(even) {
  transform-origin: left;
}

.glowing span {
  position: absolute;
  top: calc(80px * var(--i));
  left: calc(80px * var(--i));
  bottom: calc(80px * var(--i));
  right: calc(80px * var(--i));
}

.glowing span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  width: 15px;
  height: 15px;
  background: #f00;
  border-radius: 50%;
}

.glowing span:nth-child(3n + 1)::before {
  background: rgba(134, 255, 0, 1);
  box-shadow: 0 0 20px rgba(134, 255, 0, 1), 0 0 40px rgba(134, 255, 0, 1),
    0 0 60px rgba(134, 255, 0, 1), 0 0 80px rgba(134, 255, 0, 1),
    0 0 0 8px rgba(134, 255, 0, 0.1);
}

.glowing span:nth-child(3n + 2)::before {
  background: rgba(255, 214, 0, 1);
  box-shadow: 0 0 20px rgba(255, 214, 0, 1), 0 0 40px rgba(255, 214, 0, 1),
    0 0 60px rgba(255, 214, 0, 1), 0 0 80px rgba(255, 214, 0, 1),
    0 0 0 8px rgba(255, 214, 0, 0.1);
}

.glowing span:nth-child(3n + 3)::before {
  background: rgba(0, 226, 255, 1);
  box-shadow: 0 0 20px rgba(0, 226, 255, 1), 0 0 40px rgba(0, 226, 255, 1),
    0 0 60px rgba(0, 226, 255, 1), 0 0 80px rgba(0, 226, 255, 1),
    0 0 0 8px rgba(0, 226, 255, 0.1);
}

.glowing span:nth-child(3n + 1) {
  animation: animate 10s alternate infinite;
}

.glowing span:nth-child(3n + 2) {
  animation: animate-reverse 3s alternate infinite;
}

.glowing span:nth-child(3n + 3) {
  animation: animate 8s alternate infinite;
}

@keyframes animate {
  0% {
    transform: rotate(180deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-reverse {
  0% {
    transform: rotate(360deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes colorChange {
  0% {
    filter: hue-rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Ensure particles appear behind and clickable */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
  pointer-events: none; /* allow clicks for particle effect */
}

html[data-theme="light"] .projects-section {
  background-color: #edf6ff;
  color: #1e293b;
}

html[data-theme="dark"] .projects-section {
  background-color: #0f172a;
  color: #f1f5f9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s, background-color 0.3s, box-shadow 0.4s;
  position: relative;
}

html[data-theme="dark"] .project-card {
  background-color: #1e293b;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .project-card:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 255, 200, 0.15), 0 12px 36px rgba(0, 255, 200, 0.1);
}

.media-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000; /* fallback background */
  position: relative;
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: fill;
  display: block;
}

.project-content {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.project-desc {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.tech-stack {
  /* cursor: pointer; */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech {
  background-color: #e2e8f0;
  color: #1e293b;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background-color 0.3s, color 0.3s;
}

html[data-theme="dark"] .tech {
  background-color: #334155;
  color: #f1f5f9;
}

/* Project Video Style */
.project-video, .fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* covers the whole box; switch to contain if you want full video shown even with black bars */
  display: block;
}

.fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Buttons */
.project-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.project-btn {
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
}

.live-btn {
  background: #00b894;
  color: white;
}

.code-btn {
  background: #0984e3;
  color: white;
}

.project-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Theme support for dark mode if needed */
html[data-theme="dark"] .live-btn {
  background: #00cec9;
}

html[data-theme="dark"] .code-btn {
  background: #74b9ff;
}

/* Responsive */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}


@media (max-width: 480px) {
  .projects-grid {
    padding: 0 15px;
  }
  .project-btn {
    text-decoration: none;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.7rem;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
  }
  .tech {
    background-color: #e2e8f0;
    color: #1e293b;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    transition: background-color 0.3s, color 0.3s;
  }
  .project-title {
    font-size: 1.1rem;
  }
  .project-desc {
    font-size: 0.7rem;
  }

}

@media (min-width: 768px) {
  .project-img {
    height: 350px;
  }
}


/* experience css */

/* Experience Section with Theme Support */
.experience-section {
  padding: 80px 20px;
  transition: background-color 0.3s, color 0.3s;
}

/* Light Mode */
html[data-theme="light"] .experience-section {
  background-color: #f9fafb;
  color: #1e293b;
}

/* Dark Mode */
html[data-theme="dark"] .experience-section {
  background-color: #121212;
  color: #f1f5f9;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
  border-left: 2px solid var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: -9px;
  top: 0;
}

.timeline-content {
  padding-left: 30px;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  /* cursor: pointer; */
}

.timeline-content:hover {
  transform: scale(1.03);
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color);
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Dark/light theme compatible colors */
:root {
  --section-bg: #f9f9f9;
  --card-bg: #ffffff;
  --text-color: #111;
  --text-light: #666;
  --text-muted: #888;
}

.dark-theme {
  --section-bg: #0f172a;
  --card-bg: #1e293b;
  --text-color: #f1f5f9;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
}

html[data-theme="light"] {
  --primary-color: #dc2626; /* Red */
}

/* Dark Mode */
html[data-theme="dark"] {
  --primary-color: #2563eb; /* Blue */
}

/* Service css */

.services-section {
  padding: 80px 20px;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s, color 0.3s;
}

html[data-theme="light"] .services-section {
  background: #f9fafb;
  color: #1e293b;
}

html[data-theme="dark"] .services-section {
  background: #121212;
  color: #f1f5f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 30px;
}

.service-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .service-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgb(208, 27, 27);
}

html[data-theme="dark"] .service-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgb(36, 189, 232);
}

.icon-wrap {
  font-size: 2.5rem;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

html[data-theme="light"] .icon-wrap {
  color: #dc2626;
}

html[data-theme="dark"] .icon-wrap {
  color: #38bdf8;
}

.service-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .service-box {
    padding: 20px;
  }

  .service-box h3 {
    font-size: 1.3rem;
  }

  .icon-wrap {
    font-size: 2rem;
  }
}

/* Contact css */

/* Contact Section Base */
.contact-section {
  padding: 80px 20px 0px 20px;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Bubbles BG */
.bubble-animation span {
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  animation: float 10s linear infinite;
  border-radius: 50%;
  z-index: 0;
}
.bubble-animation span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.bubble-animation span:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
}
.bubble-animation span:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
}
.bubble-animation span:nth-child(4) {
  left: 70%;
  animation-delay: 6s;
}
.bubble-animation span:nth-child(5) {
  left: 90%;
  animation-delay: 8s;
}

@keyframes float {
  0% {
    bottom: -50px;
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(20px) scale(1.2);
  }
  100% {
    bottom: 100%;
    transform: translateX(-20px) scale(1);
  }
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 15px;
}

/* Animated Emoji */
.contact-emoji {
  font-size: 3rem;
  animation: bounce 1.8s infinite ease-in-out;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Social Icons */
.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.social-icons a {
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 50%;
  transition: 0.3s ease;
  box-shadow: 0 0 10px #00f2fe;
}
.social-icons a:hover {
  background: #00f2fe;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 20px #00f2fe;
}

.contact-info h2 {
  font-size: 2.5rem;
  padding-bottom: 2px;
  margin-bottom: 15px;
  background: linear-gradient(to right, #00f2fe, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info {
  text-align: center;
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px 0;
}

.info-box {
  margin-top: 30px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.info-box p {
  margin: 0;
  padding: 5px;
}

.form-map-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;
  position: relative;
  box-sizing: border-box;
}

.map-container {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 20px;
  filter: grayscale(90%) contrast(1.2) opacity(0.9);
}

.contact-form {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.contact-form button {
  padding: 15px;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #00f2fe, #4facfe);
  color: #000;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px #00f2fe;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00f2fe;
}

/* ---------------------- */
/* Responsive Media Query */
/* ---------------------- */

/* Tablet View (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .form-map-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
  }

  .map-container {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    height: auto;
    min-height: 400px;
  }

  .contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
  }

  .contact-info h2 {
    font-size: 2.2rem;
  }
}

/* Laptop/Desktop View (1025px and up) */
@media (min-width: 1025px) {
  .form-map-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }

  .map-container,
  .contact-form {
    flex: 1;
    min-height: 500px;
  }

  .map-container {
    min-width: 400px;
  }

  .contact-form {
    min-width: 400px;
  }
}

/* Mobile View (up to 767px) */
@media (max-width: 767px) {
  .contact-container {
    flex-direction: column;
    gap: 50px;
    padding: 0 10px;
  }

  .contact-info,
  .contact-form {
    max-width: 100%;
  }

  .contact-emoji {
    font-size: 2.5rem;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  .social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icons a {
    font-size: 0.8rem;
    padding: 10px;
  }

  .info-box {
    font-size: 0.9rem;
  }

  .form-map-wrapper {
    flex-direction: column;
    padding: 0 10px;
  }

  .map-container {
    width: 100%;
    min-height: 350px;
  }

  .contact-form {
    max-width: 100%;
  }
}

/* Small Mobile View (up to 360px) */
@media (max-width: 360px) {
  .contact-info h2 {
    font-size: 1.6rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 0.9rem;
    padding: 12px;
  }

  .map-container {
    min-height: 300px;
  }
}

/* scroll to top */

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background-color: #00f0ff;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.4;
  box-shadow: 0 0 10px #00f0ff;
  transition: all 0.3s ease;
  display: none;
}

#scrollTopBtn:hover {
  opacity: 1;
  transform: scale(1.1);
}

#scrollTopBtn i {
  color: #111;
  font-size: 18px;
}

@media screen and (max-width: 480px) {
  #scrollTopBtn {
    padding: 10px;
    bottom: 15px;
    right: 15px;
  }

  #scrollTopBtn i {
    font-size: 16px;
  }
}

.cursor-trail {
  top: 0;
  left: 0;
  position: fixed;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 15px #00f0ff;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out, opacity 0.2s ease;
}

@media (max-width: 768px) {
  #cursorTrail {
    display: none !important;
  }
}
