@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f7f9ff;
    color: #1a1a1a;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(247, 249, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.nav-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0px;
    cursor: pointer;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
    color: #4285f4;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, #ffffff 0%, #f0f2ff 70%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
    z-index: 2;
}

.hero .logo-display {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    opacity: 0.9;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero .logo-display:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #4285f4, #7b68ee, #9c88ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero p {
    font-size: 24px;
    color: #4a4a4a;
    margin-bottom: 48px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(66, 133, 244, 0.4);
}

/* Floating Neural Network Elements */
.neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.neural-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4285f4, transparent);
    animation: flow 4s linear infinite;
}

/* Section Styling */
.section {
    padding: 120px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 20px;
    color: #4a4a4a;
    margin-bottom: 80px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Products Section */
.products {
    background: #ffffff;
}

.products-showcase {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.product-link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    padding: 20px;
}

.product-link-container:hover {
    transform: scale(1.15) translateY(-10px);
}

.kinderstories-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-bottom: 24px;
    border-radius: 50%;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-link-container:hover .kinderstories-logo {
    transform: rotate(5deg) scale(1.1);
    filter: brightness(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-title {
    font-family: 'Chewy', cursive;
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    transition: all 0.3s ease;
    margin: 0;
}

.product-link-container:hover .product-title {
    transform: scale(1.05);
    color: #000000;
}

/* About Section */
.about {
    background: #f0f2ff;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-top: 80px;
}

.about-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 32px;
    transition: all 0.3s ease;
    border: 1px solid #e0e4ff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.08);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: #4285f4;
    box-shadow: 0 20px 40px rgba(66, 133, 244, 0.15);
}

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

.about-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    border-radius: 16px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.about-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

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

.about-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.about-card p {
    color: #4a4a4a;
    line-height: 1.6;
}

/* Team Page Specific Styles */
.team-page {
    padding-top: 120px;
    background: #f7f9ff;
    min-height: 100vh;
}

.team-hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
    margin-top: 80px;
}

.team-member {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 32px;
    transition: all 0.3s ease;
    border: 1px solid #e0e4ff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    border-color: #4285f4;
    box-shadow: 0 20px 40px rgba(66, 133, 244, 0.15);
}

.team-member:hover::before {
    opacity: 1;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: 600;
}

.team-member h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.team-role {
    color: #4285f4;
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 18px;
}

.team-description {
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
    flex-grow: 1;
}

.team-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-description li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.team-description li::before {
    content: '•';
    color: #4285f4;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
}

/* Team Photo Styling */
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-avatar:hover .team-photo {
    transform: scale(1.05);
}

/* Careers Page Styles */
.careers-page {
    padding-top: 120px;
    background: #f7f9ff;
    min-height: 100vh;
}

.careers-hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 100%);
}

.careers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 80px;
}

.careers-info {
    text-align: left;
}

.careers-info h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.careers-info p {
    color: #4a4a4a;
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.6;
}

.careers-benefits {
    margin-top: 48px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.benefit-text {
    color: #1a1a1a;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    border: 1px solid #e0e4ff;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.08);
}

.contact-form h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1a1a1a;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    background: #f8f9ff;
    border: 1px solid #e0e4ff;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
    background: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, #4285f4, #7b68ee);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.4);
}

/* Technology Section */
.technology {
    background: #f0f2ff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.tech-item {
    background: #ffffff;
    border: 1px solid #e0e4ff;
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.05);
}

.tech-item:hover {
    background: #f8f9ff;
    border-color: #4285f4;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.1);
}

.tech-item h4 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tech-item p {
    color: #4a4a4a;
    font-size: 14px;
}

/* Contact Section */
.contact {
    background: #ffffff;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.contact-item {
    background: #f8f9ff;
    border: 1px solid #e0e4ff;
    border-radius: 16px;
    padding: 24px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f0f2ff;
    border-color: #4285f4;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.1);
}

.contact-item h4 {
    color: #4285f4;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-item p {
    color: #1a1a1a;
    font-size: 14px;
    margin: 0;
}

/* Footer */
.footer {
    background: #f0f2ff;
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid #e0e4ff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer p {
    color: #4a4a4a;
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: #4285f4;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes flow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-30px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(247, 249, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        text-align: center;
        border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section h2 {
        font-size: 32px;
    }
    
    .about-content, .team-grid, .tech-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .careers-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .hero .logo-display {
        width: 80px;
        height: 80px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .product-link-container {
        padding: 16px;
    }

    .kinderstories-logo {
        width: 80px;
        height: 80px;
        padding: 8px;
    }

    .product-title {
        font-size: 24px;
    }
}

/* Scroll Effects */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Image Styling */
.logo-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* LinkedIn Logo Styling - Long Logo Version */
.linkedin-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    background: #0077b5;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
    padding: 8px 16px;
}

.linkedin-link:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-logo {
    width: 100px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
