/* ============================================
   TBYTE - Responsive Styles
   ============================================ */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.4rem;
    }

    .hero-slider {
        height: 85vh;
    }

    .slide-content h1 {
        font-size: 3.2rem;
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .about-grid {
        gap: 50px;
    }

    .about-img-main img {
        height: 380px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-image {
        height: 260px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        min-width: 100%;
    }

    .contact-grid {
        gap: 48px;
    }

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

    .cta-banner {
        background-attachment: scroll;
    }

    .gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-img {
        height: 250px;
    }
}

/* --- Small Tablet / Large Phone (max-width: 768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .main-header .container {
        height: 60px;
    }

    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .logo-dot {
        width: 5px;
        height: 5px;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 24px 20px;
        gap: 0;
    }

    .main-nav a {
        padding: 16px 0;
        display: block;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
        color: var(--dark);
    }

    .main-nav a::after {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero-slider {
        height: 85vh;
        min-height: 520px;
        max-height: none;
    }

    .slide-content {
        left: 20px;
        right: 20px;
        bottom: 120px;
        max-width: 100%;
    }

    .slide-content h1 {
        font-size: 2.4rem;
        line-height: 1.1;
        margin-bottom: 14px;
    }

    .slide-content p {
        font-size: 0.88rem;
        margin-bottom: 28px;
        max-width: 100%;
        line-height: 1.6;
    }

    .slide-number {
        margin-bottom: 14px;
        font-size: 0.7rem;
    }

    .slide-divider {
        margin-bottom: 14px;
        width: 36px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.78rem;
    }

    .slider-controls {
        bottom: 24px;
        right: 20px;
        left: auto;
        gap: 14px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .slider-counter {
        font-size: 0.78rem;
    }

    .current-slide {
        font-size: 1rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 14px;
    }

    .section-tag {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }

    .section-desc {
        font-size: 0.88rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-section,
    .services-section,
    .portfolio-section,
    .process-section,
    .testimonials-section,
    .contact-section {
        padding: 64px 0;
    }

    /* Stats */
    .stats-bar {
        padding: 40px 0;
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 0;
    }

    .stat-item {
        padding: 0 16px;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

    .stat-item::after {
        display: none !important;
    }

    .stat-item p {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        max-width: 100%;
        margin-bottom: 16px;
    }

    .about-img-main img {
        height: 300px;
    }

    .about-img-secondary {
        width: 160px;
        height: 120px;
        bottom: -24px;
        right: -8px;
        border-width: 3px;
    }

    .experience-badge {
        width: 80px;
        height: 80px;
        top: -16px;
        left: -8px;
    }

    .exp-number {
        font-size: 1.4rem;
    }

    .exp-text {
        font-size: 0.55rem;
    }

    .about-description {
        font-size: 0.92rem;
        margin-bottom: 28px;
        line-height: 1.8;
    }

    .about-feature {
        padding: 16px 0;
        gap: 14px;
    }

    .feature-text h4 {
        font-size: 1rem;
    }

    .feature-text p {
        font-size: 0.82rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        background: transparent;
        gap: 0;
    }

    .service-card {
        border-bottom: 1px solid var(--border);
    }

    .service-img {
        height: 180px;
    }

    .service-body {
        padding: 24px 20px 28px;
    }

    .service-num {
        margin-bottom: 12px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
        font-size: 1.1rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .service-card p {
        font-size: 0.84rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .portfolio-image {
        height: 240px;
    }

    .portfolio-filter {
        gap: 6px;
        margin-bottom: 32px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .portfolio-hover {
        padding: 20px;
    }

    .portfolio-category {
        font-size: 0.65rem;
    }

    .portfolio-hover h4 {
        font-size: 1.1rem;
    }

    /* Process */
    .process-section {
        padding: 64px 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
        background: transparent;
        gap: 0;
    }

    .process-step {
        padding: 28px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .process-number {
        margin-bottom: 16px;
    }

    .process-step h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .process-step p {
        font-size: 0.84rem;
    }

    /* CTA */
    .cta-banner {
        padding: 64px 0;
        background-attachment: scroll;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 64px 0;
    }

    .testimonial-card {
        min-width: 100%;
        padding: 32px 24px;
    }

    .quote-mark {
        font-size: 3rem;
        margin-bottom: 4px;
    }

    .testimonial-card p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .testimonial-author img {
        width: 40px;
        height: 40px;
    }

    .testimonial-author h5 {
        font-size: 0.92rem;
    }

    .testimonial-author span {
        font-size: 0.68rem;
    }

    .testimonial-controls {
        margin-top: 28px;
    }

    .test-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-info .section-title {
        font-size: 1.8rem;
    }

    .contact-info > p {
        margin-bottom: 28px;
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-group label {
        font-size: 0.65rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    /* Footer */
    .main-footer {
        padding-top: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-about p {
        font-size: 0.84rem;
    }

    .footer-col h4 {
        font-size: 0.7rem;
        margin-bottom: 16px;
    }

    .footer-col ul a {
        font-size: 0.84rem;
    }

    .footer-contact p {
        font-size: 0.84rem;
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom p {
        font-size: 0.65rem;
    }

    /* Gallery */
    .gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-img {
        height: 200px;
    }

    /* Back to top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 0.75rem;
    }
}

/* --- Phone (max-width: 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero-slider {
        height: 100vh;
        height: 100dvh;
        min-height: 480px;
        max-height: none;
    }

    .slide-overlay {
        background: linear-gradient(180deg, rgba(11, 11, 11, 0.3) 0%, rgba(11, 11, 11, 0.8) 100%);
    }

    .slide-content {
        left: 16px;
        right: 16px;
        bottom: 100px;
    }

    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .slide-content p {
        font-size: 0.84rem;
        margin-bottom: 24px;
    }

    .slide-number {
        margin-bottom: 10px;
    }

    .slide-divider {
        margin-bottom: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .slider-controls {
        bottom: 20px;
        right: 16px;
        gap: 10px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.7rem;
    }

    .current-slide {
        font-size: 0.9rem;
    }

    .slider-counter {
        font-size: 0.72rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.55rem;
    }

    .about-section,
    .services-section,
    .portfolio-section,
    .process-section,
    .testimonials-section,
    .contact-section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-desc {
        font-size: 0.84rem;
    }

    /* Stats */
    .stats-bar {
        padding: 32px 0;
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    .stat-item {
        padding: 0 12px;
    }

    .stat-item h3 {
        font-size: 1.9rem;
    }

    .stat-line {
        margin: 8px auto;
    }

    .stat-item p {
        font-size: 0.58rem;
        letter-spacing: 1px;
    }

    /* About */
    .about-img-main img {
        height: 240px;
    }

    .about-img-secondary {
        width: 130px;
        height: 100px;
        bottom: -20px;
        right: 0;
    }

    .experience-badge {
        width: 70px;
        height: 70px;
        top: -12px;
        left: -4px;
    }

    .exp-number {
        font-size: 1.2rem;
    }

    .about-description {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .about-features {
        margin-bottom: 28px;
    }

    /* Portfolio */
    .portfolio-image {
        height: 200px;
    }

    .portfolio-filter {
        gap: 4px;
        margin-bottom: 24px;
    }

    .filter-btn {
        padding: 7px 12px;
        font-size: 0.7rem;
    }

    /* CTA */
    .cta-banner {
        padding: 48px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.84rem;
        margin-bottom: 24px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 24px 20px;
    }

    .quote-mark {
        font-size: 2.5rem;
    }

    .testimonial-card p {
        font-size: 0.86rem;
        margin-bottom: 20px;
    }

    /* Contact */
    .contact-info .section-title {
        font-size: 1.55rem;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 12px;
        font-size: 0.84rem;
    }

    /* Gallery */
    .gallery-img {
        height: 140px;
    }

    /* Footer */
    .main-footer {
        padding-top: 40px;
    }

    .footer-grid {
        gap: 28px;
        padding-bottom: 28px;
    }
}

/* --- Very small phones (max-width: 360px) --- */
@media (max-width: 360px) {
    .slide-content h1 {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .stat-item h3 {
        font-size: 1.6rem;
    }

    .contact-info .section-title {
        font-size: 1.4rem;
    }
}
