@media (max-width: 1024px) {
.dtr-portfolio-grid-2col .dtr-portfolio-item, .dtr-portfolio-grid-3col .dtr-portfolio-item, .dtr-portfolio-grid-4col .dtr-portfolio-item { width: 50%; }
}

@media (max-width: 992px) {
.hero-section {
    padding-top: 50px;
    padding-bottom: 50px;
    min-height: 80vh;
}
.section-padding { padding-top: 50px; padding-bottom: 50px; }
.dtr-hero-about { display: block; margin-top: 50px; }
.container { width: 100%; max-width: 100%; }
#dtr-topbar, #dtr-header-global, #dtr-header-global.header-fixed, .sf-sub-indicator, .main-navigation .sf-menu { display: none; }
#dtr-responsive-header, .slicknav_menu, #dtr-menu-button { display: block; }
.spacer-sm-30 { height: 30px; }
.dtr-page-title--section { padding: 50px 0 50px 0; }
.dtr-page-title__heading { font-size: 2.5em; line-height: 1.3em; }
.error-404 { margin-top: 0; }
.dtr-skills-wrapper { width: 100%; display: block; }
.dtr-portfolio__head-wrapper { display: block; }
.dtr-filter-nav { justify-content: flex-start; margin-top: 20px; }

/* Mobile Header Layout */
#dtr-responsive-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

#dtr-responsive-header .dtr-custom-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--dtr-primary-color);
}

/* Mobile Header Right */
.dtr-mobile-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    display: flex !important;
    width: 36px;
    height: 36px;
    margin-right: 0;
}

.mobile-theme-toggle i {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

/* Hide desktop theme toggle on mobile */
.dtr-header-right .theme-toggle {
    display: none;
}

/* Hero responsive adjustments */
.hero-particles .particle {
    display: none;
}

.hero-shapes .shape {
    opacity: 0.05;
}

.hero-shapes .shape-1 {
    width: 60px;
    height: 60px;
}

.hero-shapes .shape-2 {
    width: 50px;
    height: 50px;
}

.hero-shapes .shape-3 {
    width: 40px;
    height: 40px;
}

.hero-scroll-indicator {
    bottom: 20px;
}

.scroll-text {
    display: none;
}

/* Enhanced Hero Responsive */
.hero-main-title {
    font-size: 2.5rem;
}

.title-line-2 {
    font-size: 3rem;
}

.hero-achievements {
    justify-content: center;
}

.hero-social-proof {
    justify-content: center;
    gap: 30px;
}

.hero-image-container {
    height: 400px;
    margin-top: 40px;
}

.image-frame {
    width: 300px;
    height: 300px;
}

.floating-badge {
    font-size: 10px;
    padding: 8px 12px;
}

.badge-1 {
    top: 10%;
    left: 5%;
}

.badge-2 {
    top: 20%;
    right: 5%;
}

.badge-3 {
    bottom: 25%;
    left: 5%;
}

.badge-4 {
    bottom: 10%;
    right: 5%;
}

.decoration-circle,
.decoration-line {
    display: none;
}

.pattern-dot,
.pattern-line {
    display: none;
}

/* Wave separator responsive */
.hero-wave-separator {
    height: 100px;
}

.hero-wave-separator svg {
    transform: scale(1.05);
}

/* Compact Services Section Responsive */
.services-section {
    padding: 30px 0;
}

.services-compact-header h2 {
    font-size: 2rem;
}

.services-horizontal {
    grid-template-columns: 1fr;
    gap: 15px;
}

.service-item {
    padding: 15px;
}

.service-item__header {
    gap: 10px;
}

.service-item__icon {
    width: 45px;
    height: 45px;
}

.service-item__icon i {
    font-size: 18px;
}

.service-item__meta h3 {
    font-size: 1rem;
}

.services-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.services-stats-compact {
    gap: 20px;
}

.stat-number {
    font-size: 1.25rem;
}

.services-cta-compact {
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.cta-text {
    font-size: 0.9rem;
}

/* Modern About Section Responsive */
.about-section {
    padding: 25px 0;
}

.about-header h2 {
    font-size: 2rem;
}

.about-subtitle {
    font-size: 1rem;
}

.about-profile {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    text-align: center;
}

.about-profile__image {
    align-self: center;
}

.about-profile__image img {
    width: 100px;
    height: 100px;
}

.about-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.about-card {
    padding: 15px;
}

.about-stats {
    flex-direction: row;
    justify-content: space-around;
}

.stat-item {
    flex: 1;
    margin: 0 5px;
}

.stat-number {
    font-size: 1.5rem;
}

/* Modern Testimonials Section Responsive */
.testimonials-section {
    padding: 25px 0;
}

.testimonials-header h2 {
    font-size: 2rem;
}

.testimonials-subtitle {
    font-size: 1rem;
}

.testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.testimonial-card {
    padding: 20px;
}

.testimonials-stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.testimonials-stats__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.testimonials-stats__number {
    font-size: 1.75rem;
}

.testimonials-cta {
    padding: 20px;
}

.testimonials-cta__title {
    font-size: 1.25rem;
}

/* Modern Blog Section Responsive */
.blog-section {
    padding: 25px 0;
}

.blog-header h2 {
    font-size: 2rem;
}

.blog-subtitle {
    font-size: 1rem;
}

.blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.blog-card__content {
    padding: 20px;
}

.blog-card__image {
    height: 180px;
}

.blog-cta {
    padding: 20px;
}

.blog-cta__title {
    font-size: 1.25rem;
}

/* Simple Footer Responsive */
#dtr-footer-section {
    padding: 30px 0 15px 0;
}

.copyright-list {
    gap: 15px;
}

.dtr-social {
    gap: 12px;
}

.dtr-social li a {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

#take-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
}

/* Compact Works Section Responsive */
.works-section {
    padding: 20px 0;
}

.works-compact-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.works-compact-header h2 {
    font-size: 2rem;
}

.works-filter-inline {
    align-self: stretch;
    justify-content: center;
}

.filter-btn {
    flex: 1;
    padding: 8px 12px;
}

.works-compact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.work-card__image {
    height: 150px;
}

.work-card__overlay {
    padding: 12px;
}

.work-card__title {
    font-size: 1rem;
}

.work-card__description {
    font-size: 0.8rem;
}

.works-cta-compact {
    flex-direction: column;
    gap: 12px;
    padding: 12px 15px;
    text-align: center;
}

.works-cta-text {
    font-size: 0.9rem;
}
}

