/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient-start: #0f172a;
    --primary-gradient-end: #06b6d4;
    --blue-accent: #3b82f6;
    --cyan-accent: #06b6d4;
    --orange-accent: #f97316;
    --purple-accent: #a855f7;
    --green-accent: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #ffffff;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-light: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --text-dark: #f9fafb;
    --text-gray: #d1d5db;
    --text-light: #ffffff;
    --bg-light: #1f2937;
    --bg-white: #111827;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-light: rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #0f172a;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a:hover {
    color: var(--primary-gradient-end);
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-light) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--text-light);
    padding: 8rem 0 5rem;
    margin-top: 60px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    transition: opacity 0.5s ease-in-out;
}

.rotating-headline {
    height: 8.4rem; /* Fixed height to prevent layout shift - fits 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subheadline {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

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

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--primary-gradient-start);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-stats .stat {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 4rem;
}

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

.service-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border-top: 4px solid;
}

.service-card-blue {
    border-top-color: var(--blue-accent);
}

.service-card-cyan {
    border-top-color: var(--cyan-accent);
}

.service-card-orange {
    border-top-color: var(--orange-accent);
}

.service-card-purple {
    border-top-color: var(--purple-accent);
}

.service-card-green {
    border-top-color: var(--green-accent);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-color);
}

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

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.service-details ul {
    list-style: none;
    margin-bottom: 1rem;
}

.service-details ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-gray);
    position: relative;
    font-size: 0.95rem;
}

.service-details ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-gradient-start);
    font-weight: bold;
}

.service-duration {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.btn-service {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-light);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

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

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.process-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.process-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.375rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.7;
}

.experience-timeline {
    margin-bottom: 3rem;
}

.experience-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-gradient-start);
    box-shadow: 0 2px 8px var(--shadow-color-light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.experience-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.experience-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.about-highlights {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color-light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.about-highlights h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-highlights ul {
    list-style: none;
}

.about-highlights ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: var(--text-dark);
    position: relative;
    line-height: 1.6;
}

.about-highlights ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-gradient-start);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

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

.testimonial-card {
    padding: 2.5rem;
    background-color: var(--bg-light);
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-quote {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    padding-top: 1rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Final CTA Section */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-light);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta .btn-primary {
    background-color: var(--text-light);
    color: var(--primary-gradient-start);
}

.final-cta .btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-section p {
    color: var(--text-gray);
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-gradient-start);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 968px) {
    .service-cards {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .rotating-headline {
        height: 6rem; /* Adjusted for tablet */
    }

    .hero-subheadline {
        font-size: 1.125rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

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

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .rotating-headline {
        height: 5rem; /* Adjusted for mobile */
    }

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

    .btn-nav-cta {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-light);
    transition: 0.3s;
    border-radius: 28px;
    border: 2px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: 0.3s;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
}

input:checked + .slider:before {
    transform: translateX(24px);
    content: "🌙";
}

.slider:hover {
    opacity: 0.8;
}
