/* ============================================
   Sys Seven - Modern Tech & Management Website
   ============================================ */

:root {
    /* Colors - matching logo gradient (cyan to purple) */
    --cyan: #00d4ff;
    --cyan-dim: #00d4ff40;
    --purple: #a855f7;
    --purple-dim: #a855f740;
    --magenta: #ec4899;
    
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    
    --text-primary: #f0f0f5;
    --text-secondary: #9494a8;
    --text-muted: #5c5c6e;
    
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 212, 255, 0.3);
    
    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --container: 1200px;
    --header-height: 120px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.4s var(--ease-out);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-dim) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 0.5;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Header & Nav ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    overflow: visible;
    transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 18px;
    transition: var(--transition);
    z-index: 1001;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo:hover .logo-img {
    filter: drop-shadow(0 0 12px var(--cyan)) drop-shadow(0 0 24px var(--purple-dim));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-logo .logo-img {
    height: 60px;
    width: auto;
    transition: filter 0.4s var(--ease-out);
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.logo-seven {
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--cyan));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo:hover .logo-seven {
    animation: gradientShift 2s ease infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 22px;
    border-radius: 10px;
    transition: all 0.35s var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    border-radius: 2px;
    transition: width 0.35s var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.08);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.12);
}

.nav-link.active::after {
    width: 70%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
}

/* ---- Hamburger Button ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: background 0.3s, border-color 0.3s;
}

.nav-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--border-glow);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    display: block;
    transform-origin: center;
    transition: transform 0.4s var(--ease-out), opacity 0.3s ease, width 0.3s ease;
}

/* X animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: calc(var(--header-height) + 140px) 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--cyan);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--purple);
    bottom: 20%;
    left: 5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--magenta);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: justify;
    text-justify: inter-word;
}

.hero-content .hero-subtitle {
    text-align: justify;
    text-justify: inter-word;
}

.hero-images {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--cyan);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.title-line {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0.4em;
}

.hero-title .word {
    display: inline-flex;
    white-space: nowrap;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: letterReveal 0.8s var(--ease-out) forwards;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    text-align: justify;
    text-justify: inter-word;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: var(--bg-dark);
    box-shadow: 0 4px 24px var(--cyan-dim);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--purple-dim);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* ========== Sections ========== */
.section {
    padding: 60px 0; /* Reduced from 100px */
    position: relative;
    z-index: 1;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
    margin: 40px 0;
    opacity: 0.5;
}

.section-header {
    text-align: center;
    margin-bottom: 50px; /* Reduced from 60px */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

/* ========== Services ========== */
.services {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.02) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--cyan);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover {
    gap: 12px;
}

/* ========== Tech Stack ========== */
.tech-section {
    background: var(--bg-card);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.tech-item {
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: center;
}

.tech-item:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: scale(1.05);
}

/* ========== Management ========== */
.management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.management-content .section-tag {
    margin-bottom: 12px;
}

.management-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.management-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.management-list {
    list-style: none;
}

.management-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--bg-dark);
    font-weight: 700;
    flex-shrink: 0;
}

.management-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gestor-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.gestor-img.lightbox-trigger {
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.gestor-img.lightbox-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 50px 100px rgba(0, 212, 255, 0.15);
}

/* ========== Lightbox / Tela cheia ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--cyan);
    color: var(--bg-dark);
}

.lightbox-img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.dashboard-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.mockup-header {
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.mockup-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.mockup-header span:first-child { background: #ff5f57; }
.mockup-header span:nth-child(2) { background: #febc2e; }
.mockup-header span:last-child { background: #28c840; }

.mockup-content {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
}

.mockup-main {
    flex: 1;
    padding: 24px;
}

.mockup-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--cyan-dim), var(--purple-dim));
    border-radius: 6px;
    margin-bottom: 16px;
}

.bar-1 { width: 80%; }
.bar-2 { width: 60%; }
.bar-3 { width: 45%; }

.mockup-chart {
    height: 120px;
    margin-top: 24px;
    background: linear-gradient(180deg, var(--cyan-dim) 0%, transparent 100%);
    border-radius: 8px;
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 320px;
}

.about-logo-wrapper::before,
.about-logo-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.about-logo-wrapper::before {
    inset: 10px;
    border: 1px dashed var(--cyan-dim);
    border-left: 2px solid var(--cyan);
    border-right: 2px solid var(--purple);
    animation: spinOrbit 12s linear infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1) inset;
}

.about-logo-wrapper::after {
    inset: -10px;
    border: 1px dashed var(--purple-dim);
    border-top: 2px solid var(--purple);
    border-bottom: 2px solid var(--cyan);
    animation: spinOrbit 18s linear infinite reverse;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.about-logo-inner-circle {
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes spinOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 40px var(--cyan-dim)); }
    50% { transform: translateY(-10px); filter: drop-shadow(0 0 60px var(--purple-dim)); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.about-logo-img {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 0 40px var(--cyan-dim));
    animation: floatLogo 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* ========== Contact ========== */
