/* ========== VARIABLES ========== */
:root {
    --hue: 220;
    
    /* Colors */
    --bg-color: hsl(var(--hue), 25%, 6%);
    --bg-color-light: hsl(var(--hue), 22%, 12%);
    --primary-color: hsl(205, 95%, 55%); /* Bright cyber blue */
    --primary-color-alt: hsl(205, 90%, 45%);
    --accent-color: hsl(160, 95%, 50%); /* Neon cyan/green for tech accent */
    
    --text-color: hsl(var(--hue), 10%, 85%);
    --text-color-light: hsl(var(--hue), 10%, 65%);
    --title-color: hsl(0, 0%, 100%);
    
    /* Fonts matching Outfit */
    --body-font: 'Outfit', sans-serif;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Styling */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    --z-header: 100;
}

@media screen and (min-width: 968px) {
    :root {
        --h1-font-size: 4rem;
        --h2-font-size: 3rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--title-color);
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

/* ========== REUSABLE CLASSES ========== */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--title-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    margin-bottom: 3rem;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: var(--normal-font-size);
    letter-spacing: 0.5px;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
    color: #fff;
    box-shadow: 0 8px 24px hsla(205, 95%, 55%, 0.25);
    border: none;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px hsla(205, 95%, 55%, 0.4);
}

.button-outline {
    background: transparent;
    color: var(--title-color);
    border: 2px solid var(--text-color-light);
}

.button-outline:hover {
    border-color: var(--primary-color);
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ========== HEADER & NAV ========== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-header);
    background-color: transparent;
    transition: 0.3s;
}

.header.scroll-header {
    background-color: rgba(9, 13, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--title-color);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--title-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

/* Mobile Nav */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        background-color: var(--bg-color-light);
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        padding: 6rem 2rem;
        transition: 0.4s;
        box-shadow: -4px 0 24px hsla(var(--hue), 25%, 5%, 0.5);
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        row-gap: 2.5rem;
    }
    
    .nav-toggle {
        display: block;
    }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(52, 152, 219, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(29, 209, 161, 0.1), transparent 40%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-data {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-color);
    text-shadow: 0 0 25px hsla(160, 95%, 50%, 0.4);
}

.hero-description {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

@media screen and (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsla(205, 95%, 55%, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 15px 35px hsla(205, 95%, 55%, 0.1);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 16px hsla(205, 95%, 55%, 0.3);
}

.service-title {
    margin-bottom: 1rem;
    font-size: var(--h3-font-size);
}

.service-description {
    color: var(--text-color-light);
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media screen and (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-description {
    margin-bottom: 2rem;
    font-size: var(--normal-font-size);
}

.about-description strong {
    color: var(--title-color);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.about-images {
    position: relative;
    width: 100%;
    height: 400px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color-light), rgba(255,255,255,0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52,152,219,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image-placeholder i {
    font-size: 6rem;
    color: hsla(205, 95%, 55%, 0.8);
    filter: drop-shadow(0 0 15px rgba(52,152,219,0.5));
    z-index: 2;
}

/* ========== CONTACT ========== */
.contact {
    background-color: var(--bg-color-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media screen and (min-width: 768px) {
    .contact-container {
        grid-template-columns: 4fr 5fr;
        gap: 5rem;
    }
}

.contact-description {
    margin-bottom: 2.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(255,255,255,0.03);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.info-item h3 {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.contact-form {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: 0.3s;
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.05);
}

.textarea {
    height: 150px;
    resize: none;
}

.button-primary[type="submit"] {
    width: 100%;
    justify-content: center;
}

/* ========== FOOTER ========== */
.footer {
    padding: 4rem 0 2rem;
    background-color: hsl(var(--hue), 25%, 5%);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: var(--text-color);
    border-radius: 50%;
    transition: 0.3s;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-color-light);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

/* ========== LOGO IMAGES ========== */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 100px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

@media screen and (min-width: 968px) {
    .logo-img {
        height: 75px;
    }
}

/* ========== FLOATING WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}
