/* --- AESTHETIC REDESIGN & VARIABLES --- */
:root {
    --text-dark: #007bff;
    --text-dark: #1d1d1f;
    --text-light: #6e6e73;
    --background-white: #ffffff;
    --background-offwhite: #f5f5f7;
    --border-color: #d2d2d7;
    --top-bar-height: 40px;
    --header-height: 70px;
}

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

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: calc(var(--header-height) + var(--top-bar-height));
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HEADER AREA --- */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.top-bar {
    height: var(--top-bar-height);
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.top-bar-right-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* App Link (Narrowcasting) */
.app-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s;
}

.app-link i {
    width: 14px;
    height: 14px;
}

.app-link:hover {
    color: var(--text-dark);
}

/* Divider Line */
.divider {
    height: 16px;
    width: 1px;
    background-color: var(--border-color);
}

/* Auth Links (Not Logged In) */
.auth-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--text-dark);
}

.auth-links .separator {
    color: var(--text-light);
    margin: 0 5px;
}

/* User Dropdown (Logged In) */
.user-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0;
}

.user-btn i {
    width: 14px;
    height: 14px;
}

.user-btn .arrow {
    color: var(--text-light);
    width: 12px;
    height: 12px;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    position: absolute;
    top: 35px;
    right: 0;
    width: 200px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1100;
    padding: 8px 0;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 8px 16px;
    color: var(--text-light);
    font-size: 0.75rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.dropdown-menu a i {
    width: 14px;
    height: 14px;
    color: var(--text-light);
}

.dropdown-menu a:hover {
    background-color: var(--background-offwhite);
    color: var(--text-dark);
}

.dropdown-menu a:hover i {
    color: var(--text-dark);
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

.logout-item {
    color: #e53e3e !important;
}

.logout-item:hover {
    background-color: #fff5f5 !important;
}

/* --- MAIN HEADER --- */
#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-nav ul li {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.2s ease;
}

.main-nav ul li a:hover {
    color: var(--text-dark);
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

.action-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- MEGA MENU STYLING --- */
.has-dropdown {
    position: static;
}

.mega-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: calc(var(--header-height) + var(--top-bar-height));
    left: 0;
    width: 100%;
    background-color: var(--background-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 80px 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.mega-menu.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-menu-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    flex-grow: 1;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    height: auto !important;
}

.product-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.product-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

.quick-links {
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
    margin-left: 40px;
    min-width: 200px;
}

.quick-links h4 {
    margin: 0 0 15px 0;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu .quick-links ul {
    display: block !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-menu .quick-links ul li {
    display: block !important;
    height: auto !important;
    width: 100%;
    margin-bottom: 8px;
}

.mega-menu .quick-links ul li a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 6px 0;
    height: auto;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.mega-menu .quick-links ul li a:hover {
    color: var(--text-dark);
    background: none;
}

/* --- HERO SECTION --- */
.hero {
    height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
}

/* FIXED BUTTON STYLE - NO ANIMATION */
.btn-primary-hero {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--background-white);
    color: rgb(0, 0, 0);
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary-hero:hover {
    background-color: var(--background-offwhite);
    transform: translateY(-2px);
    color: rgb(0, 0, 0);
}

/* --- SECTIONS --- */
.light-section {
    background-color: var(--background-white);
}

.content-section {
    padding: 120px 0;
    text-align: center;
}

.content-section#expertise {
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 80px auto;
    line-height: 1.6;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.solution-item {
    padding: 20px;
}

.solution-item img {
    margin-bottom: 25px;
    width: 64px;
    height: 64px;
    background-color: var(--background-offwhite);
    padding: 12px;
    border-radius: 12px;
}

.solution-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.solution-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

#projects {
    background-color: var(--background-offwhite);
    border-top: 1px solid var(--border-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.project-card {
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.project-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.project-info {
    padding: 24px;
}

.project-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.project-info p {
    margin: 0;
    color: var(--text-light);
}

.cta-section {
    background-color: var(--text-dark);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-primary-cta {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--background-white);
    color: black;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary-cta:hover {
    background-color: black;
    transform: translateY(-2px);
    color: white;
}

.site-footer {
    background-color: var(--background-offwhite);
    color: var(--text-dark);
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column ul a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-bottom-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: var(--text-dark);
}

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: white;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-overlay.active {
    transform: translateY(0);
}

.search-form {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-form input {
    width: 100%;
    border: none;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 50px;
    background: transparent;
    outline: none;
}

.search-form input::placeholder {
    color: #ccc;
}

.search-icon-input {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    color: var(--text-dark);
}

.close-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-search:hover {
    color: var(--text-dark);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title,
    .cta-section h2 {
        font-size: 2.2rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {

    .solutions-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}