html {
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Poppins", 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    scroll-behavior: smooth;
    padding-top: 180px; /* creates space equal to header height */
    overflow-x: hidden;
    padding-top: 0 !important;
}

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

:root {
    --primary: #073a87;
    --secondary: #22b573;
    --accent: #fcb900;
    --text: #333;
}
/* ========== GLOBAL ========== */
:root {
    --primary: #073a87;
    --secondary: #1da980;
    --accent: #ffb400;
    --text: #333;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* === TOP BAR === */
.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    padding: 0.4rem 0;
}
.top-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.top-link {
    color: #fff;
    margin-right: 1.2rem;
    text-decoration: none;
}
.top-link:hover { color: var(--accent); }
.top-text { color: #eaeaea; }

/* === MIDDLE BAR === */
.middle-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.middle-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}
.logo h3 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
    width: 40%;
}
.search-form input {
    flex: 1;
    border: none;
    padding: 0.6rem 1rem;
    outline: none;
}
.search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
}

/* === ICONS === */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.icon {
    color: var(--primary);
    font-size: 1.2rem;
}
.icon:hover { color: var(--accent); }
.btn-login, .btn-register {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
}
.btn-login { color: var(--primary); }
.btn-register {
    background: var(--primary);
    color: #fff;
}

/* === NAV BAR === */
.nav-bar {
    background: var(--primary);
}
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-menu {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.8rem 0;
}
.nav-link {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Shopping Cart Icon */
.cart-icon {
    margin-left: auto;
    position: relative;
}

.cart-icon a {
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.cart-icon a:hover {
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #bc0d0d;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
}

/* === MOBILE HEADER === */
.mobile-menu-toggle,
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    .search-form {
        display: none;
    }

    .header-icons {
        display: none;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: block;
    }

    .middle-bar-container {
        justify-content: space-between;
    }

    /* Hide desktop navigation bar on mobile */
    .nav-bar {
        display: none;
    }

    .mobile-menu {
        display: none;
        background: var(--primary);
        padding: 1rem;
    }

    .mobile-menu.show {
        display: block;
    }

    .mobile-menu a {
        display: block;
        color: white;
        padding: 0.5rem 0;
        text-decoration: none;
    }
    .new-hero {
        margin-top: 0px; /* increase spacing slightly for mobile */
    }
}

/* === HERO SECTION === */
.new-hero {
    margin-top: 0px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.new-hero-bg {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(25,82,139,0.7), rgba(25,82,139,0.7)),
    url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&q=80') center/cover;
    z-index: -1;
}
.hero-content {
    max-width: 60rem;
    padding: 0 1rem;
}
.new-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.new-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.btn {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
}
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: hsl(159,64%,38%); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 1.5s infinite;
    color: #fff;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}




/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-700);
    max-width: 48rem;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Card Styles */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--neutral-700);
    margin-bottom: 1rem;
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
}

/* Solutions Section */
.bg-neutral-50 {
    background: var(--neutral-50);
}

/* Featured Products */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--secondary);
}

/* New Arrivals */
.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

/* Blog Section */
.blog-card .card-image {
    height: 10rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.blog-category {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

/* About Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--neutral-700);
}

/* Projects Section */
.bg-primary {
    background: var(--primary);
    color: white;
    position: relative;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.bg-primary > .container {
    position: relative;
    z-index: 1;
}

.project-badge {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Team Section */
.team-card .card-image {
    height: 16rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--neutral-500);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
}

/* Testimonials */
.testimonials-container {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.testimonial-carousel {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 1rem;
}

.testimonial-content {
    background: var(--neutral-50);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.testimonial-stars {
    display: flex;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-name {
    font-weight: bold;
    color: var(--primary);
}

.author-title {
    color: var(--neutral-600);
    font-size: 0.875rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--neutral-300);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
}

.carousel-prev {
    left: -1.5rem;
}

.carousel-next {
    right: -1.5rem;
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-logo {
    height: 4rem;
    width: 8rem;
    background: var(--neutral-200);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    space-y: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--neutral-700);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 6rem;
    resize: vertical;
}

/* ========================
FOOTER STYLING (Updated)
======================== */
.footer {
    background: var(--foreground);
    color: white;
    padding: 4rem 0 2rem;
    font-family: inherit;
}

/* ---------- Row 1 ---------- */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-left {
    flex: 1 1 350px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-about {
    color: hsl(0, 0%, 80%);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    color: var(--neutral-800);
}

.newsletter-btn {
    background: var(--secondary);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background: hsl(159, 64%, 38%);
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1 1 250px;
    align-items: flex-start;
}

.social-media h3,
.app-download h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a img {
    width: 28px;
    height: 28px;
    transition: opacity 0.3s ease;
}

.social-links a:hover img {
    opacity: 0.8;
}

.app-icons {
    display: flex;
    gap: 1rem;
}

.app-icons img {
    height: 42px;
    width: auto;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.app-icons img:hover {
    transform: scale(1.05);
}

/* ---------- Divider Lines ---------- */
.footer-divider {
    border: 0;
    border-top: 1px solid hsl(0, 0%, 30%);
    margin: 2rem 0;
}

/* ---------- Row 2 ---------- */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.75rem;
    color: hsl(0, 0%, 80%);
}

.footer-col a {
    color: hsl(0, 0%, 80%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

/* ---------- Row 3 ---------- */
.footer-bottom {
    border-top: 1px solid hsl(0, 0%, 30%);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-bottom p {
    color: hsl(0, 0%, 70%);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: hsl(0, 0%, 70%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .app-icons img {
        height: 36px;
    }
}

.new-hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.new-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background:
        linear-gradient(rgba(25,82,139,0.7), rgba(25,82,139,0.7)),
        url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&q=80&w=2000')
        center/cover no-repeat;

    z-index: 0;
}

.new-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    padding: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    font-size: 2rem;
    color: #fff;
    z-index: 2;
    text-decoration: none;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-delayed {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5 {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .carousel-nav {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (min-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== ENSURE MOBILE ELEMENTS HIDDEN ON DESKTOP ===== */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: none !important;
    }
}


/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.space-x-4 > * + * { margin-left: 1rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none; }
