/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --accent-color: #00a8ff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, #0066cc, #00a8ff);
    --gradient-secondary: linear-gradient(135deg, #004499, #0066cc);
    --shadow-soft: 0 4px 20px rgba(0, 102, 204, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 102, 204, 0.15);
    --shadow-strong: 0 12px 40px rgba(0, 102, 204, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 255, 0.1));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 168, 255, 0.05));
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-logo {
    margin-bottom: 2rem;
}

.main-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 20px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.name-highlight {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Responsive image and hero tweaks */
.logo-placeholder,
.main-logo-placeholder {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero {
    overflow: hidden;
}

.hero-content {
    padding: 1rem;
}

.name-highlight {
    font-size: clamp(2rem, 6vw, 4rem);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-cta {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 86%;
        max-width: 360px;
    }

    .nav-container {
        padding: 0 0.75rem;
    }
}

.hero-company {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-soft);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cta-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-secondary:hover {
    color: var(--text-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    background: var(--gradient-primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 160px;
}

.stat-item {
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    padding: 1rem;
    border-radius: var(--border-radius);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stat-item:hover .stat-number {
    color: var(--accent-color);
}

.stat-item:hover .stat-label {
    color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-background {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text,
    .about-background {
        max-width: 100%;
    }
}

.about-background h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-background p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Functions Section */
.functions {
    padding: 8rem 0;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    grid-auto-rows: 1fr;
}

.function-card {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
    cursor: pointer;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.function-card:hover .function-icon {
    color: var(--accent-color);
}

.function-card:hover h3 {
    color: var(--primary-color);
}

.function-card:hover p {
    color: var(--text-primary);
}

.function-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.function-card {
    overflow: hidden;
}

.function-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.function-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sectors Section */
.sectors {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.sector-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 168, 255, 0.3);
}

.sector-card:hover .sector-icon {
    color: var(--accent-color);
}

.sector-card:hover h3 {
    color: var(--accent-color);
}

.sector-card:hover li {
    color: var(--text-primary);
}

.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.sector-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.sector-card ul {
    list-style: none;
}

.sector-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.sector-card li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Value Section */
.value {
    padding: 8rem 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.value-item:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
    border-color: rgba(40, 167, 69, 0.2);
}

.value-item:hover i {
    color: #20c997;
}

.value-item:hover span {
    color: var(--primary-color);
}

.value-item i {
    color: #28a745;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Work Section */
.work {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.work-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.work-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.work-principles {
    display: grid;
    gap: 2rem;
}

.principle {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.principle h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.principle p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.commercial-structure {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.commercial-structure h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.commercial-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.commercial-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.commercial-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.commercial-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Manufacturers CTA */
.manufacturers-cta {
    padding: 8rem 0;
    background: var(--gradient-primary);
    color: var(--text-light);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta-content>p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.manufacturer-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.manufacturer-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.form-points {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-point {
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-button {
    background: var(--text-light);
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-card,
.location-coverage {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
}

.contact-card:hover,
.location-coverage:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background: var(--bg-primary);
}

.contact-card:hover h3,
.location-coverage:hover h3 {
    color: var(--accent-color);
}

.contact-card:hover .contact-item,
.location-coverage:hover .coverage-item {
    background: rgba(255, 255, 255, 0.8);
}

.contact-card h3,
.location-coverage h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details,
.coverage-items {
    display: grid;
    gap: 1rem;
}

.contact-item,
.coverage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.contact-item i,
.coverage-item i {
    color: var(--accent-color);
    width: 20px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-objective p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .name-highlight {
        font-size: 3rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .functions-grid {
        grid-template-columns: 1fr;
    }

    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .work-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Stack hero content vertically on small screens to avoid overflow */
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 96px;
        /* account for fixed navbar */
        padding-bottom: 3rem;
        min-height: auto;
        gap: 1.25rem;
    }

    .hero-content,
    .hero-stats {
        width: 100%;
        max-width: 960px;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
        margin-top: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-item {
        width: auto;
        text-align: center;
        padding: 0.5rem 0.75rem;
    }

    /* Prevent the logo / company name from overflowing */
    .nav-logo .company-name {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

/* Logo styling */
.main-logo-placeholder {
    /* Static logo - no animation */
}

.logo-placeholder {
    /* Static logo - no animation */
}

/* Hero title styling */
.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA button styling */
.hero-cta .cta-primary {
    /* Static button - no animation */
}

/* Sector card styling */

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
    transform: scale(1.1);
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Enhanced mobile styles */
@media (max-width: 480px) {
    .name-highlight {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .function-card:hover,
    .sector-card:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Additional responsive tweaks */
img,
.logo-placeholder,
.main-logo-placeholder {
    max-width: 100%;
    height: auto;
}

/* Ensure mobile nav works even before JS injects styles */
.nav-menu.active {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    z-index: 999;
}

/* Hero spacing to account for fixed navbar on small screens */
.hero {
    padding-top: 120px;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 64px;
    }

    .main-logo-placeholder {
        width: 88px;
        height: 88px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary,
    .cta-button {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 60px;
    }

    .main-logo-placeholder {
        width: 72px;
        height: 72px;
    }

    .hero {
        padding-top: 100px;
    }

    .cta-primary,
    .cta-secondary,
    .cta-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}