
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #111;
  background: #fff;
  overflow-x: hidden;
}

/* ===== HEADER SECTION ===== */
.header {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
}

.header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: -1;
}

.header-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20; /* ensures nav and logo stay above the video */
}

/* Logo */
.logo {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.logo .dot {
  color: #fa00af;
}

/* ===== NAVIGATION ===== */
.menu-toggle {
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  display: none;
  transition: transform 0.3s ease;
}

/* Menu turns when open */
.menu-toggle.open {
  transform: rotate(90deg);
}

#nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

#nav-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

#nav-menu ul li a:hover,
.home-link {
  color: #fa00af;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 6rem 10%;
  background: #fff;
}

.hero-text {
  flex: 1;
}

.hero-text p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #000;
}

.hero-text h2 {
  font-size: 1.4rem;
  color: #555;
  margin: 1rem 0;
}

.rough-underline {
  position: relative;
  display: inline-block;
  font-weight: 800;
}

.rough-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path d="M5 15 Q50 5 100 15 T195 15" stroke="%23ff0066" stroke-width="4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') repeat-x;
  background-size: 200px 20px;
  animation: moveScribble 4s linear infinite;
  opacity: 0.8;
}

@keyframes moveScribble {
  from { background-position: 0 0; }
  to { background-position: 200px 0; }
}

/* ===== HERO IMAGE FRAME EFFECT ===== */
.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-img::before {
  content: "";
  position: absolute;
  width: 108%;
  height: 108%;
  border-radius: 22px;
  background: linear-gradient(45deg, #fa00af, #ff6ec4, #7a00ff, #fa00af);
  background-size: 400% 400%;
  animation: borderFlow 6s linear infinite;
  z-index: 0;
  filter: blur(2px);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.hero-img img {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Frame animation */
@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover: soft glow and slight lift */
.hero-img:hover::before {
  opacity: 1;
  filter: blur(3px);
}

.hero-img:hover img {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* ===== DARK THEME ADJUSTMENT ===== */
[data-theme="dark"] .hero-img::before {
  background: linear-gradient(45deg, #fa00af, #8f00ff, #ff007f, #fa00af);
  opacity: 0.9;
  filter: blur(3px);
}

[data-theme="dark"] .hero-img:hover::before {
  opacity: 1;
  filter: blur(4px);
}


/* ===== BUTTONS ===== */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: #fa00af;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #111;
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 1.5rem;
  border-top: 2px solid #fa00af;
}

.footer p:hover {
  color: #fa00af;
  transition: 0.3s;
}
/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  #nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    transition: right 0.4s ease;
    z-index: 1100;
    padding-top: 6rem;
  }

  #nav-menu.active {
    right: 0;
  }

  #nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  #nav-menu ul li a {
    font-size: 1.4rem;
    color: #fff;
    opacity: 0;
    animation: fadeInNav 0.6s ease forwards;
  }

  #nav-menu.active ul li:nth-child(1) a { animation-delay: 0.1s; }
  #nav-menu.active ul li:nth-child(2) a { animation-delay: 0.2s; }
  #nav-menu.active ul li:nth-child(3) a { animation-delay: 0.3s; }
  #nav-menu.active ul li:nth-child(4) a { animation-delay: 0.4s; }

  @keyframes fadeInNav {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 5rem 5%;
  }

  .hero-img {
    order: -1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* The icon itself */
.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 6px -6px 0 0 #111;
  transition: all 0.4s ease;
}

/* Switch to sun in dark mode */
[data-theme="dark"] .theme-icon {
  background: #fa00af;
  box-shadow: none;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #0f0f0f;
  --text: #f9f9f9;
  --panel: #181818;
  --accent: #fa00af;
}

/* General dark theme overrides */
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .header-video {
  filter: brightness(0.3);
}

[data-theme="dark"] .header-overlay .logo {
  color: var(--text);
}

[data-theme="dark"] #nav-menu ul li a {
  color: var(--text);
}

[data-theme="dark"] .hero {
  background: linear-gradient(145deg, #000000, #000000);
  color: var(--text);
}

[data-theme="dark"] .hero-text p {
  color: #ccc;
}

[data-theme="dark"] .hero-text h1 {
  color: #fff;
}

[data-theme="dark"] .hero-text h2 {
  color: #ddd;
}

[data-theme="dark"] .btn {
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] .btn:hover {
  background: #fff;
  color: #000;
}

[data-theme="dark"] .footer {
  background: #111;
  color: var(--text);
  border-top: 2px solid var(--accent);
}
/* ===== HERO IMAGE WITH HOVER ABOUT CARD ===== */
.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image-card {
  position: relative;
  width: 380px;
  max-width: 90%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(45deg, #fa00af, #ff6ec4, #7a00ff, #fa00af);
  background-size: 400% 400%;
  animation: borderFlow 6s linear infinite;
  z-index: 0;
  filter: blur(2px);
  opacity: 0.8;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.95);
  color: #fff;
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  z-index: 2;
}

.about-overlay p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #eaeaea;
}

