/* ===== Root Variables ===== */
:root {
  --primary-gradient: linear-gradient(135deg, #7F00FF 0%, #E100FF 50%, #FF00C8 100%);
  --bg-dark: #0A0A0A;
  --bg-card: #1a1a2e;
  --text-light: #F5F5F5;
  --text-muted: #B0B0B0;
  --accent-purple: #7F00FF;
  --accent-pink: #E100FF;
  --shock-pink: #FF006E;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a0a2e 50%, #16213e 100%);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #FFD700;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ===== Glassmorphism Effect ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #7F00FF 0%, #E100FF 50%, #FF00C8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ===== Gradient Button ===== */
.btn-gradient {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(127, 0, 255, 0.3);
  font-size: 1rem;
}

.btn-gradient:hover {
  box-shadow: 0 0 30px rgba(127, 0, 255, 0.5), 0 0 50px rgba(225, 0, 255, 0.3);
  transform: translateY(-2px);
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.navbar-links a {
  color: var(--text-light);
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--accent-pink);
}

/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  flex-direction: column;
  padding: 1rem 0;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 1rem 2rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent-pink);
  background: rgba(225, 0, 255, 0.05);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: pulse 4s ease-in-out infinite;
}

.hero::before {
  width: 400px;
  height: 400px;
  background: #7F00FF;
  top: 10%;
  left: 5%;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: #E100FF;
  bottom: 10%;
  right: 5%;
  animation-delay: 2s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Section Styles ===== */
section {
  padding: 5rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== Cards ===== */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent-pink);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: #FFD700;
  font-weight: 700;
}

.card p {
  font-size: 0.95rem;
  color: #D0D0D0;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== Footer ===== */
footer {
  background: rgba(10, 10, 10, 0.5);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 10px rgba(225, 0, 255, 0.2);
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(127, 0, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--shock-pink) !important;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  width: fit-content;
}

/* ===== Admin Styles ===== */
.admin-container {
  display: flex;
  min-height: 100vh;
  margin-top: 60px;
}

.sidebar {
  width: 250px;
  background: var(--glass-bg);
  border-right: 1px solid var(--border-color);
  padding: 2rem 0;
  position: fixed;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  padding: 0;
}

.sidebar-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: var(--accent-pink);
  background: rgba(225, 0, 255, 0.1);
  border-left-color: var(--accent-pink);
}

.admin-content {
  margin-left: 250px;
  flex: 1;
  padding: 2rem;
}

/* ===== Table Styles ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background: rgba(127, 0, 255, 0.1);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table tr:hover {
  background: rgba(225, 0, 255, 0.05);
}

/* ===== FAQ Styles ===== */
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: 600;
}

.faq-question:hover {
  background: rgba(225, 0, 255, 0.05);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: none;
  color: var(--text-muted);
}

