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

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1d1d1f; /* Darker grey for headings */
}

h1 { font-size: 3rem; } /* 48px */
h2 { font-size: 2.25rem; } /* 36px */
h3 { font-size: 1.75rem; } /* 28px */
h4 { font-size: 1.25rem; } /* 20px */
p { margin-bottom: 1rem; color: #555; }
a { color: #1772cf; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #0e4781; text-decoration: underline; }
strong { font-weight: 700; }

/* Buttons */
.btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 0.7rem 1.5rem; /* Adjusted padding */
    font-size: 0.95rem;    /* Adjusted font size */
    line-height: 1.5;
    border-radius: 50px; /* Rounded buttons */
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    color: #ffffff;
    background-color: #1772cf;
    border-color: #1772cf;
}
.btn-primary:hover {
    background-color: #0e4781;
    border-color: #0e4781;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    color: #1772cf;
    background-color: #ffffff;
    border-color: #1772cf;
}
.btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #0e4781;
    color: #0e4781;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header & Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Fixed height */
    transition: height 0.3s ease;
}

.site-header.scrolled .navbar {
    height: 60px;
}

.navbar-brand img {
    height: 40px; /* Adjust as needed */
    width: auto;
    transition: height 0.3s ease;
}
.site-header.scrolled .navbar-brand img {
    height: 35px;
}

.navbar-buttons {
    display: flex;
    gap: 0.75rem; /* Adjusted gap */
}

.navbar-toggler {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    height: 24px;
    width: 30px;
    position: relative;
    z-index: 1001; /* Ensure toggler is above collapsed menu */
}

.navbar-toggler span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #1772cf;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.navbar-toggler span:nth-child(1) { top: 0px; }
.navbar-toggler span:nth-child(2) { top: 9px; }
.navbar-toggler span:nth-child(3) { top: 18px; }

.navbar-toggler.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}
.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.navbar-toggler.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    text-align: center;
    padding: 100px 1rem 0 1rem; /* Adjusted padding: top for header offset, no bottom */
    height: 100vh; /* Force full viewport height */
    /* min-height: unset; Remove or unset min-height */
    display: flex;
    align-items: center; /* Vertically center flex items (the container) */
    justify-content: center; /* Horizontally center flex items */
    /* margin-top: 70px; Removed margin-top */
    box-sizing: border-box; /* Include padding in height calculation */
}
.hero-simple { /* Keep simple hero adjustments */
    min-height: 40vh;
    height: auto; /* Override 100vh for simple hero */
    padding: 8rem 1rem 5rem 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 114, 207, 0.6); /* Adjusted blue overlay alpha */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 850px; /* Slightly wider */
    /* Container itself doesn't need padding if hero handles spacing */
}

.hero h1 {
    font-size: 3.8rem; /* Larger headline */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3); /* Enhanced text shadow */
}

.hero p {
    font-size: 1.3rem; /* Slightly larger subheadline */
    margin-bottom: 2.5rem; /* Increased margin */
    color: #ffffff;
    opacity: 0.95; /* Slightly less transparent */
}

.hero-buttons {
    margin-top: 1.5rem;
}
.hero-buttons .btn {
    margin: 0.5rem;
}

/* Intro Points Section */
.intro-points {
    padding: 4rem 0;
    background-color: #f8f9fa; /* Light background */
}
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.point-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover */
}
.point-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.point-item p {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.05rem;
}
.point-item p:last-child {
    margin-bottom: 0;
}
.point-item strong {
    color: #1772cf;
}

/* Features Section */
.features {
    padding: 5rem 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}
.feature-item-reverse {
    flex-direction: row-reverse;
}
.feature-image, .feature-text {
    flex: 1;
}
.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 450px;
}
.feature-tag {
    display: inline-block;
    background-color: #e8f1fc; /* Lighter blue */
    color: #1772cf;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.feature-tag .icon {
    margin-right: 0.3rem;
}
.feature-text h2 {
    margin-bottom: 1rem;
    color: #1d1d1f;
}
.feature-text p {
    color: #555;
}
/* Color for strong elements in features */
.feature-text strong {
    color: #1772cf;
}


