/* Base Styles */
:root {
    --primary-color: #0175AD;
    --accent-color: #0175AD;
    --neutral-light: #F4F4F4;
    --neutral-dark: #2C2C2C;
    --background-color: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Athiti', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--background-color);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--neutral-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

section {
    padding: 80px 0;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    color: var(--neutral-dark);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

.cta-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.cta-nav:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--neutral-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 80px;
    background-color: var(--neutral-light);
    position: relative;
    background-image: url('images/hero-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: 2.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-container {
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(1, 117, 173, 0.3);
}

.cta-button.primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(1, 117, 173, 0.4);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.cta-subtext {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* About Section */
.about-section {
    background-color: var(--background-color);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
}

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

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .about-image {
        margin-right: 40px;
    }
}

.highlight {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--primary-color);
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    border-top: 1px solid var(--neutral-light);
    border-bottom: 1px solid var(--neutral-light);
}

/* Services Section */
.services-section {
    background-color: var(--neutral-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Method Section */
.method-section {
    background-color: var(--background-color);
}

.method-timeline {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.method-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--primary-color);
}

.method-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    margin-right: 20px;
    z-index: 2;
}

.step-content {
    flex: 1;
    padding-left: 20px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.method-cta {
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--neutral-light);
    background-image: url('images/testimonials-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    max-width: 350px;
    transition: var(--transition);
}

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

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
}

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

.testimonial-author img {
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--background-color);
}

.portfolio-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-image img:hover {
    transform: scale(1.03);
}

/* Footer */
footer {
    background-color: var(--neutral-dark);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none; /* Initially hidden, will be shown by JavaScript */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 999;
}

.mobile-sticky-cta .cta-button {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 140px 0 60px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 5px 10px var(--shadow-color);
        padding: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 15px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo,
    .footer-info,
    .footer-links {
        margin-bottom: 20px;
    }
    
    /* Mobile sticky CTA display is now controlled by JavaScript */
    /* .mobile-sticky-cta {
        display: block;
    } */
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 120px 0 40px;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
}

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

.hero-content,
.about-content,
.services-grid,
.method-timeline,
.testimonials-slider,
.portfolio-section {
    animation: fadeIn 1s ease-out;
}

/* Accessibility Improvements */
:focus {
    outline: 3px solid rgba(1, 117, 173, 0.5);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Lazy Loading for Images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}