.image-card:hover img {
  opacity: 0.2;
}

.image-card:hover .about-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Frame animation */
@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== DARK THEME ===== */
[data-theme="dark"] .about-overlay {
  background: rgba(250, 0, 175, 0.1);
  color: #f9f9f9;
}

[data-theme="dark"] .about-overlay p {
  color: #fff;
}

[data-theme="dark"] .image-card::before {
  background: linear-gradient(45deg, #fa00af, #8f00ff, #ff007f, #fa00af);
}
/* ===== 3D FLIP CARD EFFECT ===== */
.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.flip-card {
  width: 380px;
  max-width: 90%;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  border-radius: 20px;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  overflow: hidden;
}

/* Front Side */
.flip-front {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Back Side */
.flip-back {
  background: rgba(15, 15, 15, 0.95);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: justify;
  padding: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 2px solid #ff2fa6;
}

/* Gradient border glow */
.flip-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 24px;
  background: linear-gradient(45deg, #fa00af, #ff6ec4, #7a00ff, #fa00af);
  background-size: 400% 400%;
  animation: borderFlow 6s linear infinite;
  z-index: -1;
  filter: blur(3px);
  opacity: 0.8;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== DARK THEME ===== */
[data-theme="dark"] .flip-back {
  background: rgba(250, 0, 175, 0.08);
  color: #fff;
  border: 2px solid #ff2fa6;
}

[data-theme="dark"] .flip-card::before {
  background: linear-gradient(45deg, #fa00af, #8f00ff, #ff007f, #fa00af);
}


/* ===== ABOUT SECTION ===== */
.about-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 6rem 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--panel, #fff);
  color: var(--text, #111);
  overflow: hidden;
}

/* ===== BACKGROUND TEXT ===== */
.about-bg-text {
  position: absolute;
  top: 0; /* top of section */
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  text-align: center;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1.1;
  z-index: 1; /* behind content */
  max-width: 90%;
  pointer-events: none;
  user-select: none;
}

/* ===== ABOUT CONTAINER ===== */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2; /* above background text */
  max-width: 1200px;
  margin-top: 6rem; /* push content below background text */
}

.about-text {
  flex: 1 1 480px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent, #fa00af);
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text, #333);
}

.about-gif {
  flex: 1 1 400px;
  text-align: center;
}

.about-gif img {
  max-width: 380px;
  width: 100%;
  border-radius: 20px;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.about-gif img:hover {
  transform: scale(1.05);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] .about-section {
  background: #000000;  /* pure black background */
  color: #ffffff;       /* white text */
}

[data-theme="dark"] .about-bg-text {
  color: rgba(255, 255, 255, 0.089); /* subtle white watermark text */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
    margin-top: 4rem;
  }

  .about-bg-text {
    font-size: clamp(2rem, 10vw, 4rem);
    top: 0.5rem; /* space from top */
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 500px) {
  .about-container {
    margin-top: 3rem;
  }

  .about-bg-text {
    font-size: clamp(1.5rem, 15vw, 3rem);
    top: 0.3rem;
  }

  .about-text h2 {
    font-size: 1.4rem;
  }

  .about-text p {
    font-size: 0.9rem;
  }
}

/* ===== ANIMATIONS FOR ABOUT SECTION ===== */
.about-text, .about-gif {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s ease-out;
}

.about-text.visible, .about-gif.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating motion for the GIF */
.about-gif img {
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
/* ===== ANIMATED BACKGROUND EFFECT FOR ABOUT SECTION ===== */
.about-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Glowing light streaks layer */
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(250, 0, 175, 0.15), transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(122, 0, 255, 0.1), transparent 60%);
  mix-blend-mode: screen;
  filter: blur(60px);
  animation: glowShift 10s ease-in-out infinite alternate;
  z-index: 0;
}

/* Moving code matrix streams */
.about-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: codeRain 6s linear infinite;
  opacity: 0.2;
  z-index: 0;
}

/* Background animations */
@keyframes glowShift {
  0% {
    background-position: 0% 0%, 100% 100%;
    opacity: 0.7;
  }
  50% {
    background-position: 50% 50%, 50% 50%;
    opacity: 1;
  }
  100% {
    background-position: 100% 100%, 0% 0%;
    opacity: 0.7;
  }
}

@keyframes codeRain {
  0% { background-position: 0 0; }
  100% { background-position: 0 200px; }
}


.projects {
  background: #000;
  padding: 100px 5%;
  color: #fff;
  text-align: center;
  position: relative;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] .projects {
  background: #f7f7f7;
  color: #111;
}

[data-theme="light"] .section-title {
  color: #000;
}

[data-theme="light"] .section-subtitle {
  color: #555;
}

[data-theme="light"] .project-card {
  background: linear-gradient(145deg, #fff, #f0f0f0);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 0 60px rgba(250, 0, 175, 0.3);
}

[data-theme="light"] .mac-frame {
  background: #e9e9e9;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.08),
              0 0 30px rgba(0, 150, 255, 0.1);
}

[data-theme="light"] .mac-frame::before {
  background: #ccc;
}

[data-theme="light"] .project-info h3 {
  color: #111;
}

[data-theme="light"] .project-desc {
  color: #444;
}

[data-theme="light"] .tech-stack span {
  background: rgba(250, 0, 175, 0.08);
  color: #a60073;
}

[data-theme="light"] .btn {
  background: linear-gradient(90deg, #fa00af, #a855f7);
}

[data-theme="light"] .btn:hover {
  background: linear-gradient(90deg, #a855f7, #fa00af);
}

/* ===== SECTION HEADINGS ===== */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
  letter-spacing: 1px;
}

.section-subtitle {
  color: #aaa;
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 3rem;
}

/* ===== PROJECT CARDS ===== */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(145deg, #0a0a0a, #101010);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 60px rgba(231, 1, 116, 0.3);
}

/* ===== FRAME ===== */
.mac-frame {
  position: relative;
  width: 55%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.08),
              0 0 30px rgba(0, 150, 255, 0.1);
}

.mac-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: #333;
  border-radius: 20px;
  margin-top: 8px;
  z-index: 10;
}

.mac-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(1);
  transform-origin: top;
}

/* ===== INFO ===== */
.project-info {
  width: 40%;
  text-align: left;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.project-desc {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tech-stack span {
  background: rgba(59, 59, 59, 0.15);
  color: #b4007e;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 8px;
  margin-right: 8px;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  margin-top: 15px;
  background: linear-gradient(90deg, #ff0062, #ff004c);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #ff0077, #fa0060);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .project-card {
    flex-direction: column;
    text-align: center;
  }

  .project-info {
    width: 100%;
    margin-top: 2rem;
  }

  .mac-frame {
    width: 100%;
  }
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border: 2px solid #fa00af;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, transform 0.1s ease;
  z-index: 9999;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: #fff;
}

.cursor-text {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover grow effect */
.cursor-grow {
  width: 90px;
  height: 90px;
  background: rgba(250, 0, 175, 0.15);
  border-color: #ff2fa6;
}

.cursor-active .cursor-text {
  opacity: 1;
  transform: scale(1);
}

/* Make sure normal cursor is hidden */
body, a, button, img {
  cursor: none;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  text-align: center;
  padding: 4rem 10%;
}

.contact-section h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-section p {
  color: var(--text);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
  color: var(--text);
  padding: 2rem 2.5rem;
  border-radius: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  transition: all 0.4s ease;
}

.contact-icons a img {
  width: 50px;
  height: 50px;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.contact-icons a span {
  font-size: 1rem;
}

.contact-icons a:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 35px rgba(250, 0, 175, 0.35);
}

.contact-icons a:hover img {
  transform: rotate(10deg) scale(1.2);
}

/* ===== THEME SUPPORT ===== */
[data-theme="light"] .contact-icons a {
  background: var(--card-bg);
  color: var(--text);
}

[data-theme="light"] .contact-icons a:hover img {
  transform: rotate(10deg) scale(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .contact-icons {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-icons {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-icons a {
    width: 80%;
    margin: 0 auto;
  }
}

/* ===== MOBILE-ONLY RESPONSIVENESS FIX ===== */
@media (max-width: 768px) {

  /* Prevent side overflow */
  body {
    overflow-x: hidden;
  }

  /* HERO SECTION */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-img,
  .flip-card {
    width: 85%;
    margin: 2rem auto 0;
  }

  /* ABOUT SECTION */
  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .about-text {
    font-size: 0.95rem;
  }

  .about-gif {
    order: -1;
    margin-bottom: 1.5rem;
  }

  /* PROJECTS SECTION */
  .projects-container {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  iframe {
    height: 240px;
  }

  /* CONTACT SECTION */
  .contact-section {
    padding: 3rem 1.5rem;
  }

  .contact-icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .contact-icons img {
    width: 36px;
    height: 36px;
  }
}


