/*
    Global responsive stylesheet
    - Mobile: up to 767px
    - Tablet / Small HD: 768px–1023px
    - Desktop HD (incl. 1280, 1366): 1024px–1919px
    - Full HD / Mac & Retina: 1920px+
    Note: All rules are inside media queries to avoid affecting base web view.
*/

/* ==================== MOBILE (<=767px) ==================== */
@media (max-width: 767px) {

    /* Header & Navigation */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        margin-right: 6px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.06);
        cursor: pointer;
    }

    .nav-toggle .bar {
        width: 20px;
        height: 2px;
        background: #0a0a23;
        margin: 3px 0;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-toggle.open .bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        background: #ffffff;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
        z-index: 998;
    }

    .navigation.open {
        max-height: 320px;
        opacity: 1;
        transform: translateY(0);
    }

    .navigation .nav-link {
        padding: 14px 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .header.menu-open {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .header {
        padding: 12px 0px;
    }

    .logo img {
        height: 22px;
    }

    .nav-link {
        font-size: 14px;
    }

    .contact-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .header .contact-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        font-size: 13px;
    }

    /* Sections & Hero */
    .section {
        width: 100%;
        margin: 0 auto;
        border-radius: 16px;
        padding-bottom: 20px;
    }

    .hero-section {
        padding: 90px 16px 20px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.5rem;
        height: auto;
        line-height: 1.2;
        margin: 0;
        padding: 0 10px;
    }

    .title-highlight {
        padding: 0.3rem 0.8rem;
        border-radius: 8px;
        font-size: 18px;
        display: inline-block;
        margin: 0.2rem 0;
    }



    .bottom-section {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 12px 16px 0;
        text-align: center;
    }

    .scroll-btn {
        left: 7%;
        bottom: 12px;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        border-width: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -10px;
    }

    .scroll-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Home - Services list & collage */
    .services-list {
        order: 2;
        margin-left: -5%;
    }

    .services-list ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    .service-item-web {
        font-size: 15px;
        padding: 10px 14px;
        text-align: center;
        border-radius: 12px;
    }

    .image-collage-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        gap: 8px;
        order: 3;
    }

    .image-collage-grid img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
    }

    .image-container-tall {
        border-radius: 16px 0 0 16px;
    }

    .image-container-small.top-right {
        border-radius: 20px;
    }

    .image-container-small.bottom-right {
        height: auto;
        border-radius: 0 0 20px 20px;
    }

    /* Home - Section 2 */
    .section2 {
        flex-direction: column;
        gap: 16px;
        padding: 24px 16px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    .our-story-image-container img {
        width: 100%;
        max-width: 440px;
    }

    .heading-our-story {
        font-size: 24px;
        padding: 8px 0;
    }

    .story-our-para {
        font-size: 14px;
        padding: 8px 0;
    }


    /* Home - Technologies */
    .technologies-section {
        flex-direction: column;
        gap: 20px;
        padding: 24px 16px;
    }

    .tech-content {
        margin-right: 0;
    }

    .tech-content h2 {
        font-size: 26px;
    }

    .code-editor {
        width: 100%;
        padding: 8px;
        margin-left: -10px;
    }

    .code-window {
        height: 200px;
    }

    /* Home - Portfolio & Testimonials */
    .portfolio-section {
        padding: 28px 16px;
        border-radius: 16px;
    }

    .portfolio-cards {
        flex-direction: column;
    }

    .portfolio-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-video img {
        height: auto;
    }

    .testimonial-section {
        padding: 40px 16px;
    }

    .testimonial-section h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-middle {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 16px;
        text-align: center;
    }

    /* Services Page (scoped) */
    html {
        overflow-x: hidden;
    }

    body {
        padding: 0 !important;
        overflow-x: hidden;
    }

    .hero-container {
        overflow-x: hidden;
        height: auto;
        margin: 10px;
        border-radius: 24px;
    }

    .hero-content {
        padding: 120px 16px 24px;
        text-align: center;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .tech-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .tech-tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    .tech-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }

    .code-card {
        order: 2;
    }

    .tech-text {
        order: 1;
    }

    .tech-text h2 {
        font-size: 22px;
        line-height: 1.25;
    }

    #tech-image {
        max-width: 100%;
        height: auto;
    }

    .services-container {
        padding: 0 12px 24px;
    }

    .services-card {
        width: 100%;
        margin: 0;
        padding: 20px 16px;
        border-radius: 20px;
    }

    .services-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .text-content {
        width: 100%;
    }

    .services-title {
        font-size: 22px;
    }

    .services-description {
        font-size: 14px;
    }

    .image-section {
        width: 100%;
    }

    .services-image {
        width: 100%;
        max-width: none;
        height: 200px;
        background-size: cover;
        background-position: center;
        border-radius: 16px;
    }

    .floating-icon,
    .dot-pattern {
        display: none;
    }

    /* Portfolio Page (scoped) */
    .hero-container {
        width: 95%;
        /* margin: 12px auto; */
        padding: 16px;
        height: auto;
        border-radius: 20px;
        margin: auto;
    }

    .hero-content {
        margin-top: 16px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-title .highlight {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .arrange-icond-and-paper {
        flex-direction: column;
        gap: 16px;
        padding: 0 10px;
    }

    .arrange-icond-and-paper img.hero-image {
        width: 100%;
        max-width: 360px;
        height: auto;
    }

    .arrange-icond-and-paper .floating-icons {
        justify-content: center;
        gap: 12px;
    }

    .image-container img {
        height: 100%;
    }

    .dot-pattern {
        width: 120px;
        height: 120px;
        opacity: 0.2;
    }

    .portfolio-section {
        padding-left: 25px;
    }

    .project-block {
        margin-bottom: 40px;
    }

    .project-main {
        flex-direction: column;
        gap: 16px;
        width: 94%;
    }

    .project-content {
        min-width: auto;
    }

    .project-desc {
        width: 100%;
    }

    .project-media {
        min-width: auto;
        width: 100%;
    }

    .featured-image img {
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    .thumb-row {
        flex-direction: column;
        gap: 12px;
        width: 94%;
    }

    .thumb {
        min-width: auto;
    }

    .thumb img {
        height: auto;
        aspect-ratio: 16/10;
    }

    .thumb-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* Contact Page (scoped) */
    .section1 {
        width: 95%;
        margin: 0px auto;
        padding: 12px;
        border-radius: 16px;
    }

    .contact-section {
        padding: 16px;
        gap: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    input,
    textarea {
        font-size: 14px;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
    }

    .contact-left,
    .contact-right {
        min-width: auto;
        padding-right: 0;
        flex: 1 1 100%;
    }

    .contact-right h2 {
        font-size: 24px;
    }

    .contact-right p {
        font-size: 14px;
    }

    .marquee-content span {
        font-size: 16px;
        margin-right: 24px;
    }

    .star-icon {
        width: 18px;
        height: 18px;
        margin-left: 10px;
    }

    .carousel {
        height: 200px;
    }

    .carousel img {
        height: 200px;
        width: 12%;
    }

    /* About Page (scoped) */
    .container {
        width: 100%;
        margin: 0 auto;
        border-radius: 16px;
        padding: 0 0 10px;
        height: auto;
    }

    .about-section {
        flex-direction: column;
        gap: 20px;
        padding: 90px 16px 24px;
    }

    .about-left {
        min-width: auto;
        padding: 0;
        text-align: center;
    }

    .about-left h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .about-left p {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .about-right {
        min-width: auto;
        padding: 0 16px;
    }

    .about-right img {
        transform: translateY(0);
        max-width: 100%;
        height: auto;
        display: block;
    }

    .tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    .tag.react {
        top: 20%;
        left: 5%;
    }

    .tag.next {
        top: 5%;
        right: 50%;
    }

    .tag.vue {
        top: 45%;
        left: 2%;
    }

    .tag.angular {
        bottom: 10%;
        left: -2%;
    }

    .dotted-bg,
    .dotted-bg-left {
        display: none;
    }

    .our-story {
        flex-direction: column;
        padding: 28px 16px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        gap: 20px;
        width: 93%;
    }

    .story-left {
        min-width: auto;
        text-align: center;
    }

    .story-left h5 {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .story-left h2 {
        font-size: 24px;
        margin-bottom: 20px;
        margin-top: 10%;
    }

    .story-left p {
        font-size: 14px;
        /* max-width: none; */
        width: 100%;
    }

    .story-right {
        min-width: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .story-right img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
    }

    .technologies {
        padding: 28px 16px;
        width: 100%;
    }

    .technologies h5 {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .tech-tabs {
        gap: 12px;
        margin-bottom: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tech-tab {
        padding: 8px 16px;
        font-size: 12px;
    }

    .tech-content {
        flex-direction: column;
        gap: 24px;
        margin-left: 0;
    }

    .code-card {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .code-body {
        padding: 16px;
    }

    .tech-text {
        min-width: auto;
        text-align: center;
    }

    .tech-text h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .tech-text p {
        font-size: 14px;
        max-width: none;
    }

    .portfolio-container {
        padding: 40px 0;
    }

    .portfolio-title {
        font-size: 2rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .portfolio-carousel {
        width: 100%;
        padding: 0 16px;
    }

    .project-card {
        margin: 0 8px;
    }

    .innovation-image,
    .code-editor-image {
        height: 200px;
    }

    .project-content {
        padding: 20px;
    }

    .project-name {
        font-size: 1.2rem;
    }

    .project-arrow {
        width: 40px;
        height: 40px;
    }

    .custom-arrow {
        display: none;
    }

    .services-container {
        padding: 0px 0px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .services-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

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

    .services-title {
        font-size: 2rem;
    }

    .services-description {
        font-size: 14px;
        max-width: none;
        width: 85%;
    }

    .services-image {
        width: 100%;
        max-width: 300px;
        height: 200px;
        margin: 0 auto;
    }

    .project-arrow {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
}

/* ==================== TABLET / SMALL HD (768–1023px) ==================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .header {
        padding: 16px 24px;
    }

    .navigation {
        gap: 20px;
    }

    .nav-link {
        font-size: 15px;
    }

    .hero-section {
        padding: 100px 24px 24px;
    }

    .hero-title {
        font-size: 2rem;
        height: auto;
    }

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

    .bottom-section {
        padding: 20px;
        gap: 24px;
    }

    .section2 {
        padding: 40px 24px;
        align-items: center;
    }

    .our-story-image-container img {
        width: 420px;
    }

    .heading-our-story {
        font-size: 30px;
    }

    .services-section {
        gap: 24px;
        padding: 40px 24px;
    }

    .services-content {
        margin-left: 24px;
    }

    .services-content h2 {
        font-size: 26px;
    }

    .services-image {
        height: 240px;
    }

    .technologies-section {
        padding: 40px 24px;
    }

    .tech-content {
        margin-right: 24px;
    }

    .tech-content h2 {
        font-size: 30px;
    }

    .code-window {
        height: 240px;
    }

    .portfolio-section {
        padding: 48px 24px;
    }

    .portfolio-cards {
        gap: 16px;
    }

    .portfolio-bottom {
        gap: 16px;
    }

    .footer-middle {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 40px 24px;
    }

    /* Services Page */
    .hero-content {
        padding: 110px 24px 24px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .tech-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .tech-tab {
        padding: 10px 14px;
    }

    .tech-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
    }

    .tech-text h2 {
        font-size: 28px;
    }

    .code-card .code-body img {
        max-width: 100%;
        height: auto;
    }

    .services-container {
        padding: 0 24px 32px;
    }

    .services-card {
        padding: 28px 20px;
    }

    .services-content {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 16px;
        align-items: center;
    }

    .services-image {
        height: 240px;
    }

    /* Portfolio Page */
    .hero-container {
        width: 95%;
        padding: 20px;
        height: auto;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-title .highlight {
        font-size: 36px;
    }

    .arrange-icond-and-paper {
        padding: 0 20px;
        gap: 16px;
    }

    .arrange-icond-and-paper img.hero-image {
        width: 480px;
    }

    .project-main {
        gap: 20px;
        width: 94%;
    }

    .project-media {
        min-width: 320px;
    }

    .featured-image img {
        height: auto;
        aspect-ratio: 16/9;
    }

    .thumb-row {
        gap: 16px;
        width: 94%;
    }

    .thumb img {
        height: auto;
        aspect-ratio: 16/10;
    }

    /* Contact Page */
    .section1 {
        width: 94%;
        padding: 16px;
    }

    .contact-section {
        padding: 24px;
        gap: 20px;
    }

    .contact-right h2 {
        font-size: 28px;
    }

    .marquee-content span {
        font-size: 18px;
        margin-right: 36px;
    }

    .carousel {
        height: 220px;
    }

    .carousel img {
        height: 220px;
    }

    /* About Page */
    .container {
        width: 96%;
        margin: 30px auto;
    }

    .about-section {
        gap: 32px;
        padding: 40px 24px;
    }

    .about-left h1 {
        font-size: 36px;
    }

    .about-left p {
        font-size: 15px;
    }

    .about-right {
        min-width: 600px;
    }

    .our-story {
        padding: 50px 30px;
        gap: 32px;
    }

    .story-left h2 {
        font-size: 30px;
    }

    .story-right img {
        height: 220px;
    }

    .technologies {
        padding: 50px 30px;
    }

    .tech-content {
        gap: 32px;
    }

    .tech-text h2 {
        font-size: 28px;
    }

    .portfolio-title {
        font-size: 2.8rem;
    }

    .innovation-image,
    .code-editor-image {
        height: 280px;
    }

    .services-card {
        padding: 50px 40px;
    }

    .services-title {
        font-size: 2.8rem;
    }

    .services-image {
        width: 350px;
        height: 250px;
    }
}

/* ==================== DESKTOP HD (1024–1919px) ==================== */
@media (min-width: 1024px) and (max-width: 1919px) {
    .header {
        padding: 30px 40px;
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .services-content h2 {
        font-size: 34px;
        font-weight: 400;
    }

    .tech-content h2 {
        font-size: 34px;
    }

    /* Portfolio Page */
    .hero-container {
        height: auto;
    }

    .hero-title {
        font-size: 44px;
        overflow: visible;
    }

    .featured-image img {
        height: 340px;
    }

    /* Contact Page */
    .section1 {
        width: 94%;
        margin: 15px auto;
        padding: 35px;
    }

    .contact-section {
        padding: 32px;
    }

    /* About Page */
    .container {
        margin: 10px auto;
        height: auto;
    }

    .about-left h1 {
        font-size: 42px;
    }

    .story-left h2 {
        font-size: 32px;
    }

    .tech-text h2 {
        font-size: 30px;
    }

    .portfolio-title {
        font-size: 3.2rem;
    }

    .services-title {
        font-size: 3.2rem;
    }

    /* Services Page */
    .hero-content {
        padding-top: 130px;
    }

    .services-image {
        height: 280px;
    }
}

/* ==================== FULL HD / MAC & RETINA (>=1920px) ==================== */
@media (min-width: 1920px) {
    .header {
        padding: 24px 60px;
    }

    .hero-section {
        padding-top: 140px;
    }

    .hero-title {
        font-size: 2.6rem;
    }



    .services-image {
        height: 300px;
    }

    .code-window {
        height: 300px;
    }

    .portfolio-section {
        padding: 80px 10%;
    }

    /* Portfolio Page */
    .hero-container {
        width: 95%;
        margin: 10px auto;
        height: auto;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-title .highlight {
        font-size: 46px;
    }

    .featured-image img {
        height: 380px;
        margin-top: 2%;
    }

    /* Contact Page */
    .section1 {
        width: 96%;
        margin: 15px;
    }
}

.contact-right h2 {
    font-size: 36px;
}

.carousel {
    height: 280px;
}

.carousel img {
    height: 280px;
}

/* Services Page */
.hero-content {
    padding-top: 14%;
}

.hero-title {
    font-size: 44px;
}

.services-card {
    padding: 40px 32px;
}

.services-image {
    height: 340px;
}

/* About Page */
.container {
    margin: 15px auto;
    padding-top: 3%;
    height: 100%;
}

.about-left h1 {
    font-size: 50px;
}

.about-left p {
    font-size: 18px;
}

.story-left h2 {
    font-size: 40px;
}

.story-left p {
    font-size: 18px;
}

.tech-text h2 {
    font-size: 36px;
}

.tech-text p {
    font-size: 18px;
}

.portfolio-title {
    font-size: 4rem;
}

.services-title {
    font-size: 4rem;
}

.services-description {
    font-size: 1.25rem;
}

.services-image {
    width: 450px;
    height: 350px;
}
}