* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background: linear-gradient(to bottom right, #020617, #0f172a, #000);
  color: white;
  overflow-x: hidden;
}

section {
  padding: 100px 20px;
  text-align: center;
}

/* antigravity design style */
#bgCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 20px;
}

/* FLEX LAYOUT */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

/* TEXT SIDE */
.hero-text {
  flex: auto;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1.2;
}

.hero-text span {
  background: linear-gradient(90deg, #38bdf8, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  margin: 15px 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #cbd5f5;
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-buttons button {
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.primary-btn {
  background: linear-gradient(90deg, #38bdf8, #6366f1, #8b5cf6);
  color: black;
}

.primary-btn:hover {
  transform: translateY(-3px);
}

.secondary-btn {
  background: transparent;
  border: 2px solid #d6680f;
  color: white;
}

.secondary-btn:hover {
  background: #f0f0f0;
  color: black;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* ICON BASE */
.icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  color: white;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);

  transition: all 0.4s ease;
  position: relative;
}

/* HOVER EFFECT */
.icon:hover {
  transform: translateY(-8px) scale(1.1);
}

/* INSTAGRAM */
.instagram:hover {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  box-shadow: 0 0 20px rgba(221, 42, 123, 0.6);
}

/* LINKEDIN */
.linkedin:hover {
  background: #0077b5;
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.6);
}

/* GITHUB */
.github:hover {
  background: #333;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ICON ANIMATION */
.icon i {
  transition: transform 0.3s ease;
}

.icon:hover i {
  transform: rotate(10deg) scale(1.2);
}

/* IMAGE SIDE */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.image-frame {
  width: clamp(260px, 50vw, 380px);
  height: clamp(260px, 50vw, 380px);
  border-radius: 70%;
  padding: 4px;
  position: relative;
  /* Glow */
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.89);

  /* Floating animation */
  animation: float 5s ease-in-out infinite;
}

/* ROTATING BORDER EFFECT */
.image-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #8b5cf6);
  z-index: -1;
  filter: blur(12px);
  animation: rotate 6s linear infinite;
}

/* INNER IMAGE */
.image-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;

  /* Smooth zoom on hover */
  transition: transform 0.4s ease;
}

/* HOVER EFFECT */
.image-frame:hover img {
  transform: scale(1.05);
}

/* FLOATING ANIMATION */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ROTATION ANIMATION */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.delay {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}

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

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 📱 TABLET */
@media (max-width: 900px) {
  .hero-container {
    gap: 20px;
  }
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-bottom: 20px;
  }
}

/* 📱 SMALL MOBILE */
@media (max-width: 480px) {
  .hero {
    padding: 20px 10px;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-buttons button {
    width: 100%;
  }
}

/* Projects */
.projects {
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* GRID */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

/* CARD */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: 0.4s ease;
  transform: translateY(50px);
  opacity: 0;
}

/* IMAGE */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* CONTENT */
.project-content {
  padding: 20px;
  text-align: left;
}

.project-content h3 {
  margin-bottom: 10px;
}

.project-content p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #ccc;
}

.project-content a {
  text-decoration: none;
  color: #38bdf8;
  font-weight: bold;
}

/* HOVER EFFECT */
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ANIMATION ON LOAD */
.project-card.show {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.6s ease;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }

  .project-card img {
    height: 180px;
  }
}

/* Glow */
#glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ripple */
.ripple {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid #60a5fa;
  border-radius: 50%;
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}

@keyframes ripple {
  from {
    transform: scale(0);
    opacity: 0.6;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Scroll Animation */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-form {
  max-width: 500px;
  margin-top: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid #1e3a8a;
  border-radius: 10px;
  color: white;
  outline: none;
}

.input-group label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #93c5fd;
  pointer-events: none;
  transition: 0.3s;
}

/* Floating label effect */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  background: #020617;
  padding: 0 5px;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-container {
  width: 100%;
  max-width: 500px;
}

/* keep your existing form styles below */

.contact-form button:hover {
  transform: scale(1.05);
}

.about {
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

/* TITLE */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* CARD */
.about-card {
  text-align: start;
  max-width: 800px;
  margin: auto;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.9;
  font-size: 1.05rem;
  color: #cbd5f5;
  transform: translateY(40px);
  opacity: 0;
  transition: 0.8s ease;
}

/* HIGHLIGHT WORDS */
.about-card span {
  color: #38bdf8;
  font-weight: 500;
}

/* SHOW ANIMATION */
.about-card.show {
  transform: translateY(0);
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .about-card {
    padding: 25px;
    font-size: 0.95rem;
  }

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