/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header styles */
header {
    background: white;
    color: #2c3e50;
    padding: 1.5rem 0 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    transition: height 0.3s;
    cursor: pointer;
}

.logo img:hover {
    opacity: 0.85;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.1rem;
}

.logo .tagline {
    font-size: 1.15rem;
    color: #3498db;
    font-weight: 600;
    margin-top: 0.1rem;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    line-height: 1.1;
}

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

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

/* Hero section */
main > .hero, main > section.hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 0 3rem 0;
    margin: 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: #3498db;
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(52,152,219,0.10);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: #217dbb;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

.btn-white {
    background: #fff;
    color: #3498db;
    border: 2px solid #3498db;
    font-weight: 700;
    transition: background 0.3s, color 0.3s, border 0.3s, transform 0.2s;
}

.btn-white:hover {
    background: #3498db;
    color: #fff;
    border: 2px solid #217dbb;
    transform: translateY(-2px) scale(1.05);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

/* Main content */
main {
    padding: 0;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

.section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #34495e;
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.product-card:nth-child(2) { border-top-color: #e67e22; }
.product-card:nth-child(3) { border-top-color: #27ae60; }
.product-card:nth-child(4) { border-top-color: #e74c3c; }

.product-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top-color: #2980b9;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .content {
    padding: 1.5rem;
}

.product-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.product-card ul {
    list-style: none;
    margin-top: 1rem;
}

.product-card li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.product-card li:last-child {
    border-bottom: none;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row > .form-group {
    width: 100%;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn:hover {
    color: #3498db;
}

/* Responsive design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 4000;
    }
    nav {
        position: relative;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100vw;
        width: 60vw;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 16px rgba(44,62,80,0.08);
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
        gap: 1.5rem;
        z-index: 3500;
        opacity: 0;
        transition: right 0.3s, opacity 0.3s;
    }
    .nav-links.active {
        right: 0;
        opacity: 1;
    }
    .logo {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .logo img {
        height: 60px;
    }
    .logo h1, .logo .tagline {
        display: none;
    }
    .contact-form {
        margin: 0 1rem;
    }
    /* Home/Services CTA buttons on mobile */
    .home-cta .btn, .section .btn {
        display: block;
        width: 100%;
        margin: 1rem auto 0 auto;
        max-width: 320px;
    }
    .home-cta .btn + .btn, .section .btn + .btn {
        margin-top: 1.2rem;
    }
}

/* Client portal button */
.client-portal {
    background: #e74c3c !important;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    margin-left: 1rem;
}
.client-portal:hover {
    background: #c0392b !important;
    color: #fff !important;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/error messages */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Accent button */
.btn-accent {
    background: #e74c3c;
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(231,76,60,0.15);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-accent:hover {
    background: #c0392b;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

/* Customer logos carousel */
.customer-logos-scroll {
    overflow: hidden;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 2rem 0;
    padding: 1rem 0;
}
.logos-track {
    display: flex;
    align-items: center;
    animation: scroll-logos 30s linear infinite;
    gap: 2rem;
}
.customer-logos-scroll img {
    height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.customer-logos-scroll img:hover {
    opacity: 1;
}
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* iPhone-style product sections */
.product-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 4rem 0;
    padding: 3rem 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.07);
}
.product-section.reverse {
    flex-direction: row-reverse;
}
.product-section .product-image {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-section .product-image img {
    max-width: 350px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
}
.product-section .product-details {
    flex: 2 1 400px;
    padding: 0 2rem;
}
.product-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}
.product-section ul.product-features {
    margin: 1.5rem 0 1rem 0;
    padding-left: 0;
    color: #34495e;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.product-section ul.product-features li {
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
    background: none;
}
.product-section ul.product-features li:before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #3498db;
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1.2rem;
}
.product-section .product-desc {
    margin-top: 1.2rem;
    color: #555;
    font-size: 1.08rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
}
.product-section .btn {
    margin-top: 1.5rem;
}
@media (max-width: 900px) {
    .product-section, .product-section.reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }
    .product-section .product-image img {
        max-width: 100%;
    }
    .product-section .product-details {
        padding: 0 1rem;
    }
}

/* CTA block at bottom */
.home-cta {
    margin: 3rem 0 0 0;
    padding: 3rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}
.home-cta h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.home-cta p {
    color: #34495e;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}
@media (max-width: 600px) {
    .home-cta {
        padding: 1.5rem;
    }
}

/* Slide-in mobile menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: none;
    z-index: 3000;
    transition: opacity 0.3s;
    pointer-events: none;
}
.mobile-menu-overlay.active {
    display: block;
    pointer-events: none;
}
.nav-links {
    transition: right 0.3s, opacity 0.3s;
    z-index: 3501;
}

/* Contact page mobile stacking */
@media (max-width: 900px) {
    .contact-mobile-stack {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .contact-mobile-stack > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-form {
        margin: 0 auto;
    }
}

/* Footer quick links vertical list */
.footer-section.quick-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-section.quick-links a {
    display: block;
    margin-bottom: 0.5rem;
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
    padding-left: 0;
}
.footer-section.quick-links a:hover {
    color: #3498db;
}

/* Service features (blue check bullets) */
.service-features {
    margin: 1.5rem 0 1rem 0;
    padding-left: 0;
    color: #34495e;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-features li {
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
    background: none;
}
.service-features li:before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #3498db;
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1.2rem;
}

/* Contact page layout */
.contact-row {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
}
.contact-faq-row .services-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: nowrap;
}
.service-card {
    min-width: 260px;
    flex: 1 1 0;
}
@media (max-width: 900px) {
    .contact-row {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .contact-faq-row .services-grid {
        flex-direction: column;
        gap: 2rem;
        flex-wrap: wrap;
    }
    .service-card {
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* Contact page layout */
.contact-mobile-stack {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
}
.contact-col-left {
    flex: 1 1 350px;
    min-width: 320px;
    max-width: 500px;
}
.contact-col-right {
    flex: 1 1 350px;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-faq {
    margin-top: 2.5rem;
}
@media (max-width: 900px) {
    .contact-mobile-stack {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .contact-col-left, .contact-col-right {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-form {
        margin: 0 auto;
    }
    .contact-faq {
        margin-top: 2rem;
    }
}

/* Mobile menu overlay fix: remove background and pointer-events */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: none;
    z-index: 3000;
    transition: opacity 0.3s;
    pointer-events: none;
}
.mobile-menu-overlay.active {
    display: block;
    pointer-events: none;
}
.nav-links {
    transition: right 0.3s, opacity 0.3s;
    z-index: 3501;
} 