@charset "utf-8";

/* ==========================================
   1. Design Tokens & Variables
   ========================================== */
:root {
    --font-primary: 'Noto Sans KR', sans-serif;
    --font-secondary: 'Montserrat', 'Inter', sans-serif;

    /* Original Brand Color Set */
    --color-primary: #2a52be;
    /* Original point_blue */
    --color-secondary: #5f259f;
    /* Original point_purple */
    --color-accent: #ffe270;
    /* Original yellow highlight */

    --color-dark: #0f0f12;
    --color-dark-card: #18181c;
    --color-light: #ffffff;
    --color-light-gray: #f8f9fa;
    --color-border: rgba(0, 0, 0, 0.07);
    --color-border-dark: rgba(255, 255, 255, 0.08);

    --text-main: #2b2b35;
    --text-muted: #626170;
    --text-light: #f1f2f6;

    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 30px 60px rgba(42, 82, 190, 0.08);
}

/* ==========================================
   2. Reset & Global Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul,
ol {
    list-style: none;
}

em {
    font-style: normal;
}

button,
input,
textarea {
    outline: none;
    border: none;
    background: none;
    font-family: var(--font-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-light-gray);
}

::-webkit-scrollbar-thumb {
    background: #ccd0db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8aebf;
}

/* Common Layout Elements */
#container {
    width: 100%;
    position: relative;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================
   3. Navigation Header (With Original Logo & Transparent Bg)
   ========================================== */
#header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Original Logo Setup */
.logo {
    width: 226px;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    background: url('/images/logo.svg') left top no-repeat;
    /* Colored logo for visibility on bright visual slide */
    background-size: contain;
    transition: var(--transition-smooth);
}

#footer .logo {
    background: url('/images/logo_white.svg') left top no-repeat;
    background-size: contain;
}

/* Navigation Menu */
#header .gnb {
    display: flex;
    align-items: center;
    gap: 3rem;
}

#header .gnb a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    /* Dark color for visibility on bright slide background */
    position: relative;
    padding: 6px 0;
}

#header.scrolled .gnb a {
    color: var(--text-main);
}

#header .gnb a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

#header.scrolled .gnb a::after {
    background: var(--color-primary);
}

#header .gnb a:hover::after,
#header .gnb a.active::after {
    width: 100%;
}

#header .gnb a:hover {
    color: var(--color-primary);
}

#header.scrolled .gnb a:hover {
    color: var(--color-primary);
}

#header.scrolled .gnb a.active {
    color: var(--color-primary);
}

/* ==========================================
   4. Hero Slider Original Visuals & Highlight
   ========================================== */
#content #main_visual>li {
    text-align: center;
}

#content #main_visual>li::before {
    content: '';
    width: 0;
    height: 100%;
    display: inline-block;
    vertical-align: middle;
}

#content #main_visual>li::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, .8);
}

#content #main_visual>li.list01 {
    background: url('/images/main_visual_01.png') center 60% no-repeat;
    background-size: cover;
}

#content #main_visual>li.list02 {
    background: url('/images/main_visual_02.png') center 85% no-repeat;
    background-size: cover;
}

#content #main_visual>li .text_box {
    z-index: 1;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: 1.5rem;
    text-align: center;
    color: #56555c;
    line-height: 1.4;
    word-break: keep-all;
    max-width: 90%;
}

#content #main_visual>li .text_box em {
    position: relative;
    display: block;
    font-size: 3rem;
    color: #2b2b35;
    line-height: 1.35;
    padding-bottom: 1rem;
    margin-bottom: .5rem;
}

i[class*=point] {
    line-height: 1.1;
    padding-bottom: .15rem;
    display: inline-block;
}

.point_blue {
    font-style: normal;
    color: #fff;
    background: #2a52be;
}

.point_purple {
    font-style: normal;
    color: #fff;
    background: #5f259f;
}

.point_yellow {
    font-style: normal;
    background: #ffe270;
}

/* ==========================================
   5. General Section Setup
   ========================================== */
.section {
    padding: 9rem 0;
    position: relative;
    overflow: hidden;
    /* Ensure glowing orbs do not cause page scroll bars */
}

/* Subtle tech grid line pattern */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.section.alt-bg {
    background-color: var(--color-light-gray);
}

