/* Modern Professional Website Design Business Styles */
:root {
    --primary-color: #2D3047;    /* Deep Navy */
    --secondary-color: #419D78;  /* Fresh Green */
    --accent-color: #E0A458;     /* Warm Gold */
    --text-primary: #2D3047;     /* Deep Navy */
    --text-secondary: #566270;   /* Soft Gray */
    --background: #FFFFFF;       /* White Background */
    --section-bg: #FFFFFF;       /* White for sections */
    --card-bg: #FFFFFF;          /* White for cards */
    --white: #FFFFFF;            /* Pure White */
    --glass-bg: rgba(255, 255, 255, 0.95);  /* Light glass effect */
    --glass-border: rgba(255, 255, 255, 0.2);
    --success-color: #419D78;    /* Green */
    --warning-color: #E0A458;    /* Gold */
    --error-color: #E85F5C;      /* Coral */
    --mobile-padding: 1rem;
    --mobile-card-padding: 1.25rem;
    --mobile-section-spacing: 3rem;
    --mobile-element-spacing: 1rem;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Glass Morphism Effect */
.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.5rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.2rem 0;
    letter-spacing: 1px;
    position: relative;
    text-transform: uppercase;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    letter-spacing: 1.5px;
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Nav Brand Styles */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo {
    transform: rotate(360deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    padding: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-content {
        padding: 0 var(--mobile-padding);
        text-align: center;
    }
}

.gradient-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
    text-align: center;
    padding: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    padding: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
}

@media screen and (max-width: 768px) {
    .gradient-text {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .gradient-text {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero Stats Enhanced */
.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-scroll-indicator p {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
}

.hero-scroll-indicator .mouse {
    margin: 0 auto 8px;
}

@media screen and (max-width: 768px) {
    .hero {
        position: relative;
        padding-bottom: 100px;
    }

    .hero-content {
        margin-bottom: 0;
    }

    .hero-buttons {
        margin-bottom: 2rem;
        position: relative;
        z-index: 2;
    }

    .hero-stats {
        margin-bottom: 3rem;
        position: relative;
        z-index: 2;
    }

    .hero-scroll-indicator {
        bottom: 25px;
        z-index: 1;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding-bottom: 80px;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

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

/* Email Button Styles */
.email-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.email-button i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.email-button:hover {
    background: #2a7d5f;
    transform: translateY(-2px);
}

.email-button:hover i {
    transform: translateX(3px);
}

/* Update CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button.primary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(65, 157, 120, 0.2);
}

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

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button.primary:hover {
    background: #2a7d5f;
    box-shadow: 0 6px 20px rgba(65, 157, 120, 0.3);
}

.cta-button.secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(65, 157, 120, 0.3);
}

/* Section Hover Animations */
section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 100px 5%;
    position: relative;
    z-index: 1;
    background: var(--section-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

section:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(45, 48, 71, 0.1);
    z-index: 2;
}

.services, .features, .technologies {
    background: var(--background);
}

.process {
    background: var(--section-bg);
}

/* Update cards */
.service-card, .process-card, .feature-item, .tech-item {
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s ease;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    height: auto;
    overflow: visible;
}

.service-card:hover, .process-card:hover, .feature-item:hover, .tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Update text colors */
.hero-subtitle, .section-title, p {
    color: var(--text-primary);
}

.feature-content p, .process-content p, .service-features .feature-item p {
    color: var(--text-secondary);
}

/* Service features update */
.service-features .feature-item {
    background: rgba(65, 157, 120, 0.05);
}

.service-features .feature-item:hover {
    background: rgba(65, 157, 120, 0.1);
}

.service-features .feature-item:hover i,
.service-features .feature-item:hover h4,
.service-features .feature-item:hover p {
    color: var(--text-primary);
}

/* Process cards update */
.process-content h3 {
    color: var(--text-primary);
}

.detail-item {
    background: rgba(65, 157, 120, 0.1);
    color: var(--text-primary);
}

.detail-item:hover {
    background: var(--secondary-color);
}

.detail-item:hover i,
.detail-item:hover span {
    color: var(--white);
}

/* Stats update */
.stat-number {
    color: var(--secondary-color);
}

.stat-label {
    color: var(--text-secondary);
}

/* Footer Styles */
footer {
    background: var(--background);
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.footer-brand:hover .footer-logo {
    transform: rotate(360deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 28px;
    }
    
    .footer-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer-text {
        font-size: 1.1rem;
    }
}

/* Navigation update */
.navbar {
    background: var(--glass-bg);
}

.nav-links a {
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Service icons update */
.service-icon, .process-icon {
    background: rgba(65, 157, 120, 0.1);
    color: var(--secondary-color);
}

.service-card:hover .service-icon,
.process-card:hover .process-icon {
    background: var(--secondary-color);
    color: var(--white);
}

/* Step numbers update */
.step-number {
    color: rgba(65, 157, 120, 0.2);
}

/* Buttons update */
.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.cta-button.secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Social links update */
.social-links a {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Services Section Enhanced */
.services {
    padding: 6rem 5%;
    background: var(--section-bg);
}

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

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Media Queries for Services */
@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }
}

/* Section Title Details */
.services > .service-content {
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.services > .service-content .service-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.services > .service-content .service-details li {
    color: var(--text-secondary);
    padding: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--section-bg);
    border-radius: 12px;
    margin: 0 0 1rem 0;
    cursor: pointer;
    min-height: 5.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.services > .service-content .service-details li .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: inherit;
}

.services > .service-content .service-details li .expanded-content {
    position: absolute;
    top: -10px;
    left: calc(100% + 15px);
    background: var(--card-bg);
    padding: 0 1.5rem;
    margin-top: 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.services > .service-content .service-details li:hover {
    transform: translateY(-3px);
    background: var(--card-bg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.services > .service-content .service-details li:hover .expanded-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.services > .service-content .service-details li i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services > .service-content .service-details li:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.services > .service-content .service-details li .main-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .services > .service-content {
        padding: 1rem;
    }

    .services > .service-content .service-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services > .service-content .service-details li {
        padding: 1.2rem;
        min-height: 4.5rem;
    }

    .services > .service-content .service-details li .expanded-content {
        position: relative;
        margin-top: 0;
        padding: 0;
    }

    .services > .service-content .service-details li:hover .expanded-content {
        padding-top: 1rem;
    }
}

.service-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-details li:before {
    content: "•";
    position: absolute;
    left: 1rem;
    top: 1.7rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.content-wrapper {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.expanded-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.service-details li:hover {
    background: rgba(65, 157, 120, 0.05);
}

.service-details li:hover:before {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .service-details li {
        padding: 1.25rem 1.25rem 1.25rem 2.25rem;
    }
    
    .service-details li:before {
        top: 1.45rem;
    }
}

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

/* Service Cards */
.service-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1;
    min-height: 250px;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.service-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-content {
    margin-top: 1rem;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.service-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    position: relative;
    padding: 1rem 1rem 1rem 2rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-details li:before {
    content: "•";
    position: absolute;
    left: 0.8rem;
    top: 1.1rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: 0.3s ease;
}

.content-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.expanded-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.service-details li:hover {
    background: rgba(65, 157, 120, 0.1);
}

.service-details li:hover:before {
    color: var(--accent-color);
    transform: scale(1.2);
}

.service-details li:hover .expanded-content {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile Touch Support */
@media (max-width: 768px) {
    .service-details li {
        padding-right: 2.5rem;
    }

    .service-details li:after {
        content: "→";
        position: absolute;
        right: 1rem;
        top: 1.1rem;
        color: var(--secondary-color);
        transition: 0.3s ease;
    }

    .service-content .service-details li:focus {
        background: rgba(65, 157, 120, 0.1);
        margin-bottom: 4rem;
    }

    .service-card .service-details li:focus {
        background: rgba(65, 157, 120, 0.1);
    }

    .service-details li:focus:after {
        transform: rotate(90deg);
        color: var(--accent-color);
    }

    .service-content .service-details li:focus .expanded-content {
        max-height: 200px;
        opacity: 1;
        margin-top: 0.75rem;
        padding: 0.75rem 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .service-card .service-details li:focus .expanded-content {
        position: absolute;
        max-height: 200px;
        opacity: 1;
        margin-top: 0.75rem;
        padding: 0.75rem 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* Features Section Enhanced */
.features {
    background: var(--white);
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(45, 48, 71, 0.15);
}

/* Technologies Section Enhanced */
.technologies {
    background: var(--background);
}

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

.tech-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(45, 48, 71, 0.15);
}

.tech-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Process Section Enhanced */
.process {
    background: linear-gradient(135deg, var(--background) 0%, var(--white) 100%);
    padding: 5rem 0;
    overflow: visible;
}

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

.process-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.2s);
}

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

.process-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.process-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.process-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    background: rgba(65, 157, 120, 0.1);
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    animation: iconPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.2s);
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.process-card:hover .process-icon {
    background: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: numberPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: calc((var(--card-index, 0) * 0.2s) + 0.3s);
    opacity: 0;
    transform: scale(0);
}

@keyframes numberPop {
    0% { 
        opacity: 0;
        transform: scale(0);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

.process-card:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(224, 164, 88, 0.4);
}

.process-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    animation-delay: calc((var(--card-index, 0) * 0.2s) + 0.1s);
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-card:hover h3 {
    color: var(--secondary-color);
}

.process-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc((var(--card-index, 0) * 0.2s) + 0.2s);
    opacity: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease forwards;
    animation-delay: calc((var(--card-index, 0) * 0.2s) + (var(--item-index, 0) * 0.1s) + 0.3s);
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.process-list li:hover {
    transform: translateX(5px);
    color: var(--secondary-color);
}

.process-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.process-list li:hover:before {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .process-card {
        padding: 1.5rem;
    }
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    transition: all 0.3s ease;
}

.service-features .feature-item:hover .feature-content h4 {
    color: var(--secondary-color);
}

.learn-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(65, 157, 120, 0.1);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.learn-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.learn-more:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* Contact Section Enhanced */
.contact-container {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

.contact-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45, 48, 71, 0.2);
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(45, 48, 71, 0.1);
}

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

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

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

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(224, 164, 88, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(224, 164, 88, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(224, 164, 88, 0.3);
    }
}

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

/* Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    font-size: 0.95rem;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: var(--secondary-color);
    color: var(--white);
}

.notification.error {
    background: #ff4444;
    color: var(--white);
}

/* Form Loading State */
.contact-form button[type="submit"]:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* CTA Button Attention Animation */
@keyframes attention {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(65, 157, 120, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(65, 157, 120, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(65, 157, 120, 0.2);
    }
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: var(--section-bg);
    position: relative;
    z-index: 2;
}

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

.portfolio-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(224, 164, 88, 0.3);
    animation: pulse 2s infinite;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1rem;
}

.feature-list li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.tech-tag {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(45, 48, 71, 0.15);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 48, 71, 0.2);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: rgba(65, 157, 120, 0.1);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateX(5px);
}

.project-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(3px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(224, 164, 88, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(224, 164, 88, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(224, 164, 88, 0.3);
    }
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 5%;
    background: var(--section-bg);
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

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

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

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    color: var(--text-primary);
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* FAQ Section */
.faq {
    padding: 6rem 5%;
    background: var(--section-bg);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    padding-right: 2rem;
    line-height: 1.4;
}

.faq-toggle {
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-toggle i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

/* FAQ Media Queries */
@media screen and (max-width: 768px) {
    .faq {
        padding: 4rem 1rem;
    }

    .faq-grid {
        margin-top: 2rem;
    }

    .faq-question {
        padding: 1.25rem;
    }

    .faq-question h3 {
        font-size: 1rem;
        padding-right: 1.5rem;
    }

    .faq-toggle {
        right: 1.25rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Mouse Scroll Indicator */
.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Section Title Styles */
.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

/* Section Title Details */
.services > .service-content {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.services > .service-content .service-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.services > .service-content .service-details li {
    color: var(--text-secondary);
    padding: 0.6rem 0;
    position: relative;
    padding-left: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: left;
}

.services > .service-content .service-details li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.services > .service-content .service-details li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.services > .service-content .service-details li:hover:before {
    transform: translateX(3px);
}

/* Root Variables */
:root {
    --primary-color: #2D3047;
    --secondary-color: #419D78;
    --accent-color: #E0A458;
    --text-primary: #2D3047;
    --text-secondary: #4A4A4A;
    --card-bg: #FFFFFF;
    --section-bg: #F5F5F5;
    --mobile-padding: 1rem;
    --mobile-card-padding: 1.25rem;
    --mobile-section-spacing: 3rem;
    --mobile-element-spacing: 1rem;
}

/* Top services section specific styles */
.services > .service-content {
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.services > .service-content .service-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.services > .service-content .service-details li {
    color: var(--text-secondary);
    padding: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--section-bg);
    border-radius: 12px;
    margin: 0 0 1rem 0;
    cursor: pointer;
    min-height: 5.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.services > .service-content .service-details li .content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: inherit;
}

.services > .service-content .service-details li .expanded-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 0 1.5rem;
    margin-top: 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.services > .service-content .service-details li:hover {
    transform: translateY(-3px);
    background: var(--card-bg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.services > .service-content .service-details li:hover .expanded-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.services > .service-content .service-details li i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services > .service-content .service-details li:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.services > .service-content .service-details li .main-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .services > .service-content {
        padding: 1rem;
    }

    .services > .service-content .service-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services > .service-content .service-details li {
        padding: 1.2rem;
        min-height: 4.5rem;
    }

    .services > .service-content .service-details li .expanded-content {
        position: relative;
        margin-top: 0;
        padding: 0;
    }

    .services > .service-content .service-details li:hover .expanded-content {
        padding-top: 1rem;
    }
}

.service-grid .service-details li {
    position: static;
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-grid .expanded-content {
    position: static;
    opacity: 1;
    max-height: none;
    overflow: visible;
    margin-top: 0.75rem;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-grid .service-details li:hover,
.service-grid .service-details li:focus {
    background: rgba(65, 157, 120, 0.05);
}

@media (max-width: 768px) {
    .service-grid .service-details li {
        padding: 1.25rem 1.25rem 1.25rem 2.25rem;
    }
}

.project-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

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

.project-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .project-screenshots {
        grid-template-columns: 1fr;
    }
}

.pricing {
    padding: 5rem 0;
    background: var(--bg-light);
}

.pricing .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.pricing-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--secondary-color);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.featured-tag {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.pricing-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    margin: 1.5rem 0;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price .period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-header .description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.8rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.pricing-cta {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

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

.note-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.note-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.note-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.note-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-notes {
        grid-template-columns: 1fr;
    }
}

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

.pricing-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    text-align: center;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price .period {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-secondary);
}

.description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pricing-features li i {
    color: var(--accent-color);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 16px;
    display: flex;
    justify-content: center;
}

.pricing-features li span {
    flex: 1;
}

.pricing-card .cta-button {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

@media screen and (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--mobile-padding);
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-features {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 40px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .gradient-text {
        font-size: 2.5rem;
        padding: 0;
        margin: 0 auto 1rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin: 0 auto 1rem;
        text-align: center;
        width: 100%;
        max-width: 600px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 90%;
        gap: 1rem;
        margin: 2rem auto;
        padding: 0;
    }

    .hero-buttons .cta-button {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 2rem;
        padding: var(--mobile-padding);
        flex-direction: column;
    }

    .stat {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .navbar {
        padding: 0.75rem 1rem;
        justify-content: center;
    }

    .nav-brand {
        margin: 0 auto;
        padding-right: 44px; /* To balance the menu toggle */
    }

    .menu-toggle {
        position: absolute;
        right: 1rem;
    }

    .section-title {
        text-align: center;
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-buttons {
        width: 85%;
    }
}

/* Small Phone Optimization */
@media screen and (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
    }

    .hero-content {
        padding-top: 50px;
    }

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

    .pricing-features {
        padding: 1rem;
    }

    .nav-brand .logo {
        font-size: 1.2rem;
    }

    .nav-logo {
        width: 24px;
        height: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* Tablet Optimization */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .service-details {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .portfolio-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Global Centering Fix */
.section-title, .section-subtitle {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section Fixes */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    z-index: 2;
    margin: 0 auto;
    padding: 2rem;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Services Section Fixes */
.services {
    padding: 5rem 5%;
    text-align: center;
}

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

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

/* Process Section Fixes */
.process {
    padding: 5rem 5%;
    text-align: center;
}

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

/* Pricing Section Fixes */
.pricing {
    padding: 5rem 5%;
    text-align: center;
}

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

/* FAQ Section Fixes */
.faq {
    padding: 5rem 5%;
    text-align: center;
}

.faq-grid {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Animation Improvements */
.process-card {
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.2s);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.process-icon {
    animation: iconPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.2s);
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Navigation Fixes */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a.cta-button {
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

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

/* Mobile Menu Improvements */
@media (max-width: 768px) {
    .nav-links {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
    }

    .nav-links a.cta-button {
        margin: 1rem auto;
        max-width: 200px;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 2rem;
    }

    .hero-buttons .cta-button {
        width: 100%;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .process-card:hover,
    .pricing-card:hover,
    .service-details li:hover {
        transform: none;
    }

    .nav-links a:active,
    .cta-button:active {
        transform: scale(0.98);
    }
}

/* Mobile-First Base Styles */
:root {
    --mobile-padding: 1rem;
    --mobile-card-padding: 1.25rem;
    --mobile-section-spacing: 3rem;
    --mobile-element-spacing: 1rem;
}

/* General Mobile Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.75rem var(--mobile-padding);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: var(--background);
        flex-direction: column;
        padding: 5rem var(--mobile-padding);
        transition: 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
}

/* Mobile Hero Section */
@media screen and (max-width: 768px) {
    .hero {
        padding: 100px var(--mobile-padding) 40px;
        text-align: center;
    }

    .hero-content {
        padding: 0;
    }

    .gradient-text {
        font-size: 2.5rem;
        padding: 0;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 var(--mobile-padding);
    }

    .hero-buttons {
        flex-direction: column;
        width: 90%;
        gap: 1rem;
    }

    .hero-buttons .cta-button {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 2rem;
        padding: var(--mobile-padding);
        flex-direction: column;
    }

    .stat {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .navbar {
        padding: 0.75rem 1rem;
        justify-content: center;
    }

    .nav-brand {
        margin: 0 auto;
        padding-right: 44px; /* To balance the menu toggle */
    }

    .menu-toggle {
        position: absolute;
        right: 1rem;
    }

    .section-title {
        text-align: center;
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-buttons {
        width: 85%;
    }
}

/* Centering hero section content on mobile screens */
@media screen and (max-width: 768px) {
    .hero {
        min-height: 100vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        position: relative;
    }

    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 600px;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .gradient-text {
        font-size: 2.5rem;
        padding: 0;
        margin: 0 0 1.5rem 0;
        width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0;
        margin: 0 0 2rem 0;
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 0 2rem 0;
        padding: 0;
    }

    .hero-buttons .cta-button {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .stat {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 2rem;
        margin: 0 0 0.5rem 0;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content {
        width: 85%;
        padding-top: 60px;
    }

    .gradient-text {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-buttons {
        max-width: 250px;
    }
}

/* Ensure text readability */
@media screen and (max-width: 480px) {
    html {
        font-size: 16px;
    }

    h1, .gradient-text {
        font-size: 2rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p, li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

/* Fix any overlapping issues */
.section {
    overflow: hidden;
    width: 100%;
}

/* Ensure buttons and interactive elements are large enough for touch */
@media (max-width: 768px) {
    button,
    .cta-button,
    .nav-links a,
    .service-card,
    .faq-question {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }
}

/* Fade-in animation for hero section */
.hero-animate {
    opacity: 0;
}

.hero-animate.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-animate.delay-1 {
    animation-delay: 0.2s;
}

.hero-animate.delay-2 {
    animation-delay: 0.4s;
}

.hero-animate.delay-3 {
    animation-delay: 0.6s;
}

@media screen and (max-width: 768px) {
    .hero-animate {
        opacity: 1;
    }
    
    .hero-animate.fade-in {
        animation: none;
    }
}

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

.hero-animate {
    will-change: opacity, transform;
    transform: translateY(30px);
    opacity: 0;
}

.hero-animate.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-animate.delay-1 {
    animation-delay: 0.2s;
}

.hero-animate.delay-2 {
    animation-delay: 0.4s;
}

.hero-animate.delay-3 {
    animation-delay: 0.6s;
}

@media screen and (max-width: 768px) {
    .hero-animate {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-animate.fade-in {
        animation: none !important;
    }
}

/* Terms of Service Page */
.tos-page {
    padding: 6rem var(--section-padding) 4rem;
    background: var(--background-color);
    min-height: 100vh;
}

.tos-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.tos-content h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.tos-content section {
    margin-bottom: 2rem;
}

.tos-content h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tos-content p {
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.tos-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.back-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background: var(--primary-color);
}

/* Consent Popup */
.consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-background);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
}

.consent-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.consent-text {
    flex: 1;
    min-width: 280px;
}

.consent-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.consent-text p {
    color: var(--text-color);
    margin-bottom: 0;
}

.consent-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.consent-text a:hover {
    text-decoration: underline;
}

.consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.consent-button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accept-button {
    background: var(--accent-color);
    color: white;
}

.accept-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.decline-button {
    background: var(--text-color);
    color: white;
}

.decline-button:hover {
    background: #666;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .tos-page {
        padding: 4rem var(--section-padding-mobile) 2rem;
    }
    
    .tos-content {
        padding: 1.5rem;
    }
    
    .consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
    font-size: 1.1rem;
}

.modal-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.modal-content a:hover {
    color: var(--primary-color);
}

.modal-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.modal-content a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.modal-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-button.accept-button {
    background: var(--accent-color);
    color: white;
}

.modal-button.accept-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(224, 164, 88, 0.3);
}

.modal-button.decline-button {
    background: #666;
    color: white;
}

.modal-button.decline-button:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.3);
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-button {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* TOS Page Styles */
.tos-page {
    padding-top: 100px;
}

.tos-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.tos-content h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
}

.tos-content section {
    margin-bottom: 2.5rem;
}

.tos-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tos-content p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .tos-page {
        padding-top: 80px;
    }
    
    .tos-content {
        padding: 1.5rem;
    }
    
    .tos-content h1 {
        font-size: 2rem;
    }
}

/* TOS and Privacy Policy Styles */
.section-divider {
    margin: 4rem 0;
    border: none;
    border-top: 1px solid var(--text-secondary);
    opacity: 0.2;
}

.effective-date {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

.policy-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tos-content h3 {
    color: var(--accent-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.tos-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tos-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.tos-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tos-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.back-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .section-divider {
        margin: 3rem 0;
    }
    
    .policy-intro {
        font-size: 1rem;
    }
    
    .tos-content ul {
        margin-left: 1rem;
    }
}
