@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #5a6268; /* Darker Grey */
    --secondary-color: #212529; /* Black */
    --tertiary-color: #FFFFFF; /* White */
    --light-grey-bg: #e9ecef; /* Slightly darker light grey background */
    --dark-text: #343a40; /* Darker text for better contrast */
    --medium-text: #495057; /* Darker medium text for general use */
}

/* Basic Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--tertiary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Global Navigation */
header {
    background-color: var(--tertiary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

header nav ul {
    display: flex;
    gap: 2rem;
}

header nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-color); /* Changed to primary color for hover */
}

/* Mobile Menu Toggle Icon */
.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-text);
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    padding: 0.8em 1.8em;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 1em;
}

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

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 2em;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--secondary-color);
}

.back-button i {
    font-size: 1.2em;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--tertiary-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3em;
}

main {
    max-width: unset;
    margin: 0 auto;
    padding: 0;
}

section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    /* background: var(--light-grey-bg); */
    /* clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); */ /* Tilted bottom edge */
    /* padding-bottom: 8em; */ /* Adjust for tilt */
}

#hero .hero-content {
    z-index: 10;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

#hero p {
    font-size: 1.3rem;
    color: var(--medium-text);
    margin-bottom: 1.5em;
}

/* Services Overview Section */
#services-overview {
    text-align: center;
    background-color: var(--tertiary-color);
    padding-top: 5em;
}

#services-overview h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}

#services-overview p {
    font-size: 1.2rem;
    color: var(--medium-text);
    margin-bottom: 3em;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 20px;
}

.service-card {
    background: linear-gradient(145deg, var(--tertiary-color), var(--light-grey-bg));
    padding: 3em 2em;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Geometric shape for cards - example: diamond or hexagonal clip-path */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.service-card p {
    font-size: 1rem;
    color: var(--medium-text); /* Changed to medium text for a lighter grey */
    margin-bottom: 0;
}

/* Sub-Service Detail Pages */
#service-strategy-detail, #service-software-detail, #service-media-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 20px;
    text-align: center;
}

#service-strategy-detail h1, #service-software-detail h1, #service-media-detail h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3em;
}

.tagline {
    font-size: 1.3rem;
    color: var(--medium-text);
    margin-bottom: 2em;
}

.sub-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-top: 3em;
}

.sub-service-item {
    background-color: var(--tertiary-color);
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.sub-service-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5em;
    display: block;
}

.sub-service-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.sub-service-item p {
    font-size: 1rem;
    color: var(--dark-text);
}

.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--tertiary-color);
    padding: 4em 2em;
    border-radius: 15px;
    margin-top: 4em;
    clip-path: polygon(0% 15%, 15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%);
}

.cta-section h2 {
    color: var(--tertiary-color);
    font-size: 2.5rem;
    margin-bottom: 1em;
}

.cta-section .btn {
    background-color: var(--tertiary-color);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: var(--light-grey-bg);
    color: var(--secondary-color);
}

/* About and Contact Page General Styling */
#about-us, #contact-us {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 20px;
    background-color: var(--light-grey-bg);
    border-radius: 20px;
}

#about-us h1, #contact-us h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3em;
}

#about-us p, #contact-us p {
    font-size: 1.2rem;
    color: var(--medium-text);
    margin-bottom: 2em;
}

/* Contact Page Specific Layout */
.contact-form-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2em;
    margin-top: 3em;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background-color: var(--tertiary-color);
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 1.5em;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: var(--dark-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid var(--light-grey-bg);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    width: auto;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    background-color: var(--light-grey-bg);
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1em;
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
    color: var(--dark-text);
}

.contact-info p i {
    margin-right: 0.5em;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-info .social-icons {
    margin-top: 1.5em;
    margin-bottom: 2em;
}

.contact-info .social-icons a {
    font-size: 1.8rem;
    margin-right: 0.8em;
    color: var(--dark-text);
}

.contact-info .social-icons a:hover {
    color: var(--primary-color);
}

.map-container {
    margin-top: 2em;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    display: block;
}

/* About Page Specific Layout */
#about-us .about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: center;
    margin-top: 2em;
}

#about-us .about-text {
    text-align: left;
}

#about-us::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(90, 98, 104, 0.2); /* Primary color with increased opacity */
    border-radius: 50%;
    z-index: 0;
    animation: float 10s infinite ease-in-out;
}

#about-us::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(33, 37, 41, 0.2); /* Secondary color with increased opacity */
    border-radius: 50%;
    z-index: 0;
    animation: float 12s infinite reverse ease-in-out;
}

/* Abstract Elements */
.abstract-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.abstract-circle-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.abstract-circle-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    border-radius: 50%;
    bottom: -70px;
    right: -70px;
}

.abstract-blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(90, 98, 104, 0.2); /* Using new primary color with increased opacity */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    right: 5%;
    transform: rotate(20deg);
}

.abstract-blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(33, 37, 41, 0.2); /* Using new secondary color with increased opacity */
    border-radius: 60% 40% 30% 70% / 60% 60% 40% 40%;
    bottom: 5%;
    left: 10%;
    transform: rotate(-30deg);
}