.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    /* Content sits above backgrounds */
}

/* Background Glow Orbs */
.bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    transition: var(--transition-smooth);
}

#si-section .bg-glow-1 {
    top: -100px;
    left: -150px;
    background: var(--color-primary);
}

#si-section .bg-glow-2 {
    bottom: -150px;
    right: -150px;
    background: var(--color-secondary);
}

#rpa-section .bg-glow-1 {
    top: -100px;
    right: -150px;
    background: #0d9488;
    /* Teal */
}

#rpa-section .bg-glow-2 {
    bottom: -150px;
    left: -150px;
    background: #ea580c;
    /* Orange */
}

#contact-section .bg-glow-1 {
    top: -100px;
    left: -150px;
    background: var(--color-primary);
}

#contact-section .bg-glow-2 {
    bottom: -150px;
    right: -150px;
    background: var(--color-secondary);
}

/* Full-Size Section Background Images with Soft Contrast Overlays */
#si-section {
    background:
        linear-gradient(rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.80)),
        url('/images/si_bg.png') center center no-repeat;
    background-size: cover;
}

#rpa-section {
    background:
        linear-gradient(rgba(248, 249, 250, 0.80), rgba(248, 249, 250, 0.80)),
        url('/images/rpa_bg.png') center center no-repeat;
    background-size: cover;
}

#rpa-section .section-title {
    letter-spacing: 0.5px;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 5rem auto;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-primary);
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.section-title span {
    color: #fff;
}

.section-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    word-break: keep-all;
}

/* ==========================================
   6. About Us Section Cards (With Brand Colors)
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-border);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(42, 82, 190, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.card-icon.flat {
    width: 80px;
    height: 80px;
    background: none;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    display: block;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-icon.flat svg {
    width: 100%;
    height: 100%;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary);
    transition: var(--transition-smooth);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Card Hover Interactions (Flat Solid Offset Shadow) */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0px rgba(42, 82, 190, 0.12);
    border-color: var(--color-primary);
}

.card:hover::before {
    opacity: 1;
}

/* SI Section Hover color overrides */
#si-section .cards-grid .card:nth-child(1)::before {
    background: var(--color-primary);
}

#si-section .cards-grid .card:nth-child(1):hover {
    box-shadow: 8px 8px 0px rgba(42, 82, 190, 0.12);
    border-color: var(--color-primary);
}

#si-section .cards-grid .card:nth-child(2)::before {
    background: #f05e5e;
}

#si-section .cards-grid .card:nth-child(2):hover {
    box-shadow: 8px 8px 0px rgba(240, 94, 94, 0.12);
    border-color: #f05e5e;
}

#si-section .cards-grid .card:nth-child(3)::before {
    background: var(--color-secondary);
}

#si-section .cards-grid .card:nth-child(3):hover {
    box-shadow: 8px 8px 0px rgba(95, 37, 159, 0.12);
    border-color: var(--color-secondary);
}

/* RPA Section Hover color overrides */
#rpa-section .cards-grid .card:nth-child(1)::before {
    background: #0d9488;
}

#rpa-section .cards-grid .card:nth-child(1):hover {
    box-shadow: 8px 8px 0px rgba(13, 148, 136, 0.12);
    border-color: #0d9488;
}

#rpa-section .cards-grid .card:nth-child(2)::before {
    background: #ea580c;
}

#rpa-section .cards-grid .card:nth-child(2):hover {
    box-shadow: 8px 8px 0px rgba(234, 88, 12, 0.12);
    border-color: #ea580c;
}

#rpa-section .cards-grid .card:nth-child(3)::before {
    background: #1d4ed8;
}

#rpa-section .cards-grid .card:nth-child(3):hover {
    box-shadow: 8px 8px 0px rgba(29, 78, 216, 0.12);
    border-color: #1d4ed8;
}

/* ==========================================
   7. Contact Us Section Layout & Form
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Info Items */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--color-light);
    border: 1px solid var(--color-border);
    padding: 1.8rem 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(42, 82, 190, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
}

.info-icon.flat {
    width: 60px;
    height: 60px;
    background: none;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(0, 0, 0, 0.06);
    display: block;
    flex-shrink: 0;
    overflow: hidden;
}

.info-icon.flat svg {
    width: 100%;
    height: 100%;
}

