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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    background: #2c3e50;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 60px;
    width: auto;
}

.nav-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    flex: 1;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #74a8d4;
}

.nav-cta {
    background: #74a8d4;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: #5b8db8;
    color: white !important;
}

.nav-phone {
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   STICKY CTA BUTTON
   ============================================ */

.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-cta .btn {
    box-shadow: 0 5px 20px rgba(116, 168, 212, 0.4);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 8rem 5% 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg, 
            transparent, 
            transparent 35px, 
            rgba(255,255,255,.03) 35px, 
            rgba(255,255,255,.03) 70px
        );
    /* The pattern repeats every 70px, so we translate exactly 70px for seamless loop */
    animation: slide 20s linear infinite;
    /* Extend the background beyond viewport to prevent edge visibility */
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    top: -50px;
    left: -50px;
}

@keyframes slide {
    0% { 
        transform: translate(0, 0); 
    }
    100% { 
        /* Move diagonally to match the 45deg angle - this ensures seamless loop */
        transform: translate(49.5px, 49.5px); 
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-trust {
    margin-top: 3rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.9;
}

.trust-badges span {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #74a8d4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
}

.btn:hover {
    background: #5b8db8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 168, 212, 0.3);
}

.btn:focus {
    outline: 3px solid #74a8d4;
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #2c3e50;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* ============================================
   SERVICES
   ============================================ */

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

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

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

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-learn-more {
    color: #74a8d4;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.service-learn-more:hover {
    color: #5b8db8;
    transform: translateX(5px);
}

.tag-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.tag {
    background: #e8f4f8;
    color: #74a8d4;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* ============================================
   WHY SECTION
   ============================================ */

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

.why-item {
    text-align: center;
    padding: 1.5rem;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.why-item p {
    color: #666;
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.portfolio-logo {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
}

.portfolio-info {
    padding: 1.5rem;
    background: white;
}

.portfolio-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.portfolio-tag {
    display: inline-block;
    background: #e8f4f8;
    color: #74a8d4;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.logo-nexus {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 1.5rem;
}

.logo-nexus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-purple {
    background: linear-gradient(135deg, #7F8CFF 0%, #8A6BC1 100%);
}

.logo-nans {
    background: linear-gradient(135deg, #f9edd5 0%, #fef5e4 100%);
    padding: 0;
    overflow: hidden;
}

.logo-nans img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

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

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #74a8d4 0%, #5b8db8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   ABOUT US
   ============================================ */

.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-headline {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    max-width: 900px;
    margin: 0 auto 4rem;
    line-height: 1.3;
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-row.reverse {
    direction: rtl;
}

.about-row.reverse > * {
    direction: ltr;
}

.about-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-text ul li {
    color: #666;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.about-text ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #74a8d4;
    font-weight: bold;
}

.about-image-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    height: 400px;
}

.about-image-wrapper.large-hero {
    height: 500px;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-highlight-full {
    background: linear-gradient(135deg, #74a8d4 0%, #5b8db8 100%);
    color: white;
    padding: 4rem;
    border-radius: 15px;
    text-align: center;
    margin: 4rem 0;
}

.about-highlight-full h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-highlight-full p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-text-highlight {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-text-highlight h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-text-highlight p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* ============================================
   PRICING
   ============================================ */

.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.pricing-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.pricing-intro h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.pricing-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: #74a8d4;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: #74a8d4;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #74a8d4;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    color: #74a8d4;
    font-weight: 700;
    margin: 1rem 0;
}

.price-small {
    font-size: 1rem;
    color: #666;
}

.features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.pricing-faq {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pricing-faq h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   RESOURCES
   ============================================ */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #74a8d4;
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.resource-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-social-proof {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem auto;
    max-width: 900px;
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.proof-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.proof-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.proof-text strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.proof-text span {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-column h4 {
    color: #74a8d4;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #74a8d4;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

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

.social-links a {
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #74a8d4;
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-phone {
        order: -1;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .about-headline {
        font-size: 2rem;
    }
    
    .about-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-row.reverse {
        direction: ltr;
    }

    .about-highlight-full {
        padding: 2rem;
    }

    .about-highlight-full h3 {
        font-size: 1.8rem;
    }

    .about-highlight-full p {
        font-size: 1.1rem;
    }
    
    .about-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image {
        height: 200px;
    }

    .about-image-wrapper {
        height: 300px;
    }

    .about-image-wrapper.large-hero {
        height: 400px;
    }

    .about-text-highlight {
        padding: 2rem;
    }

    .about-text-highlight h3 {
        font-size: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .nav-text {
        display: none;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-social-proof {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .sticky-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .sticky-cta .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .pricing-faq {
        padding: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 5%;
    }
    
    .hero {
        padding: 5rem 5% 4rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}
