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

:root {
    --primary-color: #1a1a1a;
    --primary-dark: #000000;
    --secondary-color: #666666;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --accent-color: #333333;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    background: #000000;
    border: 2px solid #d4af37;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-jpspecial {
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 3px;
    line-height: 1;
    text-transform: none;
    position: relative;
    font-style: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-variant: normal;
}

.logo-jpspecial::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #d4af37;
    opacity: 0.4;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-dark);
    border: 2px solid var(--bg-white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Technologies Section */
.technologies {
    background: var(--bg-light);
    overflow: hidden;
}

.technologies-logos-wrapper {
    overflow: hidden;
    width: 100%;
}

.technologies-logos {
    display: flex;
    gap: 3rem;
    width: fit-content;
    animation: scroll-logos 30s linear infinite;
}

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

.tech-logo {
    background: transparent;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    position: relative;
    flex-shrink: 0;
}

.tech-logo:hover {
    transform: scale(1.1);
}

.tech-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tech-logo-text {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

.tech-logo-text-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
}

.tech-logo:hover .tech-logo-img {
    opacity: 1;
    transform: scale(1.1);
}

.tech-logo:hover .tech-logo-text {
    opacity: 1;
    transform: scale(1.1);
}

.tech-logo:hover .tech-logo-text-icon {
    opacity: 1;
    transform: scale(1.1);
}

.tech-logo-name {
    position: relative;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 1;
    white-space: nowrap;
    text-align: center;
    display: none;
}

/* NIS2 Section */
.nis2 {
    background: var(--bg-white);
}

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

.nis2-text {
    text-align: center;
}

.nis2-text .section-title {
    margin-bottom: 1rem;
}

.nis2-text .section-description {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

.nis2-text > p {
    margin-bottom: 3rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nis2-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.nis2-feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nis2-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.nis2-feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.nis2-feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.nis2-feature-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .logo {
        padding: 0.4rem 0.8rem;
    }

    .logo-jpspecial {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .about-content {
        max-width: 100%;
    }

    .contact-content {
        max-width: 100%;
    }

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

    .technologies-logos {
        gap: 2rem;
    }

    .tech-logo {
        min-width: 80px;
        padding: 0.8rem;
    }

    .tech-logo-img {
        width: 40px;
        height: 40px;
    }

    .nis2-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nis2-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        padding: 0.35rem 0.7rem;
    }

    .logo-jpspecial {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

