/* 
   AleaCyber Landing Page Styles
   Custom CSS for the landing page
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #4e54ff;
    --primary-dark: #3a3fd1;
    --secondary-color: #1e2040;
    --accent-color: #00e5ff;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-lg {
    padding: 0.8rem 2rem;
}

.rounded-pill {
    border-radius: 50rem;
}

.bg-primary-subtle {
    background-color: rgba(78, 84, 255, 0.1);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    padding: 0.7rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.logo-text {
    color: #fff;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2b2f77 100%);
    color: #fff;
    padding: 80px 0 190px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/pattern.svg') no-repeat center center/cover;
    opacity: 0.1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.cyber-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/lock.svg') no-repeat center center/contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.stats-container h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.stats-container p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Trusted By Section ===== */
.trusted-by {
    background-color: #fff;
}

.client-logo {
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===== Services Section ===== */
.service-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(78, 84, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ===== About Section ===== */
.about-image-container {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
}

.icon-box {
    width: 30px;
    height: 30px;
    background-color: rgba(78, 84, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ===== Features Section ===== */
.feature-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(78, 84, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ===== Stats Section ===== */
.stats-section {
    background-color: #fff;
}

.stat-item {
    padding: 2rem;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-color);
}

/* ===== How It Works Section ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(78, 84, 255, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    z-index: 1;
    box-shadow: var(--shadow);
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
}

/* ===== Testimonials Section ===== */
.testimonial-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--warning-color);
    margin-right: 0.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-author h5 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: #f8f9fa;
}

.cta-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2b2f77 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

/* ===== Pricing Section ===== */
.pricing-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 2rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background-color: rgba(78, 84, 255, 0.05);
}

.pricing-price {
    margin: 1.5rem 0;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
    line-height: 1;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--gray-color);
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul li {
    margin-bottom: 0.8rem;
}

.pricing-footer {
    padding: 0 2rem 2rem;
}

/* ===== FAQ Section ===== */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    font-weight: 600;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(78, 84, 255, 0.05);
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
}

/* ===== Contact Section ===== */
.contact-info {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.contact-form-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
}

.form-control, .form-select {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 84, 255, 0.25);
}

.form-floating > .form-control, 
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > textarea.form-control {
    height: auto;
}

/* ===== Footer ===== */
.footer-section {
    background-color: var(--secondary-color);
    color: #fff;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-5px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-container {
        height: 400px;
        margin-top: 3rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-image-container {
        height: 300px;
    }
    
    .experience-badge {
        right: 50%;
        transform: translateX(50%);
    }
}