.contact {
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.03) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group textarea + label {
    top: 24px;
    transform: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 16px;
    font-size: 0.75rem;
    color: var(--cyan);
    background: var(--bg-card);
    padding: 0 4px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-glow);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--cyan);
}

.contact-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 1rem;
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.footer-logo .logo-img {
    height: 80px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    max-width: 500px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========== Animations ========== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-img {
        max-height: 240px;
    }

    .management-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .management-content .section-title,
    .about-content .section-title {
        text-align: center;
    }

    .about-logo {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {

    /* Show overlay */
    .nav-overlay {
        display: block;
    }

    /* Hamburger visible */
    .nav-toggle {
        display: flex;
    }

    /* Full-screen slide-in panel */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(80vw, 320px);
        background: rgba(12, 12, 20, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid rgba(0, 212, 255, 0.15);
        flex-direction: column;
        padding: calc(var(--header-height) + 16px) 20px 32px;
        gap: 6px;
        list-style: none;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.45s var(--ease-out), opacity 0.35s ease;
        z-index: 999;
        overflow-y: auto;
    }

    /* Slide-in active */
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Animate each item */
    .nav-menu li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .nav-menu.active li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.10s; }
    .nav-menu.active li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.20s; }
    .nav-menu.active li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.30s; }
    .nav-menu.active li:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.40s; }

    /* Mobile nav-link styling */
    .nav-link {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-secondary);
        border-radius: 12px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
        gap: 12px;
    }

    .nav-link::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--text-muted);
        flex-shrink: 0;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        color: var(--text-primary);
        background: rgba(0, 212, 255, 0.07);
        border-color: rgba(0, 212, 255, 0.15);
        padding-left: 24px;
    }

    .nav-link:hover::before {
        background: var(--cyan);
        transform: scale(1.4);
    }

    .nav-link.active {
        color: var(--cyan);
        background: rgba(0, 212, 255, 0.1);
        border-color: rgba(0, 212, 255, 0.25);
    }

    .nav-link.active::before {
        background: var(--cyan);
        box-shadow: 0 0 8px var(--cyan);
    }

    /* Decorative gradient line at top of panel */
    .nav-menu::before {
        content: '';
        display: block;
        height: 2px;
        background: linear-gradient(90deg, var(--cyan), var(--purple), transparent);
        border-radius: 2px;
        margin-bottom: 16px;
        opacity: 0;
        transition: opacity 0.4s ease 0.1s;
    }

    .nav-menu.active::before {
        opacity: 1;
    }

    /* ---- Content adjustments ---- */
    .hero-wrapper {
        gap: 28px;
    }

    .hero-img {
        max-height: 200px;
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        margin: 0 auto 20px;
    }

    .hero-subtitle {
        text-align: center;
        margin: 0 auto 28px;
    }

    .title-line {
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 24px;
    }

    .section {
        padding: 48px 0;
    }

    .section-divider {
        margin: 28px 0;
    }

    .management-list li {
        font-size: 0.95rem;
    }

    .contact-form {
        gap: 18px;
    }

    .about-logo-wrapper {
        width: 240px;
        height: 240px;
    }

    .about-logo-img {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .nav-menu {
        width: 100vw;
        border-left: none;
        border-top: 1px solid rgba(0, 212, 255, 0.15);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== WhatsApp Chat Widget ========== */
.whatsapp-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.whatsapp-chat-window {
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-chat-header {
    background: linear-gradient(135deg, #075e54, #128c7e);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.whatsapp-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.whatsapp-avatar img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.whatsapp-chat-header h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.whatsapp-chat-header p {
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 0;
    margin-top: 2px;
}

.whatsapp-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.whatsapp-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.whatsapp-close-btn svg {
    width: 20px;
    height: 20px;
}

.whatsapp-chat-body {
    padding: 20px 16px;
    background: var(--bg-dark);
    /* subtle pattern for that whatsapp background feel */
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 16px 16px;
    max-height: 400px;
    overflow-y: auto;
}

.whatsapp-message {
    background: #1e1e2d;
    padding: 12px 14px;
    border-radius: 12px;
    border-top-left-radius: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 10px 0;
    border-color: transparent #1e1e2d transparent transparent;
}


.whatsapp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-option-btn {
    background: transparent;
    border: 1px solid var(--cyan-dim);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
}

.whatsapp-option-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .whatsapp-chat-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        align-items: flex-end;
    }
    
    .whatsapp-chat-window {
        width: 100%;
        max-width: 100%;
        transform-origin: bottom center;
    }
}

/* ========== WhatsApp Button ========== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
}
