/* Global Resets & Base Styles */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scrollbar */
    /* overflow-y: hidden; */ /* Removed as ScrollSmoother is gone */
    background: linear-gradient(deeppink, blue, aquamarine, limegreen, yellow, orange, red, deeppink); /* Rainbow gradient */
    background-size: 100% 700vh; /* Very tall gradient */
    background-repeat: no-repeat;
    background-position: 0% 0%; /* Initial position */
}

/* ScrollSmoother Structure - REMOVED */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #1a202c; /* Darker text for headings */
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1em;
}

a {
    color: #007bff; /* Primary brand color for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* TEMPORARY FOR DEBUGGING RAINBOW */
.bg-white { background-color: rgba(255, 255, 255, 0.8) !important; } 
.bg-light { background-color: rgba(248, 249, 250, 0.8) !important; } 
/* .bg-dark should remain opaque for the footer */
.bg-dark { background-color: #212529; color: #f8f9fa; } /* Footer background */

.section-title {
    text-align: center;
    margin-bottom: 1em;
    font-weight: 700;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5em;
    color: #555;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff; /* Primary CTA color */
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d; /* Secondary CTA color */
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
    text-decoration: none;
    transform: translateY(-2px);
}

/* App Store Buttons */
.app-store-buttons {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-right: 10px;
}

.app-store-link {
    display: inline-block;
    height: 48px;
}

.app-store-image {
    height: 48px;
    width: auto;
    display: block;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

/* Margins & Padding (example utilities) */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Navigation */
#navbar {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}
.nav-logo:hover {
    text-decoration: none;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2.2rem; /* Increase gap for more spacing between links */
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    font-size: 1.08rem;
    font-weight: 500;
    color: #333;
    transition: color 0.2s;
    padding: 0.25rem 0.5rem;
}

.nav-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Hero Section */
#hero {
    /* background-color: #e9ecef; */ /* Old background */
    background-color: #000000; /* New black background */
    /* background-image: url('../images/hero-background-placeholder.jpg'); */
    background-size: cover;
    background-position: center;
    color: #fff; /* Text color to white for contrast */
    padding: 1rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Ensure it's layered correctly if needed */
    z-index: 1; /* Above the #smooth-content's direct background if it peeks through */
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 0.5em;
    color: #fff; /* Ensure hero title is white */
}

.newhero-title {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 0.5em;
    color: #000000; /* Ensure hero title is white */
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Ensure hero description is light grey/white */
}

.newhero-description {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #000000; /* Ensure hero description is light grey/white */
}

/* Responsive hero section for blog */
#hero .container > div {
  flex-wrap: nowrap;
}
#hero .hero-img {
  max-width: 80px;
  height: auto;
  transition: max-width 0.2s;
}
#hero .hero-title {
  font-size: 2.8rem;
  white-space: nowrap;
  transition: font-size 0.2s;
}
@media (max-width: 600px) {
  #hero .hero-img {
    max-width: 54px;
  }
  #hero .hero-title {
    font-size: 1.7rem;
  }
  #hero .container > div {
    gap: 0.5rem;
  }
}
@media (max-width: 400px) {
  #hero .hero-img {
    max-width: 40px;
  }
  #hero .hero-title {
    font-size: 1.25rem;
  }
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative; 
    z-index: 1; 
    /* Ensure section backgrounds cover the body's rainbow gradient */
}

/* Card & Grid System */
.bca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.bca-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bca-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 3rem;
    color: #007bff; /* Primary brand color */
    margin-bottom: 0.75rem;
}

.bca-card h3 {
    margin-bottom: 0.5em;
    font-size: 1.4rem;
}

.bca-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Product Showcase Section */
#telefoto-ai .product-showcase {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.product-logo {
    max-width: 250px; /* Adjust as needed */
    flex-shrink: 0;
    border-radius: 8px;
}

.product-details h3 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 0.75rem;
}

.product-details p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.product-details ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.product-details ul li i {
    color: #28a745; /* Success green for checkmarks */
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-form {
    max-width: 700px; /* Increased width for a more spacious form */
    margin: 2rem auto 0;
    padding: 2.5rem; /* Increased padding */
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Slightly enhanced shadow */
}

.form-group {
    margin-bottom: 1.5rem; /* Increased spacing between form groups */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px; /* Increased padding for inputs */
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%; /* Make button full width */
    padding: 15px; /* Larger padding for button */
    font-size: 1.1rem; /* Slightly larger font for button */
    font-weight: 600;
}

.contact-form p {
    text-align: center;
}

/* Footer */
#footer {
    padding: 2.5rem 0;
    text-align: center;
    position: relative; 
    z-index: 1;
    /* Ensure footer background covers the body's rainbow gradient */
}

#footer p {
    margin-bottom: 0.5em;
    font-size: 0.9rem;
}

#footer a {
    color: #adb5bd;
}

#footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Separator */
.blog-separator {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #007bff 0%, #00e0ff 100%);
  margin: 3.5rem 0 3.5rem 0;
  border-radius: 2px;
  opacity: 0.15;
  position: relative;
  overflow: hidden;
}
.blog-separator.animated {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .hero-description { font-size: 1.1rem; }
    .newhero-title { font-size: 2.5rem; }
    .newhero-description { font-size: 1.1rem; }
    #telefoto-ai .product-showcase {
        flex-direction: column;
        text-align: center;
    }
    .product-logo {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    #navbar .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-cta {
        margin-top: 0.5rem;
    }
    .nav-links {
        justify-content: center;
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
    #hero {
        padding: 4rem 0;
        min-height: auto;
    }
    .hero-title { font-size: 2.2rem; }
    .newhero-title { font-size: 2.2rem; }

    .bca-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    body { font-size: 15px; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    .newhero-title { font-size: 2rem; }
    .newhero-description { font-size: 1rem; }    
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .hero-cta { padding: 12px 25px; }
    .section-title { font-size: 1.9rem; }
    .section-subtitle { font-size: 1rem; }
    .product-details a.btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    .product-details a.btn:last-child {
        margin-bottom: 0;
    }
    .product-details ul {
        padding-left: 1.5em;
        word-break: break-word;
    }
    .product-details ul li {
        align-items: flex-start;
        line-height: 1.4;
    }
    .product-details ul li i {
        margin-top: 0.2em;
    }
}

/* GSAP Initial States (for fade-up animations) */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}