@media (max-width: 782px) {
.dtr-portfolio-grid-2col, .dtr-portfolio-grid-3col, .dtr-portfolio-grid-4col { margin: 0; }
.dtr-portfolio-grid-2col .dtr-portfolio-item, .dtr-portfolio-grid-3col .dtr-portfolio-item, .dtr-portfolio-grid-4col .dtr-portfolio-item { width: 100%; padding: 0; }

/* Mobile Hero Enhancements */
.hero-main-title {
    font-size: 2rem;
    text-align: center;
}

.title-line-2 {
    font-size: 2.5rem;
}

.hero-greeting {
    text-align: center;
}

.hero-description {
    text-align: center;
}

.hero-cta-section .btn-row {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-primary-btn,
.hero-secondary-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.hero-image-container {
    height: 350px;
}

.image-frame {
    width: 250px;
    height: 250px;
}

.floating-badge {
    font-size: 9px;
    padding: 6px 10px;
}

.status-indicator {
    bottom: -20px;
    font-size: 10px;
    padding: 6px 12px;
}

/* Mobile Compact Services Section */
.services-section {
    padding: 20px 0;
}

.services-compact-header {
    margin-bottom: 20px;
}

.services-compact-header h2 {
    font-size: 1.75rem;
}

.services-compact-header p {
    font-size: 0.9rem;
}

.services-horizontal {
    gap: 12px;
}

.service-item {
    padding: 12px;
}

.service-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.service-item__meta {
    width: 100%;
}

.service-item__meta h3 {
    font-size: 0.95rem;
}

.service-item__description {
    font-size: 0.85rem;
}

.feature-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
}

.services-bottom {
    padding: 12px;
}

.services-stats-compact {
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-number {
    font-size: 1.125rem;
}

.stat-label {
    font-size: 0.75rem;
}

.cta-text {
    font-size: 0.85rem;
}

.dtr-btn--compact {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Mobile Compact Works Section */
.works-section {
    padding: 15px 0;
}

.works-compact-header h2 {
    font-size: 1.75rem;
}

.works-filter-inline {
    padding: 3px;
    gap: 4px;
}

.filter-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.works-compact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.work-card__image {
    height: 140px;
}

.work-card__overlay {
    padding: 10px;
}

.work-card__title {
    font-size: 0.95rem;
}

.work-card__description {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
}

.work-card__category {
    font-size: 0.7rem;
    margin-bottom: 6px;
}

.work-card__actions {
    gap: 6px;
}

.work-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
}

.works-cta-compact {
    padding: 10px 12px;
}

.works-cta-text {
    font-size: 0.8rem;
}

.work-modal-compact {
    padding: 10px;
}

.work-modal__content {
    max-height: 85vh;
}

.work-modal__image {
    height: 160px;
}

.work-modal__info {
    padding: 15px;
}

.work-modal__info h3 {
    font-size: 1.125rem;
}

.work-modal__info p {
    font-size: 0.85rem;
}

/* Mobile About Section */
.about-section {
    padding: 20px 0;
}

.about-header {
    margin-bottom: 25px;
}

.about-header h2 {
    font-size: 1.75rem;
}

.about-subtitle {
    font-size: 0.9rem;
}

.about-main {
    gap: 20px;
}

.about-profile {
    padding: 15px;
    gap: 15px;
}

.about-profile__image img {
    width: 80px;
    height: 80px;
}

.about-profile__greeting {
    font-size: 1.25rem;
}

.about-profile__description {
    font-size: 0.9rem;
}

.role-item {
    font-size: 0.85rem;
}

.about-card {
    padding: 12px;
}

.about-card__header h4 {
    font-size: 1rem;
}

.timeline-item {
    gap: 10px;
}

.timeline-icon {
    width: 35px;
    height: 35px;
}

.timeline-content h5 {
    font-size: 0.9rem;
}

.timeline-company {
    font-size: 0.8rem;
}

.timeline-period {
    font-size: 0.75rem;
}

.about-stats {
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    margin: 0;
    padding: 10px;
}

.stat-number {
    font-size: 1.25rem;
}

.stat-label {
    font-size: 0.8rem;
}

/* Mobile Testimonials Section */
.testimonials-section {
    padding: 20px 0;
}

.testimonials-header {
    margin-bottom: 25px;
}

.testimonials-header h2 {
    font-size: 1.75rem;
}

.testimonials-subtitle {
    font-size: 0.9rem;
}

.testimonials-grid {
    gap: 15px;
    margin-bottom: 25px;
}

.testimonial-card {
    padding: 15px;
}

.testimonial-card__quote i {
    font-size: 20px;
}

.testimonial-card__text {
    font-size: 0.9rem;
}

.testimonial-card__rating i {
    font-size: 12px;
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
}

.testimonial-card__name {
    font-size: 0.9rem;
}

.testimonial-card__position {
    font-size: 0.8rem;
}

.testimonials-stats {
    gap: 15px;
    padding: 15px;
    margin-bottom: 25px;
}

.testimonials-stats__item {
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.testimonials-stats__number {
    font-size: 1.5rem;
}

.testimonials-stats__label {
    font-size: 0.8rem;
}

.testimonials-cta {
    padding: 15px;
}

.testimonials-cta__title {
    font-size: 1.125rem;
}

.testimonials-cta__description {
    font-size: 0.9rem;
}

/* Mobile Blog Section */
.blog-section {
    padding: 20px 0;
}

.blog-header {
    margin-bottom: 25px;
}

.blog-header h2 {
    font-size: 1.75rem;
}

.blog-subtitle {
    font-size: 0.9rem;
}

.blog-grid {
    gap: 15px;
    margin-bottom: 25px;
}

.blog-card__content {
    padding: 15px;
}

.blog-card__image {
    height: 160px;
}

.blog-card__title a {
    font-size: 1.125rem;
}

.blog-card__excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
}

.blog-card__meta {
    flex-direction: column;
    gap: 8px;
}

.blog-card__date,
.blog-card__read-time {
    font-size: 0.8rem;
}

.blog-cta {
    padding: 15px;
}

.blog-cta__title {
    font-size: 1.125rem;
}

.blog-cta__description {
    font-size: 0.9rem;
}

/* Mobile Simple Footer */
#dtr-footer-section {
    padding: 25px 0 15px 0;
}

.dtr-custom-logo {
    font-size: 1.25rem;
}

.copyright-list {
    flex-direction: column;
    gap: 10px;
}

.copyright-list li a {
    font-size: 0.85rem;
}

.dtr-social {
    gap: 10px;
}

.dtr-social li a {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

#take-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
}

#take-to-top::before {
    font-size: 16px;
}

