/* ================================
    RESPONSIVE NAVBAR
====================================*/
@media (max-width: 768px) {
    .navbar {
        top: 20px;
        max-width: 90%;
    }

    .navbar-container {
        padding: 0 25px;
        height: 60px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-left,
    .nav-right {
        gap: 15px;
    }

    .nav-left a,
    .nav-right a {
        font-size: 13px;
    }

    .nav-logo {
        position: relative;
        left: auto;
        transform: none;
        order: -1;
        margin: 0 20px;
    }

    .nav-logo a {
        font-size: 18px;
    }

    .nav-left {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        padding-top: 10px;
    }

    .nav-right {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        padding-bottom: 10px;
    }
}

/* ================================
    RESPONSIVE HERO SECTION
====================================*/
@media (max-width: 768px) {
    .hero-heading {
        font-size: 32px;
        top: 80px;
        white-space: normal;
        text-align: center;
        width: 90%;
    }

    .hero-subtitle {
        font-size: 18px;
        top: 150px;
    }

    .hero-cta {
        top: 190px;
        gap: 12px;
    }

    .hero-cta button {
        padding: 10px 24px;
        font-size: 14px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
        bottom: 100px;
    }

    .hero-description {
        top: 320px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        max-width: 90%;
    }

    .hero-description p {
        font-size: 14px;
    }

    .hero-description .clients-label {
        font-size: 16px;
    }

    .hero-experience {
        top: 420px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }

    .hero-experience {
        top: 420px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }

    .hero-experience span {
        font-size: 24px;
    }
}

/* ================================ 
    RESPONSIVE ABOUT SECTION
==================================*/
@media (max-width: 768px) {
    .about {
        padding: 80px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image-wrapper {
        padding-left: 0;
        max-width: 320px;
        margin: 0 auto;
    }

    .about-badge-float {
        top: 20px;
        right: -5px;
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    .about-exp-tag {
        bottom: 20px;
        left: -10px;
        padding: 14px 18px;
    }

    .about-exp-tag .exp-number {
        font-size: 1.8rem;
    }

    .about-exp-tag .exp-label {
        font-size: 0.65rem;
    }

    .about-content {
        text-align: left;
    }

    .about-header {
        text-align: left;
    }

    .about-subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .about-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .about-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-description-secondary {
        font-size: 14px;
    }

    /* Expertise - stack vertically on mobile */
    .about-expertise {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .expertise-item {
        flex-direction: row;
        align-items: center;
        padding: 16px;
        gap: 14px;
    }

    .expertise-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 0;
    }

    .expertise-icon svg,
    .expertise-icon i.bi {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .expertise-text h4 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .expertise-text p {
        font-size: 11px;
    }

    /* Stats - stack on mobile */
    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
        padding: 20px 0;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 0 0 calc(50% - 10px);
    }

    .about-stats .stat-number {
        font-size: 28px;
    }

    .about-stats .stat-label {
        font-size: 11px;
    }

    /* Buttons */
    .about-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .about-btn,
    .about-btn-secondary,
    .download-cv-btn {
        justify-content: center;
        padding: 16px 28px;
        font-size: 14px;
    }

    /* Professional Download CV Button - Mobile */
    .download-cv-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .download-cv-btn .btn-text {
        font-size: 14px;
    }

    .download-cv-btn .btn-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-container {
        gap: 60px;
    }

    .about-title {
        font-size: 34px;
    }

    .about-expertise {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-divider {
        height: 40px;
    }

    .about-stats .stat-number {
        font-size: 30px;
    }
}

/* ================================
    RESPONSIVE SERVICES SECTION
====================================*/
@media (max-width: 768px) {
    .services-header {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
        align-items: start;
    }

    .services-title-wrapper {
        justify-content: flex-start;
    }

    .services-description-wrapper {
        justify-content: flex-start;
    }

    .services-description {
        text-align: left;
        max-width: 100%;
    }

    .services-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ================================
    RESPONSIVE BLOG SECTION
====================================*/
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-title-wrapper,
    .blog-description-wrapper {
        justify-content: center;
    }

    .blog-description {
        text-align: center;
    }

    .blog-title {
        font-size: 36px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .blog {
        padding: 80px 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
    RESPONSIVE EXPERIENCE SECTION
====================================*/
@media (max-width: 992px) {
    .experience-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .experience-title-wrapper,
    .experience-description-wrapper {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .experience-description {
        text-align: left;
    }

    .experience-timeline {
        padding-left: 35px;
    }

    .experience-timeline::before {
        left: 8px;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 40px;
    }

    .experience-item::before {
        left: -27px;
        top: 35px;
    }

    .experience-item:first-child::before {
        left: -29px;
        top: 33px;
    }

    .experience-date {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .experience {
        padding: 80px 20px;
    }

    .experience-title {
        font-size: 32px;
    }

    .experience-timeline {
        padding-left: 30px;
    }

    .experience-timeline::before {
        left: 6px;
        width: 2px;
    }

    .experience-item {
        padding: 20px;
        padding-left: 35px;
    }

    .experience-item::before {
        left: -25px;
        top: 25px;
        width: 14px;
        height: 14px;
    }

    .experience-item:first-child::before {
        left: -27px;
        top: 23px;
        width: 16px;
        height: 16px;
    }

    .experience-highlights {
        flex-direction: column;
        gap: 10px;
    }
}


/* FAQ Responsive */
@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-title {
        font-size: 40px;
    }
}

/* ============================================
    RESPONSIVE FAQ SECTION
    ============================================ */
@media (max-width: 576px) {
    .faq {
        padding: 80px 20px;
    }

    .faq-title {
        font-size: 32px;
    }

    .faq-description {
        font-size: 14px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question-text {
        font-size: 16px;
    }

    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 14px;
    }
}

/* ============================================
    RESPONSIVE TESTIMONIAL SECTION
    ============================================ */

/* Large Desktop */
@media (max-width: 1400px) {
    .testimonial-card.card-1 {
        top: 37%;
        left: 25%;
    }

    .testimonial-card.card-2 {
        top: 25%;
        right: 25%;
        left: auto;
    }

    /* Card Position - Middle (50% position) */
    .testimonial-card.card-3 {
        top: 60%;
        right: 25%;
        left: auto;
        transform: translateY(-50%);
    }

    .testimonial-card.card-4 {
        top: 70%;
        left: 23%;
    }

    .testimonial-card.card-5 {
        top: 75%;
        right: 25%;
        left: auto;
    }

    /* Reduce testimonial card size by 1rem for large devices */
    .testimonial-card {
        width: 260px;
        padding: 15px;
    }

    .card-avatar {
        width: 40px;
        height: 40px;
    }

    .card-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    .card-user-name {
        font-size: 0.85rem;
    }

    .card-rating {
        margin-bottom: 6px;
    }

    .card-quote {
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }
}

/* Laptop */
@media (max-width: 1200px) {
    .testimonial-title {
        font-size: 2.5rem;
    }

    .phone-mockup {
        width: 280px;
    }

    .testimonial-card {
        width: 230px;
        padding: 12px;
    }

    .testimonial-card.card-1 {
        top: 37%;
        left: 25%;
    }

    .testimonial-card.card-2 {
        top: 25%;
        right: 25%;
        left: auto;
    }

    .testimonial-card.card-3 {
        top: 60%;
        right: 25%;
        left: auto;
        transform: translateY(-50%);
    }

    .testimonial-card.card-4 {
        top: 70%;
        left: 23%;
    }

    .testimonial-card.card-5 {
        top: 75%;
        right: 25%;
        left: auto;
    }

    /* Reduce card content by 1rem */
    .card-avatar {
        width: 36px;
        height: 36px;
    }

    .card-header {
        gap: 6px;
        margin-bottom: 6px;
    }

    .card-user-name {
        font-size: 0.8rem;
    }

    .card-user-role {
        font-size: 0.7rem;
    }

    .card-rating {
        margin-bottom: 4px;
    }

    .card-rating i {
        font-size: 0.75rem;
    }

    .card-quote {
        font-size: 1.25rem;
        top: 8px;
        right: 8px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .testimonial-section {
        padding: 40px 20px 30px;
        min-height: auto;
        height: auto;
    }

    .testimonial-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        margin-bottom: 40px;
    }

    .testimonial-title {
        font-size: 2rem;
    }

    .testimonial-subtitle {
        justify-content: center;
        font-size: 1rem;
    }

    .phone-mockup-container {
        position: relative;
        height: 600px;
    }

    .phone-mockup {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 240px;
        margin: 0 auto;
    }

    /* Stack cards around the phone */
    .testimonial-card {
        position: absolute;
        width: 100%;
        max-width: 320px;
        margin: 20px auto;
    }

    .phone-mockup-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .testimonial-section {
        padding: 30px 15px 20px;
    }

    .testimonial-title {
        font-size: 1.75rem;
    }

    .testimonial-subtitle {
        font-size: 0.9rem;
    }

    .phone-mockup-container {
        height: 500px;
    }

    .phone-mockup {
        width: 200px;
    }

    .testimonial-card {
        padding: 14px;
    }

    .card-header {
        gap: 10px;
    }

    .card-avatar {
        width: 40px;
        height: 40px;
    }

    .card-user-name {
        font-size: 0.85rem;
    }

    .card-text {
        font-size: 0.8rem;
    }
}

/* ============================================
    RESPONSIVE CAROUSEL
    ============================================ */

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-section {
        height: 300px;
    }

    .carousel-container {
        height: 150px;
    }

    .carousel-word {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .carousel-diamond {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

    .carousel-fade-left,
    .carousel-fade-right {
        width: 80px;
    }

    .speed-btn {
        padding: 8px 20px;
        font-size: 0.75rem;
    }
}

/* ================================
     RESPONSIVE CONTACT SECTION
    ===================================*/
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        padding-right: 0;
        text-align: center;
    }

    .contact-heading {
        font-size: 36px;
    }

    .contact-description {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details {
        display: inline-block;
        text-align: left;
    }

    .social-media {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 80px 16px 50px;
    }

    .contact-heading {
        font-size: 28px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .contact-form-wrapper h3 {
        font-size: 20px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* ============================================
    RESPONSIVE FOOTER
============================================ */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 20px 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-title {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 50px 15px 20px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-description {
        font-size: 13px;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

/* ============================================================================
PAGE TRANSITION RESPONSIVE STYLES
============================================================================ */
@media (max-width: 768px) {
    .transition-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .page-transition {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .transition-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}