/* ============================================================
   QUOTIENT QODE — MASTER STYLESHEET
   ============================================================ */

/* ===================== BASE ===================== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: lightgray;
}

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

.container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    background-color: #001f7c38;
    padding-top: 70px;
    padding-bottom: 0;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Anchor offset so sticky header doesn't cover section titles */
section[id],
.hero[id],
.info-section[id],
.my-project[id],
.skills-section[id],
.contact-section[id] {
    scroll-margin-top: 90px;
}

/* ===================== BACKGROUND VIDEO ===================== */
.back-vid {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    mix-blend-mode: overlay;
}

/* ===================== HEADER (STICKY) ===================== */
header {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.121);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 15px #72a1dea2;
    z-index: 999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.55);
    box-shadow: 0 2px 20px rgba(114, 161, 222, 0.4);
}

.left {
    display: flex;
    align-items: center;
}

.left img {
    width: 40px;
    margin: 0 15px;
}

header ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.326);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #72a1de63;
}

header ul li {
    list-style: none;
}

header ul a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: 0.3s;
    margin: 0 10px;
    font-size: 14px;
    white-space: nowrap;
}

header ul a:hover {
    text-shadow: 0 0 15px black;
}

header ul a.cta-nav {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    transition: 0.3s;
}

header ul a.cta-nav:hover {
    box-shadow: 0 0 15px #72a1de81;
    text-shadow: none;
}

/* Header icons as links */
.box-icons {
    display: flex;
    gap: 20px;
}

.box-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #72a1de;
    border-radius: 50%;
    color: lightgray;
    text-decoration: none;
    cursor: pointer;
    transition: 0.5s;
}

.box-icons a:hover {
    background-color: #72a1de;
    color: black;
    box-shadow: 0 0 15px #72a1de;
}

/* ===================== BLACKHOLE ===================== */
.blackhole-box {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: -1;
    mix-blend-mode: lighten;
}

.blackhole-box video {
    width: 100%;
    margin-top: -23.5%;
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: space-between;
}

.hero-info {
    position: absolute;
    left: 5%;
}

.hero-info .hero-info-title {
    color: #72a1de;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #72a1de94;
    width: fit-content;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de84;
}

.hero-info h1 {
    font-size: 60px;
    max-width: 650px;
    font-weight: 700;
    line-height: 70px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.hero-info p {
    max-width: 550px;
    line-height: 25px;
    margin-bottom: 40px;
    font-size: 20px;
}

.hero-info .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    font-size: 16px;
}

.hero-info .whatsapp-btn:hover {
    box-shadow: 0 0 15px #72a1de81;
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
}

/* Gradient text animation */
.gradient {
    background: linear-gradient(to right, #00aaa7, #7e42a7, #6600c5, #6070fd, #2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to { background-position: 200%; }
}

.skills-video-box {
    position: absolute;
    right: 3%;
}

.skills-video {
    height: 900px;
    mix-blend-mode: lighten;
}

.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid lightgray;
    position: absolute;
    left: 49%;
    bottom: 8%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.626);
}

.scroll-down::before,
.scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 2s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
}

@keyframes scroll-down {
    0% { opacity: 0; }
    30% { opacity: 1; }
    60% { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

/* ===================== SECTION TITLE ===================== */
.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}

/* ===================== INFO / SERVICES ===================== */
.info-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    margin-top: 100px;
}

.info-cards {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    width: 100%;
    height: 100%;
    margin-top: 30px;
}

.card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: auto;
    height: 40vh;
    overflow: hidden;
    border: 1px solid gray;
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.5s;
}

.card h1 {
    position: absolute;
    margin: 0;
    bottom: 40%;
    left: 5%;
    font-size: 25px;
    z-index: 1;
    color: lightgray;
}

.card p {
    position: absolute;
    bottom: 3%;
    left: 5%;
    z-index: 1;
    max-width: 300px;
    color: gray;
    font-size: 13px;
    line-height: 20px;
}

.card img {
    width: 80%;
    height: 50%;
    object-fit: cover;
}

