/*
* File: style.css
* Author: Success Stories Inc.
* Description: Stylesheet for the 'Company Success Stories' website, implementing Glassmorphism, Dynamic Gradients, and a Tetradic color scheme.
*/

/* =========================
   1. CSS Variables & Root
   ========================= */
:root {
    /* Color Palette (Tetradic) */
    --primary-color: #0d6efd; /* Bootstrap blue for consistency */
    --secondary-color: #6f42c1; /* Purple */
    --accent-color-1: #fd7e14; /* Orange */
    --accent-color-2: #198754; /* Green */

    /* Text Colors */
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;

    /* Backgrounds */
    --bg-light: #ffffff;
    --bg-dark: #111418;
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-darker: rgba(0, 0, 0, 0.2);

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    /* Transitions & Borders */
    --transition-speed: 0.4s;
    --border-radius: 1rem;
    --border-color: rgba(255, 255, 255, 0.2);
}

/* =========================
   2. Global Styles & Resets
   ========================= */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* =========================
   3. Utility & Helper Classes
   ========================= */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Scroll Animation Initial State */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   4. Header / Navbar
   ========================= */
.navbar {

    padding: 1rem 0;
    background: #fff;
}

.navbar.scrolled {
    background: #fff;


    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed) ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =========================
   5. Hero Section
   ========================= */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

#hero .container {
    z-index: 2;
}

#hero .hero-title, #hero .hero-subtitle {
    color: var(--text-light); /* IMPORTANT: White text for readability */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#hero .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* =========================
   6. Global Button Styles
   ========================= */
.btn.custom-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    background-image: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 4px 15px 0 rgba(116, 79, 168, 0.75);
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.custom-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px 0 rgba(116, 79, 168, 0.5);
    color: white;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.btn-link::after {
    content: '→';
    display: inline-block;
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.btn-link:hover::after {
    transform: translateX(5px);
}


/* =========================
   7. Features Section
   ========================= */
#features .stat-widget {
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

#features .stat-widget:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

#features .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#features .stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-card {
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .card-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}


/* =========================
   8. Testimonials Section
   ========================= */
.testimonial-card {
    padding: 2rem;
    text-align: center;
    margin: 1rem auto;
    max-width: 800px;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.4);
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-card cite {
    font-weight: 600;
    font-style: normal;
    color: var(--secondary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--text-dark);
    border-radius: 50%;
}

/* =========================
   9. Sustainability / Timeline
   ========================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: transform var(--transition-speed) ease;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item:hover::after {
    transform: scale(1.2);
}

.timeline-content {
    padding: 20px 30px;
    position: relative;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.timeline-date {
    position: absolute;
    top: -35px;
    left: 0;
    font-weight: bold;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

/* =========================
   10. Blog Section
   ========================= */
.blog-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex; /* STROGO */
    flex-direction: column; /* STROGO */
    text-align: center; /* STROGO */
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-card .card-image {
    width: 100%;
    height: 200px; /* STROGO */
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.blog-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover; /* STROGO */
    transition: transform var(--transition-speed) ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* =========================
   11. External Resources
   ========================= */
.resource-card {
    display: block;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background-color: white;
    color: var(--primary-color);
}

.resource-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* =========================
   12. FAQ Section
   ========================= */
.accordion-item {
    background-color: transparent;
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    background-color: #fff;
    border-radius: var(--border-radius) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(116, 79, 168, 0.4);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
}


/* =========================
   13. Contact Section
   ========================= */
.contact-form-wrapper {
    padding: 3rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary-color), transparent 30%);
    animation: rotate 6s linear infinite;
    z-index: -2;
}

.contact-form-wrapper::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: #f0f3f8;
    border-radius: calc(var(--border-radius) - 5px);
    z-index: -1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    padding: 14px 20px;
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

textarea.form-control {
    border-radius: var(--border-radius);
}

/* =========================
   14. Footer
   ========================= */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-muted);
}

.footer .footer-heading {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer .footer-text {
    font-size: 0.9rem;
}

.footer .footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 0;
    display: inline-block;
    transition: all var(--transition-speed) ease;
}

.footer .footer-links li a:hover {
    color: var(--text-light);
    transform: translateX(5px);
}

.footer .copyright-text {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

/* =========================
   15. Specific Page Styles
   ========================= */

/* For pages like Privacy, Terms */
.static-page-content {
    padding-top: 120px; /* Offset for fixed header */
}

/* For success.html */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh; /* Full viewport height */
}

.success-content {
    max-width: 600px;
    padding: 2rem;
}


/* =========================
   16. Responsive Styles
   ========================= */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }

    #hero .hero-title {
        font-size: 2.8rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 21px;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        background: var(--bg-glass);
        backdrop-filter: blur(10px);
    }
    .navbar-collapse {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--border-radius);
        background: rgba(255,255,255,0.95);
    }
    
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 150px 0;
    }

    #hero .hero-title {
        font-size: 2.2rem;
    }

    .footer .text-end {
        text-align: center !important;
    }
}