/* ============================================
   INTELLIVIS - PREMIUM WEBSITE STYLES
   Brand Colors: #1e00d4, #0075d4, #00fff0
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 40px;
    height: 40px;
    border-color: var(--primary-mid);
    background: rgba(0, 255, 240, 0.1);
}

.cursor-follower {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower.cursor-follower-hover {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 240, 0.1);
    border: 2px solid var(--primary-light);
}

@media (max-width: 768px) {
    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}

:root {
    --primary-dark: #1e00d4;
    --primary-mid: #0075d4;
    --primary-light: #00fff0;
    --white: #ffffff;
    --black: #000000;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* Typography - Agrandir Narrow Bold Alternative
   Note: Agrandir Narrow Bold is a premium font that requires purchase.
   For production, purchase and host the font files, or use the licensed version.
   Currently using Inter with tight letter-spacing to achieve similar aesthetic. */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.service-title,
.solution-title,
.step-title,
.cta-title {
    letter-spacing: -0.04em;
    font-weight: 800;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(30, 0, 212, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    box-shadow: 0 8px 30px rgba(0, 255, 240, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(0, 255, 240, 0.2);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 75px;
    width: auto;
    transition: var(--transition);
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    box-shadow: 0 4px 20px rgba(0, 255, 240, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.gradient-animation {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(30, 0, 212, 0.3) 0%,
        rgba(0, 117, 212, 0.2) 30%,
        rgba(0, 255, 240, 0.1) 60%,
        transparent 100%
    );
    animation: gradientMove 20s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-40%, -60%) scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.trust-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 240, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-mid);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 240, 0.2);
}

.trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    opacity: 0.8;
    transition: var(--transition);
}

.trust-card:hover .trust-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

.trust-icon svg {
    width: 100%;
    height: 100%;
}

.trust-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.trust-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-mid), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-mid);
    box-shadow: 0 30px 60px rgba(0, 255, 240, 0.3);
}

.service-card.animate-in {
    animation: cardSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Solutions Section */
.solutions-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.solution-item {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.solution-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-mid);
    transform: translateY(-5px);
}

.solution-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.solution-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
}

.solution-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* Technologies Section */
.technologies-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.tech-category {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.tech-category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(30, 0, 212, 0.2);
    border-color: var(--primary-mid);
    color: var(--white);
    transform: translateY(-2px);
}

/* Process Section */
.process-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 60px;
    position: relative;
    padding-left: 80px;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-light));
    opacity: 0.3;
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: -15px;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(30, 0, 212, 0.4);
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.faq-item:hover {
    border-color: var(--primary-mid);
    background: rgba(255, 255, 255, 0.04);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question span {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 24px 28px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}

.faq-answer p:not(:last-child) {
    margin-bottom: 16px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-description strong {
    color: var(--white);
    font-weight: 600;
}

.about-tagline {
    margin-top: 40px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(30, 0, 212, 0.2), rgba(0, 117, 212, 0.2));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 240, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-mid);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(30, 0, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(0, 255, 240, 0.1);
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    display: block;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    display: block;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 75px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.footer-slogan {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Enhanced Hover Effects */
.solution-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 255, 240, 0.25);
}

.tech-tag {
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 240, 0.3), transparent);
    transition: left 0.5s;
}

.tech-tag:hover::before {
    left: 100%;
}

/* Process Step Animation */
.process-step {
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(0, 255, 240, 0.5);
}

/* Success Popup */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-popup-overlay.active {
    opacity: 1;
}

.success-popup {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-popup-overlay.active .success-popup {
    transform: scale(1) translateY(0);
}

.success-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    animation: successIconPop 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes successIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-popup-icon svg {
    width: 100%;
    height: 100%;
}

.success-popup-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.success-popup-message {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.success-popup-button {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    color: var(--white);
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.success-popup-button:hover {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    box-shadow: 0 8px 30px rgba(0, 255, 240, 0.4);
    transform: translateY(-2px);
}

.success-popup-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 40px 0;
        gap: 24px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding-left: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-card {
        padding: 30px 20px;
    }

    .trust-number {
        font-size: 36px;
    }

    .trust-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .process-step {
        padding-left: 50px;
        margin-bottom: 40px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        left: -10px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 100%;
    }

    .service-card,
    .solution-item {
        padding: 30px 24px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .faq-question {
        padding: 20px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 20px;
    }

    .faq-answer p {
        font-size: 15px;
    }

    .success-popup {
        padding: 40px 24px;
        max-width: 90%;
    }

    .success-popup-title {
        font-size: 24px;
    }

    .success-popup-icon {
        width: 64px;
        height: 64px;
    }

    /* Disable 3D tilt on mobile */
    .service-card,
    .solution-item {
        transform: none !important;
    }
}

/* Tablet Optimizations */
@media (min-width: 641px) and (max-width: 968px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Screen Enhancements */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 80px;
    }

    .section-title {
        font-size: 56px;
    }
}

/* Text Reveal Animation */
.section-title,
.hero-title {
    position: relative;
    overflow: hidden;
}

.section-title::before,
.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 240, 0.3), transparent);
    transition: left 0.8s;
}

.section-title.text-revealed::before,
.hero-title.text-revealed::before {
    left: 100%;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 240, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 240, 0.6);
    }
}

.btn-primary:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Gradient Animation Enhancement */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Smooth Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
    .solution-item,
    .tech-category {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease-out forwards;
    }
}
