/* ========================================
   DOLICO TECH - Responsive Stylesheet
   ======================================== */

/* ======== Tablet Styles (max-width: 1024px) ======== */
@media screen and (max-width: 1024px) {
    
    /* Typography */
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Navigation */
    .nav-menu {
        gap: 20px;
    }
    
    .nav-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .stat-item {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* Services Preview Grid */
    .services-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Why Choose Grid */
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    /* Contact Wrapper */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======== Mobile Landscape & Small Tablet (max-width: 768px) ======== */
@media screen and (max-width: 768px) {
    
    /* Container */
    .container {
        padding: 0 20px;
    }
    
    /* Section Padding */
    :root {
        --section-padding: 60px 0;
    }
    
    /* Typography */
    html {
        font-size: 15px;
    }
    
    /* Disable 3D transforms on mobile for better performance */
    .service-card:hover,
    .value-card:hover,
    .engagement-card:hover,
    .why-choose-item:hover {
        transform: translateY(-5px) scale(1) !important;
    }
    
    /* Simplify animations on mobile */
    .animate-on-scroll {
        transition: opacity 0.4s ease !important;
    }
    
    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        transform: none !important;
    }
    
    .fade-in-up.animated,
    .fade-in-left.animated,
    .fade-in-right.animated {
        transform: none !important;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 80vh;
        min-height: 500px;
        margin-top: 80px;
    }
    
    .slide-content {
        padding-top: 10vh;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        left: 15px;
    }
    
    .slider-nav.next {
        right: 15px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 30px 0;
    }
    
    .stats-grid {
        gap: 30px;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
    }
    
    .stat-icon i {
        font-size: 2rem;
    }
    
    .stat-content {
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-symbol {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 140px 0 50px;
        background-attachment: scroll !important;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.05rem;
    }
    
    /* Header & Navigation */
    .top-bar {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .contact-info a,
    .contact-info span {
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white-color);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-base);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-actions .btn-primary {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .stats-section {
        margin-top: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Solutions Section */
    .solution-feature {
        padding: 30px 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.6rem;
    }
    
    .feature-description {
        font-size: 1rem;
    }
    
    .feature-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Feature Images Responsive */
    .feature-main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-image-large img {
        height: 250px;
    }
    
    .feature-image-small img {
        height: 180px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Services Preview Section */
    .services-preview-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-preview-card {
        padding: 30px 20px;
    }
    
    .service-preview-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .service-preview-card h3 {
        font-size: 1.2rem;
    }
    
    .service-preview-card p {
        font-size: 0.95rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 25px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    /* Testimonial Section */
    .testimonial-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .testimonial-author h4 {
        font-size: 1.2rem;
    }
    
    /* Testimonials Carousel */
    .testimonials-slider {
        padding: 30px 50px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-card i {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .testimonial-card .testimonial-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .testimonial-card .author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-card .author-info {
        text-align: center;
    }
    
    .testimonial-card .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Engagement Section */
    .engagement-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .engagement-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .engagement-item {
        padding: 30px 20px;
    }
    
    .about-content {
        padding: 30px 25px;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Why Choose Section */
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-choose-item {
        padding: 30px 20px;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    /* References Section */
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .reference-item {
        padding: 20px;
    }
    
    .reference-card {
        padding: 30px 20px;
        min-height: 120px;
    }
    
    .reference-logo img {
        max-height: 70px;
    }
    
    .reference-overlay h4 {
        font-size: 1.1rem;
    }
    
    .reference-overlay p {
        font-size: 0.9rem;
    }
    
    /* Contact Section */
    .contact-wrapper {
        gap: 30px;
    }
    
    .contact-info-box,
    .contact-form-box {
        padding: 30px 25px;
    }
    
    .contact-info-box h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        flex-direction: row;
        gap: 15px;
    }
    
    .contact-item i {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 50px 0 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Timeline Section */
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding: 20px;
        padding-left: 70px;
    }
    
    .timeline-icon {
        left: 0;
        transform: translateX(0);
    }
    
    .timeline-year {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
    
    .timeline-content h4 {
        font-size: 1.2rem;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .member-image {
        height: 240px;
    }
    
    .member-info {
        padding: 20px 15px;
    }
    
    .member-info h4 {
        font-size: 1.15rem;
    }
    
    .member-role {
        font-size: 0.9rem;
    }
    
    .member-bio {
        font-size: 0.9rem;
    }
    
    /* Certifications Section */
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .certification-card {
        padding: 30px 20px;
    }
    
    .cert-icon {
        width: 70px;
        height: 70px;
    }
    
    .cert-icon i {
        font-size: 2rem;
    }
    
    .certification-card h4 {
        font-size: 1.1rem;
    }
    
    /* Why Choose Section */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-item {
        padding: 25px 20px;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
    }
    
    .why-icon i {
        font-size: 1.8rem;
    }
    
    .why-item h4 {
        font-size: 1.1rem;
    }
}

/* ======== Mobile Portrait (max-width: 480px) ======== */
@media screen and (max-width: 480px) {
    
    /* Typography */
    html {
        font-size: 14px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 70vh;
        min-height: 450px;
        margin-top: 70px;
    }
    
    .slide-content {
        padding-top: 8vh;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .slide-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 25px;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 25px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: center;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon i {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-symbol {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Logo */
    .logo img {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    /* Mobile Menu */
    .nav-menu {
        width: 100%;
        left: -100%;
    }
    
    /* Hero */
    .hero {
        padding: 120px 0 60px;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Stats */
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-symbol {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    /* Solutions */
    .solution-feature {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .feature-title {
        font-size: 1.4rem;
    }
    
    .feature-column h4 {
        font-size: 1.1rem;
    }
    
    .feature-column li {
        font-size: 0.95rem;
    }
    
    /* Feature Images Mobile */
    .feature-image-grid {
        gap: 15px;
    }
    
    .feature-image-large img {
        height: 200px;
    }
    
    .feature-image-small img {
        height: 150px;
    }
    
    .image-caption {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    /* Services */
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
    }
    
    .service-overlay i {
        font-size: 3rem;
    }
    
    /* Testimonial */
    .testimonial-wrapper {
        padding: 0 10px;
    }
    
    .testimonial-icon {
        font-size: 2.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-author h4 {
        font-size: 1.1rem;
    }
    
    .testimonial-author p {
        font-size: 0.9rem;
    }
    
    /* Testimonials Carousel */
    .testimonials-slider {
        padding: 20px 40px;
    }
    
    .testimonial-card {
        padding: 25px 15px;
    }
    
    .testimonial-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .testimonial-card .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .testimonial-card .author-avatar {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-card .author-info h4 {
        font-size: 1rem;
    }
    
    .testimonial-card .author-info p {
        font-size: 0.85rem;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .testimonial-dots {
        gap: 8px;
        margin-top: 20px;
    }
    
    .testimonial-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Engagement */
    .engagement-item {
        padding: 25px 15px;
    }
    
    .engagement-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .engagement-item h3 {
        font-size: 1.2rem;
    }
    
    .engagement-item p {
        font-size: 0.95rem;
    }
    
    .about-content {
        padding: 25px 20px;
    }
    
    .about-content h3 {
        font-size: 1.4rem;
    }
    
    /* References */
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-item {
        padding: 25px 15px;
    }
    
    .reference-item img {
        max-height: 60px;
    }
    
    .reference-card {
        padding: 25px 15px;
        min-height: 100px;
    }
    
    .reference-logo img {
        max-height: 60px;
    }
    
    .reference-overlay h4 {
        font-size: 1rem;
    }
    
    .reference-overlay p {
        font-size: 0.85rem;
    }
    
    /* Contact */
    .contact-info-box,
    .contact-form-box {
        padding: 25px 20px;
    }
    
    .contact-info-box h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .contact-item {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-menu a {
        font-size: 0.95rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .newsletter-form input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .newsletter-form button {
        padding: 10px 15px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        font-size: 0.85rem;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }
    
    /* Timeline Section */
    .timeline-item {
        margin-bottom: 35px;
    }
    
    .timeline-content {
        padding: 18px;
        padding-left: 60px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        box-shadow: 0 0 0 6px var(--white-color), 0 0 0 9px var(--primary-color);
    }
    
    .timeline-icon i {
        font-size: 1.2rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .member-image {
        height: 280px;
    }
    
    .member-info h4 {
        font-size: 1.2rem;
    }
    
    /* Certifications Section */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certification-card {
        padding: 25px 20px;
    }
    
    .cert-icon {
        width: 65px;
        height: 65px;
    }
    
    .cert-icon i {
        font-size: 1.8rem;
    }
    
    .certification-card h4 {
        font-size: 1.05rem;
    }
    
    .certification-card p {
        font-size: 0.9rem;
    }
    
    /* Why Choose Section */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-item {
        padding: 25px 20px;
    }
    
    .why-icon {
        width: 55px;
        height: 55px;
    }
    
    .why-icon i {
        font-size: 1.6rem;
    }
    
    .why-item h4 {
        font-size: 1.05rem;
    }
    
    .why-item p {
        font-size: 0.9rem;
    }
}

/* ======== Extra Small Devices (max-width: 360px) ======== */
@media screen and (max-width: 360px) {
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 110px 0 50px;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* ======== Landscape Orientation ======== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    
    .hero {
        padding: 120px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        display: none;
    }
    
    .hero-buttons {
        margin-top: 20px;
    }
    
    .stats-section {
        margin-top: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ======== Print Styles ======== */
@media print {
    
    .header,
    .hero-buttons,
    .scroll-to-top,
    .mobile-menu-toggle,
    .contact-form-box,
    .newsletter-form,
    .footer-social {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .service-card,
    .stat-item,
    .engagement-item {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ======== High DPI Displays ======== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Optimize font rendering for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ======== Dark Mode Support (Optional) ======== */
@media (prefers-color-scheme: dark) {
    /* 
    Uncomment to add dark mode support:
    
    :root {
        --dark-color: #ffffff;
        --white-color: #1a1a2e;
        --text-dark: #f8f9fa;
        --text-light: #b0b0b0;
        --light-color: #2c3e50;
        --border-color: #3a3a4e;
    }
    */
}

/* ======== Reduced Motion ======== */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ======== Large Screens (min-width: 1440px) ======== */
@media screen and (min-width: 1440px) {
    
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ======== Additional Responsive Styles for Blog Templates ======== */

/* Tablet adjustments for new templates */
@media screen and (max-width: 1024px) {
    
    /* Content Layout */
    .content-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    
    /* Search Results */
    .search-result-item {
        flex-direction: column;
    }
    
    .search-result-thumbnail {
        width: 100%;
        height: 220px;
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* Single Post */
    .single-post-article {
        padding: 40px;
    }
    
    /* Author Bio */
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    /* Comments */
    .comment-list .children {
        padding-left: 30px;
    }
}

/* Mobile Styles for Blog Templates (max-width: 768px) */
@media screen and (max-width: 768px) {
    
    /* Content Layout - Stack sidebar below content */
    .content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    /* 404 Page */
    .error-number {
        font-size: 80px;
    }
    
    .error-search-box {
        padding: 30px 20px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .quick-link-card {
        padding: 20px;
    }
    
    .quick-link-card i {
        font-size: 2rem;
    }
    
    /* Search Results */
    .search-form-large .search-input-group {
        flex-direction: column;
    }
    
    .search-result-item {
        gap: 0;
    }
    
    .search-result-thumbnail {
        height: 200px;
    }
    
    .search-result-content {
        padding: 20px;
    }
    
    .search-result-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    /* Archive Page */
    .archive-icon {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-thumbnail {
        height: 220px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    /* Single Post */
    .post-header {
        padding: 140px 0 60px;
    }
    
    .post-meta-info {
        gap: 12px;
        font-size: 0.85rem;
    }
    
    .single-post-article {
        padding: 25px 20px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-content-wrapper {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-previous a,
    .nav-next a {
        padding: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Comments */
    .comment-body {
        flex-direction: column;
        padding: 20px;
    }
    
    .comment-list .children {
        padding-left: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-form-styled .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar Widgets */
    .widget {
        padding: 20px;
    }
    
    .recent-post-thumb {
        width: 60px;
        height: 60px;
    }
    
    .tag-cloud {
        gap: 6px;
    }
    
    .tag-item {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    /* Pagination */
    .pagination-wrapper .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    
    /* 404 Page */
    .error-number {
        font-size: 60px;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Search */
    .search-result-thumbnail {
        height: 180px;
    }
    
    /* Archive */
    .post-thumbnail {
        height: 200px;
    }
    
    /* Single Post */
    .post-header {
        padding: 120px 0 50px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .single-post-article {
        padding: 20px 15px;
    }
    
    .share-buttons .share-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Comments */
    .comment-body {
        padding: 15px;
    }
    
    .comment-list .children {
        padding-left: 15px;
    }
    
    /* Pagination */
    .pagination-wrapper .nav-links {
        gap: 5px;
    }
    
    .pagination-wrapper .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}


/* ======== Extra Large Screens (min-width: 1920px) ======== */
@media screen and (min-width: 1920px) {
    
    .container {
        max-width: 1600px;
    }
    
    html {
        font-size: 18px;
    }
}
