/* Poppins is self-hosted — see fonts.css (loaded before this file) */

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====================== HEADER ====================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.sticky {
    background: var(--bg-color);
    padding: 1.2rem 9%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* ====================== SECTIONS ====================== */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* ====================== HOME ====================== */
.home {
    display: flex;
    align-items: center;
    padding: 0 9%;
    position: relative;
    background-image: url("../images/home.597732c5f65e.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.home-content {
    max-width: 60rem;
    z-index: 2;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--main-color);
}

.text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 0.7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: -33rem 0;
}

.home.show-animate .text-animate h3 {
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.btn-box {
    display: flex;
    justify-content: flex-start;
    width: 34.5rem;
    height: 5rem;
    gap: 1.5rem;
}

.btn-box .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    color: var(--bg-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:hover {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    display: flex;
    gap: 1rem;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: 0.5s;
}

.home-sci a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: transparent;
    transition: 3s;
}

.home-imgHover:hover {
    background: var(--bg-color);
    opacity: 0.6;
}

/* ====================== PROJECTS ====================== */
.projects {
    background: var(--bg-color);
    padding: 10rem 9% 6rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title .highlight {
    color: var(--main-color);
}

.section-subtitle {
    font-size: 1.6rem;
    opacity: 0.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-item {
    background: var(--second-bg-color);
    border: 0.15rem solid var(--main-color);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-8px);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 171, 240, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    padding: 0.8rem 2rem;
    background: var(--bg-color);
    color: var(--main-color);
    border: 0.1rem solid var(--main-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.4rem;
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    color: var(--main-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.project-description {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-tech {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--main-color);
    border-radius: 15px;
    color: var(--main-color);
}

/* ====================== FEATURED PROJECT SECTION ====================== */
.featured-project {
    background: var(--second-bg-color);
    padding: 8rem 9% 6rem;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 171, 240, 0.08);
    border: 1px solid rgba(0, 171, 240, 0.35);
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.featured-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-image-wrap {
    position: relative;
    border-radius: 1.6rem;
    overflow: hidden;
    border: 0.15rem solid rgba(0, 171, 240, 0.3);
    box-shadow: 0 0 4rem rgba(0, 171, 240, 0.1);
}

.featured-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.featured-image-wrap:hover img {
    transform: scale(1.04);
}

.featured-status {
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    background: rgba(8, 27, 41, 0.85);
    border: 1px solid #00c864;
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00c864;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(6px);
}

.featured-status-dot {
    width: 0.7rem;
    height: 0.7rem;
    background: #00c864;
    border-radius: 50%;
    flex-shrink: 0;
    animation: otw-pulse 2s ease-in-out infinite;
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.featured-category {
    color: var(--main-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.featured-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

.featured-title span {
    color: var(--main-color);
}

.featured-desc {
    font-size: 1.5rem;
    line-height: 1.7;
    opacity: 0.85;
}

.featured-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-features li {
    font-size: 1.4rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: rgba(0, 171, 240, 0.04);
    border: 1px solid rgba(0, 171, 240, 0.12);
    border-radius: 0.8rem;
    transition: border-color 0.3s, background 0.3s;
}

.featured-features li:hover {
    border-color: rgba(0, 171, 240, 0.4);
    background: rgba(0, 171, 240, 0.08);
}

.featured-features li .fi {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.featured-features li strong {
    color: var(--text-color);
    font-weight: 600;
}

.featured-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.featured-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.4rem;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    transition: 0.3s;
    border: 0.2rem solid var(--main-color);
}

.featured-btn-primary {
    background: var(--main-color);
    color: var(--bg-color);
}

.featured-btn-primary:hover {
    background: transparent;
    color: var(--main-color);
}

.featured-btn-secondary {
    background: transparent;
    color: var(--main-color);
}

.featured-btn-secondary:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

@media (max-width: 991px) {
    .featured-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .featured-title { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    .featured-project { padding: 8rem 4% 5rem; }
    .featured-title { font-size: 2.8rem; }
}

/* ====================== ABOUT ====================== */
.heading {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.heading span {
    color: var(--main-color);
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 90%;
    border-radius: 50%;
    border: 0.2rem solid var(--main-color);
}

.circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98%;
    height: 98%;
    border: 0.2rem solid var(--main-color);
    border-top-color: var(--second-bg-color);
    border-bottom-color: var(--second-bg-color);
    border-radius: 50%;
    animation: aboutSpinner 8s linear infinite;
}

.about-content {
    text-align: center;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* ====================== EDUCATION ====================== */
.education {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 5rem;
}

.education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    width: 100%;
}

.education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-box {
    border-left: 0.2rem solid var(--main-color);
}

.education-content {
    padding-left: 2rem;
    position: relative;
}

.education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content {
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.education-content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: 0.5rem;
}

.education-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.education-content p {
    font-size: 1.6rem;
}

/* ====================== SKILLS ====================== */
.skills {
    background: var(--second-bg-color);
    padding-bottom: 8rem;
}

.skills-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
}

.skills-column {
    background: rgba(17, 46, 66, 0.6);
    border: 0.15rem solid rgba(0, 171, 240, 0.2);
    border-radius: 1.6rem;
    padding: 3rem 2.5rem;
    transition: all 0.4s ease;
    height: 100%;
}

.skills-column:hover {
    border-color: var(--main-color);
    transform: translateY(-8px);
    box-shadow: 0 0 2.5rem rgba(0, 171, 240, 0.15);
}

.skills-column .title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2.8rem;
    text-align: center;
    position: relative;
}

.skills-column .title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--main-color);
    border-radius: 3px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-pill {
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 50px;
    color: var(--main-color);
    background: transparent;
    font-weight: 500;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.skill-pill:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: scale(1.08);
    box-shadow: 0 0 1.5rem rgba(0, 171, 240, 0.5);
}

/* ====================== CONTACT ====================== */
.contact form {
    max-width: 70rem;
    margin: 1rem auto 3rem;
    text-align: center;
}

.contact .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact .input-box .input-field {
    width: 49%;
    margin: 0.8rem 0;
    position: relative;
}

.contact .input-box .input-field input,
.contact textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    font-family: inherit; /* textarea defaults to monospace otherwise */
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 0.8rem;
    border: 0.2rem solid rgba(0, 171, 240, 0.3);
}

.contact .input-box .input-field input:focus,
.contact textarea:focus {
    border-color: var(--main-color);
}

.contact textarea {
    resize: none;
    height: 20rem;
    margin: 0.8rem 0;
}

.input-field .focus,
.textarea-field .focus {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: 0.4s;
}

.input-field input:focus ~ .focus,
.textarea-field textarea:focus ~ .focus {
    width: 100%;
}

/* ====================== FOOTER ====================== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
}

/* ====================== ANIMATIONS ====================== */
@keyframes homeBgText {
    0%, 10%, 100% { background-position: -33rem 0; }
    65%, 85% { background-position: 0 0; }
}

@keyframes aboutSpinner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes showRight {
    0%   { opacity: 0; transform: translateX(8rem); }
    100% { opacity: 1; transform: translateX(0); }
}

.animate {
    opacity: 0;
}

.show-animate .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 991px) {
    .header { padding: 2rem 4%; }
    section { padding: 10rem 4% 2rem; }
    .footer { padding: 2rem 4%; }
    .home { padding: 0 4%; }
    .skills-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header { background: var(--bg-color); }
    #menu-icon { display: block; }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        border-top: 0.1rem solid rgba(0,0,0,0.2);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
        display: none;
    }

    .navbar.active { display: block; }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        background-image: url("../images/home-mobile.58c421a1079c.webp");
        background-position: center top;
        background-attachment: scroll;
        background-size: cover;
    }

    .home-content h1 { font-size: 4rem; }
    .home-content h3 { font-size: 2.2rem; }
    .home-content p { font-size: 1.4rem; }
    .home-imgHover { display: none; }
    .contact .input-box .input-field { width: 100%; }
    .skills-row { grid-template-columns: 1fr; }
}

@media (max-width: 450px) {
    html { font-size: 55%; }
    .home-content h1 { font-size: 3.6rem; }

    .btn-box {
        width: 100%;
        height: auto;
        gap: 1rem;
    }
    .btn-box .btn { width: 48%; height: 5rem; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* ====================== CONTACT SUCCESS PAGE ====================== */
.contact-success {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    padding: 2rem 5%;
}

.success-content {
    background: var(--second-bg-color);
    padding: 5rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--main-color);
    box-shadow: 0 0 2.5rem rgba(0, 171, 240, 0.3);
    max-width: 500px;
    width: 100%;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-wrapper {
    font-size: 8rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.success-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.success-content p {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 3.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.success-content .btn {
    width: 18rem;
    height: 5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--main-color);
    color: var(--bg-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    transition: 0.5s;
    box-shadow: 0 0 1rem var(--main-color);
}

.success-content .btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
/* ====================== 404 PAGE ====================== */
.error-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    padding: 2rem 5%;
    text-align: center;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.error-code {
    font-size: 14rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--main-color);
    text-shadow: 0 0 4rem rgba(0, 171, 240, 0.3);
    line-height: 1;
    animation: errorPulse 3s ease-in-out infinite;
}

.error-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.error-message {
    font-size: 1.6rem;
    opacity: 0.7;
    max-width: 40rem;
    line-height: 1.6;
}

.error-btn {
    margin-top: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16rem;
    height: 5rem;
    background: var(--main-color);
    color: var(--bg-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    transition: 0.5s;
}

.error-btn:hover {
    background: transparent;
    color: var(--main-color);
}

@keyframes errorPulse {
    0%, 100% { text-shadow: 0 0 4rem rgba(0, 171, 240, 0.3); }
    50%       { text-shadow: 0 0 8rem rgba(0, 171, 240, 0.7); }
}

@media (max-width: 768px) {
    .error-code  { font-size: 10rem; }
    .error-title { font-size: 2.8rem; }
}

@media (max-width: 450px) {
    .error-code  { font-size: 8rem; }
    .error-title { font-size: 2.2rem; }
}

/* ====================== OPEN TO WORK BADGE ====================== */
.open-to-work-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(0, 200, 100, 0.1);
    border: 1px solid rgba(0, 200, 100, 0.35);
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: #00c864;
    margin-bottom: 1.8rem;
    width: fit-content;
    position: relative;
}

.otw-dot {
    width: 0.8rem;
    height: 0.8rem;
    background: #00c864;
    border-radius: 50%;
    flex-shrink: 0;
    animation: otw-pulse 2s ease-in-out infinite;
}

@keyframes otw-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 100, 0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(0, 200, 100, 0); }
}

/* ====================== SCROLL PROGRESS BAR ====================== */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--main-color);
    z-index: 9999;
    transition: width 0.08s linear;
    box-shadow: 0 0 6px var(--main-color);
}

/* ====================== FOOTER UPGRADE ====================== */
.footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    flex-wrap: wrap;
    padding: 3rem 9%;
    background: var(--second-bg-color);
    gap: 2rem;
    border-top: 1px solid rgba(0, 171, 240, 0.15);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.footer-detail {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-detail a {
    color: inherit;
    transition: color 0.3s;
}

.footer-detail a:hover {
    color: var(--main-color);
    opacity: 1;
}

.footer-detail i {
    color: var(--main-color);
    font-size: 1.6rem;
}

.footer-center {
    text-align: center;
}

.footer-text p,
.footer-center p {
    font-size: 1.4rem;
    opacity: 0.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.8rem;
    height: 3.8rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--main-color);
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* ====================== PROJECT BTN SECONDARY ====================== */
.btn-primary {
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem rgba(0, 171, 240, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border-color: rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15) !important;
    color: var(--text-color) !important;
    box-shadow: none !important;
}

/* FOOTER RESPONSIVE */
@media (max-width: 768px) {
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 4%;
    }
    .footer-left { align-items: center; }
    .footer-right { align-items: center; }
    .footer-detail { justify-content: center; }
}

/* ====================== HONEYPOT (hidden from humans, visible to bots) ====================== */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ====================== MENU ICON (button element) ====================== */
button#menu-icon {
    background: none;
    border: none;
    padding: 0;
}

