/* Custom Properties - Clean Light Theme */
:root {
    --bg-main: #fbfbfd;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f7;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --primary: #0066cc;
    --primary-hover: #0077ed;
    --secondary: #434343;
    --gradient: linear-gradient(135deg, #0066cc, #5ac8fa);
    --card-border: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Subtle Glow Effects */
.glow-element {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.glow-1 {
    background: rgba(0, 102, 204, 0.15);
    top: -200px;
    left: -200px;
}

.glow-2 {
    background: rgba(90, 200, 250, 0.15);
    top: 30%;
    right: -200px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }

    100% {
        transform: translateY(100px) translateX(50px) scale(1.1);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(251, 251, 253, 0.8);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient);
    border-radius: 50%;
    display: inline-block;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: var(--bg-card);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.btn-secondary:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-phone {
    background: var(--text-main);
    color: white;
    font-size: 1.15rem;
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    gap: 12px;
}

.btn-phone:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: white;
}

.guarantee-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 102, 204, 0.15);
    animation: fade-in-up 0.8s ease-out;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    animation: fade-in-up 1s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 640px;
    animation: fade-in-up 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fade-in-up 1s ease-out 0.3s both;
}

/* Hero UI Mockup */
.hero-mockup {
    margin-top: 5rem;
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    border: 1px solid var(--card-border);
    border-bottom: none;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
    animation: fade-in-up 1.2s ease-out 0.4s both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 40px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e5ea;
}

.mockup-dot.red {
    background: #ff5f56;
}

.mockup-dot.yellow {
    background: #ffbd2e;
}

.mockup-dot.green {
    background: #27c93f;
}

.mockup-body {
    flex: 1;
    padding: 2rem;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-main) 100%);
    position: relative;
}

.mockup-card-1,
.mockup-card-2,
.mockup-card-3 {
    position: absolute;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.mockup-card-1 {
    width: 300px;
    height: 200px;
    top: 2rem;
    left: 2rem;
    padding: 1.5rem;
}

.mockup-card-2 {
    width: 250px;
    height: 150px;
    top: 4rem;
    right: 3rem;
    padding: 1.5rem;
}

.mockup-card-3 {
    width: 400px;
    height: 120px;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1.5rem;
}

.skeleton-title {
    height: 16px;
    width: 60%;
    background: var(--bg-card-hover);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-line {
    height: 10px;
    width: 100%;
    background: var(--bg-card-hover);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-line.short {
    width: 80%;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    margin-bottom: 1rem;
}


@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Shared */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-scroll-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2rem;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 2rem;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.portfolio-scroll-container::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    /* Show 3 cards on desktop */
    min-width: 350px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    scroll-snap-align: start;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.portfolio-visual {
    height: 220px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--card-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

/* Abstract placeholder backgrounds for portfolio since we can't use real images easily */
.p1-bg::before {
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.p2-bg::before {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.p3-bg::before {
    background: linear-gradient(-20deg, #e9defa 0%, #fbfcdb 100%);
}

.p4-bg::before {
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.p5-bg::before {
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
}

.portfolio-mock-browser {
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border);
    border-bottom: none;
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.portfolio-mock-browser .mockup-header {
    height: 25px;
    padding: 0 0.8rem;
}

.portfolio-mock-browser .mockup-dot {
    width: 6px;
    height: 6px;
}

.portfolio-result-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #27c93f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-industry {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.portfolio-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.p-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.p-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-section {
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Flip Card Container Settings */
.price-flip-container {
    perspective: 1000px;
}

/* Target the inner card to flip on click/focus */
.price-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* We use the Checkbox Hack to trigger the flip purely via HTML/CSS without altering the URL hash */
.price-flip-container>input[type="checkbox"]:checked~.price-card-inner {
    transform: rotateY(180deg);
}

.price-card-front,
.price-card-back {
    background: var(--bg-main);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.price-card-inner.featured .price-card-front,
.price-card-inner.featured .price-card-back {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    box-shadow: 0 24px 48px -12px rgba(0, 102, 204, 0.15);
}

.price-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    justify-content: center;
}

.price-card-front {
    z-index: 2;
}

.price-flip-container:not(:target):hover .price-card-front {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-tier {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.price-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    /* Pushes button to bottom */
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.feature-check {
    color: var(--primary);
    font-weight: bold;
}

/* Pricing Back Face Contact Form */
.pricing-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.pricing-contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-contact-form p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-contact-form input {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    background: var(--bg-main);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.pricing-contact-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.flip-back-btn {
    margin-top: 1rem;
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

details:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

summary {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
}

.cta-container {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border-radius: 100px;
    background: var(--bg-main);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    background: white;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem 0;
    background: white;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .price-card-inner.featured .price-card-front,
    .price-card-inner.featured .price-card-back {
        transform: none;
    }

    .hero-title {
        font-size: 4rem;
    }

    .portfolio-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-mockup {
        height: 250px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .cta-container {
        padding: 4rem 1.5rem;
    }

    .cta-container h2 {
        font-size: 2.2rem;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .portfolio-card {
        flex: 0 0 100%;
        min-width: unset;
    }
}