/* ===== Blog Pages Responsive Styles ===== */

/* Blogs Page Responsive */
.blogs-hero-content h1 {
    font-size: 2.5rem;
}

.blogs-hero-subtitle {
    font-size: 1.125rem;
}

.blogs-hero-stats {
    gap: 30px;
}

.hero-stat__number {
    font-size: 2rem;
}

.featured-articles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.featured-article-card--large {
    grid-row: span 1;
    grid-column: span 2;
}

.featured-article-card__title a {
    font-size: 1.25rem;
}

.featured-article-card--large .featured-article-card__title a {
    font-size: 1.5rem;
}

.section-header h2 {
    font-size: 2rem;
}

.articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.newsletter-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.newsletter-text h2 {
    font-size: 2rem;
}

/* Single Blog Page Responsive */
.blog-hero-title {
    font-size: 2.5rem;
}

.blog-hero-excerpt {
    font-size: 1.125rem;
}

.blog-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
}

.blog-content {
    padding: 30px;
}

.blog-content__text {
    font-size: 1rem;
}

.blog-content__text h3 {
    font-size: 1.375rem;
}

.related-articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
}

/* Mobile Blog Pages */
@media (max-width: 782px) {
.blogs-hero-content h1 {
    font-size: 2rem;
}

.blogs-hero-subtitle {
    font-size: 1rem;
}

.blogs-hero-stats {
    flex-direction: column;
    gap: 20px;
}

.hero-stat__number {
    font-size: 1.75rem;
}

.featured-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.featured-article-card--large {
    grid-column: span 1;
}

.featured-article-card__content {
    padding: 20px;
}

.categories-filter {
    gap: 10px;
}

.category-filter-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.newsletter-form__input-group {
    flex-direction: column;
    gap: 12px;
}

.newsletter-form__input {
    padding: 12px 18px;
}

/* Single Blog Mobile */
.blog-hero-title {
    font-size: 1.75rem;
}

.blog-hero-excerpt {
    font-size: 1rem;
}

.blog-hero-meta__details {
    flex-direction: column;
    gap: 8px;
}

.blog-hero-meta__details span::after {
    display: none;
}

.blog-content {
    padding: 20px;
}

.blog-content__text {
    font-size: 1rem;
}

.blog-content__text h3 {
    font-size: 1.25rem;
}

.blog-share-buttons {
    gap: 8px;
}

.share-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.author-card {
    padding: 20px;
}

.table-of-contents {
    padding: 20px;
}

.related-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-article-card__content {
    padding: 15px;
}
}

