/* =========================================
   SNL SIDE SECTION
========================================= */

.snl-side-section {
    padding: 120px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.snl-side-section.alt {
    background: #f8f9fc;
}

.snl-side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    transition: all 0.6s ease;
}

.snl-side-row .snl-side-content {
    order: 1;
}

.snl-side-row .snl-side-image {
    order: 2;
}

.snl-side-row.reverse .snl-side-content {
    order: 2;
}

.snl-side-row.reverse .snl-side-image {
    order: 1;
}

.snl-side-image {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.snl-side-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.snl-side-image img:hover {
    transform: scale(1.08) rotate(-1deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.snl-side-content {
    flex: 1 1 50%;
    padding: 25px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.snl-side-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   TYPOGRAPHY & ANIMATIONS
========================================= */

.animated-heading {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.typing-animation {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ff6600, #3c00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.typing-animation::after {
    content: "|";
    position: absolute;
    right: -8px;
    color: #ff6600;
    animation: blink 0.7s infinite;
}

.typing-animation.typing-finished::after {
    display: none;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.snl-side-content h3 {
    font-family: "Unbounded", sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #1e1e2f;
    margin-bottom: 30px;
    line-height: 1.2;
}

.snl-side-content h3.typing-animation {
    font-size: 4rem;
}

.snl-side-content h4 {
    font-family: "Unbounded", sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #ff6600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.snl-side-content h4.typing-animation {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ff6600, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.snl-modern-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: #1e1e2f;
    margin-bottom: 20px;
}

.snl-modern-title.typing-animation {
    font-size: 4rem;
    background: linear-gradient(135deg, #ff6600, #3c00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mpm-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: 700;
    color: #1e1e2f;
}

.mpm-title.typing-animation {
    display: inline-block;
    font-size: 4rem;
    background: linear-gradient(135deg, #ff6600, #3c00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: 700;
    color: #1e1e2f;
}

.section-title.typing-animation {
    font-size: 3rem;
    background: linear-gradient(135deg, #1e1e2f, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.snl-side-content p,
.snl-side-content ul li {
    font-size: 1.75rem;
    line-height: 2.4;
    color: #4a4a60;
    margin-bottom: 25px;
    text-align: justify;
}

.snl-side-highlight {
    font-size: 1.4rem;
    padding: 16px 30px;
}

blockquote {
    font-size: 1.5rem;
    border-left: 5px solid #ff6600;
    line-height: 2.2;
    font-weight: 500;
    color: #374151;
    padding-left: 15px;
}

/* =========================================
   CONTACT HEAD
========================================= */
.contact-head {
    margin-bottom: 80px;
    text-align: center;
}

.contact-head h3 {
    font-family: "Unbounded", sans-serif;
    font-weight: 900;
    font-size: 4rem;
    position: relative;
    display: inline-block;
    z-index: 4;
    background: linear-gradient(135deg, #ff6600, #3c00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
}

.contact-head h3:after {
    content: "";
    width: 100%;
    height: 30px;
    background-image: url(../img/dots.png);
    background-repeat: repeat;
    position: absolute;
    bottom: -10px;
    left: 0;
    z-index: -1;
}

/* =========================================
   MODERN SERVICES
========================================= */
.snl-modern-services {
    background: #ffffff;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.snl-modern-head {
    text-align: center;
    margin-bottom: 60px;
}

.snl-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.snl-modern-card {
    background: #cce5ff;
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.snl-modern-card.show {
    opacity: 1;
    transform: translateY(0);
}

.snl-modern-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: #ffb400;
}

.snl-modern-card h4 {
    color: #1e1e2f;
    margin-bottom: 15px;
    transition: color 0.5s ease;
    font-size: 2rem;
    font-weight: 600;
}

.snl-modern-card p {
    color: #333;
    flex-grow: 1;
    transition: color 0.5s ease;
    font-size: 1.6rem;
}

.snl-modern-card:hover h4,
.snl-modern-card:hover p {
    color: #fff;
}

.snl-modern-icon {
    font-size: 3rem;
    color: #ff6600;
    margin-bottom: 20px;
    transition: transform 0.5s ease, color 0.5s ease;
}

.snl-modern-card:hover .snl-modern-icon {
    transform: rotate(15deg) scale(1.2);
    color: #fff;
}

.snl-modern-subtitle {
    font-size: 2rem;
    color: #555;
}

/* =========================================
   PROJECT CARD
========================================= */
.snl-projects-modern {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fc, #ffffff);
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 320px;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-front {
    background: #fff;
}

.card-front img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-front h3 {
    margin-top: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.card-back {
    background: #ff6600;
    color: #fff;
    padding: 30px;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 500;
}

/* =========================================
   MPM SECTION
========================================= */
.mpm-section {
    padding: 100px 20px;
    background: #ffffff;
    text-align: center;
}

.mpm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mpm-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.mpm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mpm-card img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mpm-card-title {
    font-family: "Unbounded", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 20px 40px;
    text-align: center;
    background: #fff;
    color: #3c00ff;
}

.mpm-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6600, #ff9900);
    color: #fff;
    padding: 20px;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .mpm-card:hover img {
        opacity: 0;
        transform: scale(1.05);
    }

    .mpm-card:hover .mpm-card-overlay {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.mpm-card.active img {
    opacity: 0;
    transform: scale(1.05);
}

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

.mpm-card-overlay h3 {
    font-family: "Unbounded", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.mpm-card-overlay p {
    font-family: "Unbounded", sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #f8f9fc;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .snl-side-row {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .snl-side-image img {
        max-width: 95%;
    }

    .snl-side-row .snl-side-content {
        order: 2;
    }

    .snl-side-row .snl-side-image {
        order: 1;
    }

    .snl-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

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

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

    .snl-side-content h3 {
        font-size: 3rem;
        line-height: 1.3;
    }

    .snl-side-content h4 {
        font-size: 2rem;
    }

    .snl-side-content p,
    .snl-side-content ul li {
        font-size: 1.6rem;
        line-height: 1.9;
    }

    .snl-modern-title {
        font-size: 3rem;
    }

    .snl-modern-subtitle {
        font-size: 1.8rem;
    }

    .snl-side-content h3.typing-animation {
        font-size: 3rem;
        line-height: 1.3;
    }

    .snl-side-content h4.typing-animation {
        font-size: 2rem;
    }

    .snl-modern-title.typing-animation {
        font-size: 3rem;
    }

    .mpm-title.typing-animation {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .section-title.typing-animation {
        font-size: 3rem;
    }

    .contact-head h3.typing-animation {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .snl-side-content h3 {
        font-size: 2.4rem;
        line-height: 1.3;
    }

    .snl-side-content h4 {
        font-size: 1.8rem;
    }

    .snl-side-content p,
    .snl-side-content ul li {
        font-size: 1.4rem;
        line-height: 2;
    }

    .snl-modern-grid,
    .projects-grid,
    .mpm-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .snl-side-image img {
        max-width: 100%;
    }

    .snl-modern-title {
        font-size: 2.6rem;
    }

    .snl-modern-subtitle {
        font-size: 1.6rem;
    }

    .card-front h3 {
        font-size: 1.6rem;
    }

    .contact-head h3 {
        font-size: 3rem;
    }

    .snl-side-content h3.typing-animation {
        font-size: 2.4rem;
        line-height: 1.3;
    }

    .snl-side-content h4.typing-animation {
        font-size: 1.8rem;
    }

    .snl-modern-title.typing-animation {
        font-size: 2.6rem;
    }

    .mpm-title.typing-animation {
        font-size: 2.4rem;
        margin-bottom: 30px;
    }

    .section-title.typing-animation {
        font-size: 2.4rem;
    }

    .contact-head h3.typing-animation {
        font-size: 3rem;
    }
}
