/* ===== RESET & BASE ===== */
:root {
    --primary: #0a192f;
    --primary-light: #172a45;
    --secondary: #64ffda;
    --accent: #ff6481;
    --text: #ccd6f6;
    --text-light: #a8b2d1;
    --text-lighter: #8892b0;
    --white: #e6f1ff;
    --card-bg: #112240;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --section-padding: 120px 5%;
    --border-radius: 4px;
    --box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: var(--font-serif);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -10px;
    left: 0;
    background-color: var(--secondary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary {
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 30px -10px rgba(255, 100, 129, 0.5);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(255, 100, 129, 0.6);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(10, 25, 47, 0.85);
    padding: 1.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a span {
    color: var(--secondary);
    margin-right: 5px;
    font-family: monospace;
    font-size: 0.9rem;
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--secondary);
    margin: 5px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
}

.hero-subtitle {
    color: var(--secondary);
    font-family: monospace;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--text-lighter);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ===== ABOUT SECTION ===== */
#about {
    background-color: var(--primary-light);
}

.about-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    max-width: 400px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 1rem;
    margin-top: 2rem;
}

.skills-list li {
    font-family: monospace;
    color: var(--secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.skills-list li:before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* ===== APPOINTMENT SECTION ===== */
.appointment-section {
    background-color: var(--primary-light);
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.appointment-info {
    padding: 2rem;
}

.appointment-info h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.appointment-info h3 i {
    font-size: 1.8rem;
}

.availability {
    background: rgba(100, 255, 218, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.availability p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.availability i {
    color: var(--secondary);
}

.appointment-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    background-color: var(--primary-light);
    color: var(--white);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

/* ===== WHATSAPP SECTION ===== */
.whatsapp-integration {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    border-left: 4px solid #25D366;
    box-shadow: var(--box-shadow);
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.whatsapp-header i {
    color: #25D366;
    font-size: 2rem;
}

.whatsapp-header h3 {
    margin: 0;
    color: #25D366;
}

.whatsapp-options {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #25D366;
    color: white !important;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(18, 140, 126, 0.3);
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-custom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#customMessage {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    background: var(--primary-light);
    color: var(--text);
    font-family: var(--font-sans);
}

#sendCustomWhatsApp {
    background: #25D366 !important;
    border-color: #25D366 !important;
    width: 100%;
}

#sendCustomWhatsApp:hover {
    background: #128C7E !important;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-light);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-credit {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px 5%;
    }

    .about-container,
    .appointment-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--primary-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .burger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active div:nth-child(2) {
        opacity: 0;
    }

    .burger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 5%;
    }
}
/* Add to your CSS */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
}

.hero-blob {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  filter: blur(60px);
  opacity: 0.2;
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}
.service-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary), var(--accent));
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.service-card:hover {
  color: var(--primary);
}

.service-card:hover .service-icon {
  color: var(--primary);
}
/* Light mode variables */
.light-mode {
  --primary: #f8f9fa;
  --primary-light: #e9ecef;
  --text: #212529;
  --text-light: #495057;
  --text-lighter: #6c757d;
  --white: #0a192f;
  --card-bg: #ffffff;
}

#theme-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
}
/* Add to your CSS */
.service-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  transform: rotateY(15deg) rotateX(10deg) translateY(-10px);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-card:hover::after {
  opacity: 0.1;
}
/* 3D Elements CSS */
.hero-3d-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-cube, .floating-pyramid, .floating-sphere {
  position: absolute;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  backdrop-filter: blur(5px);
}

.floating-cube {
  width: 100px;
  height: 100px;
  transform: rotate(45deg);
  animation: float 8s ease-in-out infinite;
  top: 20%;
  left: 10%;
}

.floating-pyramid {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(255, 100, 129, 0.1);
  animation: float 10s ease-in-out infinite reverse;
  top: 50%;
  right: 15%;
}

.floating-sphere {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: float 12s ease-in-out infinite 2s;
  bottom: 20%;
  left: 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}
/* Enhanced 3D Button Effect */
.btn {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: inherit;
  border-radius: inherit;
  transform: translateZ(-10px);
  filter: blur(5px);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-5px) translateZ(10px);
}

