/* Responsive Design Styles - TiTweetAPP Technology Website */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
        --section-padding: 80px 0;
    }
    
    /* Navigation */
    .navbar {
        padding: 15px 0;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 600px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    /* Technology Stack */
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-text,
    .about-stats {
        flex: none;
        width: 100%;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Section */
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info,
    .contact-form {
        flex: none;
        width: 100%;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-width: 95%;
    }
    
    /* Navigation Mobile */
    .navbar {
        padding: 12px 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(15px);
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:hover {
        transform: translateX(10px);
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 24px;
        cursor: pointer;
        z-index: 1000;
        position: relative;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        margin: 6px auto;
        transition: all 0.3s ease;
        border-radius: 1px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* Services Section Mobile */
    .services-section {
        padding: var(--section-padding);
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    /* Technology Stack Mobile */
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-item {
        padding: 20px;
    }
    
    .tech-name {
        font-size: 1rem;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: var(--section-padding);
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .about-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .expertise-item {
        padding: 15px;
    }
    
    /* Contact Section Mobile */
    .contact-section {
        padding: var(--section-padding);
    }
    
    .contact-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .contact-content {
        gap: 30px;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .contact-item {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .contact-icon {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .contact-label {
        font-size: 0.9rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .tech-item {
        padding: 15px;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px 15px;
    }
    
    .btn {
        max-width: 100%;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-menu {
        padding-top: 60px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-buttons,
    .form-group button,
    .social-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .service-card,
    .contact-info,
    .contact-form {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}