/* Info secondary icon variations */
.contact-info .info-card:nth-child(even) .info-icon {
    background: rgba(95, 37, 159, 0.08);
}

.contact-info .info-card:nth-child(even) .info-icon svg {
    stroke: var(--color-secondary);
}

.info-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-details p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 6px 6px 0px rgba(42, 82, 190, 0.12);
}

.contact-info .info-card:nth-child(even):hover {
    border-color: var(--color-secondary);
    box-shadow: 6px 6px 0px rgba(95, 37, 159, 0.12);
}

/* Contact Form Styling */
.contact-form-wrap {
    background: var(--color-light);
    border: 1px solid var(--color-border);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--color-light-gray);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--color-dark);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    background: var(--color-light);
    border-color: var(--color-primary);
    box-shadow: 4px 4px 0px rgba(42, 82, 190, 0.12);
}

.form-group textarea {
    resize: none;
}

/* Form Submit Button (Solid Primary Brand Color) */
.btn-submit {
    width: 100%;
    background-color: var(--color-primary);
    padding: 1.1rem;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--color-primary);
    box-shadow: 4px 4px 0px rgba(42, 82, 190, 0.15);
    transition: var(--transition-smooth);
}

.btn-submit span {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-light);
}

.btn-submit .btn-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-light);
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background-color: #1e3f9c;
    /* Darker blue */
    box-shadow: 6px 6px 0px rgba(42, 82, 190, 0.25);
    transform: translateY(-2px);
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================
   8. Footer Layout (Dark Minimalist with White Image Logo)
   ========================================== */
#footer {
    background: var(--color-dark);
    padding: 6rem 0 4rem 0;
    border-top: 1px solid var(--color-border-dark);
}

#footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3.5rem;
}

#footer .logo_box .logo_row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

#footer .logo_box .logo.white {
    margin-bottom: 0;
}

#footer .btn-company-pr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    transition: var(--transition-smooth);
    letter-spacing: -0.01em;
    backdrop-filter: blur(4px);
    line-height: 1.2;
}

#footer .btn-company-pr span {
    color: #ffffff;
    font-size: inherit;
    font-weight: inherit;
}

#footer .btn-company-pr svg {
    transition: transform 0.3s ease;
    stroke: #ffffff;
}

#footer .btn-company-pr:hover {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(42, 82, 190, 0.4);
    transform: translateY(-2px);
}

#footer .btn-company-pr:hover span {
    color: #ffffff;
}

#footer .btn-company-pr:hover svg {
    stroke: #ffffff;
    transform: translateY(1px);
}

#footer .slogan {
    font-size: 0.95rem;
    color: var(--text-muted);
}

#footer .footer-menu {
    display: flex;
    gap: 3rem;
}

#footer .footer-menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

#footer .footer-menu a:hover {
    color: var(--color-light);
}

#footer .footer-divider {
    border: 0;
    height: 1px;
    background: var(--color-border-dark);
    margin-bottom: 2.5rem;
}

#footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#footer .info_box {
    width: 100%;
}

#footer .info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

#footer .info-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

#footer .info-item .title {
    font-weight: 700;
    color: #8c8c9a;
    margin-right: 0.5rem;
}

#footer .info-item .text {
    color: #b3b3bf;
}

#footer .copyright {
    font-size: 0.8rem;
    color: #4a4a56;
}

/* ==========================================
   9. Custom Toast Notification System
   ========================================== */
.custom-toast {
    position: fixed;
    bottom: 30px;
    right: -400px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.25rem 1.8rem;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 380px;
    overflow: hidden;
}

.custom-toast.show {
    right: 30px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.custom-toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
}

.custom-toast.success .toast-icon svg {
    stroke: #10b981;
}

.custom-toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
}

.custom-toast.error .toast-icon svg {
    stroke: #ef4444;
}

.toast-msg {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.4;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    animation: shrinkWidth 4s linear forwards;
}