.card video {
    margin-top: 10%;
    width: 70%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.card .card-cta {
    position: absolute;
    bottom: 5%;
    left: 5%;
    padding: 10px 25px;
    border: 1px solid gray;
    background-color: #0f1217;
    color: gray;
    border-radius: 20px;
    box-shadow: 0 0 5px lightgray;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.card .card-cta:hover {
    box-shadow: 0 0 15px lightgray;
    opacity: 0.7;
}

.card:hover {
    box-shadow: 0 0 15px rgb(211, 211, 211);
}

.card:nth-child(3) {
    grid-row: span 2;
    height: 83vh;
}

.card:nth-child(3) p { bottom: 12%; }
.card:nth-child(3) h1 { bottom: 21%; }

.card:nth-child(4) { grid-column: span 2; }
.card:nth-child(4) p { max-width: 650px; }
.card:nth-child(4) h1 { bottom: 35%; }

/* ===================== WHAT WE DELIVER (Portfolio) ===================== */
.my-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 80%;
    margin-top: 200px;
    margin-bottom: 100px;
    height: auto;
    gap: 40px;
}

.deliver-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    margin-top: 20px;
}

.deliver-card {
    position: relative;
    padding: 35px 30px;
    border: 1px solid rgba(114, 161, 222, 0.35);
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.4s ease;
    overflow: hidden;
}

.deliver-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(114, 161, 222, 0.08), transparent 60%);
    opacity: 0;
    transition: 0.4s ease;
    pointer-events: none;
}

.deliver-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(114, 161, 222, 0.35);
    border-color: rgba(114, 161, 222, 0.7);
}

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

.deliver-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2200493d, #72a1de33);
    border: 1px solid #72a1de66;
    margin-bottom: 20px;
}

.deliver-icon i {
    font-size: 32px;
    color: #72a1de;
}

.deliver-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: lightgray;
}

.deliver-card p {
    font-size: 15px;
    line-height: 24px;
    color: #a8a8b3;
    margin: 0;
}

/* ===================== SYSTEMS & STACK ===================== */
.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    padding-bottom: 80px;
    gap: 40px;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 80%;
}

.system-card {
    padding: 30px;
    border: 1px solid rgba(114, 161, 222, 0.3);
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.4s ease;
}

.system-card:hover {
    box-shadow: 0 0 25px rgba(114, 161, 222, 0.35);
    border-color: rgba(114, 161, 222, 0.7);
    transform: translateY(-4px);
}

.system-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.system-icon {
    font-size: 34px;
    color: #72a1de;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2200493d, #72a1de33);
    border: 1px solid #72a1de66;
    flex-shrink: 0;
}

.system-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: lightgray;
    margin: 0;
    line-height: 1.3;
}

.system-card p {
    font-size: 14.5px;
    line-height: 24px;
    color: #a8a8b3;
    margin: 0;
}

/* ===================== TECH SLIDER ===================== */
.tech-slider-wrap {
    width: 80%;
    position: relative;
    height: 130px;
    margin-top: 20px;
    mix-blend-mode: difference;
    opacity: 0.85;
    overflow: hidden;
}

.tech-slider-wrap .slider {
    position: relative;
    width: 100%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
    mix-blend-mode: normal;
    opacity: 1;
}

.slider {
    position: relative;
    width: 80%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

.slider .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

/* Slider speed reduced from 10s → 25s */
.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 25s linear infinite;
    transition: filter 0.5s, box-shadow 0.3s ease, transform 0.3s ease;
    animation-delay: calc((25s / var(--quantity)) * (var(--position) - 1) - 25s) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(114, 161, 222, 0.25);
    box-shadow: 0 0 12px rgba(114, 161, 222, 0.25);
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
}

@keyframes autoRun {
    from { left: 100%; }
    to { left: calc(var(--width) * -1); }
}

.slider:hover .item {
    animation-play-state: paused !important;
    filter: grayscale(1);
}

