:root {
    /* Kyoto Minimalist Palette */
    --primary-color: #B71C1C;
    /* Elegant Deep Red */
    --primary-hover: #900a0a;
    --text-color: #333333;
    /* Dark Grey for text */
    --text-light: #666666;
    /* Medium Grey */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    /* Very subtle grey */
    --bg-footer: #1a1a1a;
    --border-color: #e5e5e5;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1140px;
    --container-padding: 0 20px;
    --section-padding: 100px 0;
    /* More whitespace */

    /* Components */
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 45px -10px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-header {
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    /* Pillow shape for modern look */
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: #333;
    color: #333;
}

.btn-outline:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    border-radius: var(--radius-sm);
}

.btn-whatsapp-full {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background-color: #25d366;
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

.btn-whatsapp-full:hover {
    background-color: #20ba5a;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.header.scrolled .logo-img {
    height: 100px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 150px;
    /* Increased significantly for immediate recognition */
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
    }
}

.nav-list {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-list li a {
    color: #111;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-list li a:not(.btn-nav):hover {
    color: var(--primary-color);
}

.btn-nav {
    border: 1px solid #25d366;
    padding: 10px 24px;
    border-radius: 50px;
    color: #25d366 !important;
    font-weight: 600 !important;
}

.btn-nav:hover {
    background-color: #25d366;
    color: white !important;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #111;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 1001;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-logo span {
    color: var(--primary-color);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.close-icon {
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-list li a {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111;
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    padding-top: 100px;
    background-image: url('assets/hero_japan_tech.png');
    background-size: 130%;
    /* Zoom in to hide white edges in the image */
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #111;
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 600px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.value-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--primary-color);
    z-index: 0;
    opacity: 0.2;
}

.minimal-img {
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(183, 28, 28, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    /* Circle icon background */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Differentials */
.diff-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.diff-card {
    padding: 30px;
    border-left: 3px solid var(--primary-color);
    background: var(--bg-light);
}

.diff-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.diff-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Process Flow */
.process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 100%;
    margin-top: 50px;
    position: relative;
}

.process-flow::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    z-index: 0;
}

.p-step {
    text-align: left;
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    border: 1px solid transparent;
}

.p-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(183, 28, 28, 0.1);
}

.p-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #f0f0f0;
    /* Very subtle grey */
    line-height: 1;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.p-step:hover .p-num {
    color: rgba(183, 28, 28, 0.1);
    /* Subtle red on hover */
}

.p-step h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #111;
    font-weight: 600;
}

.p-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .process-flow {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .process-flow::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .process-flow {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .p-step {
        text-align: center;
        padding: 30px;
        box-shadow: var(--shadow-soft);
        border: 1px solid var(--border-color);
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: #444;
    margin-bottom: 25px;
}

.client-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.client-info strong {
    display: block;
    color: #111;
    font-weight: 600;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.contact-card {
    background-color: var(--bg-light);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-block {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.c-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.c-item span,
.c-item a {
    color: #333;
    font-weight: 500;
}

.form-wrapper {
    padding: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111;
    background-color: #fff;
}

/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 120px;
    /* Slightly smaller than header */
    width: auto;
    object-fit: contain;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}



.footer-col p {
    color: #888;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

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

.footer-col ul li a {
    color: #888;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        order: -1;
    }

    /* .process-flow handled in main block now */

    .diff-grid-cards {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .contact-card,
    .form-wrapper {
        padding: 40px;
    }

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

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

    .mobile-menu-icon {
        display: block;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
        justify-content: center;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

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