/* MBTD Kurumsal Website - Responsive CSS Dosyası */

/* === ANIMATION CLASSES === */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in-active {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.slide-up-active {
    opacity: 1;
    transform: translateY(0);
}

.animated {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === LARGE SCREENS (Desktop) === */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .service-card {
        padding: 3rem;
    }
}

/* === DESKTOP SCREENS === */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .floating-card {
        padding: 1.5rem 2rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
}

/* === TABLET LANDSCAPE === */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .floating-card {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* === TABLET PORTRAIT === */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 80px 0;
    }
    
    /* Navigation */
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--border-radius-sm);
    }
    
    /* Hero Section */
    .hero-section {
        text-align: center;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 1rem;
    }
    
    .hero-buttons .btn:first-child {
        margin-bottom: 1rem;
    }
    
    /* Hero Stats */
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Hero Image */
    .hero-image {
        margin-top: 3rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    .floating-card {
        position: relative !important;
        display: inline-flex;
        margin: 0.5rem;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none !important;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Services */
    .service-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* About Preview */
    .about-content {
        margin-top: 2rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-item i {
        margin-bottom: 1rem;
        margin-top: 0;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Footer */
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .social-links {
        text-align: center;
        margin: 2rem 0;
    }
    
    .newsletter {
        text-align: center;
    }
    
    /* Scroll Indicator */
    .scroll-indicator {
        display: none;
    }
}

/* === MOBILE LANDSCAPE === */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
    }
}

/* === MOBILE PORTRAIT === */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 60px 0;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.875rem 1.5rem;
    }
    
    /* Hero Stats */
    .hero-stats .row {
        text-align: center;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-features {
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
    
    /* About Preview */
    .about-image {
        margin-bottom: 2rem;
    }
    
    .about-image .image-placeholder {
        height: 250px;
    }
    
    .feature-item {
        margin-bottom: 1.5rem;
    }
    
    .feature-item h5 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.875rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 2rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin: 1.5rem 0;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    /* Back to Top */
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 0.875rem;
    }
}

/* === SMALL MOBILE === */
@media (max-width: 575.98px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .image-placeholder i {
        font-size: 2.5rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-title {
        font-size: 1.125rem;
    }
    
    /* Footer */
    .footer .row {
        text-align: center;
    }
    
    .newsletter .form-control {
        margin-bottom: 0.5rem;
    }
    
    .newsletter .d-flex {
        flex-direction: column;
    }
    
    .newsletter .btn {
        width: 100%;
    }
}

/* === EXTRA SMALL SCREENS === */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* === HIGH DPI DISPLAYS === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .service-icon,
    .image-placeholder {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* === PRINT STYLES === */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .footer,
    .hero-buttons,
    .cta-buttons,
    #backToTop,
    .floating-card {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
    
    .service-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    a {
        text-decoration: underline !important;
    }
    
    a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* === DARK MODE PREFERENCE === */
@media (prefers-color-scheme: dark) {
    /* Users who prefer dark mode will see enhanced dark elements */
    .service-card {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none !important;
    }
    
    .scroll-down {
        animation: none !important;
    }
    
    .spinner {
        animation: none !important;
    }
}

/* === TOUCH DEVICES === */
@media (pointer: coarse) {
    /* Optimize for touch devices */
    .btn,
    .nav-link,
    .service-link {
        min-height: 44px;
        min-width: 44px;
        padding: 1rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem !important;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }
}

/* === LANDSCAPE ORIENTATION === */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-top: 1rem;
    }
    
    .image-placeholder {
        width: 180px;
        height: 180px;
    }
}
