/* CSS Reset & Root Variables */
:root {
    --color-primary: #00A3FF; /* A bright blue from the PDF */
    --color-secondary: #33CC99; /* A vibrant green from the PDF */
    --color-dark: #121212;
    --color-text: #333333;
    --color-light-grey: #f4f4f4;
    --color-white: #ffffff;
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* Enhanced smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    section {
        transition: transform 0.3s ease;
    }
}

section[id],
div[id] {
    scroll-margin-top: 80px;
}

/* Specific scroll offset for services section */
#services {
    scroll-margin-top: 120px;
}

/* General Styles */
body {
    font-family: var(--font-family);
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.7;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Accessibility - Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-quality;
}

/* Progressive image loading */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

picture {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-weight: 600;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 45px;
}

.nav-links a {
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    color: var(--color-secondary);
    background: rgba(51, 204, 153, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Burger Icon */
.burger {
    background: transparent;
    border: none;
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.burger:hover {
    background-color: rgba(51, 204, 153, 0.1);
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 6px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Mobile Menu Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    padding: 80px 20px 60px 20px;
    gap: 40px;
    min-height: 100vh;
}

.hero-text {
    flex: 1.2;
}

/* Hero Animation Classes */
.hero-text h1 {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.3s forwards;
}

.hero-text p {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.6s forwards;
}

.hero-text .cta-button {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.5s forwards, float 3s ease-in-out 1.3s infinite;
}

.cta-button {
    background: linear-gradient(135deg, rgba(51, 204, 153, 0.9), rgba(0, 179, 74, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(51, 204, 153, 0.3);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    background: linear-gradient(135deg, rgba(51, 204, 153, 1), rgba(0, 179, 74, 1));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(51, 204, 153, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* About Section */
#about {
    background-color: var(--color-dark);
    padding: 90px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text, .about-image {
    flex: 1;
}


.about-text h3 {
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 28px;
    margin-top: 0;
    color: var(--color-white);
}

.about-text h3 .highlight {
    color: var(--color-secondary);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: #ddd;
    max-width: 90%;
}

.cta-banner-hollow {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 50px;
    text-align: center;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    margin-top: 1rem;
    border: none;
    align-self: flex-start;
}

.cta-banner-hollow:hover {
    background-color: #00b34a; /* Slightly darker green */
}

/* Services & Tools Section */
.services-tools-wrapper {
    background-color: #F9FAFB;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

/* Services Section */
#services {
    padding: 0 20px 60px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#services h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--color-white);
    padding: 45px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }

.service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: rgba(51, 204, 153, 0.1);
}

.service-card img {
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.service-card img {
    height: 55px;
    margin-bottom: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: var(--color-dark);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.65;
    color: #555;
    margin: 0;
    max-width: 90%;
    margin: 0 auto;
}

/* Tools Section */
#tools {
    padding: 0 20px;
    text-align: center;
}

.tools-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-secondary);
}

.tools-container p {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.tools-container img {
    max-width: 800px;
    height: auto;
}

/* Testimonials Section */
#testimonials {
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#testimonials h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    background-color: var(--color-white);
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(0,0,0,0.03);
}

.testimonial-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: rgba(51, 204, 153, 0.1);
}

.testimonial-stars {
    height: 25px;
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.testimonial-card.animate-in .testimonial-stars {
    opacity: 1;
    transform: scale(1);
    animation: pulse 0.6s ease-out 0.2s;
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 32px;
    color: #404040;
    flex-grow: 1;
    font-style: italic;
    font-weight: 400;
}

.testimonial-author {
    margin-top: auto;
}

.author-logo {
    border: 1px solid #E8E8E8;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.author-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card .author-info span {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--color-dark);
}

.author-social-link {
    display: inline-block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border: none !important;
    background: none !important;
    padding: 0;
}

.author-social-link:hover {
    transform: scale(1.05);
}

.author-social-link img {
    height: 45px;
    width: auto;
}

.company-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-dark);
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.testimonial-card small {
    color: #777;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Final CTA Section */
#final-cta {
    background-color: var(--color-light-grey);
    color: var(--color-white);
    padding: 100px 20px;
    text-align: center;
}

.final-cta-container h2 {
    font-size: 3rem;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto 40px;
}

#final-cta .cta-button {
    font-size: 1.2rem;
}

/* ====================
   Footer Section
==================== */
footer {
    background-color: var(--color-white);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

footer .container {
    width: 100%;
}

footer h2 {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-dark);
    margin-bottom: 30px;
}

footer h2 strong {
    font-weight: 700;
}

.support-link {
    color: var(--color-secondary);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 50px;
    display: inline-block;
}

.support-link:hover {
    color: #00a041;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info a {
    color: var(--color-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info a:hover {
    color: var(--color-secondary);
    background: rgba(51, 204, 153, 0.1);
    border-color: rgba(51, 204, 153, 0.2);
    transform: translateY(-2px);
}

.contact-info img {
    height: 28px;
}

.footer-logo img {
    height: 50px;
}

.footer-bar {
    background-color: var(--color-dark);
    padding: 1.25rem 0;
}

.footer-credits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer-credits p {
    color: var(--color-white);
    font-size: 0.9rem;
    margin: 0;
}

.footer-credits img {
    height: 28px;
}

/* Responsive Footer */
/* This duplicate mobile section is removed - styles are now in the comprehensive mobile section below */

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .about-text h3 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 95%;
        margin: 0 auto;
        text-align: center;
    }

    #services h2, #testimonials h2 {
        font-size: 1.8rem;
    }

    .tools-container h2 {
        font-size: 1.6rem;
    }

    footer h2 {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

/* Improved mobile styles for About section - better smartphone experience */
@media (max-width: 600px) {
  #about {
    padding: 60px 20px;
    min-height: auto;
  }
  
  .about-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .about-text {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }
  
  
  .about-text h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 24px;
    text-align: center;
  }
  
  .about-text h3 .highlight {
    font-size: 1.8rem;
    display: inline;
  }
  
  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #ddd;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 20px;
  }
}