.abstract-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 170px solid rgba(90, 98, 104, 0.2); /* Primary color with increased opacity */
    top: 20%;
    left: -30px;
    transform: rotate(45deg);
}

.abstract-triangle-2 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-top: 140px solid rgba(33, 37, 41, 0.2); /* Secondary color with increased opacity */
    bottom: 25%;
    right: -20px;
    transform: rotate(-60deg);
}

/* Applying abstract elements to sections */
#hero::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(90, 98, 104, 0.3); /* Primary color with increased opacity */
    border-radius: 50%;
    top: 10%;
    left: 5%;
    opacity: 0.3;
    animation: float 8s infinite ease-in-out;
}

#hero::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(33, 37, 41, 0.3); /* Secondary color with increased opacity */
    border-radius: 50%;
    bottom: 15%;
    right: 8%;
    opacity: 0.3;
    animation: float 10s infinite reverse ease-in-out;
}

#services-overview::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(33, 37, 41, 0.25); /* Secondary color with increased opacity */
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    top: 5%;
    right: -50px;
    opacity: 0.25;
    transform: rotate(30deg);
    animation: float 9s infinite ease-in-out;
}

#services-overview::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(90, 98, 104, 0.25); /* Primary color with increased opacity */
    border-radius: 50%;
    bottom: 10%;
    left: -30px;
    opacity: 0.25;
    animation: float 11s infinite reverse ease-in-out;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(90, 98, 104, 0.15); /* Primary color with increased opacity */
    border-radius: 50%;
    top: -20px;
    right: -20px;
    opacity: 0.15;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(33, 37, 41, 0.15); /* Secondary color with increased opacity */
    border-radius: 50%;
    bottom: -15px;
    left: -15px;
    opacity: 0.15;
    z-index: 1;
}

.sub-service-item::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(90, 98, 104, 0.1); /* Primary color with increased opacity */
    border-radius: 50%;
    top: 10px;
    right: 10px;
    opacity: 0.1;
    z-index: 0;
}

.sub-service-item::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(33, 37, 41, 0.1); /* Secondary color with increased opacity */
    border-radius: 50%;
    bottom: 10px;
    left: 10px;
    opacity: 0.1;
    z-index: 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -40px;
    left: -40px;
    animation: rotate 12s infinite linear;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    animation: rotate 15s infinite reverse linear;
}

/* Keyframe Animations */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

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

@media (max-width: 768px) {
    header nav ul {
        display: none; /* Hide navigation links by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjusted based on typical header height */
        left: 0;
        width: 100%;
        background-color: var(--tertiary-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        border-top: 1px solid var(--light-grey-bg);
        height: calc(100vh - 60px); /* Ensure it takes up remaining vertical space */
        overflow-y: auto; /* Allow vertical scrolling if content overflows */
        z-index: 999; /* Ensure menu is above other content */
    }

    header nav ul.active {
        display: flex; /* Show navigation links when active */
    }

    header nav ul li {
        text-align: center;
        margin: 0.5rem 0;
    }

    header nav ul li a {
        padding: 0.8rem 0;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon on mobile */
    }

    header nav {
        padding: 0 15px; /* Adjust padding for smaller screens */
        flex-wrap: wrap;
        align-items: flex-start; /* Align items to the start for vertical stacking */
        position: relative; /* Set positioning context for absolute menu */
    }

    .logo a {
        font-size: 1.5rem;
    }

    #about-us .about-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #about-us .about-text {
        text-align: center;
    }

    .contact-form-section {
        flex-direction: column;
        gap: 3em;
    }

    .contact-form,
    .contact-info {
        min-width: unset;
        width: 100%;
    }

    #hero h1 {
        font-size: 2.5rem; /* Smaller font size for mobile hero title */
    }

    #hero p {
        font-size: 1rem; /* Smaller font size for mobile hero paragraph */
    }

    .service-card {
        clip-path: none; /* Remove clip-path on mobile for better content display */
        min-height: auto; /* Allow height to adjust based on content */
        padding: 2em 1.5em; /* Adjust padding for smaller screens */
    }

    .service-cards {
        gap: 1.5rem; /* Reduce gap between service cards on mobile */
        padding: 0 15px; /* Adjust padding for smaller screens */
    }

    #service-strategy-detail, #service-software-detail, #service-media-detail {
        padding: 2rem 15px; /* Adjust padding for service detail pages on mobile */
    }

    #service-strategy-detail h1, #service-software-detail h1, #service-media-detail h1 {
        font-size: 2rem; /* Smaller font size for mobile service detail titles */
    }

    .tagline {
        font-size: 1.1rem; /* Smaller font size for mobile taglines */
    }

    .sub-services-list {
        gap: 1.5em; /* Reduce gap in sub-service list on mobile */
    }

    #contact-us {
        padding: 2rem 15px; /* Adjust padding for contact page on mobile */
    }

    #contact-us h1 {
        font-size: 2rem; /* Smaller font size for mobile contact title */
    }

    #contact-us p {
        font-size: 1rem; /* Smaller font size for mobile contact paragraph */
    }

    .contact-form .form-group {
        margin-bottom: 1em; /* Reduce space between form groups on mobile */
    }
}
