/* ASCAPI - AI Automation Theme */
@import 'carousel.css';

:root {
    --bg-color: #020205;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #00f2ea;
    --accent-secondary: #ff0055;
    --accent-tertiary: #7c3aed;
    --glass-bg: rgba(10, 10, 20, 0.7);
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    --gradient-glow: linear-gradient(135deg, rgba(0, 242, 234, 0.2), rgba(124, 58, 237, 0.2));
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(0, 242, 234, 0.5);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 242, 234, 0.7);
}

.btn-outline {
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
header {
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(2, 2, 5, 0.8);
    border-bottom: 1px solid var(--card-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Header height */
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-btns {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Canvas Background */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

/* Partners Carousel */
.partners {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.partners-slider {
    width: 100%;
    position: relative;
}

.partners-track {
    display: flex;
    width: calc(250px * 16);
    animation: scroll 40s linear infinite;
}

.partner-logo {
    width: 250px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition-speed);
    filter: grayscale(1);
}

.partner-logo i {
    font-size: 1.8rem;
    color: var(--accent-primary);
}

.partner-logo img {
    max-width: 180px;
    max-height: 50px;
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    color: var(--text-primary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 8));
    }
}

/* Services */
.services {
    padding: 6rem 0;
    background: #0a0a0a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 0; /* Remove internal padding to let image reach edges */
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.service-card-content {
    padding: 0 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-content .service-icon {
    margin: 0;
    margin-bottom: 1.5rem;
}

.service-card-content h3 {
    margin: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.7) contrast(1.1);
}

.service-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -15px rgba(0, 242, 234, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 242, 234, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* Why ASCAPI */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: #080808;
    /* Slightly lighter than pure black */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 40px rgba(255, 0, 85, 0.15);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.testimonial-text {
    color: #ccc;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Stars */
.stars {
    color: #FFD700;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.social-links a {
    margin-left: 1.5rem;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        /* Smaller title */
        padding: 0 10px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .nav-links {
        display: none;
        /* Keep hidden for now or implement hamburger */
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn-outline {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebc57;
}

@keyframes pulse-green {
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Reference-Based Toast Styles */
.alert {
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Success - Green from image */
.alert-success {
    background-color: #00c851;
    /* Vibrant green */
}

/* Icons for alerts */
.alert-success::before {
    content: '\f058';
    /* fa-circle-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Other states matching the solid style */
.alert-danger {
    background-color: #ff4444;
}

.alert-danger::before {
    content: '\f057';
    /* fa-circle-xmark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-warning {
    background-color: #ffbb33;
    color: #000;
}

.alert-info {
    background-color: #33b5e5;
}

/* Close button override */
.alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Progress Bar Simulation */
.alert::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    animation: progress-bar 4s linear forwards;
}

@keyframes progress-bar {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

/* Custom Form Validation Tooltips */
.form-group {
    position: relative;
}

.validation-tooltip {
    position: absolute;
    bottom: 110%;
    left: 0;
    background-color: #ff4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #ff4444 transparent transparent transparent;
}

.validation-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.validation-tooltip i {
    font-size: 1rem;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}