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

body {
    font-family: 'Google Sans', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #000;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly less transparent */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem; /* Increased padding */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    display: flex; /* Flexbox for better layout */
    flex-direction: column;
    justify-content: space-between; /* Distribute space */
}

.product-card:hover {
    transform: translateY(-15px); /* More pronounced lift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

.product-card h2 {
    font-size: 2.2rem; /* Larger font size */
    margin-bottom: 1.2rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(45deg, #4285F4, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card p {
    color: rgba(255, 255, 255, 0.9); /* Brighter text */
    line-height: 1.8; /* Improved readability */
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Styling for feature lists */
.product-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1; /* Allow list to take available space */
}

.product-card ul li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.4;
}

.product-card ul li:last-child {
    margin-bottom: 0;
}

.product-card ul li::before {
    content: '✓'; /* Checkmark icon */
    color: #34a853; /* Google Green */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Button styling */
.product-card .button {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, #4285F4, #a0c3ff); /* Google Blue gradient */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.product-card .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4);
}

/* Light theme adjustments for product cards */
.light-theme .product-card {
    background: var(--card-bg); /* Use existing var */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Use existing shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .product-card h2 {
    background: linear-gradient(45deg, #174ea6, #0b8043); /* Darker gradient for light theme */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .product-card p,
.light-theme .product-card ul li {
    color: #2c2c2c !important; /* Dark text for light theme */
}

.light-theme .product-card ul li::before {
    color: #0b8043; /* Darker green checkmark */
}

.light-theme .product-card .button {
    background: linear-gradient(45deg, #174ea6, #4285F4); /* Darker blue gradient for light theme */
    color: #fff;
}

.light-theme .product-card .button:hover {
    box-shadow: 0 5px 15px rgba(23, 78, 166, 0.4);
}

/* Navbar styles */
.navbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4285F4;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff; /* Default for dark theme */
    margin: 4px 0;
    transition: 0.4s;
}

.light-theme .bar {
    background-color: #202124; /* Dark color for menu icon bars in light theme */
}

/* Theme Switching */
:root {
    --bg-color: #1a1a1a;
    --text-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.15);
    --navbar-bg: rgba(0, 0, 0, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-color: #4285F4;
}

/* Light theme */
body.light-theme {
    --bg-color: #f7f9fc;
    --text-color: #2c2c2c;
    --card-bg: #fff;
    --navbar-bg: rgba(255, 255, 255, 0.98);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --hover-color: #5c7cfa;
}

.light-theme .animated-background {
    opacity: 0.7;
}

.light-theme h1 {
    background: linear-gradient(45deg, #4285F4, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
}

.light-theme .navbar {
    background: var(--navbar-bg);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.light-theme .nav-logo,
.light-theme .nav-links li a {
    color: #202124;
}

.light-theme .product-card {
    background: var(--card-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.light-theme .product-card h2 {
    color: #202124;
}

/* Light theme: non-heading text in black for readability */
body.light-theme p,
body.light-theme ul,
body.light-theme ol,
body.light-theme li,
body.light-theme blockquote,
body.light-theme .about-intro,
body.light-theme .about-list,
body.light-theme .about-list li,
body.light-theme .about-quote,
body.light-theme .about-thanks,
body.light-theme .product-card p,
body.light-theme .product-card li {
    color: #111 !important;
}

body.light-theme blockquote {
    border-left: 4px solid #174ea6;
    background: none;
}

/* Main heading gradient for home page */
.main-heading {
    background: linear-gradient(45deg, #4285F4, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .main-heading {
    background: linear-gradient(90deg, #111 0%, #333 50%, #174ea6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Page Custom Styles */
.about-intro {
    font-size: 1.2em;
}
.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5em;
}
.about-list li {
    margin-bottom: 0.5em;
    font-size: 1.08em;
}
.about-quote {
    margin: 2em 0;
    padding: 1em;
    background: rgba(255,255,255,0.07);
    border-left: 5px solid #4285F4;
    border-radius: 8px;
    font-style: italic;
}
.about-thanks {
    text-align: center;
    font-size: 1.1em;
    margin-top: 1.5em;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin-left: 10px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.2);
}

.toggle-icon {
    display: block;
}

.light-theme .dark-icon {
    display: none;
}

.light-theme .light-icon {
    display: block;
}

.dark-icon {
    display: block;
}

.light-icon {
    display: none;
}

/* Contact Page Styles */
.contact-card {
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 2.5em 2em;
    max-width: 500px;
    margin: 2em auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}
.contact-info p {
    font-size: 1.1em;
    margin-bottom: 0.5em;
}
.contact-label {
    font-weight: bold;
    color: #4285F4;
    margin-right: 0.5em;
}
.contact-info a {
    color: #174ea6;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-info a:hover {
    color: #ea4335;
}
.contact-message {
    font-size: 1.05em;
    color: inherit;
}
.contact-message .contact-highlight {
    font-size: 1.1em;
    color: #4285F4;
    font-weight: bold;
}
body.light-theme .contact-card {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
body.light-theme .contact-info a {
    color: #0b8043;
}
body.light-theme .contact-info a:hover {
    color: #ea4335;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(0, 0, 0, 0.8); /* Default for dark theme */
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.5s ease-in-out;
    }

    .light-theme .nav-links {
        background: rgba(255, 255, 255, 0.95); /* Light background for mobile nav in light theme */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .menu-icon {
        display: flex;
    }

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

    .menu-icon.active .bar:nth-child(2) {
        opacity: 0;
    }

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