/* style.css */
:root {
    --primary-color: #4A90E2; /* A modern, friendly blue */
    --secondary-color: #50E3C2; /* A vibrant teal/mint */
    --accent-color: #F5A623; /* A warm orange for CTAs */
    --dark-text-color: #333;
    --light-text-color: #fff;
    --background-color: #f9fafb; /* Off-white background */
    --card-background: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(74, 144, 226, 0.2);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition-speed: 0.4s;
    --animation-duration: 0.8s;
    --nav-height: 80px;
}

/* Basic Reset & Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

header{
    display: flex; 
    align-items: center;
}
body {
    font-family: var(--font-primary);
    color: var(--dark-text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* vh = viewport height */
}

main {
    flex-grow: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
h2.section-title-align-left { /* For info sections */
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    text-align: left;
    margin-bottom: 1rem;
    color: var(--primary-color);
}


p.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #555;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius); /* Soften image edges */
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0; /* Removed padding to rely on nav height */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--nav-height);
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}
.company-logo-link { /* To make logo image clickable */
    display: flex; /* Ensures image inside is sized correctly */
    align-items: center;
}
.company-logo-img { /* Renamed from .company-logo img */
    height: 50px;
    margin-right: 10px;
    transition: transform var(--transition-speed) ease;
    border-radius: 50%; /* Circular logo */
}
.company-logo-img:hover {
    transform: rotate(-10deg) scale(1.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none; /* Ensure no underline if it's an <a> tag */
}
.logo:hover {
    color: var(--secondary-color);
}


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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-text-color);
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Position underline slightly below text */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { /* Style for active page link */
    width: 100%;
}
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}


/* CTA Button General Style */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color) !important; /* Ensure text is light */
    padding: 12px 28px;
    border-radius: 50px; /* Pill shape */
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    border: none; /* for button elements */
    cursor: pointer; /* for button elements */
    font-size: 1rem;
    text-align: center;
}

.cta-button:hover {
    background-color: #e09014; /* Darker accent */
    color: var(--light-text-color) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.5);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e0f7fa 0%, #e3f2fd 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem; /* Increased gap */
}

.hero-text {
    flex: 1;
    animation: slideInFromLeft var(--animation-duration) ease-out forwards;
}

.hero-text h1 {
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #444;
    max-width: 550px; /* Limit width for better readability */
}

.hero-images {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
}

.hero-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    animation: popIn var(--animation-duration) ease-out forwards;
    opacity: 0; /* Start hidden for animation */
}

.hero-image:nth-child(1) { animation-delay: 0.2s; }
.hero-image:nth-child(2) { animation-delay: 0.4s; transform: scale(0.8) translateY(20px); }
.hero-image:nth-child(3) { animation-delay: 0.6s; transform: scale(0.9) translateX(-15px); }
.hero-image:nth-child(4) { animation-delay: 0.8s; transform: scale(0.85) translate(10px, -10px); }

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.1) !important;
    box-shadow: var(--box-shadow-hover);
    z-index: 10;
}
.hero-image:hover img {
    transform: scale(1.05);
}


/* Section General Styling */
section {
    padding: 80px 0;
}

/* Kit Showcase */
.kit-showcase {
    background: #fff;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(50px);
}

.product-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
    border-radius: var(--border-radius) var(--border-radius) 0 0; /* Match card top radius */
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}

.product-action-button {
    width: 100%;
    padding: 14px 20px;
}

/* Info Sections (Engineering, Kids Kits, School Training) */
.info-section {
    padding: 60px 0; /* Slightly less padding for these sections */
}
.info-section:nth-of-type(even) { /* Alternate background for visual separation */
    background-color: #f4f7f9;
}

.info-section-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.info-text {
    flex: 1;
}
.info-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
}

.info-image {
    flex: 1;
    max-width: 500px; /* Control image size */
}
.info-image img {
    box-shadow: var(--box-shadow);
}

/* Alternate layout for info sections (image on left) */
.info-section.alt-layout .info-section-content {
    flex-direction: row-reverse;
}


/* How It Works Section */
.how-it-works {
    background: linear-gradient(135deg, #e0f7fa 0%, #e3f2fd 100%);
}
.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    flex: 1;
    max-width: 350px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.step.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.step:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--box-shadow-hover);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step p {
    font-size: 0.95rem;
    color: #555;
}