/* CTA Bar */
.cta-bar {
    padding: 3rem 0;
    background-color: #1772cf; /* Primary blue */
    text-align: center;
}
.cta-bar .btn {
    margin: 0.5rem;
}
.cta-bar .btn-secondary { /* Adjust secondary button for contrast */
    background-color: #fff;
    color: #1772cf;
    border-color: #fff;
}
.cta-bar .btn-secondary:hover {
    background-color: #f0f0f0;
    color: #0e4781;
    border-color: #f0f0f0;
}

/* Separator Image */
.separator-image {
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
}
.separator-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 114, 207, 0.45); /* Slightly adjusted overlay */
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: #f8f9fa;
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns by default */
    gap: 2rem;
}
.testimonial-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}
.author-name {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: #1d1d1f;
}
.author-title {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}
.testimonial-text {
    font-style: italic;
    color: #555;
    border-left: 3px solid #1772cf;
    padding-left: 1rem;
    margin: 0; /* Reset blockquote margin */
    flex-grow: 1;
}

/* Team Section */
.team {
    padding: 5rem 0;
}
.team h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}
.team-member-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.team-member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid #e8f1fc;
}
.member-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #1772cf;
}
.member-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}
.social-links {
    display: flex; /* Use flexbox for centering icons */
    justify-content: center; /* Center links horizontally */
    gap: 0.75rem; /* Space between icons */
}
.social-links a {
    display: flex; /* Changed to flex */
    align-items: center; /* Vertically center SVG */
    justify-content: center; /* Horizontally center SVG */
    margin: 0; /* Reset margin if any */
    color: #1772cf;
    text-decoration: none;
    border: 1px solid #1772cf;
    width: 32px; /* Slightly larger */
    height: 32px; /* Slightly larger */
    line-height: 1; /* Remove line-height */
    border-radius: 50%;
    transition: all 0.3s ease;
}
.social-links a svg {
    width: 16px; /* Control SVG size */
    height: 16px; /* Control SVG size */
    fill: currentColor; /* Inherit color from anchor */
    transition: fill 0.3s ease; /* Smooth color transition */
}

.social-links a:hover {
    background-color: #1772cf;
    color: #fff; /* Anchor color changes */
    text-decoration: none;
    border-color: #1772cf;
}
/* No need for separate hover fill rule for SVG, currentColor handles it */


/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: #1772cf; /* Primary blue */
}
.faq-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: flex-start;
}
.faq-title-col h2 {
    color: #ffffff;
}
.faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden; /* Needed for smooth transition */
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #1d1d1f;
    list-style: none; /* Remove default marker */
}
.faq-question::-webkit-details-marker { display: none; } /* Hide Safari marker */
.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    position: relative;
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #1772cf;
    transition: transform 0.3s ease;
}
.faq-icon::before { /* Vertical line */
    width: 2px;
    height: 100%;
    left: calc(50% - 1px);
    top: 0;
}
.faq-icon::after { /* Horizontal line */
    width: 100%;
    height: 2px;
    left: 0;
    top: calc(50% - 1px);
}
details[open] > summary .faq-icon::before {
    transform: rotate(90deg);
}
details[open] > summary .faq-icon::after {
    transform: scaleX(0);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #555;
    border-top: 1px solid #eee;
    margin-top: -1px; /* Overlap border */
    /* Animation for details content */
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out;
}
details[open] > .faq-answer {
    max-height: 500px; /* Adjust if needed for long content */
}
.faq-answer p {
    margin-bottom: 0;
    padding-top: 1rem; /* Add some space after border */
}

