@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette (Matched with Kurita System Logo) */
    --primary: #3a7bd5;
    --primary-light: #60a5fa;
    --secondary: #003366;
    --accent: #00d2ff;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #003366;
    --text-muted: #475569;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Styles */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Reusable Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans-normal);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Blob Shapes */
.blob {
    position: absolute;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0; /* Slightly tighter padding for larger logo */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links a:not(.btn) {
    color: #334155; /* Slightly darker slate */
    font-weight: 600;
}

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

/* Main Sections */
section {
    padding: var(--space-xl) 0;
}

/* Hero */
#hero {
    padding-top: 12rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-content h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: var(--space-sm);
}

.hero-image img {
    width: 100%;
    border-radius: 40px;
    /* Removed shadow to match abstract visual better */
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: var(--bg-surface);
    padding: var(--space-lg);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--trans-normal);
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--text-muted);
}

/* Tech Stack */
.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.tech-icons span {
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(99, 102, 241, 0.1);
}


/* AI Vision Video Wrapper (Used in Hero section) */
.vision-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    aspect-ratio: 16 / 9;
    background: var(--grad-primary);
}

.vision-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}


/* Contact Box */
.contact-box {
    background: white;
    padding: var(--space-xl);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-md);
}

input, textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--trans-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Footer */
footer {
    padding: var(--space-lg) 0;
    text-align: center;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}


/* Puzzle Styles */
.puzzle-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin: 0 auto;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

.puzzle-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    gap: 2px;
}

.puzzle-tile {
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-visual.webp');
    background-size: 300% 300%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px;
    position: relative;
}

.puzzle-tile:hover {
    filter: brightness(1.1);
    z-index: 10;
}

.puzzle-tile.empty {
    background: transparent !important;
    cursor: default;
}

.puzzle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 20;
}

.puzzle-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-message {
    text-align: center;
    color: white;
}

.success-message h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    section {
        padding: var(--space-lg) 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .nav-links {
        display: none; /* Simplification for now */
    }

    .about-flex {
        gap: var(--space-md);
    }

    .company-info {
        padding: var(--space-sm) !important;
    }

    .company-info table, 
    .company-info tr, 
    .company-info th, 
    .company-info td {
        display: block;
        width: 100%;
    }

    .company-info th {
        padding: 1rem 1rem 0 1rem !important;
    }

    .company-info td {
        padding: 0.5rem 1rem 1rem 1rem !important;
    }

    .contact-box {
        padding: var(--space-md);
        border-radius: 20px;
    }
}