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

body {
    font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: hidden;
    font-feature-settings: "palt" 1;
    letter-spacing: 0.02em;
}

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

/* Color Variables - Natural Theme */
:root {
    --primary-color: #6b8e5a;
    --secondary-color: #8fbc8f;
    --accent-color: #7fb069;
    --text-primary: #3a3a3a;
    --text-secondary: #666666;
    --bg-light: #f5f5f0;
    --bg-white: #fefefe;
    --bg-natural: #f9f7f4;
    --beige-light: #e8e4dd;
    --beige-medium: #d4cfc4;
    --gradient-primary: linear-gradient(135deg, #6b8e5a 0%, #8fbc8f 100%);
    --gradient-secondary: linear-gradient(135deg, #8fbc8f 0%, #7fb069 100%);
    --gradient-accent: linear-gradient(135deg, #7fb069 0%, #9bb886 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-natural) 0%, var(--beige-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,80 Q30,60 40,80 Q50,60 60,80 Q70,60 80,80" stroke="%236b8e5a" stroke-width="2" fill="none" opacity="0.1"/><circle cx="25" cy="75" r="3" fill="%237fb069" opacity="0.2"/><circle cx="45" cy="75" r="2" fill="%238fbc8f" opacity="0.2"/><circle cx="65" cy="75" r="2.5" fill="%236b8e5a" opacity="0.2"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,90 Q20,70 30,90 Q40,70 50,90" stroke="%238fbc8f" stroke-width="1.5" fill="none" opacity="0.1"/><path d="M60,90 Q70,70 80,90 Q90,70 100,90" stroke="%237fb069" stroke-width="1.5" fill="none" opacity="0.1"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.2;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Knowledge Exploration Visualization */
.knowledge-exploration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.dig-visualization {
    position: relative;
    width: 320px;
    height: 350px;
}

.surface-layer,
.mid-layer,
.deep-layer {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.surface-layer {
    top: 0;
    height: 80px;
}

.mid-layer {
    top: 120px;
    height: 80px;
    padding: 0 40px;
}

.deep-layer {
    top: 240px;
    height: 80px;
    justify-content: center;
}

.knowledge-point {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    position: relative;
    animation: dig-pulse 3s infinite ease-in-out;
    box-shadow: 0 4px 15px rgba(107, 142, 90, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.knowledge-point.deeper {
    width: 55px;
    height: 55px;
    background: var(--gradient-secondary);
    animation: dig-pulse 3s infinite ease-in-out;
    animation-delay: 1s;
    box-shadow: 0 6px 20px rgba(143, 188, 143, 0.4);
}

.knowledge-point.deepest {
    width: 65px;
    height: 65px;
    background: var(--gradient-accent);
    animation: dig-pulse 3s infinite ease-in-out;
    animation-delay: 2s;
    box-shadow: 0 8px 25px rgba(127, 176, 105, 0.5);
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.line {
    position: absolute;
    background: linear-gradient(to bottom, rgba(107, 142, 90, 0.6), rgba(107, 142, 90, 0.2));
    width: 2px;
    border-radius: 1px;
    animation: line-glow 4s infinite ease-in-out;
}

.line-1 {
    left: 25%;
    top: 75px;
    height: 50px;
    animation-delay: 0.5s;
}

.line-2 {
    left: 50%;
    top: 75px;
    height: 50px;
    animation-delay: 1s;
}

.line-3 {
    left: 75%;
    top: 75px;
    height: 50px;
    animation-delay: 1.5s;
}

.line-4 {
    left: 35%;
    top: 195px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(143, 188, 143, 0.6), rgba(143, 188, 143, 0.2));
    animation-delay: 2s;
}

.line-5 {
    left: 65%;
    top: 195px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(143, 188, 143, 0.6), rgba(143, 188, 143, 0.2));
    animation-delay: 2.5s;
}

@keyframes dig-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    33% {
        transform: scale(1.1);
        opacity: 0.9;
    }
    66% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes line-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.1);
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--beige-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5,15 Q10,10 15,15" stroke="%237fb069" stroke-width="1" fill="none" opacity="0.3"/><circle cx="8" cy="13" r="1" fill="%236b8e5a" opacity="0.4"/><circle cx="12" cy="13" r="0.8" fill="%238fbc8f" opacity="0.4"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-brain,
.icon-data,
.icon-automation,
.icon-ml,
.icon-seminar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

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

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-natural);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

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

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

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: 1px solid var(--beige-light);
}

.tech-item:hover {
    transform: scale(1.05);
}



/* Contact Info Simple */
.contact-info-simple {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.contact-info-simple h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info-simple p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.contact-info-simple strong {
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--beige-light);
}

.contact-content {
    margin-top: 3rem;
}

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

.contact-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--beige-medium);
}

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

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-item small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--beige-light);
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--beige-medium), var(--secondary-color));
    opacity: 0.8;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 30px;
    width: 80px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 20"><path d="M5,15 Q15,8 25,15 Q35,8 40,15" stroke="%236b8e5a" stroke-width="1" fill="none" opacity="0.2"/><circle cx="10" cy="12" r="1" fill="%237fb069" opacity="0.3"/><circle cx="20" cy="12" r="0.8" fill="%238fbc8f" opacity="0.3"/><circle cx="30" cy="12" r="1.2" fill="%236b8e5a" opacity="0.3"/></svg>') no-repeat;
    background-size: contain;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--beige-medium);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-self: end;
    align-items: center;
}

.footer-links a {
    color: var(--beige-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--beige-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: var(--beige-medium);
}

/* Additional Natural Styling */
.sp-break {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sp-break {
        display: block;
    }
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-self: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.service-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--beige-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