/* ====================== AWARD STRIP ====================== */
.award-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: 1rem 1.4rem;
    background: rgba(255, 193, 7, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 0.8rem;
    font-size: 1.4rem;
    line-height: 1.5;
}

.award-strip i {
    font-size: 2.2rem;
    color: #ffc107;
    flex-shrink: 0;
}

.award-strip strong {
    color: #ffc107;
}

/* ====================== CONTACT FORM STATUS ====================== */
.form-status {
    margin-top: 1.6rem;
    padding: 1.2rem 1.6rem;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    line-height: 1.5;
}

.form-status.success {
    background: rgba(0, 200, 100, 0.08);
    border: 1px solid #00c864;
    color: #00c864;
}

.form-status.error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* ====================== CASE STUDY PAGE ====================== */
.case-header {
    position: sticky;
}

.case-study {
    padding: 14rem 9% 6rem;
    background: var(--bg-color);
    min-height: 100vh;
}

.case-study .container {
    max-width: 820px;
    margin: 0 auto;
}

.case-hero h1 {
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1rem 0;
}

.case-hero h1 span {
    color: var(--main-color);
}

.case-lead {
    font-size: 1.7rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1.8rem;
}

.case-status {
    position: static;
    display: inline-flex;
    margin-bottom: 1rem;
}

.case-video {
    /* Portrait phone recording — cap to viewport height so it fits one screen */
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    margin: 3rem auto;
    border-radius: 1.6rem;
    border: 0.15rem solid rgba(0, 171, 240, 0.3);
    box-shadow: 0 0 4rem rgba(0, 171, 240, 0.1);
}

.case-section {
    min-height: 0;
    padding: 2.4rem 0 0;
}

.case-section h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.case-section p {
    font-size: 1.5rem;
    line-height: 1.8;
    opacity: 0.85;
}

.case-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-list li {
    font-size: 1.4rem;
    line-height: 1.6;
    padding: 1.2rem 1.6rem;
    background: rgba(0, 171, 240, 0.04);
    border: 1px solid rgba(0, 171, 240, 0.12);
    border-radius: 0.8rem;
}

.case-list li strong {
    color: var(--main-color);
    font-weight: 600;
}

.case-cta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .case-study { padding: 12rem 5% 4rem; }
    .case-hero h1 { font-size: 3.2rem; }
}

/* ====================== REDUCED MOTION ====================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