/* ==========================================
   10. Keyframes & Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shrinkWidth {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ==========================================
   11. Responsive Design Media Queries
   ========================================== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Hide menu text on mobile screen sizes */
    #header .gnb {
        display: none;
    }

    #header .wrap {
        justify-content: left;
    }

    .logo {
        max-width: 180px;
        height: 34px;
    }

    #content #main_visual>li .text_box {
        font-size: 1.2rem;
        padding: 0 16px;
        color: #4a4a56;
    }

    #content #main_visual>li .text_box em {
        font-size: 2rem;
        line-height: 1.35;
    }

    .section {
        padding: 6rem 0;
    }

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

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-wrap {
        padding: 2.2rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #footer .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    #footer .info-row {
        gap: 1.5rem;
        flex-direction: column;
    }
}

/* Specific styling for mobile screens 400px and below */
@media (max-width: 400px) {
    #header .gnb {
        display: none;
    }

    .logo {
        max-width: 160px;
        height: 30px;
    }

    #content #main_visual>li .text_box {
        font-size: 1.05rem;
        color: #3b3b45;
        padding: 0 10px;
    }

    #content #main_visual>li .text_box em {
        font-size: 1.55rem;
        line-height: 1.35;
        padding-bottom: 0.5rem;
        margin-bottom: 0.4rem;
    }

    i[class*=point] {
        padding: 0.1rem 0.35rem;
    }
}

/* ==========================================
   12. CSS Scroll Snap (Desktop Section Snap)
   ========================================== */
@media (min-width: 1025px) {
    html {
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
    }

    .section {
        min-height: 100vh;
        height: 100vh;
        display: flex;
        align-items: center;
        padding-top: 80px;
        /* Push content down past the sticky header */
        padding-bottom: 20px;
        box-sizing: border-box;
    }

    .section-wrap {
        width: 100%;
    }

    #MS_SLIDER,
    .section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        scroll-margin-top: 0;
        /* Snap exactly to the viewport top */
    }

    #footer {
        scroll-snap-align: end;
    }

    /* Contact Section Specific Compactness for Desktop Snap */
    #contact-section .section-header {
        margin-bottom: 2.5rem;
    }

    #contact-section .contact-grid {
        gap: 2.5rem;
    }

    #contact-section .contact-info {
        gap: 1rem;
    }

    #contact-section .info-card {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    #contact-section .info-icon.flat {
        width: 50px;
        height: 50px;
    }

    #contact-section .contact-form-wrap {
        padding: 2.2rem;
    }

    #contact-section .form-group {
        margin-bottom: 1.2rem;
    }

    #contact-section .form-group input,
    #contact-section .form-group textarea {
        padding: 0.8rem 1rem;
    }

    #contact-section textarea {
        height: 120px;
        /* Force compact height for textarea */
    }

    #contact-section .btn-submit {
        padding: 0.9rem;
    }
}

/* ==========================================
   9. RPA Video Trigger & Modal
   ========================================== */
.rpa-video-trigger-wrap {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-video-play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #7c3aed 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(95, 37, 159, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-video-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-video-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(95, 37, 159, 0.4);
}

.btn-video-play:hover::before {
    opacity: 1;
}

.btn-video-play:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(95, 37, 159, 0.3);
}

.play-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.play-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    margin-left: 2px;
    /* Center the triangle icon visually */
}

.btn-video-play:hover .play-icon-wrap {
    transform: scale(1.1);
    background: var(--color-accent);
    color: var(--color-dark);
}

.play-text {
    font-family: var(--font-primary);
    color: #ffffff;
    font-weight: 500;
}

/* ==========================================
   10. RPA Demo Page Styling
   ========================================== */
.demo-page {
    background-color: var(--color-light-gray);
    padding-top: var(--header-height);
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.demo-page .section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.demo-page .bg-glow-1 {
    top: -100px;
    right: -150px;
    background: #0d9488;
}

.demo-page .bg-glow-2 {
    bottom: -150px;
    left: -150px;
    background: #ea580c;
}

.demo-video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.video-player-card {
    width: 100%;
    background: #18181c;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-header {
    background: #1f1f23;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.video-title {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.video-window-dots {
    display: flex;
    gap: 6px;
}

.video-window-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.video-window-dots .dot.red {
    background-color: #ff5f56;
}

.video-window-dots .dot.yellow {
    background-color: #ffbd2e;
}

.video-window-dots .dot.green {
    background-color: #27c93f;
}

.video-body {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.demo-actions {
    display: flex;
    justify-content: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    background: var(--color-light-gray);
    border-color: rgba(0, 0, 0, 0.15);
}