/* Mobile specific adjustments for testimonials are handled in the main mobile media query */

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        justify-content: center;
        align-items: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.nav-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        margin: 20px 0;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        animation: slideInUp 0.6s ease forwards;
    }
    
    .nav-links.nav-active li {
        animation-delay: calc(var(--i) * 0.1s);
    }
    
    .nav-links.nav-active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.nav-active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.nav-active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.nav-active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.nav-active li:nth-child(5) { animation-delay: 0.5s; }
    
    .nav-links a {
        font-size: 2rem;
        font-weight: 600;
        color: var(--color-dark);
        display: block;
        padding: 15px 30px;
        border-radius: 15px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(51, 204, 153, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-links a:hover::before {
        left: 100%;
    }

    .nav-links a:hover {
        color: var(--color-secondary);
        background-color: rgba(51, 204, 153, 0.05);
        transform: translateX(10px);
    }

    .burger {
        display: block;
        z-index: 10000;
        position: relative;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-6px, 7px);
        background-color: var(--color-secondary);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-6px, -7px);
        background-color: var(--color-secondary);
    }

    /* Hero Section Mobile */
    #hero {
        flex-direction: column;
        padding: 60px 20px 40px 20px;
        text-align: center;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.4rem;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 30px;
        max-width: 100%;
    }

    /* Services and Tools Mobile */
    .services-tools-wrapper {
        padding: 60px 0;
        min-height: auto;
    }

    #services {
        padding-bottom: 40px;
    }

    #services h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .tools-container h2 {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .tools-container p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .tools-container img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* About Section Mobile - for tablets and larger phones */
    #about {
        padding: 70px 20px;
        min-height: auto;
    }

    .about-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }


    .about-text h3 {
        font-size: 2.2rem;
        margin-bottom: 24px;
        line-height: 1.3;
        text-align: center;
    }

    .about-text p {
        font-size: 1.1rem;
        max-width: 85%;
        margin: 0 auto;
        text-align: center;
        line-height: 1.6;
    }

    /* Testimonials Mobile */
    #testimonials {
        padding: 60px 0;
        min-height: auto;
    }

    #testimonials h2 {
        font-size: 2rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer Mobile */
    footer {
        padding: 60px 0 30px 0;
        min-height: auto;
    }

    footer h2 {
        font-size: 1.8rem;
        margin-bottom: 16px;
        padding: 0 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .footer-bar {
        padding: 16px 0;
    }

    /* Mobile Footer Styles */
    footer {
        padding: 60px 20px 40px;
        min-height: auto;
    }
    
    footer h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .support-link {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }

    /* Mobile specific card adjustments */
    .container {
        padding: 0 20px;
    }
    
    .service-card {
        padding: 30px 24px;
    }
    
    .testimonial-card {
        padding: 30px 24px;
    }
}
