/* General Body Styles */
:root {
    --bg-dark: #0a0a0f;
    --bg-light: #1a1a2e;
    --bg-card: #16213e;
    --primary-text: #f8f9fa;
    --secondary-text: #b8bcc8;
    --accent-color: #6c5ce7;
    --accent-hover: #5b4cdb;
    --accent-secondary: #fd79a8;
    --shadow-color: rgba(108, 92, 231, 0.3);
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #fd79a8);
    --gradient-dark: linear-gradient(135deg, #0a0a0f, #1a1a2e);
}

* {
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: var(--gradient-dark);
    color: var(--primary-text);
    overflow-x: hidden;
    overflow-wrap: break-word;
}

/* Header and Navigation */
header {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-shadow: none;
}

/* Desktop Navigation */
.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 400;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--shadow-color);
}

/* Mobile Hamburger Menu */
.mobile-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-text);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(18, 18, 28, 0.98);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.mobile-nav-overlay li {
    margin: 2rem 0;
}

.mobile-nav-overlay a {
    text-decoration: none;
    color: var(--primary-text);
    font-size: 1.8rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover {
    color: var(--accent-color);
}

/* Main Content Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    text-align: center;
}

section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 15px var(--shadow-color);
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 6rem 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--secondary-text);
    max-width: 600px;
    margin: 1.5rem auto 2.5rem auto;
}

/* CTA Buttons */
.cta-button, .cta-button-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
}

.cta-button {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-color);
}

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

.cta-button-outline:hover {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 0 20px var(--shadow-color);
    transform: translateY(-3px);
}

/* Services Overview Section */
#services-overview {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#services-overview h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-map {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    backdrop-filter: blur(10px);
}

.services-map img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.services-map img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .services-map {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    #services-overview h2 {
        font-size: 2rem;
    }
}

/* Features Section */

/* Services Overview - buttons and caption */
.services-links .view-link,
.services-links .download-link {
    display: inline-block;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.services-links .view-link:focus,
.services-links .download-link:focus {
    outline: 3px solid rgba(108,92,231,0.18);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .services-links {
        flex-direction: column;
        gap: 10px;
    }
    .services-links .view-link,
    .services-links .download-link {
        width: 100%;
        text-align: center;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}

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

.feature-item {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.2);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-top: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.step {
    flex-basis: 30%;
    min-width: 280px;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 15px var(--shadow-color);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.pricing-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--shadow-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 0;
}

.pricing-card .price {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-text);
}

.pricing-card p {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-card li {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pricing-card .cta-button, .pricing-card .cta-button-outline {
    width: 100%;
    text-align: center;
}

/* Contact Section */
#contact {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#contact p {
    margin: 1rem 0;
    line-height: 1.6;
}

#contact a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

#contact a:hover {
    text-shadow: 0 0 8px var(--shadow-color);
    transform: translateY(-1px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #0c0c14;
    color: var(--secondary-text);
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show mobile hamburger */
    .mobile-hamburger {
        display: block;
    }
    
    /* Show mobile navigation overlay */
    .mobile-nav-overlay {
        display: flex;
    }
    
    /* Hamburger animation when active */
    .mobile-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1.02);
    }

    /* Mobile typography and spacing adjustments */
    main {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
    }

    h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .hero-content p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin: 1rem auto 2rem auto;
    }

    .section-subtitle {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-item p {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }

    .step {
        padding: 1.5rem;
        max-width: 100%;
    }

    .step p {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card ul li {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    }

    .cta-button, .cta-button-outline {
        padding: 0.7rem 1.2rem;
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }

    #contact p {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        word-break: break-word;
    }

    #contact a {
        word-break: break-all;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .nav-links a {
        font-size: 1.2rem;
    }

    .feature-item, .step, .pricing-card {
        padding: 1rem;
    }

    .pricing-grid {
        gap: 1.5rem;
    }

    .process-steps {
        gap: 2rem;
    }

    #contact {
        text-align: center;
    }

    #contact p {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }
}
