/* ==================== */
/* 🌌 General Body and HTML */
/* ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: #0a0a0a;
    color: #D1D5DB;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== */
/* 🎨 Utility Classes */
/* ==================== */
.text-gradient {
    background: linear-gradient(to right, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==================== */
/* ✨ Fade-in Section */
/* ==================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Fade-in */
.page-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

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

/* ==================== */
/* 🛠️ Service Cards */
/* ==================== */
.service-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid #4B5563;
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.2);
}


/* ==================== */
/* 🧱 Section Setup */
/* ==================== */
section {
    position: relative;
}

section > .container {
    position: relative;
    z-index: 10;
}

/* ==================== */
/* 🚀 Hero Section */
/* ==================== */
#home {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== */
/* 🃏 Flip Cards */
/* ==================== */
.flip-card-container {
    perspective: 1000px;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
    position: relative;
    min-height: 250px;
}

.flip-card-container:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #4B5563;
}

.flip-card-front {
    background-color: #1F2937;
    color: white;
}

.flip-card-back {
    background-color: #374151;
    color: #D1D5DB;
    transform: rotateY(180deg);
}

/* ==================== */
/* 🌌 Parallax Multi-Layer Background */
/* ==================== */
#parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
  }
  
  /* Individual parallax layers */
  .parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
  }
  
  #layer-1 {
    background-image: url('/static/images/background/background_layer1.webp');
    z-index: -4;
  }
  
  #layer-2 {
    background-image: url('/static/images/background/background_layer2.webp');
    z-index: -3;
  }
  
  #layer-3 {
    background-image: url('/static/images/background/background_layer3.webp');
    z-index: -2;
  }
  
  /* ✅ Dark overlay on top of all layers */
  #background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: -1;
  }
  

/* ==================== */
/* 🌟 AltumX Custom Styling */
/* ==================== */

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: #D1D5DB;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(to right, #6366f1, #a855f7);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* Service Link */
.service-link {
    color: #818CF8;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: auto;
    transition: color 0.3s;
}

.service-link:hover {
    color: #a5b4fc;
}

/* ==================== */
/* 🛠️ Icon Container (Card Icons) */
/* ==================== */
.icon-container {
    background: #1F2937; /* bg-gray-800 */
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    width: auto;
    max-width: 4rem;
    margin: 0 auto 1.25rem;
}

.icon-container svg {
    width: 2rem;
    height: 2rem;
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid #4B5563;
    border-radius: 0.5rem;
    color: white;
    backdrop-filter: blur(4px);
    transition: border 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Contact Form Button */
.contact-button {
    background: linear-gradient(to right, #6366f1, #a855f7);
    font-weight: 600;
    padding: 0.75rem 2.5rem;
    color: white;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.contact-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Web & SEO Block: Code Pulse Effect */
@keyframes codePulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(3px); opacity: 0.85; }
}
  
.animate-code-pulse {
animation: codePulse 3s ease-in-out infinite;
}


#seo-bars div {
will-change: width;
}

/* Flowchart Node Reveal */
.flowchart-visible {
    opacity: 1 !important;
    transition: opacity 0.6s ease-out, transform 0.4s ease;
    transform: scale(1);
}

.flowchart-hidden {
opacity: 0 !important;
transform: scale(0.95);
transition: opacity 0.4s ease-out, transform 0.3s ease;
}

@keyframes lineFlow {
to {
    stroke-dashoffset: 0;
}
}

.line-animate {
animation: lineFlow 1s ease forwards;
}

.line-reset {
stroke-dashoffset: 999;
}

#consulting-flowchart {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    max-height: 100%;
}

.underline:hover {
    text-decoration-color: #c084fc; /* Tailwind purple-400 */
    transition: text-decoration-color 0.3s ease-in-out;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
