/* PlanoBase - Expanded CSS for New Components */
/* Extends the existing style.css with new sections and components */

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    margin-top: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 14px;
    text-transform: capitalize;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--accent-blue);
}

/* ============================================
   SOLUTIONS/SERVICES GRID
   ============================================ */
.solutions-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.solutions-header {
    text-align: center;
    margin-bottom: 80px;
}

.solutions-header h2 {
    font-size: clamp(32px, 6vw, 60px);
    margin-bottom: 20px;
}

.solutions-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.solution-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.solution-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.15);
    transform: translateY(-5px);
}

.solution-card:hover::before {
    left: 100%;
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.solution-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.solution-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.solution-card .cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   TESTIMONIALS/REVIEWS SECTION
   ============================================ */
.testimonials-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 80px;
}

.testimonials-header h2 {
    font-size: clamp(32px, 6vw, 60px);
    margin-bottom: 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: var(--accent-blue);
    opacity: 0.3;
}

.testimonial-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.15);
    transform: translateY(-5px);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.star {
    color: #FFC107;
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #00D4FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 20px;
}

.testimonial-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.testimonial-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.testimonial-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ============================================
   TECHNICAL SHOWCASE SECTION
   ============================================ */
.technical-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.technical-header {
    text-align: center;
    margin-bottom: 80px;
}

.technical-header h2 {
    font-size: clamp(32px, 6vw, 60px);
    margin-bottom: 20px;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.tech-badge {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #00D4FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-badge:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    transform: translateY(-5px);
}

.tech-badge:hover::before {
    transform: scaleX(1);
}

.tech-icon {
    font-size: 40px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

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

.tech-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.tech-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ============================================
   ACHIEVEMENT BADGES SECTION
   ============================================ */
.achievements-section {
    padding: 80px 0;
    background: var(--bg-medium);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.achievement-badge {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.achievement-badge:nth-child(1) { animation-delay: 0s; }
.achievement-badge:nth-child(2) { animation-delay: 0.1s; }
.achievement-badge:nth-child(3) { animation-delay: 0.2s; }
.achievement-badge:nth-child(4) { animation-delay: 0.3s; }
.achievement-badge:nth-child(5) { animation-delay: 0.4s; }
.achievement-badge:nth-child(6) { animation-delay: 0.5s; }

.achievement-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.achievement-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ============================================
   EXPANDED FOOTER
   ============================================ */
.footer-expanded {
    background: var(--bg-medium);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: var(--accent-blue);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-newsletter {
    margin-top: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--accent-blue);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   CONTACT WIDGET / CHAT BUTTON
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #00D4FF);
    color: var(--text-light);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 123, 255, 0.6);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-widget.active .chat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--accent-blue);
    color: var(--text-light);
    padding: 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
}

.chat-content {
    padding: 20px;
}

.chat-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.chat-content a {
    display: block;
    padding: 10px 15px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--accent-blue);
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.chat-content a:hover {
    background: var(--accent-blue);
    color: var(--text-light);
}

/* ============================================
   SERVICE PAGE HERO
   ============================================ */
.service-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 40px 50px;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 123, 255, 0.1) 0%, rgba(10, 10, 10, 1) 70%);
    opacity: 0.5;
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
}

.service-hero h1 {
    font-size: clamp(36px, 8vw, 80px);
    margin-bottom: 20px;
}

.service-hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        max-height: 300px;
    }

    .nav-dropdown-menu a {
        padding: 8px 16px;
        border-bottom: none;
        font-size: 13px;
    }

    .solutions-grid,
    .testimonials-grid,
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-popup {
        width: calc(100vw - 40px);
        max-width: 350px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .achievement-number {
        font-size: 36px;
    }

    .service-hero {
        padding: 100px 20px 40px;
    }

    .service-hero h1 {
        font-size: clamp(28px, 6vw, 48px);
    }
}

@media (max-width: 480px) {
    .solutions-grid,
    .testimonials-grid,
    .tech-stack-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Image Integration Styles */
.visual-section {
    padding: 60px 0;
    background-color: #000;
}

.full-width-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.solution-image-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.solution-image-container img {
    width: 100%;
    border-radius: 10px;
}

.service-hero {
    background-size: cover;
    background-position: center;
}
