/* High-End Modern Styles for world-works.com */
:root {
    --primary: #0066ff;
    --primary-dark: #004ecc;
    --primary-light: rgba(0, 102, 255, 0.05);
    --accent: #ff3366;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* Typography */
.section-title {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 70px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Header (Glassmorphism) */
header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px; /* Adjust size here */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.btn-cta {
    background: var(--text);
    color: var(--white) !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-cta:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3);
}

/* Hero Section with Image Overlay */
.hero {
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-sub {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-content h2 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-hero {
    display: inline-block;
    background: var(--white);
    color: var(--text);
    padding: 24px 56px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* Problem Section Cards */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.problem-item {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.problem-item:hover::before {
    opacity: 1;
}

.problem-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 30px;
}

.importance-box {
    background: var(--text);
    color: var(--white);
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    position: relative;
}

.importance-box h4 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.importance-box p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Service Flow Section */
.flow-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.flow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background: var(--primary-light);
    z-index: 1;
}

.flow-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.flow-item:last-child {
    margin-bottom: 0;
}

.flow-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    margin-right: 40px;
    box-shadow: var(--shadow);
}

.flow-content h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.flow-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .flow-container::before {
        left: 25px;
    }
    .flow-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        margin-right: 20px;
    }
    .flow-content h4 {
        font-size: 1.3rem;
    }
}

/* Features (Clean & Technical) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 60px 40px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 30px;
}

/* Pricing Card (Bold) */
.pricing-card {
    max-width: 550px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 40px;
    padding: 80px 60px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    position: relative;
    border: 2px solid var(--primary);
}

.price {
    font-size: 5rem;
    font-weight: 900;
    color: var(--text);
    margin: 20px 0 40px;
    display: block;
    letter-spacing: -0.05em;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 50px;
    display: block;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-features li {
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start; /* Better for long text wrapping */
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.6; /* Align with text */
}

.btn-cta-full {
    display: block;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

.btn-cta-full:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
}

/* Contact Form (Fixed Layout) */
.contact-form-wrapper {
    background: var(--white);
    padding: 80px;
    border-radius: 40px;
    box-shadow: var(--shadow-hover);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group {
    margin-bottom: 30px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group textarea {
    display: block;
    width: 100%; /* Ensure full width */
    background: var(--bg-alt);
    border: 2px solid transparent;
    padding: 20px 24px;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    color: var(--text);
}

.form-group input:focus, 
.form-group textarea:focus {
    background: var(--white);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 5px rgba(0, 102, 255, 0.1);
}

.btn-submit {
    display: block;
    width: 100%;
    background: var(--text);
    color: var(--white);
    padding: 24px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-submit:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

/* FAQ Accordion-like */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-item dt {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 100px 0;
    background: #000;
    color: var(--white);
    text-align: center;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s all cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 60px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h2 { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .contact-form-wrapper { padding: 40px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-desktop {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 120px 40px;
        transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: -20px 0 60px rgba(0,0,0,0.1);
        z-index: 1050;
    }
    .nav-desktop.active { right: 0; }
    .nav-desktop ul {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-desktop ul li {
        margin: 0 0 30px 0;
    }
    .nav-desktop ul li a {
        font-size: 1.5rem;
    }
    
    .hero-content h2 { font-size: 2.4rem; }
    .hero-content p { font-size: 1.1rem; }
    .importance-box { padding: 40px 20px; }
    .importance-box h4 { font-size: 1.6rem; }
    .pricing-card { padding: 50px 30px; }
    .contact-form-wrapper { padding: 30px 20px; }
    .section-padding { padding: 80px 0; }
    .container { padding: 0 20px; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text);
    color: var(--white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