.btn:hover::before {
  transform: translateZ(-20px);
  opacity: 0.4;
}
/* Add to your hero section */
.hero-content {
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.hero-title {
  transform: translateZ(30px);
}

.hero-description {
  transform: translateZ(20px);
}

.hero-buttons {
  transform: translateZ(40px);
}


/* Update your navigation */
.nav-links {
  transform-style: preserve-3d;
}

.nav-links li {
  transform: rotateY(0deg);
  transition: transform 0.3s ease;
}

.nav-links li:hover {
  transform: rotateY(15deg) translateZ(20px);
}

.nav-links li a:after {
  transform-origin: center bottom;
  transform: scaleY(0);
}

.nav-links li:hover a:after {
  transform: scaleY(1) translateZ(10px);
}
/* Enhance your form inputs */
.form-group input,
.form-group select,
.form-group textarea {
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translateZ(10px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}
/* Enhance your form inputs */
.form-group input,
.form-group select,
.form-group textarea {
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* 3D Service Cards */
.services-grid {
  perspective: 2000px;
}

.service-card-3d {
  background: transparent;
  width: 100%;
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}

.service-card-3d:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card-front {
  background: var(--card-bg);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.service-card-back {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  transform: rotateY(180deg);
  color: var(--primary);
}

.service-card-back h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card-back p {
  text-align: center;
  margin-bottom: 1.5rem;
}

.service-cta {
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-cta:hover {
  transform: translateY(-3px) scale(1.05);
}

.text-3d {
  display: inline-block;
  text-shadow: 
    2px 2px 0 var(--secondary),
    4px 4px 0 rgba(100, 255, 218, 0.3),
    6px 6px 0 rgba(100, 255, 218, 0.1);
  transform: translateZ(20px);
}
.page-transition-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 9999;
  transform: translateZ(-1000px) rotateY(90deg);
  transform-origin: left center;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1);
  pointer-events: none;
}
/* Update your navigation */
.nav-links li {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links li a {
  display: block;
  transform: translateZ(0);
  transition: all 0.4s ease;
}

.nav-links li:hover {
  transform: translateY(-5px) translateZ(20px);
}

.nav-links li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0) translateZ(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links li:hover a:after {
  transform: scaleX(1) translateZ(20px);
  transform-origin: left;
}
/* 3D Hero Section */
.hero-3d-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  perspective: 1000px;
}

.hero-content-3d {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform: translateZ(50px);
}

.hero-title-3d {
  font-size: clamp(3rem, 10vw, 6rem);
  text-shadow: 
    5px 5px 0 rgba(100, 255, 218, 0.2),
    10px 10px 0 rgba(100, 255, 218, 0.1);
  transform: translateZ(100px);
}

.hero-description-3d {
  transform: translateZ(80px);
}

.hero-buttons-3d {
  transform: translateZ(120px);
}

.btn-primary-3d, .btn-secondary-3d {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary-3d:hover {
  transform: translateY(-5px) translateZ(20px);
  box-shadow: 0 20px 40px rgba(100, 255, 218, 0.3);
}

.btn-secondary-3d:hover {
  transform: translateY(-5px) translateZ(20px);
  box-shadow: 0 20px 40px rgba(255, 100, 129, 0.3);
}

.hero-3d-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape {
  position: absolute;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  backdrop-filter: blur(5px);
}

.cube {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 10%;
  animation: float-3d 8s ease-in-out infinite, rotate-3d 20s linear infinite;
}

.pyramid {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(255, 100, 129, 0.1);
  top: 50%;
  right: 15%;
  animation: float-3d 10s ease-in-out infinite reverse, rotate-3d 25s linear infinite reverse;
}

.sphere {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  bottom: 20%;
  left: 50%;
  animation: float-3d 12s ease-in-out infinite 2s, scale-3d 8s ease-in-out infinite;
}

@keyframes float-3d {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-30px) translateZ(30px); }
}

@keyframes rotate-3d {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

@keyframes scale-3d {
  0%, 100% { transform: scale(1) translateZ(0); }
  50% { transform: scale(1.2) translateZ(20px); }
}
/* Enhanced Footer */
footer {
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.footer-content {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}

.footer-links a {
  display: inline-block;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.footer-links a:hover {
  transform: translateY(-5px) translateZ(20px);
  color: var(--secondary);
}

.footer-3d-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footer-shape {
  position: absolute;
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.1);
  backdrop-filter: blur(2px);
}

.footer-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 20%;
  left: 10%;
  animation: float-footer 8s ease-in-out infinite;
}

.footer-shape:nth-child(2) {
  width: 100px;
  height: 100px;
  transform: rotate(45deg);
  bottom: 30%;
  right: 15%;
  animation: float-footer 10s ease-in-out infinite reverse;
}

@keyframes float-footer {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-20px) translateZ(20px); }
}
/* Enhanced 3D Service Cards CSS */
.services-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  perspective: 2000px;
}

.service-card-3d {
  background: transparent;
  width: 100%;
  height: 320px;
  perspective: 1000px;
  cursor: pointer;
  transform-style: preserve-3d;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  border-radius: 20px;
  will-change: transform;
}

.service-card-3d:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

.service-card-front {
  background: var(--card-bg);
  border: 1px solid rgba(100, 255, 218, 0.2);
  transform: rotateY(0deg);
}

.service-card-back {
  transform: rotateY(180deg);
  color: var(--white);
  text-align: center;
}

.service-card-back h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.service-card-back p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.service-tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.service-tech span {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  backdrop-filter: blur(5px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.service-card-front h3 {
  text-align: center;
}

/* Mobile Tap Animation */
@media (hover: none) {
  .service-card-3d.active .service-card-inner {
    transform: rotateY(180deg);
  }
}
/* Add to your main CSS */
body {
  min-height: 100vh;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.21, 0.99);
}

/* 3D Background Elements */
.global-3d-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.1);
  backdrop-filter: blur(2px);
  transform-style: preserve-3d;
  will-change: transform;
}