/* About Nicetronic Section */
.about-nicetronic {
    padding: 4rem 0;
    background-color: #f8f9fa;
}
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-image {
    flex-basis: 30%;
    max-width: 250px; /* Limit logo size */
}
.about-image img {
    width: 100%;
    height: auto;
}
.about-text {
    flex-basis: 70%;
}
.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background-color: #1772cf; /* Primary blue */
    color: #ffffff;
    padding: 4rem 0 2rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3, .footer-col h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-col h3 { font-size: 1.5rem; }
.footer-col h4 { font-size: 1.1rem; opacity: 0.8; }
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #e8f1fc; /* Lighter blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.footer-copy {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #e8f1fc; /* Changed color for better visibility */
    /* Removed opacity: 0.7; */
}


/* Iframe Container */
.iframe-container {
    padding: 3rem 0;
}
.iframe-container iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border: 1px solid #eee; /* Optional border */
    border-radius: 8px; /* Optional rounding */
}

/* Error Page */
.error-content {
    padding: 5rem 1rem;
    text-align: center;
}
.error-content img {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 12px;
}
.error-content h2 {
    margin-bottom: 1rem;
}
.error-content p {
    margin-bottom: 2rem;
    color: #555;
}

/* Scroll Animation Styles */
.feature-item,
.faq-item,
.about-nicetronic,
.error-content,
.point-item, /* Target items directly for animation */
.testimonial-card,
.team-member-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform; /* Optimize animation */
}

.feature-item.visible,
.faq-item.visible,
.about-nicetronic.visible,
.error-content.visible,
.point-item.visible,
.testimonial-card.visible,
.team-member-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Example staggered delay (apply .visible class with JS delay or use nth-child in CSS if needed) */
/*
.testimonial-card.visible:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card.visible:nth-child(3) { transition-delay: 0.2s; }
.testimonial-card.visible:nth-child(4) { transition-delay: 0.3s; }
*/


/* Responsive Adjustments */
@media (max-width: 991px) {
    h1 { font-size: 2.8rem; } /* Adjusted for hero */
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero {
        padding-top: 90px; /* Adjust top padding for smaller header */
    }
    .hero h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.2rem; }

    .navbar-toggler {
        display: block; /* Show toggler */
    }
    .navbar-collapse {
        display: none; /* Hide menu by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98); /* Slightly transparent bg */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    .navbar-collapse.active {
        display: flex; /* Show menu when active */
    }
    .navbar-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem; /* Consistent gap */
        margin-top: 1rem;
    }
    .navbar-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem; /* Slightly larger padding for mobile tap */
    }

    .feature-item,
    .feature-item-reverse {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem; /* Reduced gap */
    }
     .feature-item-reverse .feature-image {
         order: -1; /* Move image above text on mobile for reverse items */
     }
    .feature-image img {
        max-height: 300px;
        margin-bottom: 1.5rem;
    }

    .faq-container {
        grid-template-columns: 1fr; /* Stack FAQ columns */
    }
    .faq-title-col { text-align: center; }
    .faq-title-col h2 { margin-bottom: 2rem; }

    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        margin-bottom: 1.5rem;
        max-width: 200px;
    }

    /* Testimonials Grid on medium screens (still 2 columns might fit) */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Allow flexibility */
    }
}

@media (max-width: 767px) {
    html { font-size: 15px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }

    .hero {
         padding-top: 80px; /* Further adjust top padding for mobile */
         height: auto; /* Let content dictate height on smallest screens */
         min-height: 80vh; /* Ensure it's still tall */
    }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }

    .site-header, .site-header.scrolled { padding: 0.1rem 0; }
    .navbar, .site-header.scrolled .navbar { height: 60px; }
    .navbar-brand img, .site-header.scrolled .navbar-brand img { height: 30px; }
    /* No need for .hero margin-top adjustment now */

    .points-grid, .testimonials-grid, .team-grid, .footer-grid {
        grid-template-columns: 1fr; /* Single column */
    }
    .footer-col { text-align: center; }
    .footer-links ul { text-align: center; }
}