/* Disable text selection more broadly via CSS */
body {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Standard syntax */
}

:root {
    --zionup-red: #E74C3C; /* A slightly softer, modern red */
    --zionup-dark: #2C3E50; /* Dark blue-gray for sophisticated text */
    --zionup-light: #ECF0F1; /* Light gray for backgrounds */
    --zionup-accent: #3498DB; /* A complementary blue for accents */
    --zionup-text-light: #FDFEFE; /* Almost white for text on dark backgrounds */
    --zionup-gray: #F8F9FA; /* Very light gray for subtle section breaks */
    --max-width: 1200px;
    --transition: all 0.4s ease-in-out;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--zionup-light);
    color: var(--zionup-dark);
    line-height: 1.7;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif; /* A more distinct font for headings */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--zionup-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 1.5rem;
    position: relative; /* For background effects */
}

/* --- Header --- */
header {
    background: var(--zionup-dark); /* Darker header for contrast */
    color: var(--zionup-text-light);
    position: sticky;
    top: 0;
    z-index: 1000; /* Higher z-index */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--zionup-red); /* Logo in accent red */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--zionup-text-light);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px; /* Space for underline effect */
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--zionup-red);
    transition: width 0.3s ease-out;
}

nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--zionup-text-light);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    /* Use local image for background, ensure path is correct */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/technology-futuristic.jpg') center/cover no-repeat;
    color: var(--zionup-text-light);
    text-align: center;
    padding: 12rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Make it more prominent */
}

.hero h1 {
    font-size: 4.5rem;
    max-width: 900px;
    margin-bottom: 1.5rem;
    color: var(--zionup-text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    background: var(--zionup-red);
    color: var(--zionup-text-light);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--zionup-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: var(--zionup-accent);
    border-color: var(--zionup-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--zionup-red);
    border: 2px solid var(--zionup-red);
}

.btn-outline:hover {
    background: var(--zionup-red);
    color: var(--zionup-text-light);
}

/* --- General Section Styling --- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--zionup-red);
    margin: 10px auto 0;
    border-radius: 5px;
}

.section-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
    color: var(--zionup-dark);
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch; /* Ensures cards are same height */
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--zionup-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes footer content down if needed */
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card h4 {
    color: var(--zionup-accent);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--zionup-dark);
    font-size: 1rem;
    flex-grow: 1; /* Allows paragraph to take up available space */
}

.card i {
    font-size: 3rem;
    color: var(--zionup-red);
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

/* --- About Section Specific --- */
#about .grid-2 > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#about ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

#about ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

#about ul li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--zionup-red);
}

/* --- Testimonials Section --- */
.testimonial-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--zionup-text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--zionup-dark);
    font-size: 1.1rem;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--zionup-accent);
    font-size: 1.1rem;
}

.testimonial-card .rating {
    color: gold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* --- Partners & Clients --- */
#partners .logo-grid, #clients .logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
    margin-top: 3rem;
}

#partners .logo-grid img, #clients .logo-grid img {
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

#partners .logo-grid img:hover, #clients .logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- Team Section --- */
.team-member-card {
    text-align: center;
    padding: 2rem;
    background: var(--zionup-text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--zionup-red);
    box-shadow: 0 0 0 5px rgba(231, 76, 60, 0.2);
}

.team-member-card h4 {
    margin-bottom: 0.5rem;
    color: var(--zionup-dark);
}

.team-member-card p {
    color: var(--zionup-accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- Contact Section --- */
#contact {
    /* Use local image for background, ensure path is correct */
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../assets/images/office-modern.jpg') center/cover no-repeat;
    color: var(--zionup-text-light);
    padding: 8rem 1.5rem;
}

#contact h2 {
    color: var(--zionup-text-light);
    font-size: 3.5rem;
}

#contact p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

#contact .btn {
    background: var(--zionup-red);
    color: var(--zionup-text-light);
    border-color: var(--zionup-red);
}
#contact .btn:hover {
    background: var(--zionup-accent);
    border-color: var(--zionup-accent);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--zionup-red);
    margin-bottom: 0.8rem;
}

.contact-item a {
    color: var(--zionup-text-light);
    transition: color 0.3s ease;
}
.contact-item a:hover {
    color: var(--zionup-red);
}


/* --- Footer --- */
footer {
    background: var(--zionup-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 1.5rem;
}

footer .footer-links a:hover {
    color: var(--zionup-red);
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--zionup-text-light);
    font-size: 1.4rem;
}

.social-icons a:hover {
    color: var(--zionup-red);
    transform: translateY(-3px);
}

/* --- Scroll Top Button --- */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--zionup-red);
    color: #fff;
    padding: 15px 18px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 990;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--zionup-accent);
    transform: translateY(-3px);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--zionup-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: var(--zionup-text-light);
    font-size: 1.8rem;
    font-weight: 700;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.preloader .spinner {
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid var(--zionup-red);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.2rem; }
    .hero { padding: 8rem 1.5rem; }
    nav ul { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--zionup-dark);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    nav.active {
        max-height: 300px; /* Adjust based on content */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
    }

    nav a {
        display: block;
        padding: 0.8rem 0;
        width: fit-content;
    }

    .nav-wrapper {
        flex-wrap: nowrap; /* Keep logo and hamburger on one line */
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1rem;
    }

    .card {
        padding: 1.8rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer .footer-links {
        margin-top: 1rem;
    }

    footer .footer-links a {
        margin: 0 0.8rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo { font-size: 1.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 0.8rem 2rem; font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
}