/* Tablet Devices (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-card.featured {
        transform: scale(1);
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 15px 0;
        width: 100%;
    }
    
    .nav-menu a.active::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        text-align: center;
    }
    
    .hero-image img {
        max-width: 80%;
    }
    
    /* Tools Section */
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card.featured {
        transform: scale(1);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .tool-card {
        padding: 30px 20px;
    }
    
    .tool-icon {
        width: 70px;
        height: 70px;
    }
    
    .tool-icon i {
        font-size: 2rem;
    }
    
    .tool-card h3 {
        font-size: 1.3rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* Landscape Mode for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-image {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .hero-buttons {
        display: none;
    }
    
    body {
        color: black;
    }
}

/* High Resolution Displays */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .tool-btn,
    .nav-menu a,
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .tool-card:hover {
        transform: none;
    }
    
    .hero-image img {
        animation: none;
    }
}
/* Stats Counter Responsive */
@media screen and (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .stat-box i {
        font-size: 2rem;
        min-width: 40px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .stat-number {
        font-size: 1.3rem;
    }
}