.element-1 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: 20%;
  left: 5%;
  animation: float-3d-1 15s ease-in-out infinite, rotate-3d-1 25s linear infinite;
}

.element-2 {
  width: 100px;
  height: 100px;
  transform: rotate(45deg);
  top: 70%;
  left: 80%;
  animation: float-3d-2 18s ease-in-out infinite reverse, rotate-3d-2 30s linear infinite;
}

.element-3 {
  width: 200px;
  height: 200px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 40%;
  left: 70%;
  animation: float-3d-3 20s ease-in-out infinite, morph 8s ease-in-out infinite;
}

.element-4 {
  width: 120px;
  height: 120px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 80%;
  left: 10%;
  animation: float-3d-4 22s ease-in-out infinite reverse;
}

@keyframes float-3d-1 {
  0%, 100% { transform: translate(0, 0) translateZ(0); }
  50% { transform: translate(-30px, -40px) translateZ(30px); }
}

@keyframes float-3d-2 {
  0%, 100% { transform: translate(0, 0) rotate(45deg) translateZ(0); }
  50% { transform: translate(20px, -30px) rotate(45deg) translateZ(40px); }
}

@keyframes float-3d-3 {
  0%, 100% { transform: translate(0, 0) translateZ(0); }
  50% { transform: translate(-20px, 30px) translateZ(20px); }
}

@keyframes float-3d-4 {
  0%, 100% { transform: translate(0, 0) translateZ(0); }
  50% { transform: translate(40px, -20px) translateZ(30px); }
}

@keyframes rotate-3d-1 {
  0% { transform: rotateY(0) rotateX(0); }
  100% { transform: rotateY(360deg) rotateX(180deg); }
}

@keyframes rotate-3d-2 {
  0% { transform: rotateX(0) rotateZ(0); }
  100% { transform: rotateX(360deg) rotateZ(180deg); }
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}
/* Mobile-Specific 3D Adjustments */
@media (max-width: 768px) {
  /* Reduce intensity of 3D effects */
  body {
    perspective: 500px;
  }
  
  .service-card-3d {
    height: 280px;
    perspective: 800px;
  }
  
  .service-card-inner {
    transition: transform 0.6s ease;
  }
  
  /* Disable parallax on mobile */
  .hero-content-3d {
    transform: translateZ(0) !important;
  }
  
  /* Simplify background animations */
  .global-3d-elements {
    display: none;
  }
  
  /* Reduce 3D tilt on mobile */
  .service-card-3d:hover .service-card-inner,
  .service-card-3d.active .service-card-inner {
    transform: rotateY(180deg) scale(0.98);
  }
  
  /* Adjust 3D text effects */
  .text-3d {
    text-shadow: 
      2px 2px 0 var(--secondary),
      4px 4px 0 rgba(100, 255, 218, 0.2);
  }
}
.nuclear-parallax {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  overflow: hidden;
}

.particle-layer {
  position: absolute;
  width: 300%;
  height: 300%;
  background: 
    radial-gradient(circle, rgba(255,100,129,0.8) 0%, transparent 70%),
    repeating-linear-gradient(45deg, 
      transparent, transparent 50px, 
      rgba(100,255,218,0.3) 50px, 
      rgba(100,255,218,0.3) 100px);
  animation: particle-pulse 15s infinite alternate;
}
.cta-blackhole {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--secondary);
}

.cta-blackhole::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    var(--secondary) 30%,
    transparent 70%
  );
  animation: blackhole-spin 2s linear infinite;
}

@keyframes blackhole-spin {
  100% { transform: rotate(360deg); }
}

.cta-blackhole:active::before {
  animation: blackhole-implode 0.5s forwards;
}

@keyframes blackhole-implode {
  100% { transform: scale(0); opacity: 0; }
}
body {
  transform-style: preserve-3d;
  perspective: 1000px;
}

section {
  transition: transform 0.5s;
}

.cyber-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  perspective: 1000px;
  overflow: hidden;
}

.grid-plane {
  position: absolute;
  width: 300%;
  height: 300%;
  background: 
    linear-gradient(rgba(138, 43, 226, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 130, 180, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  transform: translateZ(-500px);
}

.particle-field {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, 
      rgba(100, 255, 218, 0.3) 0%, 
      transparent 30%),
    radial-gradient(circle at 80% 70%, 
      rgba(138, 43, 226, 0.3) 0%, 
      transparent 30%);
  filter: blur(1px);
}

.holographic-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      45deg,
      rgba(100, 255, 218, 0.05) 0px,
      rgba(100, 255, 218, 0.05) 2px,
      transparent 2px,
      transparent 4px
    );
}

@keyframes grid-move {
  0% { transform: translateZ(-500px) translateX(0) translateY(0); }
  100% { transform: translateZ(-500px) translateX(-50%) translateY(-50%); }
}