.slider .list .item:hover {
    filter: grayscale(0);
    box-shadow: 0 0 25px rgba(114, 161, 222, 0.7);
    transform: scale(1.05);
}

/* ===================== CONTACT (NO FORM) ===================== */
.contact-section {
    width: 80%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 200px 140px;
    gap: 40px;
}

.contact-section .section-title {
    position: static;
    margin: 0;
    text-align: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 16px;
    line-height: 26px;
    color: #b9b9c4;
    margin: 0 auto;
    text-align: left;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.contact-details a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: lightgray;
    text-decoration: none;
    font-size: 17px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.contact-details a i {
    color: #7668ff;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details a:hover {
    color: #fff;
    border-color: rgba(114, 161, 222, 0.5);
    background-color: rgba(114, 161, 222, 0.08);
}

.contact-details a:hover i {
    color: #25D366;
}

.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #72a1de;
    color: lightgray;
    text-decoration: none;
    transition: 0.4s ease;
}

.social-icons a i {
    font-size: 20px;
    margin: 0;
    color: inherit;
}

.social-icons a:hover {
    background-color: #72a1de;
    color: #000;
    box-shadow: 0 0 15px #72a1de;
}

/* ===================== FOOTER ===================== */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 70px;
    margin-top: auto;
    background-color: rgba(255, 255, 255, 0.121);
    z-index: 10;
    padding: 15px 2rem;
    text-align: center;
    box-sizing: border-box;
}

.footer h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #cfd3dc;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ===================== SCROLL ANIMATIONS ===================== */
.autoBlur {
    animation: autoBlurAnimation linear both;
    animation-timeline: view();
}

@keyframes autoBlurAnimation {
    0% { filter: blur(40px); }
    35%, 65% { filter: blur(0); opacity: 1; }
    100% { filter: blur(40px); opacity: 0; }
}

.autoDisplay {
    animation: autoDisplayAnimation both;
    animation-timeline: view();
}

@keyframes autoDisplayAnimation {
    from {
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
    }
    50% {
        opacity: 1;
        filter: blur(0px);
        transform: translateX(0) scale(1);
    }
}

.fadein-left {
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}

@keyframes fadeInLeftAnimation {
    0% {
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(10px);
    }
    35%, 65% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }
    100% { filter: blur(10px); }
}

/* ===================== SIDEBAR ===================== */
.menu-icon {
    font-size: 35px;
    cursor: pointer;
    display: none;
}

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 70%;
    width: 0%;
    background-color: #000000b8;
    z-index: 999;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.479);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    border-bottom-left-radius: 100%;
}

.close-icon {
    font-size: 50px;
    color: lightgray;
    padding-left: 10px;
    cursor: pointer;
}

.sidebar ul { padding-left: 20px; }

