* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all .3s ease;
}

.btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* HERO */
.hero {
  height: 100vh;
  background: url("image/christopher-gower-m_HRfLhgABo-unsplash.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content span {
  color: #00b4d8;
}

.hero-content p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #f3f3f3;
}

/* ABOUT */
.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: #444;
  line-height: 1.7;
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

/* SERVICES */
.services {
  background: #f7f9ff;
  text-align: center;
  padding: 6rem 0;
}

.services h2 {
  font-size: 2.3rem;
}

.subtitle {
  color: #666;
  margin-top: .5rem;
}

/* CARD GRID */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 2.5rem;
  justify-items: center;
  padding-top: 2rem;
}

.cards > .card:last-child {
  justify-self: center;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 320px;
  min-height: 380px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* CARD IMAGE */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* CARD TITLE */
.card h3 {
  margin: 1.2rem 0 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

/* CARD TEXT */
.card p {
  color: #555;
  padding: 0 1.2rem 1.5rem;
  text-align: center;
  flex-grow: 1;
}

/* WHY CHOOSE US */
.why-choose {
  padding: 5rem 2rem;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-box {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: .3s;
}

.why-box i {
  font-size: 2.2rem;
  color: #00b4d8;
  margin-bottom: 1rem;
}

.why-box:hover {
  transform: translateY(-10px);
}

/* TECH STACK */
.tech-stack {
  padding: 5rem 1rem;
  text-align: center;
}

.tech-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px 70px;
  margin-top: 30px;
  width: 100%;
}

.tech-icons i:hover {
  transform: scale(1.2);
}

/* PORTFOLIO SECTION */
.portfolio {
  text-align: center;
  padding: 60px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 0 20px;
}

/* Compact Project Card */
.project-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
  transition: transform .25s ease, box-shadow .25s ease;
  width: 80%;
  margin-left: 50px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform .3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  font-size: 17px;
  margin: 12px 0 4px;
}

.project-card p {
  font-size: 14px;
  padding: 0 18px 12px;
  color: #444;
}

.portfolio h2 {
  margin-bottom: 40px;
}

/* CTA SECTION */
.cta-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  text-align: center;
  color: #fff;
  border-radius: 0;
  margin-top: 3rem;
}

.cta-section h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

/* TECH ICON STYLES */
.tech-icon i {
  font-size: 48px;
  color: inherit;
}

.tech-icon {
  text-align: center;
  transition: transform .3s ease;
  color: #000;
}