.faq-answer.active {
  display: block;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

.faq-toggle.active {
  transform: rotate(180deg);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .navbar-content {
    padding: 1rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-gradient {
    width: 100%;
    padding: 12px 16px;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .admin-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    display: flex;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
  }

  .sidebar-menu {
    display: flex;
    gap: 0;
    width: 100%;
    overflow-x: auto;
  }

  .sidebar-menu li {
    flex-shrink: 0;
  }

  .sidebar-menu a {
    padding: 0.75rem 1rem;
    text-align: center;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .sidebar-menu a.active {
    border-left: none;
    border-bottom-color: var(--accent-pink);
  }

  .admin-content {
    margin-left: 0;
    padding: 1rem;
  }

  .table {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .navbar-content {
    padding: 0.75rem;
  }

  .hero {
    min-height: 60vh;
    padding: 1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .btn-gradient {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-icon {
    font-size: 2rem;
  }

  section {
    padding: 2rem 0;
  }

  .faq-question {
    padding: 1rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem 1rem;
  }
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}


/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 0 20px rgba(225, 0, 255, 0.5);
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(225, 0, 255, 0.8);
}

.scroll-to-top.show {
  display: flex;
}

.scroll-to-top::before {
  content: '↑';
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

.scroll-to-top svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.scroll-to-top circle {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 282.7;
  stroke-dashoffset: 282.7;
  transition: stroke-dashoffset 0.1s linear;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .scroll-to-top::before {
    font-size: 1.2rem;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(225, 0, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(225, 0, 255, 0.6);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Apply animations to sections */
section {
  animation: fadeInUp 0.8s ease-out;
}

.hero {
  animation: fadeInDown 0.8s ease-out;
}

.card {
  animation: scaleIn 0.6s ease-out;
  animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Text animations */
h1, h2, h3 {
  animation: fadeInUp 0.8s ease-out;
}

p {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn-gradient, .btn {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  transition: all 0.3s ease;
}

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

/* Navbar animation */
.navbar {
  animation: slideInDown 0.6s ease-out;
}

/* Service cards with stagger */
.grid > * {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.grid-2 > :nth-child(1) { animation-delay: 0.1s; }
.grid-2 > :nth-child(2) { animation-delay: 0.2s; }
.grid-2 > :nth-child(3) { animation-delay: 0.3s; }
.grid-2 > :nth-child(4) { animation-delay: 0.4s; }
.grid-2 > :nth-child(5) { animation-delay: 0.5s; }
.grid-2 > :nth-child(6) { animation-delay: 0.6s; }

.grid-3 > :nth-child(1) { animation-delay: 0.1s; }
.grid-3 > :nth-child(2) { animation-delay: 0.2s; }
.grid-3 > :nth-child(3) { animation-delay: 0.3s; }
.grid-3 > :nth-child(4) { animation-delay: 0.4s; }
.grid-3 > :nth-child(5) { animation-delay: 0.5s; }
.grid-3 > :nth-child(6) { animation-delay: 0.6s; }

.grid-4 > :nth-child(1) { animation-delay: 0.1s; }
.grid-4 > :nth-child(2) { animation-delay: 0.2s; }
.grid-4 > :nth-child(3) { animation-delay: 0.3s; }
.grid-4 > :nth-child(4) { animation-delay: 0.4s; }

/* Glass morphism hover effect */
.glass {
  transition: all 0.3s ease;
}

.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(225, 0, 255, 0.3);
}

/* Table row animations */
table tbody tr {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

table tbody tr:nth-child(1) { animation-delay: 0.1s; }
table tbody tr:nth-child(2) { animation-delay: 0.2s; }
table tbody tr:nth-child(3) { animation-delay: 0.3s; }
table tbody tr:nth-child(4) { animation-delay: 0.4s; }
table tbody tr:nth-child(5) { animation-delay: 0.5s; }

/* Modal animations */
#projectModal, #serviceModal, #messageModal, #pricingModal {
  animation: fadeInUp 0.4s ease-out;
}

/* Form inputs focus animation */
input, textarea, select {
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(225, 0, 255, 0.4);
}

/* Badge animations */
.hero-badge {
  animation: float 3s ease-in-out infinite;
}

/* Gradient text animation - REMOVED DUPLICATE */

/* Tag animations */
.tag {
  animation: scaleIn 0.4s ease-out;
  transition: all 0.3s ease;
}

.tag:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

/* Intersection Observer animations for scroll reveal */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger animations for lists */
li {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

li:nth-child(1) { animation-delay: 0.1s; }
li:nth-child(2) { animation-delay: 0.2s; }
li:nth-child(3) { animation-delay: 0.3s; }
li:nth-child(4) { animation-delay: 0.4s; }
li:nth-child(5) { animation-delay: 0.5s; }
li:nth-child(6) { animation-delay: 0.6s; }

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger menu animation */
.hamburger {
  transition: all 0.3s ease;
}

.hamburger.active span {
  animation: spin 0.3s ease-out;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile menu animation */
.mobile-menu {
  animation: slideInDown 0.3s ease-out;
}

/* Notification animations */
.notification {
  animation: slideInRight 0.4s ease-out;
}

/* Loading state animation */
.loading {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Fade out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-out {
  animation: fadeOut 0.4s ease-out forwards;
}
