:root {
  --primary-color: #0066cc;
  --primary-hover: #4f8de7;
  --dark-text: #222;
  --medium-text: #444;
  --light-text: #666;
  --bg-color: #f9f9f9;
  --card-bg: #fff;
  --shadow: rgba(0,0,0,0.1);
  --transition-fast: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  cursor: none;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--bg-color);
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

body.loaded {
  opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--dark-text);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 0.3rem;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible {
  outline: 2px dashed var(--primary-color);
  outline-offset: 2px;
}

header {
  background: var(--card-bg);
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--medium-text);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

.hero {
  background: linear-gradient(-45deg, #0066cc, #004d99, #003366, #001a33);
  background-size: 600% 600%;
  animation: gradientFlow 15s ease infinite;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes gradientFlow {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.hero-title {
  font-size: 3rem;
  max-width: 850px;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-button {
  background-color: #ffb300;
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  transform: skewX(-20deg);
  animation: shine 2s infinite;
  z-index: -1;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

.hero-button:hover,
.hero-button:focus {
  background-color: #e69c00;
  box-shadow: 0 7px 15px rgba(230,162,0,0.6);
  outline: none;
}

section {
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.ab {
  margin-bottom: 1rem;
  color: var(--medium-text);
  font-size: 1rem;
}

.skills-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: var(--medium-text);
  font-size: 1rem;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: var(--card-bg);
  padding: 1.5rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  transition: var(--transition-fast);
  will-change: transform, box-shadow;
}

.project-card:hover,
.project-card:focus-within {
  transform: scale(1.02);
  box-shadow: 0 10px 20px var(--shadow);
}

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.project-card p {
  color: #555;
  font-size: 0.95rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.package-card {
  background: var(--card-bg);
  padding: 1.6rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  transition: var(--transition-fast);
  will-change: transform, box-shadow;
}

.package-card:hover,
.package-card:focus-within {
  transform: scale(1.02);
  box-shadow: 0 10px 20px var(--shadow);
}

.package-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.package-card p {
  font-size: 0.95rem;
  color: var(--medium-text);
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--dark-text);
  margin-top: 0.5rem;
}

#contact {
  max-width: 600px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
}

#contact h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-text);
  text-align: center;
}

#contact p {
  font-size: 1.1rem;
  color: var(--medium-text);
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form label {
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition-fast);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 8px rgba(0, 119, 255, 0.3);
}

.contact-form textarea {
  min-height: 120px;
  line-height: 1.4;
}

footer p {
  text-align: center;
  padding: 1rem;
  color: var(--light-text);
}

#cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
  nav {
    gap: 1rem;
    padding: 1rem;
  }

  .hero {
    padding: 4rem 1rem 6rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  section {
    padding: 0 1.2rem;
    margin: 2rem auto 4rem;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body.dark-mode {
  --dark-text: #eee;
  --medium-text: #ccc;
  --light-text: #aaa;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --shadow: rgba(255, 255, 255, 0.05);
}

body.dark-mode {
  background: var(--bg-color);
  color: var(--dark-text);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: var(--dark-text);
}

body.dark-mode a {
  color: var(--primary-hover);
}

body.dark-mode header,
body.dark-mode nav,
body.dark-mode section,
body.dark-mode footer {
  background-color: var(--bg-color);
}

body.dark-mode .nav-link {
  color: var(--medium-text);
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link:focus,
body.dark-mode .nav-link.active {
  color: var(--primary-color);
}

body.dark-mode .project-card,
body.dark-mode .package-card {
  background-color: var(--card-bg);
  color: var(--dark-text);
  border-color: #2c2c2c;
}

body.dark-mode .project-card p,
body.dark-mode .package-card p,
body.dark-mode .ab,
body.dark-mode .price {
  color: var(--medium-text);
}

body.dark-mode .hero-button {
  background-color: #ffa000;
  color: #fff;
}

body.dark-mode .contact-form label {
  color: var(--dark-text);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border-color: #444;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s ease;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.2);
}

.buy-now {
  background: linear-gradient(135deg, #6a5af9, #9f7eff);
  border: none;
  border-radius: 24px;
  padding: 0.5rem 1.4rem;
  color: white;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 0.8rem;
  display: inline-block;
}

.buy-now:hover,
.buy-now:focus {
  background: linear-gradient(135deg, #5743d7, #6f53e3);
  transform: scale(1.05);
  outline: none;
}
