/* ========================================
   CUADRA DIGITAL
   Complete Website Styles
======================================== */


/* ========================================
   1. GLOBAL RESET
======================================== */

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

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

body {
    background-color: #f6f8fc;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* ========================================
   2. REUSABLE STYLES
======================================== */

.eyebrow {
    color: #06d7f0;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading {
    width: min(760px, 100%);
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading .eyebrow {
    color: #7c3aed;
    margin-bottom: 10px;
}

.section-heading h2 {
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.section-heading > p:last-child {
    color: #5c6475;
    font-size: 1.05rem;
}


/* ========================================
   3. BUTTONS
======================================== */

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, #6d3df5, #b14df4);
    color: white;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.4);
}

.secondary-button {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.06);
    color: white;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}


/* ========================================
   4. HEADER AND NAVIGATION
======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(11, 20, 39, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
}


/* ========================================
   5. NAVIGATION LOGO
======================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}

.brand-name strong {
    color: #22d3ee;
}

.brand-tagline {
    color: #cbd5e1;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    margin-top: 6px;
}


/* ========================================
   6. NAVIGATION LINKS
======================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    margin: auto;
    background-color: #22d3ee;
    content: "";
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


/* ========================================
   7. HERO SECTION
======================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 100px 20px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 80%,
            rgba(124, 58, 237, 0.45),
            transparent 35%
        ),
        radial-gradient(
            circle at 82% 28%,
            rgba(6, 182, 212, 0.3),
            transparent 35%
        ),
        linear-gradient(135deg, #151125 0%, #071427 100%);
    color: white;
}

.hero::after {
    position: absolute;
    top: 55px;
    right: -65px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 50%;
    content: "";
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.hero .eyebrow {
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(
        90deg,
        #22d3ee,
        #8b5cf6,
        #f472b6
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 720px;
    margin-top: 26px;
    color: #dbe4f2;
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}


/* ========================================
   8. SERVICES SECTION
======================================== */

.services-section {
    padding: 100px 20px;
    background-color: #f6f8fc;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.service-card {
    grid-column: span 2;
    position: relative;
    padding: 32px;
    overflow: hidden;
    background-color: white;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.service-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        #22d3ee,
        #7c3aed,
        #f472b6
    );
    content: "";
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
}

.service-card h3 {
    margin-bottom: 13px;
    color: #111827;
    font-size: 1.35rem;
}

.service-card p {
    color: #60697a;
}


/* ========================================
   9. OUR WORK SECTION
======================================== */

.work-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.project-card {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(34, 211, 238, 0.2),
            transparent 35%
        ),
        linear-gradient(135deg, #101a33, #21124b);
    color: white;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.22);
}

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

.project-label {
    margin-bottom: 10px;
    color: #22d3ee;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-card h3 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.project-card p {
    color: #d9e1ee;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
    margin: 28px 0 35px;
    padding-left: 20px;
    color: #e8ecf4;
}

.project-features li::marker {
    color: #22d3ee;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}


/* ========================================
   10. ABOUT SECTION
======================================== */

.about-section {
    padding: 100px 20px;
    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.06),
            rgba(34, 211, 238, 0.06)
        ),
        #f6f8fc;
}

.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    width: min(1050px, 100%);
    margin: 0 auto;
}

.about-content .eyebrow {
    margin-bottom: 12px;
    color: #7c3aed;
}

.about-content h2 {
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.about-text {
    padding: 35px;
    background-color: white;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
}

.about-text p {
    color: #566072;
}

.about-text p + p {
    margin-top: 18px;
}


/* ========================================
   11. CONTACT SECTION
======================================== */

.contact-section {
    padding: 100px 20px;
    background-color: #0b1427;
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: start;
    width: min(1100px, 100%);
    margin: 0 auto;
}

.contact-content .eyebrow {
    margin-bottom: 12px;
}

.contact-content h2 {
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

.contact-content > p:last-child {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 35px;
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #172033;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    color: #111827;
    background-color: #f8fafc;
    border: 1px solid #cfd7e6;
    border-radius: 8px;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.contact-form .primary-button {
    border: none;
}

.form-message {
    align-self: center;
    color: #334155;
    font-size: 0.9rem;
}


/* ========================================
   12. FOOTER
======================================== */

.site-footer {
    padding: 34px 20px;
    background-color: #060c18;
    color: #94a3b8;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.footer-brand {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-content p:nth-child(2) {
    color: #22d3ee;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* ========================================
   13. KEYBOARD ACCESSIBILITY
======================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #22d3ee;
    outline-offset: 4px;
}


/* ========================================
   14. TABLET RESPONSIVE STYLES
======================================== */

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 18px;
        padding: 18px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .hero {
        min-height: 560px;
        padding-top: 90px;
    }

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

    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: auto;
    }

    .service-card:last-child {
        grid-column: 1 / -1;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .project-features {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   15. MOBILE RESPONSIVE STYLES
======================================== */

@media (max-width: 600px) {
    html {
        scroll-padding-top: 145px;
    }

    .navbar {
        width: min(100% - 28px, 1120px);
    }

    .brand-icon {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        margin-top: 5px;
        font-size: 0.52rem;
        letter-spacing: 1px;
    }

    .nav-links {
        gap: 12px 18px;
    }

    .nav-links a {
        font-size: 0.86rem;
    }

    .hero {
        min-height: auto;
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 13vw, 4rem);
        letter-spacing: -2px;
    }

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

    .hero-actions,
    .project-actions {
        flex-direction: column;
    }

    .hero-actions a,
    .project-actions a {
        width: 100%;
    }

    .services-section,
    .work-section,
    .about-section,
    .contact-section {
        padding: 75px 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card:last-child {
        grid-column: auto;
    }

    .project-card {
        padding: 32px 24px;
    }

    .about-text {
        padding: 26px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 26px 20px;
    }

    .full-width {
        grid-column: auto;
    }

    .footer-content {
        flex-direction: column;
    }
}
/* Prevent sticky navigation from covering section headings */

section {
    scroll-margin-top: 110px;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 20px;
    }
}
/* Contact form confirmation */

.form-message {
    grid-column: 1 / -1;
    margin-top: 5px;
    font-weight: 700;
}

.success-message {
    padding: 12px 15px;
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 8px;
}