* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #222;
  background-color: #fdfdfd;
  line-height: 1.6;
}

header {
  background: linear-gradient(to right, #0f0f0f, #202020);
  color: #fff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
}

.logo span {
  color: #00bfff;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

.nav-links a:hover {
  color: #00bfff;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.hero {
  text-align: center;
  padding: 100px 10%;
  background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero span {
  color: #00bfff;
}

.btn {
  display: inline-block;
  background: #00bfff;
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #008ccc;
}

section {
  padding: 80px 10%;
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00bfff;
}

.services .service-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.service {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex: 1 1 250px;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.portfolio-item {
  background: #00bfff;
  color: white;
  padding: 80px 0;
  border-radius: 8px;
  transition: transform 0.3s;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
  gap: 15px;
}

.contact input, .contact textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

footer {
  background: #0f0f0f;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #0f0f0f;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    text-align: right;
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
/* Existing CSS here... keep everything you had before */

/* === Scroll Animation === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Theme Toggle Button === */
.theme-btn {
  background: none;
  border: 2px solid #00bfff;
  color: #00bfff;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: 10px;
  transition: 0.3s;
}

.theme-btn:hover {
  background: #00bfff;
  color: white;
}

/* === Dark Mode === */
body.dark {
  background-color: #121212;
  color: #eaeaea;
}

body.dark header {
  background: linear-gradient(to right, #111, #222);
}

body.dark .service,
body.dark .portfolio-item {
  background: #1e1e1e;
  color: #eaeaea;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

body.dark footer {
  background: #111;
  color: #888;
}

body.dark .theme-btn {
  border-color: #ffcc00;
  color: #ffcc00;
}

body.dark .theme-btn:hover {
  background: #ffcc00;
  color: #111;
}
/* === Parallax Hero === */
.hero {
  position: relative;
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1500&q=80') center/cover fixed no-repeat;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

#typing-text {
  color: #00bfff;
  border-right: 2px solid #00bfff;
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Parallax effect for smaller screens (fallback) */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}
/* === Smooth Scrolling === */
html {
  scroll-behavior: smooth;
}

/* === Preloader Styles === */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

#preloader .logo {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

#preloader .logo span {
  color: #00bfff;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #00bfff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


