/* ==========================================================
   1IT.SK
   Responsive Stylesheet
========================================================== */


/* ==========================================================
   TABLET / SMALL DESKTOP
========================================================== */

@media (max-width: 1200px) {

    :root {
        --container-width: 1040px;
    }

    .hero-container,
    .about-container,
    .contact-container {
        gap: 56px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 992px) {

    section {
        padding: 90px 0;
    }

    .header .btn-outline {
        display: none;
    }

    .navigation {
        position: fixed;
        top: 92px;
        left: 24px;
        right: 24px;
        padding: 28px;
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid var(--color-border);
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-16px);
        transition: var(--transition);
    }

    .navigation.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .navigation a {
        font-size: 1.1rem;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
        padding-top: 150px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 760px;
        margin-inline: auto;
    }

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

    .hero-line {
        margin-inline: auto;
    }

    .hero p {
        margin-inline: auto;
    }

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

    .hero-image img {
        max-width: 520px;
        margin-inline: auto;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        max-width: 760px;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        text-align: center;
    }

    .contact-info p {
        margin-inline: auto;
    }

    .contact-items {
        max-width: 620px;
        margin-inline: auto;
        margin-top: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    :root {
        --container-padding: 18px;
    }

    html {
        scroll-padding-top: 90px;
    }

    section {
        padding: 76px 0;
    }

    .header .container {
        height: 76px;
    }

    .header.scrolled .container {
        border-radius: 18px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo {
        font-size: 1.2rem;
    }

    h1 {
        font-size: clamp(2.45rem, 12vw, 4rem);
        letter-spacing: -1.4px;
    }

    h2 {
        font-size: clamp(2rem, 9vw, 3rem);
        letter-spacing: -1px;
    }

    p {
        font-size: 1rem;
    }

    .section-heading,
    .section-heading.center {
        margin-bottom: 52px;
    }

    .section-subtitle {
        font-size: .78rem;
        letter-spacing: 1.6px;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-container {
        gap: 54px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero .btn-primary {
        width: 100%;
        max-width: 320px;
    }

    .hero-image img {
        max-width: 420px;
    }

    .circle-bg {
        width: 380px;
        height: 380px;
    }

    .services-grid,
    .process-grid,
    .stats-grid,
    .references-grid,
    .about-features {
        grid-template-columns: 1fr;
    }

    .service-card,
    .process-item,
    .reference-card,
    .contact-form-wrapper {
        padding: 32px 26px;
        border-radius: 24px;
    }

    .service-card:nth-child(2),
    .service-card:nth-child(5) {
        margin-top: 0;
    }

    .stats {
        padding: 64px 0;
    }

    .stat h2 {
        font-size: 2.7rem;
    }

    .cta-box {
        padding: 58px 26px;
        border-radius: 28px;
    }

    .contact-item {
        align-items: flex-start;
    }

    .footer {
        padding: 70px 0 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align:center;
    }

    .footer-bottom-left{
        align-items:center;
    }

    .footer-legal{
        justify-content:center;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .container {
        padding-inline: 16px;
    }

    .navigation {
        left: 16px;
        right: 16px;
        top: 86px;
    }

    .btn {
        width: 100%;
        padding: 15px 22px;
    }

    .hero-subtitle,
    .section-subtitle {
        letter-spacing: 1.2px;
    }

    .hero-subtitle::before,
    .section-subtitle::before {
        width: 24px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-image img {
        max-width: 340px;
    }

    .floating-dot {
        width: 14px;
        height: 14px;
    }

    .service-icon {
        width: 62px;
        height: 62px;
    }

    .service-icon img {
        width: 30px;
        height: 30px;
    }

    .about-features {
        gap: 18px;
    }

    .feature {
        padding: 30px 22px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .input-group input,
    .input-group textarea {
        padding: 15px 16px;
    }

    .socials a {
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================
   HERO SLIDER
========================================================== */

@media (max-width:1200px){

    .hero-container{
        grid-template-columns:1fr;
        gap:64px;
        padding-left:0;
    }

    .hero-content{
        max-width:720px;
        margin:0 auto;
        text-align:center;
    }

    .hero-subtitle,
    .hero-buttons{
        justify-content:center;
    }

    .hero-line{
        margin-inline:auto;
    }

    .hero p{
        margin-inline:auto;
    }

    .hero-slider{
        min-height:460px;
        width:100%;
    }

}


@media (max-width:768px){

    .hero{
        padding-top:120px;
        min-height:auto;
    }

    .hero-container{
        display:flex;
        flex-direction:column;
        gap:42px;
        padding-left:0;
    }

    .hero-content{
        max-width:340px;
        margin:0 auto;
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .hero h1{
        font-size:3.8rem;
        line-height:1.05;
        letter-spacing:-0.03em;
    }

    .hero p{
        font-size:1.02rem;
        line-height:1.75;
    }

    .hero-slider{
        order:2;
        min-height:330px;
        width:100%;
    }

    .hero-slide{
        width:100%;
        max-width:330px;
        padding:34px 24px 58px;
        border-radius:28px;
    }

    .hero-slide-icon{
        width:82px;
        height:82px;
        margin-bottom:22px;
        border-radius:24px;
    }

    .hero-slide-icon img{
        width:42px;
        height:42px;
    }

    .hero-slide-title{
        font-size:1.45rem;
        margin-bottom:12px;
    }

    .hero-slide-text{
        font-size:.95rem;
        line-height:1.65;
        max-width:250px;
    }

    .hero-slider-dots{
        bottom:45px;
    }

}


@media (max-width:480px){

    .hero{
        padding-top:112px;
    }

    .hero-content{
        max-width:330px;
    }

    .hero h1{
        font-size:3.35rem;
        line-height:1.04;
        letter-spacing:-0.04em;
    }

    .hero-subtitle{
        font-size:.72rem;
        letter-spacing:1.6px;
        gap:10px;
    }

    .hero-subtitle::before{
        width:32px;
    }

    .hero p{
        font-size:.98rem;
        line-height:1.75;
    }

    .hero-buttons{
        width:100%;
    }

    .hero .btn-primary{
        width:100%;
        max-width:310px;
    }

    .hero-slider{
        min-height:315px;
    }

    .hero-slide{
        max-width:310px;
        padding:30px 22px 56px;
        border-radius:26px;
    }

    .hero-slide-icon{
        width:76px;
        height:76px;
        margin-bottom:20px;
        border-radius:22px;
    }

    .hero-slide-icon img{
        width:38px;
        height:38px;
    }

    .hero-slide-title{
        font-size:1.35rem;
    }

    .hero-slide-text{
        font-size:.92rem;
        line-height:1.6;
        max-width:235px;
    }

    .hero-slider-dots{
        bottom:42px;
    }

}

/* ==========================================================
   MOBILE HERO CENTER FIX
========================================================== */

@media (max-width: 768px) {

    .hero .container {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-content {
        max-width: none;
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        transform: translateX(4px);
    }

    .hero p,
    .hero-subtitle,
    .hero-buttons,
    .hero-line {
        transform: translateX(4px);
    }
}


@media (max-width: 480px) {

    .hero-content {
        max-width: 360px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1 {
        max-width: 340px;
        font-size: 3.05rem;
    }

    .hero p {
        max-width: 330px;
    }

    .hero .btn-primary {
        max-width: 310px;
    }

    .hero-slide {
        max-width: 310px;
    }
}

/* ==========================================================
   MOBILE PERFORMANCE OPTIMIZATION
   Reduces expensive paint/compositing work on tablets/phones
========================================================== */

@media (max-width: 992px) {

    .navigation,
    .header.scrolled .container,
    .hero-slide {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .navigation {
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 12px 32px rgba(15, 23, 42, .10);
    }

    .hero-slide,
    .service-card,
    .reference-card,
    .contact-form-wrapper,
    .cta-box,
    .feature,
    .tech-card,
    .process-item,
    .contact-item {
        box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
    }
}

@media (max-width: 768px) {

    .hero::before,
    .hero::after,
    .services::before,
    .references::before,
    .cta::before,
    .contact::before,
    .footer::before,
    .hero-slider::before,
    .circle-bg,
    .floating-dot {
        display: none !important;
    }

    .hero-image img,
    .floating-dot,
    .hero-slide.active .hero-slide-icon {
        animation: none !important;
    }

    .service-card,
    .reference-card,
    .feature,
    .tech-card,
    .process-item,
    .contact-item,
    .hero-slide,
    .hero-slide-icon,
    .btn,
    .navigation,
    .mobile-menu span {
        transition-duration: .18s !important;
    }

    .service-card:hover,
    .reference-card:hover,
    .feature:hover,
    .tech-card:hover,
    .process-item:hover,
    .contact-item:hover,
    .btn-primary:hover,
    .btn-outline:hover,
    .socials a:hover {
        transform: none !important;
    }

    .service-card:hover .service-icon,
    .service-card:hover .service-icon img,
    .feature:hover img,
    .tech-card:hover img {
        transform: none !important;
    }

    .services,
    .process,
    .stats,
    .about,
    .references,
    .cta,
    .contact,
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: 800px;
    }

    .hero-slide {
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    }

    .hero,
    .hero-slider,
    .service-card,
    .reference-card,
    .cta-box,
    .contact-form-wrapper {
        contain: paint;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }



}

