/*
Theme Name: Akihabara Rockets Theme
Theme URI: https://akihabararockets.co.jp
Author: Antigravity
Description: A custom theme for Akihabara Rockets Co., Ltd. Featuring a modern tech aesthetic, responsive design, and smooth animations.
Version: 1.1
Text Domain: akihabara-rockets
*/

/* --- Variables --- */
:root {
    --primary-color: #0B1C3E;
    /* Deep Navy */
    --secondary-color: #1E3A8A;
    /* Lighter Navy */
    --accent-color: #00D4FF;
    /* Electric Cyan */
    --accent-hover: #00B4D8;
    --text-dark: #333333;
    --text-light: #F0F4F8;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --transition-speed: 0.3s;
    --font-heading: 'Sora', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* --- Reset & Global --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

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

/* --- Header --- */
.site-header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    background-color: rgba(11, 28, 62, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    /* Always white for contrast on hero/dark header */
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

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

.hero-bg img {
    display: none;
}

.hero-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Data Streams Animation */
.stream {
    animation: streamUp linear infinite;
}

.s1 {
    animation-duration: 3s;
    animation-delay: 0s;
}

.s2 {
    animation-duration: 5s;
    animation-delay: 1s;
}

.s3 {
    animation-duration: 4s;
    animation-delay: 2s;
}

.s4 {
    animation-duration: 6s;
    animation-delay: 0.5s;
}

.s5 {
    animation-duration: 3.5s;
    animation-delay: 1.5s;
}

.s6 {
    animation-duration: 7s;
    animation-delay: 3s;
}

.s7 {
    animation-duration: 4.5s;
    animation-delay: 2.5s;
}

@keyframes streamUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-1200px);
        opacity: 0;
    }
}

/* Floating Particles Animation */
.particle {
    animation: floatParticle ease-in-out infinite alternate;
}

.p1 {
    animation-duration: 4s;
}

.p2 {
    animation-duration: 5s;
}

.p3 {
    animation-duration: 3.5s;
}

.p4 {
    animation-duration: 6s;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    100% {
        transform: translate(20px, -20px);
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 28, 62, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #ffffff !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 50px;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}


/* --- Sections Common --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title p {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 500px;
}

.about-img-main {
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.about-img-sub {
    width: 60%;
    height: 50%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 5px solid #fff;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 25px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-scenery {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-scenery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
	padding:30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    position: relative;
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: absolute;
    top: -5px;
    right: 20px;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

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

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* --- Company Profile --- */
.company-section {
    position: relative;
    padding: 120px 0;
    color: #fff;
    overflow: hidden;
}

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

.company-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 62, 0.9);
    z-index: 2;
}

.company-section .section-title h2,
.company-section .section-title p {
    color: #fff;
    position: relative;
    z-index: 3;
}

.company-content {
    position: relative;
    z-index: 3;
}

.company-info {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    /* Glass morphism */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
}

.company-list .list-item {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.company-list .list-item:last-child {
    border-bottom: none;
}

.company-list dt {
    width: 200px;
    font-weight: 700;
    color: var(--accent-color);
    flex-shrink: 0;
}

.company-list dd {
    flex-grow: 1;
    color: #333333;
    /* Dark text for readability */
}

/* --- About Page Grids --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.philosophy-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

.service-card {
    height: 100%;
}

/* --- Contact Section --- */
.contact {
    position: relative;
    padding: 150px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

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

.contact-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-color) 0%, rgba(11, 28, 62, 0.9) 100%);
    z-index: 2;
}

.contact .container {
    position: relative;
    z-index: 3;
}

.contact h2 {
    color: #fff;
    margin-bottom: 20px;
}

.contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--accent-color);
    border: none;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    transition: all var(--transition-speed);
}

.contact-buttons a:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Footer --- */
.site-footer {
    background-color: #050E1F;
    color: #8892b0;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dealer-info {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
}

/* --- Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Page Header (Sub Pages) --- */
.page-header {
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 62, 0.8);
    z-index: 2;
    backdrop-filter: blur(2px);
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 2px;
}

.section-padding {
    padding: 100px 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {

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

    .intro-grid.reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-images {
        height: 400px;
        margin-bottom: 20px;
    }

    .company-list .list-item {
        flex-direction: column;
        gap: 5px;
    }

    .company-list dt {
        width: 100%;
    }

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

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

    .strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .strength-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 0 15px;
    }

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

    .about-images {
        height: 300px;
    }

    /* Center align services on mobile */
    .services-grid {
        justify-items: center;
    }

    .service-card {
        max-width: 400px;
        width: 100%;
		padding:30px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        padding: 80px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }
}