/* ============================================
   RUPEESMILE - FUTURISTIC DESIGN SYSTEM
   ============================================ */

/* CSS Variables for Design System */
:root {
  /* Colors */
  --primary: #00E1FF;
  --secondary: #0A0F1F;
  --accent: #9333FF;
  --neutral-light: #F2F6FB;
  --neutral-dark: #0D1117;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B5C0;
  --success: #00D084;
  --warning: #FFB800;
  --error: #FF6B6B;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Font Family */
  --font-heading: 'Orbitron', 'Poppins', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;

  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px rgba(0, 225, 255, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --glow-primary: 0 0 20px rgba(0, 225, 255, 0.5);
  --glow-accent: 0 0 20px rgba(147, 51, 255, 0.5);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #0A0F1F 0%, #0D1117 50%, #0A0F1F 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 225, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(147, 51, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(1.75rem, 6vw, 3rem);
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--accent);
}

/* ============================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  gap: var(--spacing-md);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00B8D4);
  color: var(--secondary);
  box-shadow: var(--glow-primary);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 225, 255, 0.8);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #7B2FF7);
  color: var(--text-primary);
  box-shadow: var(--glow-accent);
  border: 1px solid var(--accent);
}

.btn-accent:hover {
  box-shadow: 0 0 30px rgba(147, 51, 255, 0.8);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--secondary);
}

.btn-secondary {
  background: rgba(147, 51, 255, 0.2);
  color: var(--primary);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(147, 51, 255, 0.4);
  transform: translateY(-2px);
}


/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.card {
  background: rgba(10, 15, 31, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 225, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 225, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(0, 225, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 225, 255, 0.3);
  transform: translateY(-5px);
  background: rgba(10, 15, 31, 0.9);
}

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

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title h2 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: var(--spacing-xl);
}

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

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

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 31, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 225, 255, 0.2);
  padding: var(--spacing-md) 0;
  transition: all var(--transition-normal);
}

nav.scrolled {
  background: rgba(10, 15, 31, 0.98);
  box-shadow: 0 0 20px rgba(0, 225, 255, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  transition: all var(--transition-normal);
}

.site-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--glow-primary);
  flex-shrink: 0;
}

.site-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-logo:hover .site-title {
  text-shadow: 0 0 20px rgba(0, 225, 255, 0.5);
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .site-logo {
    width: 32px;
    height: 32px;
  }

  .site-title {
    display: none;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-md);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 15, 31, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }

  .nav-links.active {
    max-height: 400px;
  }

  .nav-link {
    width: 100%;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 225, 255, 0.1);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--spacing-lg) var(--spacing-3xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 225, 255, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

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

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Hero media (video + animated svg) */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: auto;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(1.1) contrast(1.05);
}

.hero-svg {
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 70%;
  height: auto;
  opacity: 0.85;
  mix-blend-mode: screen;
  transform: translateZ(0);
}

/* Mobile fallback: hide video and reduce SVG complexity */
@media (max-width: 768px) {
  .hero-video {
    display: none;
  }

  .hero-svg {
    width: 120%;
    right: -30%;
    bottom: -30%;
    opacity: 0.6;
  }
}

.hero h1 {
  margin-bottom: var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary), #FF006E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 0.8s ease;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
  animation: slideInUp 0.8s ease;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 6px 28px rgba(0, 225, 255, 0.12);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--spacing-2xl);
  animation: fadeIn 1s ease;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1.2s ease;
}

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

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

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

/* ============================================
   FEATURES SECTION
   ============================================ */

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 225, 255, 0.2), rgba(147, 51, 255, 0.2));
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  font-size: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
  animation: spin 4s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotateZ(10deg);
  box-shadow: var(--glow-primary);
}

.feature:hover .feature-icon::before {
  opacity: 1;
}

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

.feature h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.feature p {
  font-size: 0.95rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
  cursor: pointer;
  position: relative;
  height: 100%;
}

.service-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--spacing-md);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.service-card h3 {
  color: var(--primary);
}

.service-badge {
  display: inline-block;
  background: rgba(0, 225, 255, 0.1);
  color: var(--primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--primary);
  margin-top: auto;
  width: fit-content;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 10;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 225, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--spacing-lg);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: var(--secondary);
}

.portfolio-overlay p {
  color: rgba(10, 15, 31, 0.8);
  text-align: center;
  max-width: 80%;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-xl);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: rgba(10, 15, 31, 0.7);
  border: 1px solid rgba(0, 225, 255, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 225, 255, 0.3);
  background: rgba(10, 15, 31, 0.9);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Form select and checkbox styles to match inputs */
.form-select {
  width: 100%;
  padding: var(--spacing-md);
  background: rgba(10, 15, 31, 0.7);
  border: 1px solid rgba(0, 225, 255, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 225, 255, 0.15);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  vertical-align: middle;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: rgba(10, 15, 31, 0.9);
  border-top: 1px solid rgba(0, 225, 255, 0.2);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-md);
}

.footer-links a {
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.social-link {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: var(--glow-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-2xl);
  border-top: 1px solid rgba(0, 225, 255, 0.1);
  color: var(--text-secondary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.glow {
  text-shadow: 0 0 20px var(--primary);
}

.glow-accent {
  text-shadow: 0 0 20px var(--accent);
}

.shine {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: var(--spacing-lg) auto;
  border-radius: var(--radius-full);
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--secondary);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--glow-primary);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

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

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease;
}

.slide-in-right {
  animation: slideInRight 0.6s ease;
}

@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);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 2.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.85rem;
  }

  .card {
    padding: var(--spacing-lg);
  }
}
