/* ==========================================================================
   Base Styles based on Vanilla Template - https://preview.uideck.com/items/vanilla/
   ========================================================================== */

/* Reset and Defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: "Inter", sans-serif; /* Common modern font, fallback to sans-serif */
    font-size: 16px;
    line-height: 1.6;
    color: #5a6473; /* Default text color from template */
    background-color: #ffffff; /* White background */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", sans-serif;
    color: #090e34; /* Dark heading color from template */
    font-weight: 700; /* Bold headings */
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 2.5em; } /* Approx 40px */
h2 { font-size: 2em; }   /* Approx 32px */
h3 { font-size: 1.5em; } /* Approx 24px */

/* Links */
a {
    color: #4a6cf7; /* Primary blue color from template */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #2749c4; /* Darker blue on hover */
    text-decoration: underline;
}

/* Paragraphs */
p {
    margin-bottom: 1em;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle; /* Prevent bottom space */
}

/* ==========================================================================
   Layout: Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1170px; /* Common container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
header {
    padding: 20px 0;
    background-color: #fff; /* Ensure header background is white */
    border-bottom: 1px solid #eef0f2; /* Subtle border */
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 100; /* Ensure header stays on top */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
}

header .container {
    display: flex;
    justify-content: space-between; /* Space out logo/title and nav */
    align-items: center;
}

header h1 {
    font-size: 1.8em; /* Slightly smaller H1 for header */
    margin: 0; /* Remove default margin */
    color: #090e34; /* Dark heading color */
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Align nav items horizontally */
}

header nav ul li {
    margin-left: 25px; /* Space between nav items */
}

header nav ul li a {
    font-weight: 500;
    color: #090e34; /* Dark nav link color */
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a:focus,
header nav ul li a.active { /* Style for active link (optional JS needed) */
    color: #4a6cf7; /* Primary blue on hover/active */
    text-decoration: none;
}


/* ==========================================================================
   Main Content & Sections
   ========================================================================== */
main {
    padding-top: 40px; /* Add padding below sticky header */
    padding-bottom: 40px;
}

section {
    padding: 60px 0; /* Vertical padding for sections */
    /* border-bottom: 1px solid #eef0f2; */ /* Optional: separator */
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    text-align: center;
    margin-bottom: 40px; /* More space below section titles */
    font-size: 2.2em;
}

/* ==========================================================================
   About Us Section (#about)
   ========================================================================== */
#about {
    text-align: center; /* Center text content */
}

#about img {
    display: block;
    margin: 30px auto; /* Center image and add vertical space */
    border-radius: 8px; /* Slightly rounded corners for image */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Subtle shadow for image */
    max-width: 80%; /* Don't let image take full width */
}

#about p {
    max-width: 750px; /* Limit paragraph width for readability */
    margin-left: auto;
    margin-right: auto;
    color: #5a6473; /* Standard text color */
}

/* ==========================================================================
   Contact Us Section (#contact)
   ========================================================================== */
#contact {
    background-color: #f8f9ff; /* Light background for contact section */
}

#contact h2 {
    text-align: center;
}

#contact p {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

#contact form {
    max-width: 700px; /* Max width for the form */
    margin: 0 auto; /* Center the form */
    background-color: #fff; /* White background for form area */
    padding: 30px 40px; /* Padding inside form area */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

#contact form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #090e34; /* Dark label color */
}

#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #eef0f2; /* Light border */
    border-radius: 6px;
    font-size: 1em;
    color: #5a6473;
    transition: border-color 0.3s ease;
}

#contact form input[type="text"]:focus,
#contact form input[type="email"]:focus,
#contact form textarea:focus {
    border-color: #4a6cf7; /* Highlight border on focus */
    outline: none; /* Remove default outline */
}

#contact form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact form button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4a6cf7; /* Primary blue button */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 108, 247, 0.3); /* Subtle shadow for button */
}

#contact form button:hover,
#contact form button:focus {
    background-color: #2749c4; /* Darker blue on hover/focus */
    box-shadow: 0 6px 15px rgba(74, 108, 247, 0.4);
}

/* Center the button */
#contact form div:last-of-type {
    text-align: center;
}


/* ==========================================================================
   Footer Styles
   ========================================================================== */
footer {
    padding: 30px 0;
    background-color: #090e34; /* Dark footer background */
    color: rgba(255, 255, 255, 0.7); /* Light text color */
    text-align: center;
    margin-top: 40px; /* Space above footer */
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

footer a {
    color: rgba(255, 255, 255, 0.9); /* Slightly brighter link color */
    font-weight: 500;
}

footer a:hover,
footer a:focus {
    color: #fff; /* White on hover */
}

/* ==========================================================================
   Products Section (#products)
   ========================================================================== */
#products {
    background-color: #f5f7fa;
}

#products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 28px 20px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(74, 108, 247, 0.12);
}

.product-card img {
    width: 100%;
    max-width: 140px;
    height: auto;
    margin-bottom: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-card h3 {
    font-size: 1.25em;
    margin-bottom: 12px;
    color: #090e34;
    font-weight: 600;
}

.product-card p {
    color: #5a6473;
    font-size: 1em;
    margin-bottom: 0;
}

/* Flip Card Styles */
.flip-card {
    background: transparent;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    cursor: pointer;
    display: flex;
    align-items: stretch;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(.4,2,.6,1);
    transform-style: preserve-3d;
    min-height: 320px;
}
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    padding: 1.5rem;
}
.flip-card-back {
    transform: rotateY(180deg);
    background: #f7f7f7;
}
/* Ensure product-grid and cards are sized correctly (override if needed) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.product-card {
    box-shadow: none;
    border-radius: 0;
    background: none;
    padding: 0;
}

/* Responsive video for About section */
.about-video {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 600px) {
    .about-video {
        max-width: 100vw;
        width: 100vw;
        height: auto;
        min-width: 0;
        border-radius: 8px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        padding: 20px 10px;
    }
}
