/* ============================================
   APF Solutions Apps — style.css
   Based on xipotechstudio.com
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-blue: #932f7c;
    --orange: #ea377f;
    --light-gray: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ============================================
   HEADER
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
}

.logo-sub {
    font-size: 0.9rem;
    color: var(--orange);
    letter-spacing: 2px;
}

.nav-cta {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #f8f9fa 0%, #e8ecf0 100%);
    padding: 120px 5% 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 0.8s ease;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--navy-blue);
}

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

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero-image img {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    color: var(--orange);
    will-change: left, top;
}

@media (prefers-reduced-motion: reduce) {
    .tech-icon {
        will-change: auto;
    }

    .tech-icon:nth-child(1) { top: 10%; left: 85%; }
    .tech-icon:nth-child(2) { top: 30%; left: 0%; }
    .tech-icon:nth-child(3) { top: 20%; left: 75%; }
    .tech-icon:nth-child(4) { top: 70%; left: 10%; }
    .tech-icon:nth-child(5) { top: 45%; left: 88%; }
    .tech-icon:nth-child(6) { top: 80%; left: 55%; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #c42a6a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(234, 55, 127, 0.3);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   TECHNOLOGIES
   ============================================ */
.technologies {
    background: var(--white);
}

.tech-categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-category {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    width: fit-content;
    max-width: 100%;
}

.tech-category h3 {
    flex: 0 0 110px;
    font-size: 1.35rem;
    color: var(--navy-blue);
    margin-bottom: 0;
    font-weight: 600;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.tech-item {
    background: var(--light-gray);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tech-item:hover {
    background: var(--orange);
    color: var(--white);
}

.tech-item i {
    font-size: 1.2rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--navy-blue);
    color: var(--white);
}

.contact .section-title h2,
.contact .section-subtitle {
    color: var(--white);
}

.contact .section-title {
    margin-bottom: 0;
}

.contact .section-title h2 a {
    color: inherit;
    transition: var(--transition);
}

.contact .section-title h2 a:hover {
    color: var(--orange);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #1d0735;
    color: var(--white);
    padding: 3rem 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 360px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo .logo-sub {
    font-size: 0.9rem;
    color: var(--orange);
    letter-spacing: 2px;
}

.footer-contact h4 {
    color: var(--orange);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.55;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--orange);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
        margin: 1rem auto 0;
    }

    .footer-contact p {
        justify-content: center;
    }

    .nav-cta {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .tech-category {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .tech-category h3 {
        flex: none;
        text-align: center;
    }

    .tech-list {
        justify-content: center;
    }
}
