/* TokenCraft AI - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile as required */
    *, *::before, *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    
    /* Container padding adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero section adjustments */
    .hero {
        min-height: 80vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-md);
        padding-top: 100px;
    }
    
    .hero .h4 {
        font-size: var(--font-size-lg);
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        text-align: center;
    }
    
    /* Section padding */
    .py-5 {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: var(--spacing-lg);
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-base);
    }
    
    /* Form adjustments */
    .form-control {
        font-size: var(--font-size-base);
        padding: var(--spacing-md);
    }
    
    /* Typography adjustments */
    h2 {
        font-size: var(--font-size-xl);
        text-align: center;
    }
    
    h3 {
        font-size: var(--font-size-lg);
    }
    
    h4 {
        font-size: var(--font-size-base);
    }
    
    h5 {
        font-size: var(--font-size-sm);
    }
    
    /* Team section */
    .team img {
        width: 80px;
        height: 80px;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Process section */
    .process .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        margin-bottom: var(--spacing-md);
    }
    
    /* Contact section */
    .contact .row {
        margin-top: var(--spacing-lg);
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    footer h5 {
        font-size: var(--font-size-base);
    }
    
    /* Space page */
    #space {
        min-height: calc(100vh - 200px);
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    /* Icon sizing */
    .fa-2x {
        font-size: 1.5em;
    }
    
    .fa-3x {
        font-size: 2em;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations as required */
    .card:hover,
    .btn:hover,
    img:hover {
        transform: none !important;
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
        padding-top: 100px;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    .team img {
        width: 100px;
        height: 100px;
    }
    
    .process .rounded-circle {
        width: 55px;
        height: 55px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero h1 {
        font-size: var(--font-size-4xl);
        padding-top: 80px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .team img {
        width: 110px;
        height: 110px;
    }
    
    .process .rounded-circle {
        width: 60px;
        height: 60px;
    }
    
    /* Services section - 2 columns on tablet */
    .services .col-lg-4 {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Features section - full width on tablet */
    .features .col-md-6 {
        margin-bottom: var(--spacing-lg);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
        padding-top: 60px;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
        padding-top: 60px;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: var(--spacing-2xl);
        padding-bottom: var(--spacing-2xl);
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer for printing */
    .navbar,
    footer,
    .breadcrumb-section {
        display: none !important;
    }
    
    /* Ensure good contrast for printing */
    body {
        color: #000;
        background: #fff;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    /* Page breaks */
    .hero,
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0004ff;
        --gray-800: #000000;
        --gray-100: #ffffff;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Dark mode support (respects user preference) */

/* Orientation specific styles */
@media (orientation: portrait) and (max-width: 768px) {
    .hero .col-lg-6:last-child {
        margin-top: var(--spacing-lg);
    }
    
    .hero img {
        max-height: 300px;
        width: auto;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .navbar {
        padding: var(--spacing-xs) 0;
    }
}

/* Accessibility: Focus improvements for mobile */
@media (max-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Increase touch targets */
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
    }
    
    .navbar-toggler {
        padding: var(--spacing-md);
    }
} 