/* Brand Colors */
.tech-icon.html { color: #E34F26; }
.tech-icon.css { color: #1572B6; }
.tech-icon.js { color: #F7DF1E; }
.tech-icon.react { color: #61DAFB; }
.tech-icon.angular { color: #dd0031; }
.tech-icon.dotnet { color: #512BD4; }
.tech-icon.csharp { color: #9B4F96; }
.tech-icon.sql { color: #00758F; }
.tech-icon.oracle { color: #F80000; }
.tech-icon.telerik { color: #5CB85C; }

.tech-icon:hover {
  transform: translateY(-8px);
}

/* NEW NEON HERO */
.neon-hero {
  height: 100vh;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* GLOW GRID BEHIND */
.neon-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image:
    linear-gradient(rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px);
  animation: gridMove 8s linear infinite;
  z-index: 1;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

/* HERO TEXT (NEON) */
.neon-content {
  text-align: center;
  z-index: 3;
  color: #fff;
}

.neon-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #00eaff;
}

.neon-content h2 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  opacity: 0.8;
}

/* NEON BUTTON */
.neon-btn {
  background: transparent;
  border: 2px solid #00eaff;
  color: #00eaff;
  padding: 0.8rem 2.2rem;
  border-radius: 40px;
  box-shadow: 0 0 10px #00eaff;
  transition: 0.3s ease;
}

.neon-btn:hover {
  background: #00eaff;
  color: #000;
  box-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff;
}

/* ANIMATED CHECK BOXES */
.neon-hero::before,
.neon-hero::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid #00eaff;
  opacity: 0.6;
  animation: floatBox 6s infinite ease-in-out;
}

.neon-hero::before {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.neon-hero::after {
  bottom: 15%;
  right: 18%;
  animation-delay: 1.5s;
}

@keyframes floatBox {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) rotate(6deg); box-shadow: 0 0 20px #00eaff; }
  100% { transform: scale(1) rotate(0deg); }
}

/* Hover: Grid grows + shakes lightly */
.neon-hero:hover .neon-grid {
  background-size: 45px 45px;
  filter: drop-shadow(0 0 10px #00eaff);
}

/* MULTIPLE NEON BLOCKS */
.neon-blocks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

/* SINGLE BLOCK */
.neon-blocks .block {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid #00eaff;
  box-shadow: 0 0 15px #00eaff, 0 0 40px #00eaff inset;
  animation: floatBoxRandom 8s infinite ease-in-out;
  opacity: 0.7;
  border-radius: 4px;
}

/* RANDOM POSITION + DELAY */
.neon-blocks .block:nth-child(1) { top: 10%; left: 8%;  animation-delay: 0s; }
.neon-blocks .block:nth-child(2) { top: 15%; left: 70%; animation-delay: 0.8s; }
.neon-blocks .block:nth-child(3) { top: 35%; left: 20%; animation-delay: 1.2s; }
.neon-blocks .block:nth-child(4) { top: 55%; left: 12%; animation-delay: 1.7s; }
.neon-blocks .block:nth-child(5) { top: 65%; left: 75%; animation-delay: 2.1s; }
.neon-blocks .block:nth-child(6) { top: 80%; left: 30%; animation-delay: 2.8s; }
.neon-blocks .block:nth-child(7) { top: 40%; left: 55%; animation-delay: 3.2s; }
.neon-blocks .block:nth-child(8) { top: 25%; left: 42%; animation-delay: 3.8s; }
.neon-blocks .block:nth-child(9) { top: 75%; left: 50%; animation-delay: 4.5s; }
.neon-blocks .block:nth-child(10){ top: 18%; left: 30%; animation-delay: 5.1s; }
.neon-blocks .block:nth-child(11){ top: 60%; left: 60%; animation-delay: 5.7s; }
.neon-blocks .block:nth-child(12){ top: 8%;  left: 85%; animation-delay: 6.4s; }

/* FLOAT + GLOW ANIMATION */
@keyframes floatBoxRandom {
  0% {
    transform: scale(0.4) translate(0, 0);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2) translate(20px, -20px);
    box-shadow: 0 0 25px #00eaff, 0 0 60px #00eaff inset;
    opacity: 1;
  }
  100% {
    transform: scale(0.4) translate(0, 0);
    opacity: 0.2;
  }
}

/* ANIMATIONS (GENERIC) */
.fade-up    { opacity:0; transform:translateY(20px); animation:fadeUp 1s forwards; }
.fade-left  { opacity:0; transform:translateX(-20px); animation:fadeLeft 1s forwards; }
.fade-right { opacity:0; transform:translateX(20px);  animation:fadeRight 1s forwards; }
.zoom-in    { opacity:0; transform:scale(.9);         animation:zoomIn 1s forwards; }

.delay  { animation-delay:.4s; }
.delay2 { animation-delay:.8s; }

@keyframes fadeUp   { to { opacity:1; transform:translateY(0); } }
@keyframes fadeLeft { to { opacity:1; transform:translateX(0); } }
@keyframes fadeRight{ to { opacity:1; transform:translateX(0); } }
@keyframes zoomIn   { to { opacity:1; transform:scale(1); } }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeInUp 0.9s ease forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }

/* BODY FADE-IN + PRELOADER */
body {
  opacity: 0;
  transition: opacity .6s ease;
}

body.fade-in {
  opacity: 1;
}

/* Preloader */
#preloader {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.loader {
  width:50px;
  height:50px;
  border:5px solid #ddd;
  border-top-color:#00b4d8;
  border-radius:50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform:rotate(360deg); }
}

/* THEME VARIABLES */
:root {
  --bg:#ffffff;
  --text:#111;
  --card:#fff;
  --nav-bg:rgba(255,255,255,.95);
}

/* Dark Mode */
.dark {
  --bg:#0d1117;
  --text:#e2e2e2;
  --card:#161b22;
  --nav-bg:#0d1117;
}

/* Apply theme */
body {
  background: var(--bg);
  color: var(--text);
}

.card {
  background: var(--card);
  color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  input {
    width: 90% !important;
  }
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  z-index: 99999;
}

.popup-box {
  background: #1e1e1e; /* darker shade */
  padding: 26px 30px;
  border-radius: 14px;
  width: 320px;
  text-align: center;
  color: #f1f1f1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  animation: popIn 0.25s ease-out;
}

.popup-buttons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.popup-buttons button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
  background: #2d2d2d;
  color: #fff;
}

.popup-buttons button:hover {
  transform: scale(1.05);
  background: #3a3a3a;
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
