/* 
   Web Digital Solution - Responsive Stylesheet
   Author: Web Digital Solution
   Version: 1.1 - Enhanced Mobile Responsiveness
*/

/* ===== RESPONSIVE STYLES ===== */

/* Touch-friendly improvements */
.touch-active {
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.2s ease;
}

/* Increase touch targets for better mobile usability */
@media (max-width: 767.98px) {
    .btn, nav ul li a, .footer-links ul li a, .footer-services ul li a, .social-links a {
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle, .back-to-top {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide desktop main navigation on mobile */
    .main-nav {
        display: none;
    }
    
    /* Hide desktop header CTA on mobile */
    .header-cta {
        display: none;
    }
    
    /* Ensure mobile menu navigation is visible when active */
    .modern-mobile-menu {
        display: none;
    }
    
    .modern-mobile-menu.active {
        display: flex;
        flex-direction: column;
    }
    
    .modern-mobile-nav, .modern-mobile-nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    input, select, textarea, button {
        min-height: 44px;
        padding: 10px 15px;
    }
}

/* Section Animation */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 30px;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    section {
        padding: 60px 0;
        opacity: 1;
        transform: translateY(0);
    }
    
    .about {
        padding: 70px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .about-tabs-wrapper {
        padding: 25px;
    }
    
    .tab-btn {
        padding: 10px 20px;
    }
    
    .company-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pricing {
        padding: 70px 0;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .pricing-card.enterprise {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-overview {
        padding: 50px 0; /* Even smaller padding on tablets */
    }
    
    .technologies {
        padding: 60px 0;
    }
    
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .page-hero {
        padding: 100px 0 60px;
    }
    
    /* Footer Tablet Styles */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-new {
        padding: 40px 0 0;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cta-features {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero .container {
        flex-direction: column;
        padding: 0 30px;
        width: 95%;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
        flex: 0 0 100%;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        height: auto;
        flex: 0 0 100%;
        width: 100%;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .cube-container {
        left: 25%;
    }
    
    .ai-processor {
        right: 25%;
    }
    
    .floating-element {
        opacity: 0.4;
        /* Keep them visible but reduce opacity on mobile */
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-left {
        order: 2;
    }
    
    .about-right {
        order: 1;
        padding-left: 0;
    }
    
    .about-tabs-wrapper {
        padding: 20px;
    }
    
    .tabs-header {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tab-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .tab-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .feature-list li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .company-highlights {
        grid-template-columns: 1fr;
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .culture-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    section {
        padding: 50px 0;
    }
    
    .page-hero {
        padding: 80px 0 50px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    #particles-js {
        opacity: 0.5;
    }
    
    .pricing {
        padding: 50px 0 30px;
    }
    
    .pricing-overview {
        padding: 30px 0; /* Even smaller padding on mobile */
    }
    
    .pricing-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
        margin-top: 30px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-cards {
        display: flex;
        flex-direction: column;
        gap: 25px; /* Increased gap for better separation */
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card {
        padding: 25px 20px; /* Increased padding for better spacing */
        max-width: 100%;
        margin: 0 auto 15px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
    }
    
    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    }
    
    .pricing-header {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .plan-name {
        margin-bottom: 10px;
    }
    
    .plan-name h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .plan-name .badge {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .price {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .price .currency {
        font-size: 1.4rem;
        line-height: 1;
        margin-right: 2px;
    }
    
    .price .amount {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .price .period {
        font-size: 0.85rem;
        margin-left: 4px;
        display: inline-block;
        line-height: 1;
    }
    
    .pricing-header .description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .pricing-features {
        margin: 20px 0;
    }
    
    .pricing-features ul {
        gap: 12px;
    }
    
    .pricing-features li {
        font-size: 0.95rem;
        padding: 6px 0;
        gap: 10px;
    }
    
    .pricing-footer .btn {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 8px;
        min-height: 48px; /* Larger touch target */
    }
    
    .technologies {
        padding: 40px 0;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tech-list {
        grid-template-columns: 1fr;
    }
    
    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .elements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tech-note {
        padding: 15px 20px;
    }
    /* Original Header Responsive Styles */
    .navbar {
        padding: 15px 0;
    }
    
    /* Modern Header Responsive Styles */
    .header-wrapper {
        height: 70px;
    }
    
    .logo-area {
        margin-right: auto;
    }
    
    .logo-text {
        font-size: 22px;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
    }
    
    .logo-text i {
        font-size: 18px;
        margin-right: 4px;
        animation: spin 8s linear infinite;
    }
    
    .logo-text .highlight {
        animation: pulse-small 2.5s infinite;
    }
    
    @keyframes pulse-small {
        0% { text-shadow: var(--glow-effect), 0 0 3px var(--primary-color); }
        50% { text-shadow: var(--glow-effect), 0 0 12px var(--primary-color); }
        100% { text-shadow: var(--glow-effect), 0 0 3px var(--primary-color); }
    }
    
    .tagline {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Animate hamburger icon when menu is open */
    .menu-toggle.active .hamburger-icon span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger-icon span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Header Styles for Smaller Screens */
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-content {
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-bottom: var(--border-glow);
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 0;
        color: var(--text-color);
    }

    nav ul li a:hover {
        color: var(--accent-color);
    }

    .menu-toggle {
        display: block;
        color: var(--white);
    }
    
    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    /* Dropdown menu for smaller screens */
    .services-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        background: rgba(15, 15, 20, 0.5);
        padding: 10px;
        margin-top: 10px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 8px;
    }
    
    .services-dropdown.active .dropdown-menu {
        max-height: 300px;
    }
    
    .services-dropdown > a {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .services-dropdown > a i {
        margin-left: 5px;
        transition: transform 0.3s ease;
    }
    
    .services-dropdown.active > a i {
        transform: rotate(180deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
    
    /* Footer Responsive Styles */
    .footer-new {
        padding: 30px 0 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .footer-section {
        text-align: center;
        padding-bottom: 10px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-form .form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-input {
        width: 100%;
    }
    
    .footer-submit {
        width: 100%;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 15px 20px;
    }
    
    .footer-bottom p {
        margin-bottom: 10px;
    }

    .copyright {
        margin-bottom: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .typing-text {
        white-space: normal;
        border-right: none;
    }
    
    .hero-visual {
        height: auto;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .showcase-item.website {
        grid-column: auto;
    }
    
    .hero .container {
        padding: 0 20px;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .cube-container {
        width: 100px;
        height: 100px;
        left: 20%;
    }
    
    .cube-face {
        font-size: 1.8rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        right: 20px;
        bottom: 20px;
    }
    
    .front {
        transform: translateZ(50px);
    }
    
    .back {
        transform: rotateY(180deg) translateZ(50px);
    }
    
    .right {
        transform: rotateY(90deg) translateZ(50px);
    }
    
    .left {
        transform: rotateY(-90deg) translateZ(50px);
    }
    
    .top {
        transform: rotateX(90deg) translateZ(50px);
    }
    
    .bottom {
        transform: rotateX(-90deg) translateZ(50px);
    }
    
    .ai-processor {
        width: 120px;
        height: 120px;
        right: 20%;
    }
    
    .processor-core {
        width: 40px;
        height: 40px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .about {
        padding: 50px 0;
    }
    
    .about-image-wrapper {
        margin-bottom: 20px;
    }
    
    .tech-stack-overlay {
        bottom: 10px;
        left: 10px;
        gap: 10px;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
    }
    
    .tech-icon i {
        font-size: 1rem;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .achievement-item .number {
        font-size: 1.8rem;
    }
    
    .achievement-item .label {
        font-size: 0.85rem;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .culture-item h4 {
        font-size: 1rem;
    }
    
    .portfolio-item {
        height: 200px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 80px 0 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-feature {
        padding: 12px;
    }
    
    .hero-feature h3 {
        font-size: 1rem;
    }
    
    .hero-feature p {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card, .portfolio-item, .pricing-card, .team-card, .blog-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .service-card h3, .portfolio-item h3, .pricing-card h3, .team-card h3, .blog-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p, .portfolio-item p, .pricing-card p, .team-card p, .blog-card p {
        font-size: 0.85rem;
    }
    
    .pricing {
        padding: 40px 0;
    }
    
    .pricing-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card {
        padding: 20px 15px;
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
    }
    
    .pricing-card:hover {
        transform: translateY(-3px);
    }
    
    .plan-name {
        margin-bottom: 15px;
    }
    
    .plan-name h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .plan-name .badge {
        padding: 4px 12px;
        font-size: 0.75rem;
        display: inline-block;
        border-radius: 20px;
        margin-top: 5px;
    }
    
    .price {
        margin: 15px 0;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        gap: 2px;
        width: 100%;
        text-align: center;
    }
    
    .price .currency {
        font-size: 1.2rem;
        line-height: 1;
    }
    
    .price .amount {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .price .period {
        font-size: 0.75rem;
        display: inline-block;
        line-height: 1;
        margin-left: 2px;
    }
    
    .pricing-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .pricing-header .description {
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 0 5px;
    }
    
    .pricing-features {
        margin-bottom: 20px;
    }
    
    .pricing-features ul {
        gap: 10px;
    }
    
    .pricing-features li {
        font-size: 0.9rem;
        gap: 10px;
        padding: 5px 0;
        display: flex;
        align-items: center;
    }
    
    .pricing-features li i {
        min-width: 16px;
        display: flex;
        justify-content: center;
    }
    
    .pricing-footer .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-bottom: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .support-text {
        font-size: 0.8rem;
        opacity: 0.8;
        margin-top: 5px;
    }
    
    /* Testimonial Responsive Styles */
    .testimonial-slide {
        padding: 15px;
    }
    
    .testimonial-content {
        padding: 15px;
    }
    
    .quote-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .client-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .client-img {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .testimonial-author {
        font-size: 1rem;
    }
    
    .author-position {
        font-size: 0.8rem;
    }
    
    .testimonial-controls {
        margin-top: 20px;
        gap: 15px;
    }
    
    .prev-testimonial,
    .next-testimonial {
        width: 35px;
        height: 35px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .tech-card, .tool-card, .element-card {
        padding: 15px;
    }
    
    .tech-card h3, .tool-card h3, .element-card h3 {
        font-size: 1.1rem;
    }
    
    .tech-card p, .tool-card p, .element-card p {
        font-size: 0.85rem;
    }
    
    .contact-form input, .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-links li {
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 8px 0;
        display: inline-block;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-input {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 5px;
    }
    
    .footer-submit {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 5px;
    }
    
    .footer-contact {
        margin-top: 20px;
    }
    
    .footer-contact p {
        margin-bottom: 12px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 15px 20px;
        margin-top: 30px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .heart {
        font-size: 1rem;
    }
    
    .policy-section {
        padding: 15px;
    }
    
    .policy-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .policy-section p, .policy-section ul li {
        font-size: 0.85rem;
    }
}