/* Variables */
:root {
    --primary-color: #F6841F;
    --secondary-color: #303030;
    --text-color: #333333;
    --light-text: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: #303030;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --border-radius: 4px;
    --transition-speed: 0.3s;

    /* Color System */
    --ngmc-primary: #002D72;
    --ngmc-secondary: #E4002B;
    --neutral-100: #FFFFFF;
    --neutral-900: #1A1A1A;

    /* Typography */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-body);
    --text-base: 1rem/1.6;

    /* Spacing */
    --space-unit: 1rem;
    --space-xs: calc(0.25 * var(--space-unit));
    --space-md: calc(2 * var(--space-unit));
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font: var(--font-body);
    color: var(--neutral-900);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin: var(--space-md) 0 var(--space-unit);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Typography */
p {
    margin-bottom: var(--spacing-unit);
}

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

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    color: var(--light-text);
}

.contact-info {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.contact-link {
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: var(--light-text);
    opacity: 0.9;
}

/* Header and Navigation */
.main-header {
    background-color: var(--background-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    max-height: 67px;
    width: auto;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
}

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

/* Dropdown Menus */
.has-dropdown {
    position: relative;
}

.dropdown-menu,
.dropdown-submenu {
    position: absolute;
    background-color: var(--background-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    list-style: none;
    z-index: 1000;
}

.dropdown-menu {
    top: 100%;
    left: 0;
}

.dropdown-submenu {
    top: 0;
    left: 100%;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:hover > .dropdown-submenu {
    display: block;
}

.dropdown-menu a,
.dropdown-submenu a {
    padding: 0.75rem 1rem;
    display: block;
    white-space: nowrap;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition-speed);
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/jpg/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Button Styles */
.cta-button,
.learn-more-button,
.service-link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.cta-button:hover,
.learn-more-button:hover,
.service-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Service Card Alignment */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-link {
    margin-top: auto;
    min-width: 150px;
}

/* Welcome Section Button Alignment */
.welcome-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.learn-more-button {
    margin-top: 20px;
}

/* Hero Section Button Alignment */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-button {
    margin-top: 30px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* Welcome Section */
.welcome-section {
    padding: 4rem 0;
}

.welcome-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

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

.learn-more-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image img {
    width: 100%;
    height: auto;
}

.service-card h3,
.service-card p {
    padding: 1rem;
    margin: 0;
}

.service-link {
    display: block;
    padding: 1rem;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.service-link:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

.partners-container {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.partners-grid {
    display: flex;
    gap: 4rem;
    padding: 0 2rem;
    align-items: center;
}

.partner-logo {
    flex: 0 0 200px;
    padding: 1rem;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter var(--transition-speed);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Add hover effect to pause the animation */
.partners-container:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 2rem;
    }
    
    .partner-logo {
        flex: 0 0 150px;
    }
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.8;
}

.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-services a,
.footer-contact a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-services a:hover,
.footer-contact a:hover {
    opacity: 1;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--background-light);
        transition: right var(--transition-speed);
        padding: 2rem;
        overflow-y: auto;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dropdown-menu,
    .dropdown-submenu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    .has-dropdown.active > .dropdown-menu,
    .has-dropdown.active > .dropdown-submenu {
        display: block;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid,
    .partners-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        padding: 4rem 0;
    }
}