/* ===== ADDITIONAL PAGES STYLES ===== */

/* Page Hero */
.page-hero {
    padding: 150px 0 80px;
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--gray-light);
}

/* ===== STATISTICS SECTION ===== */
.stats {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== TECHNOLOGIES SECTION ===== */
.technologies {
    background: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.tech-item {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tech-logo {
    font-size: 40px;
    margin-bottom: 12px;
}

.tech-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter-input-group button {
    white-space: nowrap;
}

/* ===== VIDEO SECTION ===== */
.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 24px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description {
    text-align: center;
    color: var(--gray);
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-filters,
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.portfolio-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.portfolio-client {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.portfolio-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.portfolio-results h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.portfolio-results ul {
    list-style: none;
    margin-bottom: 20px;
}

.portfolio-results li {
    padding: 6px 0;
    color: var(--gray);
    position: relative;
    padding-left: 20px;
}

.portfolio-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* ===== BLOG PAGE ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.blog-card.hidden {
    display: none;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.blog-category {
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.blog-date {
    font-size: 14px;
    color: var(--secondary);
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
    margin-bottom: 16px;
}

.blog-author {
    font-size: 14px;
    color: var(--secondary);
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--secondary);
}

.blog-read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--primary-dark);
}

/* ===== CALCULATOR PAGE ===== */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.calculator-form-side h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--dark);
}

.calculator-form .form-group {
    margin-bottom: 24px;
}

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.calculator-form select,
.calculator-form input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.calculator-form select:focus,
.calculator-form input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.calculator-form small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--secondary);
}

.calculator-result-side {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.result-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary);
}

.result-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
    text-align: center;
}

.price-display {
    text-align: center;
    margin-bottom: 16px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray);
    margin-right: 8px;
}

.amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.price-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 32px;
    font-style: italic;
}

.project-summary {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.project-summary h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.project-summary ul {
    list-style: none;
}

.project-summary li {
    padding: 6px 0;
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-placeholder {
    text-align: center;
    padding: 60px 40px;
    color: var(--gray);
}

.result-placeholder svg {
    margin-bottom: 24px;
    opacity: 0.3;
}

.result-placeholder h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.calculator-info {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
}

.calculator-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.info-item {
    text-align: center;
}

.info-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.info-item p {
    color: var(--gray);
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 40px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input-group button {
        width: 100%;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-result-side {
        position: static;
    }

    .amount {
        font-size: 36px;
    }
}

/* ===== DIAGNOSTIC FORM ===== */
.diagnostic-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.diagnostic-form {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.diagnostic-step {
    display: none;
}

.diagnostic-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diagnostic-step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-light);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
}

.radio-card input[type="radio"]:checked+.radio-content {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.radio-card:hover .radio-content {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.radio-icon {
    font-size: 32px;
}

.radio-label {
    font-weight: 600;
    font-size: 14px;
}

.diagnostic-navigation {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.diagnostic-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-light);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    width: 25%;
}

.progress-text {
    font-size: 14px;
    color: var(--secondary);
}

/* ===== SOCIAL MEDIA LINKS ===== */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-light);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== DARK MODE ===== */
body.dark-mode {
    --white: #0f172a;
    --dark: #f8fafc;
    --bg-light: #1e293b;
    --gray: #cbd5e1;
    --gray-light: #475569;
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .service-card,
body.dark-mode .differential-item,
body.dark-mode .process-step,
body.dark-mode .testimonial-card,
body.dark-mode .expertise-item,
body.dark-mode .tech-item,
body.dark-mode .faq-item,
body.dark-mode .portfolio-card,
body.dark-mode .blog-card,
body.dark-mode .result-card {
    background: var(--bg-light);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .service-icon,
body.dark-mode .tech-item {
    background: rgba(37, 99, 235, 0.2);
}

.dark-mode-toggle {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 999;
}

.dark-mode-toggle input {
    display: none;
}

.dark-mode-toggle label {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.dark-mode-toggle label:hover {
    transform: scale(1.1);
}

.dark-mode-toggle svg {
    width: 28px;
    height: 28px;
    color: var(--dark);
}

body.dark-mode .dark-mode-toggle label {
    background: var(--bg-light);
}

body.dark-mode .dark-mode-toggle svg {
    color: var(--white);
}