/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.cta-section .cta-button {
    background-color: var(--light-text-color);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cta-section .cta-button:hover {
    background-color: #f0f0f0;
    color: var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* Footer */
footer {
    background-color: #2c3e50; /* Dark footer */
    color: #bdc3c7; /* Light gray text */
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #ecf0f1;
    font-weight: 500;
}
.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    font-size: 0.9rem;
}
footer p { /* For email/phone */
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* All Kits Page Specific Styles */
.all-kits-page {
    padding-top: calc(var(--nav-height) + 40px); /* Space for fixed header */
    padding-bottom: 60px;
}
.all-kits-page .main-page-title { /* Main H1 on kits page */
    margin-top: 20px;
    margin-bottom: 1rem;
}
.all-kits-page .section-subtitle {
    margin-bottom: 4rem;
}


/* SEO Content - Visually Hidden */
.seo-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Animations */
@keyframes slideInFromLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

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

/* Reveal on Scroll - Base for JS interaction */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--animation-duration) ease-out, transform var(--animation-duration) ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for children of .reveal-on-scroll containers */
.reveal-on-scroll.is-visible .product-card,
.reveal-on-scroll.is-visible .step {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFadeIn var(--animation-duration) ease-out forwards;
}

.products-grid.is-visible .product-card:nth-child(1),
.all-kits-page .products-grid.is-visible .product-card:nth-child(1) { animation-delay: 0.1s; }
.products-grid.is-visible .product-card:nth-child(2),
.all-kits-page .products-grid.is-visible .product-card:nth-child(2) { animation-delay: 0.2s; }
.products-grid.is-visible .product-card:nth-child(3),
.all-kits-page .products-grid.is-visible .product-card:nth-child(3) { animation-delay: 0.3s; }
.all-kits-page .products-grid.is-visible .product-card:nth-child(4) { animation-delay: 0.4s; }
.all-kits-page .products-grid.is-visible .product-card:nth-child(5) { animation-delay: 0.5s; }


.steps-container.is-visible .step:nth-child(1) { animation-delay: 0.1s; }
.steps-container.is-visible .step:nth-child(2) { animation-delay: 0.3s; }
.steps-container.is-visible .step:nth-child(3) { animation-delay: 0.5s; }


/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        margin-bottom: 2rem;
    }
    .hero-text p {
        margin-left: auto; /* Center p tag in flex column */
        margin-right: auto;
    }
    .hero-images {
        max-width: 500px;
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .step {
        max-width: 450px;
    }
    .info-section-content,
    .info-section.alt-layout .info-section-content {
        flex-direction: column;
        text-align: center;
    }
    .info-section-content .info-text,
    .info-section-content .info-image {
        max-width: 100%; /* Allow full width in column */
    }
    .info-section.alt-layout .info-section-content .info-image {
        order: -1; /* Image first in alt layout on mobile */
    }
    .info-text .cta-button {
        margin: 0 auto 1rem; /* Center button */
    }
     h2.section-title-align-left {
        text-align: center; /* Center titles on smaller screens */
    }
}

@media (max-width: 768px) {
    .nav-links {
        /* Basic burger menu preparation (would need JS to toggle 'active') */
        /* display: none; */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--card-background);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%); /* Hide off-screen */
        transition: transform 0.3s ease-in-out;
        z-index: -1; /* Below header initially */
    }
     .nav-links.active { /* Class to be toggled by JS for burger menu */
        transform: translateY(0);
        display: flex; /* Show when active */
    }
    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block; /* Make link take full width of li */
        padding: 10px;
    }
    /* Add burger icon styling here if implemented */
    /* For now, links will be shown. Implement burger toggle if needed */
    .nav-links { display: flex; } /* Override for now to show links */


    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .hero-images {
        gap: 0.5rem;
    }
    .products-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .info-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-images {
        max-width: 300px;
    }
    .hero-image:nth-child(2),
    .hero-image:nth-child(4) {
        display: none;
    }
    .cta-section h2 {
        font-size: 1.6rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-text, .hero-image, .product-card, .step, .info-section {
    opacity: 1;
    transform: none;
  }
}
