/* ===================================
   RESPONSIVE STYLES
   Media Queries for Mobile & Tablet
   =================================== */

/* ===================================
   TABLET & BELOW (max-width: 1024px)
   =================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-container {
        gap: 40px;
    }
    
    .hero-illustration {
        height: 400px;
    }
    
    .ui-window {
        height: 320px;
    }
    
    /* Fiverr CTA adjustments */
    .fiverr-title-main {
        font-size: 2.75rem;
    }
    
    .fiverr-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .package-card.premium {
        transform: scale(1);
    }
    
    .package-card.premium:hover {
        transform: translateY(-8px);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Portfolio grid - single column on tablet */
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .portfolio-image {
        height: 320px;
    }
    
    /* Extras grid - 2 columns on tablet */
    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Quote builder - client info grid */
    .client-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Package selector - 3 columns still on tablet but tighter */
    .package-selector {
        gap: 16px;
    }
    
    .package-option-content {
        padding: 20px 16px;
    }
    
    .package-option-content h4 {
        font-size: 1.125rem;
    }
    
    .package-price {
        font-size: 1.5rem;
    }
}

/* ===================================
   MOBILE NAVIGATION (max-width: 900px)
   =================================== */

@media (max-width: 900px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-secondary);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 0;
        transition: right 0.4s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
        width: 100%;
    }
    
    .nav-link::after {
        bottom: 0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
        margin-top: 16px;
    }
    
    .nav-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
    
    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-illustration {
        max-width: 500px;
        margin: 0 auto;
        height: 350px;
    }
    
    .ui-window {
        height: 280px;
    }
}

/* ===================================
   TABLET PORTRAIT (max-width: 768px)
   =================================== */

