/*
   TechSolutions Website Styles
   Color Palette:
   - Primary: #52489c
   - Secondary: #4062bb
   - Accent Colors: #f45b69, #59c3c3, #ebebeb
   - Light: #ffffff
   - Dark: #1a1a1a
   - Gray: #f5f5f5
   - Gray Dark: #777777
*/

/* ======== Base Styles ======== */
:root {
    --primary: #52489c;
    --secondary: #4062bb;
    --accent1: #f45b69;
    --accent2: #59c3c3;
    --accent3: #ebebeb;
    --light: #ffffff;
    --dark: #1a1a1a;
    --gray: #f5f5f5;
    --gray-dark: #777777;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    overflow-x: hidden;
}

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

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

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
    line-height: 1.3;
}

p {
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 50px;
}

/* ======== Animation Classes ======== */
.reveal {
    opacity: 0;
    /* transform: translateY(30px); */ /* Temporarily removed for debugging */
    transition:
        opacity 0.6s ease;
        /* transform 0.6s ease; */ /* Temporarily removed for debugging */
}

.reveal.active {
    opacity: 1;
    /* transform: translateY(0); */ /* Temporarily removed for debugging */
}

/* ======== Navigation Bar ======== */
.navbar {
    background-color: rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 2.0rem; /* Increased font size for the logo */
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center; /* Vertically align items */
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1.2rem; /* Increased font size */
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* ======== Hero Section ======== */
.hero,
.about-hero,
.contact-hero {
    height: 65vh; /* Changed from 80vh to 50vh */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--accent1) 50%,
        var(--accent2) 100%
    );
    color: var(--light);
    /* overflow: hidden; */ /* Temporarily removed for debugging */
}

.hero {
    position: relative;
    overflow: hidden;
}

.about-hero,
.contact-hero {
    height: 65vh;
    overflow: hidden; /* Added to contain the animated background */
}

.hero .container,
.about-hero .container,
.contact-hero .container {
    position: relative;
    z-index: 2; /* Higher z-index than background */
}

.hero-content {
    max-width: 800px;
    z-index: 2; /* Increased z-index to ensure it's above animated-bg */
}

.hero-content {
    position: relative;
    z-index: 3; /* Even higher z-index to ensure content visibility */
}

.hero h1,
.about-hero h1,
.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p,
.about-hero p,
.contact-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--light);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background-color: var(--accent3);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.animated-bg {
    position: absolute;
    top: 0; /* Position at the top of the hero section */
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        -45deg, /* Angle for the gradient flow */
        var(--primary),
        var(--accent1),
        var(--accent2),
        var(--primary) /* Repeat colors for a smoother loop */
    );
    background-size: 400% 400%; /* Make the background larger than the container */
    animation: gradientFlow 15s ease infinite; /* Apply the new animation */
    z-index: 0;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%; /* Start position */
    }
    50% {
        background-position: 100% 50%; /* Middle position */
    }
    100% {
        background-position: 0% 50%; /* End position (loop back) */
    }
}

/* ======== Particle Animations ======== */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(100px, -100px) rotate(360deg);
        opacity: 1;
    }
}

/* ======== Services Section ======== */
.services {
    background-color: var(--gray);
}

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

.service-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 100%);
    transition: var(--transition);
    z-index: -1;
    opacity: 0;
}

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

.service-card:hover::before {
    height: 5px;
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray);
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--accent3);
}

.service-icon img {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    position: relative;
}

.service-link::after {
    content: "→";
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover::after {
    margin-left: 10px;
}

/* ======== CTA Section ======== */
.cta-section {
    background: linear-gradient(135deg, var(--accent1) 0%, var(--primary) 100%);
    color: var(--light);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ======== About Content Section ======== */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    color: var(--primary);
    margin-top: 30px;
}

.about-text p {
    margin-bottom: 30px;
}

/* ======== Values Section ======== */
.values-section {
    background-color: var(--gray);
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent3);
    border-radius: 50%;
}

.value-icon img {
    width: 35px;
    height: 35px;
}

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

/* ======== Client Focus Section ======== */
.client-focus {
    padding: 80px 0;
}

.client-content {
    max-width: 1000px;
    margin: 0 auto;
}

.client-content h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
}

.client-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.client-type {
    padding: 30px;
    background-color: var(--gray);
    border-radius: 10px;
    transition: var(--transition);
}

.client-type:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.client-type h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* ======== Contact Form Section ======== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    padding-right: 30px;
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.info-icon img {
    width: 25px;
    height: 25px;
}

.info-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.social-connect {
    margin-top: 40px;
}

.social-connect h3 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent1);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: var(--light);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Noto Sans", sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(154, 156, 234, 0.2);
}

.submit-btn {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

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

/* ======== Footer ======== */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer h4 {
    color: var(--accent3);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a {
    color: var(--light);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent2);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======== Responsive Styles ======== */
@media (max-width: 992px) {
    .hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2.8rem;
    }

    .about-grid,
    .client-types,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: -200px; /* Position above the viewport */
        left: 0; /* Align to the left edge */
        flex-direction: column;
        background-color: var(--light);
        width: 100%;
        text-align: center;
        transition: top 0.3s ease-in-out; /* Animate the top property */
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-links.active {
        top: 70px; /* Slide down to below the navbar */
    }

    .hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero,
    .about-hero,
    .contact-hero {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }

    .service-card,
    .value-card {
        padding: 20px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .contact-form-container {
        padding: 30px 20px;
    }
}

/* ======== Contact Us Button Styling ======== */
.nav-button a {
    background-color: var(--accent1);
    color: var(--light); /* White text */
    padding: 10px 20px; /* Adjust padding as needed */
    border-radius: 50px; /* Large radius for pill shape */
    text-decoration: none; /* Remove underline */
    transition: var(--transition); /* Apply existing transition */
    display: inline-block; /* Needed for padding and margin */
}

.nav-button a:hover {
    background-color: var(--primary); /* Hover effect color */
    color: var(--light); /* Keep text white on hover */
}

.nav-button a::after {
    content: none; /* Remove the underline animation */
}

.justify-text {
    text-align: justify;
}