.sidebar ul li {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar ul li a {
    text-decoration: none;
    color: lightgray;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 0 0 15px #4c4c4c;
}

.social-sidebar {
    padding-left: 20px;
    margin-top: 60px;
    text-wrap: nowrap;
}

.social-sidebar a {
    font-size: 35px;
    padding: 5px 5px;
    cursor: pointer;
    transition: 0.5s;
    color: lightgray;
    text-decoration: none;
    display: inline-block;
}

.social-sidebar a:hover {
    color: #25D366;
}

.sidebar.open-sidebar {
    animation: openSideBarAnimation 1.5s forwards;
}

@keyframes openSideBarAnimation {
    to {
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
}

.sidebar.close-sidebar {
    animation: closeSideBarAnimation 1.5s forwards;
}

@keyframes closeSideBarAnimation {
    from {
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
    to {
        width: 0;
        opacity: 0;
        bottom: 70%;
        border-bottom-left-radius: 50%;
    }
}

/* ===================== MEDIA QUERIES ===================== */

/* Aspect ratio handling for background video */
@media (max-aspect-ratio: 16/9) {
    .back-vid { width: auto; height: 100%; }
}

@media (min-aspect-ratio: 16/9) {
    .back-vid { width: 100%; height: auto; }
}

/* Tablet / small desktop */
@media screen and (max-width: 1200px) {
    .blackhole-box video { margin-top: -20%; }

    .hero-info h1 {
        font-size: 40px;
        max-width: 400px;
        line-height: 40px;
    }

    .hero-info p { max-width: 300px; }

    .skills-video-box { right: 0%; }
    .skills-video-box video { height: 500px; }

    .info-cards { grid-template-columns: auto; }

    .card:nth-child(3) {
        grid-column: span 2;
        height: 70vh;
    }

    .info-cards .card h1 { font-size: 20px; }
    .info-cards .card:nth-child(3) h1 { bottom: 25%; }

    .card video { height: 60%; margin-top: 5%; }

    .my-project {
        margin-top: 120px;
        margin-bottom: 60px;
    }
}

/* Tighten nav before hamburger kicks in */
@media screen and (max-width: 1000px) {
    header ul a {
        margin: 0 6px;
        font-size: 12px;
    }
}

/* Mobile — collapse grids, show hamburger */
@media screen and (max-width: 900px) {
    .deliver-grid,
    .systems-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .my-project {
        width: 85%;
        margin-top: 120px;
        margin-bottom: 60px;
    }
}

@media screen and (max-width: 700px) {
    header {
        height: 50px;
        position: fixed;
    }

    header ul { display: none; }
    header .box-icons { display: none; }
    .menu-icon { display: inline; }

    .container { padding-top: 50px; }

    .blackhole-box video {
        width: 100%;
        margin-top: -15%;
    }

    .autoBlur { animation: none; }

    .hero {
        flex-direction: column;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .hero-info { bottom: 5%; }
    .scroll-down { bottom: 5%; }

    .hero .skills-video-box {
        height: 200px;
        top: 5%;
    }

    .info-cards { grid-template-columns: auto; }

    .card:nth-child(3) {
        grid-column: span 2;
        height: 70vh;
    }

    .card video { width: 100%; }

    .contact-section {
        padding: 100px 0 140px;
        width: 88%;
        flex-direction: column;
        margin-top: 60px;
        margin-bottom: 40px;
    }

    .contact-details a {
        font-size: 15px;
        padding: 8px 10px;
    }

    .contact-details a i {
        font-size: 20px;
    }

    .footer {
        min-height: 60px;
        padding: 12px 16px;
    }

    .footer h1 {
        font-size: 11px;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .hero .skills-video-box { display: none; }

    .blackhole-box { overflow: hidden; }

    .blackhole-box video {
        width: 140%;
        margin-top: -27%;
    }

    .left {
        scale: 0.9;
        margin-left: -30px;
    }

    .left h2 { font-size: 20px; }

    .hero { scale: 0.9; }
    .hero-info { bottom: 15%; }
    .hero-info h1 { font-size: 35px; }

    .scroll-down {
        bottom: 15%;
        left: 60%;
    }

    .section-title { font-size: 25px; }

    .info-cards {
        display: flex;
        flex-direction: column;
    }

    .card { min-height: 20rem; }
    .card h1 { bottom: 30%; font-size: 18px; }

    .deliver-card,
    .system-card {
        padding: 22px 20px;
    }

    .deliver-card h2,
    .system-card h2 {
        font-size: 18px;
    }

    .deliver-card p,
    .system-card p {
        font-size: 13.5px;
        line-height: 22px;
    }

    .deliver-icon {
        width: 50px;
        height: 50px;
    }

    .deliver-icon i {
        font-size: 26px;
    }

    .system-icon {
        font-size: 28px;
        padding: 8px;
    }

    .contact-section {
        padding: 80px 20px 120px;
    }

    .contact-section .section-title {
        font-size: 24px;
    }
}

/* Hide "Why Quotient Qode?" heading on mobile — keep card + paragraph */
@media screen and (max-width: 700px) {
    .info-cards .card:nth-child(4) h1 {
        display: none;
    }

    .info-cards .card:nth-child(4) p {
        bottom: 8%;
        max-width: 85%;
    }
}