/* style.css */

/* CSS Variables */
:root {
    /* Color Palette */
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #18bc9c;
    --color-light: #ecf0f1;
    --color-dark: #1a252f;
    --color-white: #ffffff;
    --color-gray: #7f8c8d;
    --color-hover: #16a085;

    /* Fonts */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Transition */
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 4px 6px rgba(0, 0, 0, 0.3);

    /* Gradients */
    --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));

    /* Z-Index */
    --z-index-header: 1000;
    --z-index-cookie: 9999;
}

/* Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin-bottom: 20px;
    color: var(--color-gray);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-hover);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}

form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

label {
    margin-bottom: 5px;
    color: var(--color-dark);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-gray);
    border-radius: 5px;
    font-family: var(--font-body);
    transition: border-color var(--transition-speed);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-light);
    z-index: var(--z-index-header);
    transition: background-color var(--transition-speed);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    color: var(--color-primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    color: var(--color-accent);
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 4px 0;
    transition: all var(--transition-speed);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: -100%;
        width: 100%;
        background-color: var(--color-white);
        transition: left var(--transition-speed);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 20px 0;
        text-align: center;
    }

    .burger-menu {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-white);
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--color-light);
}

.services .service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.services .card {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.services .card img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.services .card h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.services .card p {
    color: var(--color-gray);
}

/* Research Section */
.research {
    padding: 80px 0;
    background-color: var(--color-white);
}

.research p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-dark);
}

.stat-widgets {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.widget {
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    margin: 10px;
    flex: 1 1 200px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.widget h3 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.widget p {
    color: var(--color-gray);
}

/* Innovation Section */
.innovation {
    padding: 80px 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    color: var(--color-white);
    text-align: center;
}

.innovation .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.innovation .container {
    position: relative;
    z-index: 2;
}

.innovation p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-light);
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
}

.carousel-item {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    flex: 0 0 350px;
    padding: 20px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.carousel-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.carousel-item h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.carousel-item p {
    color: var(--color-gray);
}

/* Customer Stories Section */
.customer-stories {
    padding: 80px 0;
    background-color: var(--color-light);
}

.customer-stories .carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
}

.customer-stories .carousel-item {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    flex: 0 0 330px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
}

.customer-stories .carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.customer-stories .carousel-item img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.customer-stories .carousel-item h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.customer-stories .carousel-item p {
    color: var(--color-gray);
}

/* Webinars Section */
.webinars {
    padding: 80px 0;
    background-color: var(--color-white);
}

.webinars p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-dark);
}

.webinars .carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
}

.webinars .carousel-item {
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    flex: 0 0 300px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
}

.webinars .carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.webinars .carousel-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.webinars .carousel-item h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.webinars .carousel-item p {
    color: var(--color-gray);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--color-light);
}

.faq .faq-item {
    margin-bottom: 20px;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: box-shadow var(--transition-speed);
}

.faq .faq-item:hover {
    box-shadow: var(--shadow-dark);
}

.faq .faq-item h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.faq .faq-item p {
    color: var(--color-gray);
}

/* Press Section */
.press {
    padding: 80px 0;
    background-color: var(--color-white);
}

.press p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-dark);
}

.press .press-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.press article {
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.press article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.press article h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.press article p {
    color: var(--color-gray);
}

.press article a {
    margin-top: 10px;
    display: inline-block;
    color: var(--color-accent);
    font-weight: bold;
}

/* External Resources Section */
.external-resources {
    padding: 80px 0;
    background-color: var(--color-white);
}

.external-resources .resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.external-resources .resource-links a {
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    color: var(--color-dark);
}

.external-resources .resource-links a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.external-resources .resource-links a h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.external-resources .resource-links a p {
    color: var(--color-gray);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--color-light);
}

.contact h2 {
    color: var(--color-dark);
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: box-shadow var(--transition-speed);
}

.contact form:hover {
    box-shadow: var(--shadow-dark);
}

.contact .btn {
    align-self: center;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 40px 0;
}

.footer-links,
.social-media {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a,
.social-media a {
    color: var(--color-light);
    transition: color var(--transition-speed);
}

.footer-links a:hover,
.social-media a:hover {
    color: var(--color-accent);
}

.social-media a {
    font-weight: bold;
}

footer p {
    text-align: center;
    color: var(--color-gray);
}

/* Cookie Popup */
#cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

#cookie-popup button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

#cookie-popup button:hover {
    background-color: var(--color-hover);
}

/* Success Page */
.success {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-light);
}

.success h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.success p {
    font-size: 1.2rem;
    color: var(--color-gray);
}

/* Animation Styles */
@keyframes draw {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.animate-draw {
    animation: draw 2s ease forwards;
}

/* Parallax Effect */
.hero, .innovation {
    background-attachment: fixed;
}

.hero {
    background-size: cover;
    background-position: center;
}

.innovation {
    background-size: cover;
    background-position: center;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Helper Classes for Padding */
.pt-100 {
    padding-top: 100px;
}

/* Read More Links */
.read-more {
    color: var(--color-accent);
    font-weight: bold;
    transition: color var(--transition-speed);
}

.read-more:hover {
    color: var(--color-hover);
}

/* Social Media Icons as Text */
.social-media a {
    font-size: 1.2rem;
}

/* Ensuring Heights are based on Content */
section {
    padding: 60px 0;
}

/* Ensuring Image Paths with data-prompt */
.hero,
.innovation,
.services .card,
.customer-stories .carousel-item,
.webinars .carousel-item,
.press article,
.external-resources .resource-links a {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ensuring readability on images */
.overlay {
    background: var(--gradient-overlay);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        width: 95%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .services .service-cards,
    .press .press-articles,
    .external-resources .resource-links {
        grid-template-columns: 1fr;
    }

    .carousel,
    .customer-stories .carousel,
    .webinars .carousel {
        flex-direction: column;
    }

    .carousel-item,
    .customer-stories .carousel-item,
    .webinars .carousel-item {
        flex: 1 1 auto;
    }
}