@media (max-width: 768px) {
    /* Typography */
    :root {
        --section-padding: 80px 0;
    }
    
    /* PERFORMANCE: Disable heavy animations on mobile */
    .floating-element,
    .gradient-orb,
    .particle,
    .fiverr-glow,
    .hero-shape-1,
    .hero-shape-2 {
        animation: none !important;
        opacity: 0.3 !important;
        will-change: auto !important;
    }
    
    /* PERFORMANCE: Reduce expensive blur filters on mobile */
    .fiverr-glow,
    .hero-shape-1,
    .hero-shape-2,
    .gradient-orb {
        filter: blur(40px) !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        text-align: center;
    }
    
    .hero-title-line {
        background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        text-align: center;
    }
    
    /* Hero Section */
    .hero {
        padding: 140px 0 80px;
        background: linear-gradient(135deg, #0a0e1a 0%, #0f1419 40%, #1a3a52 100%) !important;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-illustration {
        height: 300px;
    }
    
    .ui-window {
        height: 240px;
    }
    
    .ui-content {
        padding: 20px;
    }
    
    .ui-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ui-card {
        height: 80px;
    }
    
    .floating-element {
        display: none;
    }
    
    /* PERFORMANCE: Remove all heavy animations on mobile */
    * {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
    }
    
    /* Allow only essential transitions */
    .btn,
    .nav-toggle,
    .extra-content,
    .package-option-content,
    .faq-question {
        animation: none !important;
        transition: transform 0.2s ease, background-color 0.2s ease !important;
    }
    
    /* PERFORMANCE: Content visibility for off-screen sections */
    .process,
    .about,
    .faq,
    .contact {
        content-visibility: auto;
        contain-intrinsic-size: auto 500px;
    }
    
    /* Fiverr Mega CTA */
    .fiverr-cta-mega {
        padding: 80px 0;
    }
    
    .fiverr-title-main {
        font-size: 2.25rem;
    }
    
    .fiverr-title-accent {
        font-size: 1.25rem;
    }
    
    .fiverr-mega-description {
        font-size: 1rem;
    }
    
    .fiverr-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .fiverr-cta-buttons {
        flex-direction: column;
    }
    
    .btn-fiverr-mega {
        width: 100%;
        justify-content: center;
    }
    
    /* Process Section */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Extras grid - single column on mobile */
    .extras-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .extra-option {
        height: 180px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 32px 24px;
    }
    
    /* ===== QUOTE BUILDER MOBILE FIXES ===== */
    
    /* Quote step container */
    .quote-step {
        padding: 24px 16px;
        margin-bottom: 20px;
    }
    
    .quote-step-title {
        font-size: 1.25rem;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    /* Client info - stack vertically */
    .client-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }
    
    .form-input {
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Package selector - single column on mobile */
    .package-selector {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .package-option-content {
        padding: 20px;
    }
    
    .package-option-content h4 {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .package-price {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
    
    .package-features-list {
        font-size: 0.875rem;
    }
    
    .package-features-list li {
        padding: 6px 0;
        padding-left: 24px;
    }
    
    .package-features-list li::before {
        font-size: 0.75rem;
    }
}

/* ===================================
   MOBILE (max-width: 480px)
   =================================== */

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav {
        padding: 16px;
    }
    
    .nav-logo .logo-img {
        height: 32px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 80px 24px 24px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-shape-1,
    .hero-shape-2 {
        filter: blur(80px);
    }
    
    .hero-illustration {
        height: 260px;
    }
    
    .ui-window {
        width: 95%;
        height: 200px;
    }
    
    .ui-content {
        padding: 16px;
    }
    
    .ui-text-line {
        height: 10px;
    }
    
    .ui-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ui-card {
        height: 60px;
    }
    
    .gradient-orb {
        display: none;
    }
    
    /* Portfolio on small mobile */
    .portfolio-image {
        height: 260px;
    }
    
    .portfolio-info {
        padding: 20px;
    }
    
    .portfolio-title {
        font-size: 1.25rem;
    }
    
    .portfolio-tagline {
        font-size: 0.875rem;
    }
    
    .portfolio-desc {
        font-size: 0.8125rem;
    }
    
    /* Extra cards on small mobile */
    .extra-option {
        height: 170px;
    }
    
    .extra-content h5 {
        font-size: 1rem;
    }
    
    .extra-content .extra-desc {
        font-size: 0.8125rem;
    }
    
    .extra-price {
        font-size: 1.125rem;
    }
    
    .flip-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    /* ===== QUOTE BUILDER SMALL MOBILE ===== */
    
    .quote-step {
        padding: 20px 14px;
        border-radius: 12px;
    }
    
    .quote-step-title {
        font-size: 1.125rem;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 0.9375rem;
    }
    
    .package-option-content {
        padding: 16px;
    }
    
    .package-option-content h4 {
        font-size: 1.125rem;
    }
    
    .package-price {
        font-size: 1.5rem;
    }
    
    .package-features-list li {
        font-size: 0.8125rem;
        padding: 5px 0;
        padding-left: 28px;
    }
    
    /* Extras on small mobile */
    .extras-grid {
        gap: 16px;
    }
    
    .extra-option {
        height: auto;
        min-height: 160px;
    }
    
    .extra-face {
        padding: 16px;
    }
    
    .extra-content h5 {
        font-size: 0.9375rem;
    }
    
    /* Fiverr Mega CTA */
    .fiverr-cta-mega {
        padding: 60px 0;
    }
    
    .fiverr-badge-animated {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .fiverr-badge-animated svg {
        width: 20px;
        height: 20px;
    }
    
    .fiverr-title-accent {
        font-size: 1.125rem;
    }
    
    .fiverr-title-main {
        font-size: 1.875rem;
    }
    
    .fiverr-mega-description {
        font-size: 0.9375rem;
        margin-bottom: 32px;
    }
    
    .fiverr-feature {
        padding: 16px;
    }
    
    .fiverr-feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .fiverr-feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .fiverr-feature span {
        font-size: 0.875rem;
    }
    
    .btn-fiverr-mega {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .btn-fiverr-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .fiverr-trust-text {
        font-size: 0.875rem;
    }
    
    /* Package Cards */
    .package-card {
        padding: 32px 24px;
    }
    
    .package-card.premium {
        transform: scale(1);
    }
    
    .package-icon {
        width: 56px;
        height: 56px;
    }
    
    .package-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .package-name {
        font-size: 1.75rem;
    }
    
    .package-desc {
        font-size: 0.9375rem;
    }
    
    .feature-list li {
        padding: 10px 0;
        font-size: 0.9375rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 24px 20px;
    }
    
    .step-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .step-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .step-title {
        font-size: 1.125rem;
    }
    
    .step-desc {
        font-size: 0.875rem;
    }
    
    /* About Section */
    .about-text p {
        font-size: 1rem;
    }
    
    .skills-tags {
        gap: 8px;
        margin-top: 32px;
    }
    
    .skill-tag {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    /* FAQ Section */
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 0.9375rem;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 28px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 0.9375rem;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 0.9375rem;
    }
    
    .form-textarea {
        min-height: 120px;
    }
    
    /* Footer */
    .footer {
        padding: 32px 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===================================
   EXTRA SMALL MOBILE (max-width: 360px)
   =================================== */

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .fiverr-title-main {
        font-size: 1.625rem;
    }
    
    .package-card {
        padding: 24px 20px;
    }
    
    .hero-illustration {
        height: 220px;
    }
    
    .ui-window {
        height: 180px;
    }
    
    .ui-content {
        padding: 12px;
    }
    
    .ui-grid {
        gap: 8px;
    }
    
    .ui-card {
        height: 50px;
    }
    
    .fiverr-cta-buttons {
        gap: 12px;
    }
}

/* ===================================
   LANDSCAPE MOBILE (max-height: 500px)
   =================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-illustration {
        display: none;
    }
    
    .nav-menu {
        padding: 80px 24px 24px;
    }
    
    .fiverr-cta-mega {
        padding: 60px 0;
    }
}

/* ===================================
   HOVER STATES - DISABLE ON TOUCH
   =================================== */

@media (hover: none) {
    .btn:hover {
        transform: none;
    }
    
    .package-card:hover {
        transform: none;
    }
    
    .package-card.premium:hover {
        transform: none;
    }
    
    .process-step:hover {
        transform: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .header,
    .nav-toggle,
    .hero-bg,
    .fiverr-cta-mega,
    .footer,
    .hero-illustration {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}