@media only screen and (max-width: 600px) {
.heading-404 { font-size: 4em; }

/* Extra Small Mobile Optimizations */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile Header */
#dtr-responsive-header .container {
    padding: 12px 15px;
}

#dtr-responsive-header .dtr-custom-logo {
    font-size: 18px;
}

.dtr-mobile-header-right {
    gap: 10px;
}

.mobile-theme-toggle {
    width: 32px;
    height: 32px;
}

.mobile-theme-toggle i {
    font-size: 12px !important;
    width: 12px !important;
    height: 12px !important;
}

/* Hero Section Mobile */
.hero-main-title {
    font-size: 2rem;
    line-height: 1.2;
}

.title-line-2 {
    font-size: 2.5rem;
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.hero-achievements {
    flex-direction: column;
    gap: 15px;
}

.achievement-item {
    font-size: 0.85rem;
}

/* Contact Form Mobile */
#contact .dtr-box {
    padding: 20px;
    margin-top: 30px;
}

#contact input,
#contact textarea,
#contact select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 15px;
}

/* All form inputs mobile optimization */
input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on iOS */
}

/* Blog search and filter forms */
.blogs-page input,
.blogs-page select,
.single-blog-page input,
.single-blog-page textarea {
    font-size: 16px !important;
}

/* Blog Cards Mobile */
.article-hover-card .card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Services Mobile */
.service-item {
    padding: 20px 15px;
}

.service-item h4 {
    font-size: 1.1rem;
}

/* About Section Mobile */
.about-profile {
    padding: 15px;
}

.about-profile__description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Mobile */
.testimonial-card {
    padding: 15px;
}

.testimonial-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Works/Portfolio Mobile */
.dtr-portfolio-item {
    margin-bottom: 20px;
}

/* Footer Mobile */
.dtr-copyright {
    text-align: center;
    padding: 20px 0;
}

.copyright-list {
    flex-direction: column;
    gap: 10px;
}

/* Button Mobile */
.dtr-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Spacing Mobile */
.spacer-50 { height: 30px; }
.spacer-30 { height: 20px; }
.spacer-20 { height: 15px; }

/* Section Padding Mobile */
.section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
}
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
/* Remove hover effects on touch devices */
.theme-toggle:hover {
    transform: none;
}

.card:hover {
    transform: none;
}

.dtr-btn:hover {
    transform: none;
}

/* Increase touch targets */
.theme-toggle {
    min-width: 44px;
    min-height: 44px;
}

button, .dtr-btn, a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
}
