/* 
   Heromotives - JDM Mechanic Stylesheet
   Premium, Dark-mode first aesthetic with glowing accents 
*/

:root {
    --bg-dark: #0f172a;      /* Deep Slate */
    --bg-darker: #020617;    /* Almost Black */
    --accent-red: #ef4444;   /* JDM Red */
    --accent-hover: #dc2626; /* Darker Red */
    --text-primary: #f8fafc; /* Off-white */
    --text-muted: #94a3b8;   /* Slate Gray */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography Utilities */
.accent { color: var(--accent-red); }
.center { text-align: center; }
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 800; }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* Dynamic Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section { padding-top: 6rem; padding-bottom: 6rem; }
.dark-bg { background-color: var(--bg-darker); }

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-red);
    margin: 1.5rem 0;
    border-radius: 2px;
}
.center-div { margin: 1.5rem auto; }

/* Navigation Area - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; color: #fff;}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--accent-red); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #b91c1c 100%);
    color: #fff !important;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px -6px rgba(239, 68, 68, 0.6);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: var(--transition);
}
.btn-primary:hover::after { 
    left: 200%; 
    transition: all 0.7s ease; 
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 25px -8px rgba(239, 68, 68, 0.8);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.5);
}

.btn-lang {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-lang:hover { 
    background: rgba(255, 255, 255, 0.15); 
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.social-icon img { display: block; margin: 0; }
.social-icon:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

/* Force Lucide Action Icons to be White */
.btn-primary svg, .btn-primary i, .btn-outline svg, .btn-outline i {
    stroke: #ffffff !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('images/s2000_hero.jpg');
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
}
.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

/* Glass Badge over Image */
.glass-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    border-left: 1px solid var(--glass-border);
    border-top-left-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.glass-badge i { color: var(--accent-red); width: 32px; height: 32px; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 0;
    background: var(--accent-red);
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 53, 75, 0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.glass-card:hover::before { height: 100%; }
.icon-circle {
    width: 60px; height: 60px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.icon-circle i { color: var(--accent-red); }

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid #1e293b;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer h4 { margin-bottom: 1.5rem; color: #fff; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo { font-size: 1.2rem; }
    .navbar { padding: 0.8rem 0; }
    .nav-content { padding: 0 1rem; gap: 0.5rem; }
    
    /* Keep Social Icons and Lang toggle, hide text links */
    .nav-links { gap: 0.8rem; }
    .nav-links > a:not(.social-icon) { display: none !important; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-content { padding: 0 1.5rem; }
    .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero { min-height: 550px; }
    
    /* Stack hero buttons */
    .hero-actions { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
    .hero-actions a { width: 100%; text-align: center; }
    
    .section { padding-top: 4rem; padding-bottom: 4rem; }
    .section { padding-top: 4rem; padding-bottom: 4rem; }
}
