/* style.css */

/* CSS Variables for Color Scheme */
:root {
    /* Primary Colors */
    --color-primary: #A8D0E6; /* Light Blue */
    --color-secondary: #F76C6C; /* Soft Red */
    --color-accent: #FFC6FF; /* Pastel Pink */
    --color-background: #FFF8F0; /* Off White */
    --color-text: #333333; /* Dark Gray */
    --color-white: #FFFFFF;
    --color-overlay: rgba(0, 0, 0, 0.5);

    /* Accent Colors */
    --color-hover-primary: #74B3CE;
    --color-hover-secondary: #E85A5A;
    --color-button: #28a745;
    --color-button-hover: #218838;

    /* Gradient Background */
    --gradient-background: linear-gradient(135deg, #A8D0E6 0%, #F76C6C 100%);
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700&family=Amiri:wght@400&family=Tajawal:wght@400&family=Archivo+Black&family=Roboto&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo Black', sans-serif;
    color: var(--color-text);
    margin: 0;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}


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

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

.btn {
    background-color: var(--color-button);
    color: var(--color-white);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn:focus {
    outline: none;
}

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

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Header Styles */
header {
    background-color: var(--color-white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo img {
    width: 150px;
    height: 50px;
    object-fit: cover;
}

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

nav ul li a {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    position: relative;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s;
    position: absolute;
    bottom: -4px;
    left: 0;
}

nav ul li a:hover::after {
    width: 100%;
}

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-overlay);
}

.hero-content {
    position: relative;
    color: var(--color-white);
    text-align: center;
    padding: 0 20px;
}

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

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

.hero .btn {
    background-color: var(--color-secondary);
}

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

/* About Section */
.about {
    padding: 100px 20px;
}

.about h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.about p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 100px 20px;
    background-color: var(--color-white);
}

.services h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: var(--color-background);
    padding: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.service-item h3 {
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.service-item p {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sustainability Section */
.sustainability {
    padding: 100px 20px;
    background-color: var(--color-accent);
}

.sustainability h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.sustainability p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

/* Media Section */
.media {
    padding: 100px 20px;
}

.media h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.media-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.media-gallery img:hover {
    transform: scale(1.05);
}

/* Partners Section */
.partners {
    padding: 100px 20px;
    background-color: var(--color-background);
}

.partners h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.partners-logos img {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.partners-logos img:hover {
    transform: scale(1.1);
}

/* News Section */
.news {
    padding: 100px 20px;
}

.news h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-list article {
    background-color: var(--color-white);
    padding: 20px;
    border-left: 4px solid var(--color-secondary);
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.news-list article:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-list h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.news-list p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Clientele Section */
.clientele {
    padding: 100px 20px;
    background-color: var(--color-accent);
}

.clientele h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.clientele p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

/* Press Section */
.press {
    padding: 100px 20px;
}

.press h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.press p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

/* Insights Section */
.insights {
    padding: 100px 20px;
    background-color: var(--color-background);
}

.insights h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.insights p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

/* Customer Stories Section */
.customer-stories {
    padding: 100px 20px;
}

.customer-stories h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.stories-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.story-item {
    background-color: var(--color-white);
    padding: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.story-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.story-item p {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* External Resources Section */
.resources {
    padding: 100px 20px;
    background-color: var(--color-accent);
}

.resources h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.resources ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.resources ul li {
    background-color: var(--color-white);
    padding: 20px;
    border-left: 4px solid var(--color-secondary);
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.resources ul li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.resources ul li h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.resources ul li p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background-color: var(--color-white);
}

.contact h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    text-align: center;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact .form-group {
    margin-bottom: 20px;
}

.contact .btn {
    width: 100%;
    background-color: var(--color-secondary);
}

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

/* Footer Styles */
footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 40px 20px;
}

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

.footer-links a,
.social-media a {
    color: var(--color-white);
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.footer-links a::after {
    content: '|';
    margin-left: 10px;
}
.footer-links a:last-child::after {
    content: '';
}

/* Social Media Icons as Text */
.social-media a {
    position: relative;
    padding-left: 20px;
}

.social-media a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.social-media a[href*="facebook"]::before {
    background-image: url('image/facebook-icon.jpg');
}

.social-media a[href*="twitter"]::before {
    background-image: url('image/twitter-icon.jpg');
}

.social-media a[href*="instagram"]::before {
    background-image: url('image/instagram-icon.jpg');
}

footer p {
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

/* Success Page Styles */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
    background-color: var(--color-background);
}

.success-message h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.success-message p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text);
}

.success-message .btn {
    background-color: var(--color-secondary);
}

.success-message .btn:hover {
    background-color: var(--color-hover-secondary);
}

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

section {
    position: relative;
    z-index: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .services .service-list,
    .media-gallery,
    .partners-logos,
    .news-list,
    .stories-carousel,
    .resources ul {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--color-white);
        width: 200px;
        display: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    nav ul.nav-active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .service-item,
    .story-item {
        width: 100%;
    }

    .services .service-list,
    .media-gallery,
    .partners-logos,
    .stories-carousel {
        flex-direction: column;
        align-items: center;
    }

    footer .social-media a {
        padding-left: 25px;
    }
}

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

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

    nav ul {
        width: 100%;
    }

    .social-media a::before {
        width: 14px;
        height: 14px;
    }
}

/* Utility Classes for Padding on Privacy and Terms Pages */
body.privacy,
body.terms {
    padding-top: 100px;
}

/* Read More Links */
.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--color-hover-secondary);
    text-decoration: underline;
}

/* Ensure Images Cover and No Repeat */
.hero,
.hero::before,
.section-background {
    background-size: cover;
    background-repeat: no-repeat;
}

/* Micro Interactions and Animations */
.service-item,
.story-item,
.news-list article,
.resources ul li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover,
.story-item:hover,
.news-list article:hover,
.resources ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Fixed Header Adjustment for Privacy and Terms Pages */
body.privacy header,
body.terms header {
    position: fixed;
    top: 0;
    width: 100%;
}