:root {
    --navy: #0f2c3d;
    --navy-700: #123449;
    --ink: #0c1b24;
    --cream: #f4f6f7;
    --card: #ffffff;
    --accent: #00b3a6;
    --muted: #6c7a86;
    --ring: rgba(0, 179, 166, 0.35);
    --shadow: 0 10px 25px rgba(15, 44, 61, 0.12);
    --radius: 18px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --tonbox-border: #8a2be2;
    --kaab-border: #ffd700;
    --project-1: #e6f3f0;
    --project-2: #d4e8f0;
    --project-3: #d9f0e6;

    --hero-padding-top: 120px;
    --hero-max-width: 1400px;
    --hero-gap: 40px;
    --hero-title-size: 3.8rem;
    --hero-desc-size: 1.2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    width: 260%;
    height: 260%;
    top: -80%;
    left: -80%;
    background:
        radial-gradient(circle at 15% 50%, rgba(15, 44, 61, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(0, 179, 166, 0.06) 0%, transparent 42%),
        radial-gradient(circle at 50% 80%, rgba(15, 44, 61, 0.06) 0%, transparent 45%);
    filter: blur(40px);
    opacity: 0.9;
    animation: rotateBackground 120s linear infinite;
    transform-origin: center;
    will-change: transform;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.3;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(244, 246, 247, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(15, 44, 61, 0.15);
}

header.scrolled {
    padding: 0.7rem 5%;
    box-shadow: var(--shadow);
    background-color: rgba(244, 246, 247, 0.98);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0;                
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.logo-container:hover {
    background: rgba(15,44,61,0.035);
    box-shadow: 0 6px 18px rgba(15,44,61,.08);
    transform: translateY(-1px);
}

.logo-img {
    height: 50px;           
    width: auto;
    border-radius: 12px;      
    box-shadow: 0 4px 10px rgba(15,44,61,.10);
    transition: transform .2s ease, box-shadow .2s ease;
}

header.scrolled .logo-img { 
    height: 46px; 
}

.logo-container:hover .logo-img {
    transform: scale(1.015);
    box-shadow: 0 8px 20px rgba(15,44,61,.12);
}

.logo-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.4px;
    margin-bottom: 2px; 
    -webkit-font-smoothing: antialiased;
}

.logo-text span {
    color: var(--accent);
    font-weight: 900;
}

.logo-text:after { 
    content: none !important; 
}

.logo-sub {
    display: inline-flex;
    align-items: center;
    height: 22px;
    width: fit-content;
    padding: 0 10px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .65px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--navy-700));
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(15,44,61,.18), inset 0 0 0 1px rgba(255,255,255,.06);
}

header .logo-container::after {
    content: "";
    width: 1px; 
    height: 24px;
    margin-left: 10px;
    background: linear-gradient(to bottom, transparent, rgba(15,44,61,.18), transparent);
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0 0.8rem;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.4rem 0.6rem;
    position: relative;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(15, 44, 61, 0.05);
}

.nav-links a:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover:before {
    width: 70%;
}

.btn-login {
    background: var(--navy);
    color: white !important;
    padding: 0.4rem 1.2rem !important;
    border-radius: 30px !important;
    border: 1px solid var(--navy);
    margin-left: 0.5rem;
    font-weight: 600 !important;
    box-shadow: var(--shadow);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-login i {
    color: var(--accent);
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--navy) !important;
}

.btn-login:hover i {
    color: var(--navy) !important;
}

.btn-login:before {
    content: none !important;
}

.user-profile-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 179, 166, 0.3);
    border: 2px solid white;
    text-transform: uppercase;
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 179, 166, 0.4);
}

.user-dropdown {
    position: absolute;
    top: 70px;
    right: 5%;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(15, 44, 61, 0.2);
    padding: 1rem 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(15, 44, 61, 0.1);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(15, 44, 61, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.dropdown-info h4 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dropdown-info p {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
}

.user-dropdown-menu {
    list-style: none;
    padding: 0.5rem 0;
}

.user-dropdown-menu li {
    margin: 0;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.5rem;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-dropdown-menu a:hover {
    background: rgba(0, 179, 166, 0.08);
    color: var(--accent);
}

.user-dropdown-menu a i {
    width: 20px;
    color: var(--accent);
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(15, 44, 61, 0.1);
    margin: 0.5rem 0;
}

.logout-link {
    color: #e74c3c !important;
}

.logout-link i {
    color: #e74c3c !important;
}

.logout-link:hover {
    background: rgba(231, 76, 60, 0.08) !important;
    color: #e74c3c !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--navy);
    transition: var(--transition);
}

.hamburger:hover {
    color: var(--accent);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: var(--hero-padding-top) 5% 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hero-gap);
    max-width: var(--hero-max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 4;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 650px;
}

.hero-title {
    font-size: var(--hero-title-size);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--navy);
}

.hero-title span {
    background: linear-gradient(135deg, var(--navy), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--accent);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-left: 20px;
}

.slogan:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 179, 166, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 179, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 179, 166, 0); }
}

.hero-description {
    font-size: var(--hero-desc-size);
    margin-bottom: 40px;
    color: var(--muted);
    max-width: 600px;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-700));
    color: white;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.btn:hover:before {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 44, 61, 0.3);
}

.btn i {
    margin-left: 0.7rem;
    transition: var(--transition);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(15, 44, 61, 0.05);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    position: relative;
}

.tech-visual {
    width: 100%;
    max-width: 500px;
    height: 400px;
    position: relative;
}

.floating-cube {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(15, 44, 61, 0.08);
    border: 1px solid rgba(15, 44, 61, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.floating-cube:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(15, 44, 61, 0.1);
}

.floating-cube:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 1s;
    width: 60px;
    height: 60px;
    background: rgba(0, 179, 166, 0.08);
}

.floating-cube:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
    width: 70px;
    height: 70px;
    background: rgba(15, 44, 61, 0.1);
}

.floating-cube:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
    width: 50px;
    height: 50px;
    background: rgba(18, 52, 73, 0.1);
}

.floating-cube i {
    font-size: 1.5rem;
    color: var(--accent);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@media screen and (min-width: 1440px) and (max-width: 1919px) {
    :root {
        --hero-padding-top: 100px; 
        --hero-max-width: 1300px;
        --hero-title-size: 4.2rem;
        --hero-desc-size: 1.3rem;
    }
    
    .hero-text {
        max-width: 700px;
    }
    
    .tech-visual {
        max-width: 550px;
        height: 450px;
    }
}

@media screen and (min-width: 1920px) and (max-width: 2559px) {
    :root {
        --hero-padding-top: 80px;
        --hero-max-width: 1600px;
        --hero-gap: 60px;
        --hero-title-size: 5rem;
        --hero-desc-size: 1.5rem;
    }
    
    .hero-section {
        min-height: 90vh; 
    }
    
    .hero-text {
        max-width: 800px;
    }
    
    .hero-description {
        max-width: 700px;
    }
    
    .tech-visual {
        max-width: 650px;
        height: 550px;
    }
    
    .floating-cube {
        width: 100px;
        height: 100px;
    }
    
    .floating-cube:nth-child(2) {
        width: 80px;
        height: 80px;
    }
    
    .floating-cube:nth-child(3) {
        width: 90px;
        height: 90px;
    }
    
    .floating-cube:nth-child(4) {
        width: 70px;
        height: 70px;
    }
    
    .floating-cube i {
        font-size: 2rem;
    }
}

@media screen and (min-width: 2560px) {
    :root {
        --hero-padding-top: 100px;
        --hero-max-width: 2000px;
        --hero-gap: 80px;
        --hero-title-size: 6rem;
        --hero-desc-size: 1.8rem;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-text {
        max-width: 1000px;
    }
    
    .hero-description {
        max-width: 900px;
    }
    
    .slogan {
        font-size: 2rem;
        padding-left: 30px;
    }
    
    .slogan:before {
        width: 14px;
        height: 14px;
    }
    
    .btn {
        padding: 1.2rem 3rem;
        font-size: 1.2rem;
    }
    
    .tech-visual {
        max-width: 800px;
        height: 700px;
    }
    
    .floating-cube {
        width: 120px;
        height: 120px;
    }
    
    .floating-cube:nth-child(2) {
        width: 100px;
        height: 100px;
    }
    
    .floating-cube:nth-child(3) {
        width: 110px;
        height: 110px;
    }
    
    .floating-cube:nth-child(4) {
        width: 90px;
        height: 90px;
    }
    
    .floating-cube i {
        font-size: 2.5rem;
    }
}

section {
    padding: 7rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.section-title p {
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: linear-gradient(145deg, var(--card), #f9fafb) padding-box,
                linear-gradient(135deg, rgba(15,44,61,0.08), rgba(0,179,166,0.08)) border-box;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    width: 280px; 
    height: 280px;
    right: -140px; 
    bottom: -140px;
    background: radial-gradient(closest-side, rgba(15,44,61,.1), transparent 70%);
    filter: blur(10px);
    opacity: .18;
    transition: opacity .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(15,44,61,.15);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--muted);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.service-features li::before {
    content: ""; 
    position: absolute; 
    left: 0; 
    top: 0.5rem;
    width: 6px; 
    height: 6px; 
    border-radius: 50%;
    background: var(--accent);
    opacity: .8; 
}

.specialization {
    background: linear-gradient(to bottom, var(--cream), #e8eef2);
    position: relative;
    overflow: hidden;
    padding: 5rem 10%;
}

.specialization-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.specialization-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.specialization-header h3 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.specialization-header p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 1.1rem;
}

.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    position: relative;
    min-height: 200px;
}

.network-stage {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    border-radius: var(--radius);
    background: radial-gradient(800px 300px at 50% 50%, rgba(0,179,166,.05), transparent 70%);
}

#netCanvas {
    position: absolute; 
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .8;
    pointer-events: none;
}

.node-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.node-card {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    border-radius: 20px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--card);
    border: 1px solid rgba(15,44,61,.1);
    box-shadow: var(--shadow);
    transition: transform .2s ease;
    animation: nodeFloat 5s ease-in-out infinite;
    animation-delay: calc(var(--phase,0) * 1s);
}

.node-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15,44,61,.15);
}

@keyframes nodeFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}

.node-icon {
    width: 48px; 
    height: 48px; 
    border-radius: 14px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 10px;
    background: rgba(15,44,61,.08);
    color: var(--accent);
    font-size: 1.3rem;
}

.node-card h5 {
    color: var(--navy); 
    margin: 4px 0 6px; 
    font-size: 1rem; 
    font-weight: 600;
}

.node-card p {
    color: var(--muted); 
    font-size: 0.85rem;
}

/* Soluciones */
.solutions {
    background: var(--card);
    position: relative;
    overflow: hidden;
    padding: 6rem 10%;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.solution-card {
    background: linear-gradient(145deg, #f9fafb, var(--card)) padding-box;
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.solution-card.tonbox {
    border-color: var(--tonbox-border);
}

.solution-card.kaab {
    border-color: var(--kaab-border);
}

.solution-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(15,44,61,0.15);
}

.solution-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.solution-card:hover .solution-logo {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.15));
}

.solution-card h3 {
    font-size: 1.8rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.solution-desc {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.solution-features {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
    width: 100%;
}

.solution-features li {
    color: var(--muted);
    margin-bottom: 0.6rem;
    padding-left: 1.6rem;
    position: relative;
    font-size: 0.95rem;
}

.solution-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent);
    font-size: 0.9rem;
}

.solution-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-solution {
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    flex: 1;
    min-width: 140px;
}

.btn-solution-primary {
    background: linear-gradient(135deg, var(--navy), var(--navy-700));
    color: white;
    box-shadow: var(--shadow);
}

.btn-solution-primary:hover {
    background: linear-gradient(135deg, var(--accent), #009688);
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,179,166,0.3);
}

.btn-solution-outline {
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
}

.btn-solution-outline:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.projects {
    background: linear-gradient(to bottom, #e8eef2, var(--cream));
    position: relative;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(15, 44, 61, 0.1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 44, 61, 0.15);
}

.project-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 3rem;
    transition: var(--transition);
    position: relative;
}

.project-card:nth-child(1) .project-img {
    background: linear-gradient(135deg, #1a3b4f, #0f2c3d);
    color: #d4f0e8;
}
.project-card:nth-child(2) .project-img {
    background: linear-gradient(135deg, #0f2c3d, #123449);
    color: #b0d4e8;
}
.project-card:nth-child(3) .project-img {
    background: linear-gradient(135deg, #123449, #0f2c3d);
    color: #b8e6d9;
}

.project-card:hover .project-img i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.project-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--navy);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-content p {
    color: var(--muted);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.95rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tag {
    background: rgba(15, 44, 61, 0.06);
    color: var(--navy);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.contact {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info h3 {
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    background: rgba(244, 246, 247, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(15, 44, 61, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(244, 246, 247, 1);
    border-color: rgba(15, 44, 61, 0.3);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.3rem;
    color: var(--accent);
    background: rgba(15, 44, 61, 0.08);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--navy);
    margin-bottom: 0.2rem;
    font-weight: 600;
    font-size: 1rem;
}

.contact-details p {
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 44, 61, 0.1);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(244, 246, 247, 0.8);
    border: 1px solid rgba(15, 44, 61, 0.2);
    border-radius: 8px;
    color: var(--ink);
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px var(--ring);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

footer {
    background: linear-gradient(to bottom, #e8eef2, var(--cream));
    padding: 4rem 10% 2rem;
    border-top: 1px solid rgba(15, 44, 61, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--navy);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-about p {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(15, 44, 61, 0.08);
    color: var(--muted);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(15, 44, 61, 0.1);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-5px);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.footer-contact p i {
    color: var(--accent);
    width: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 44, 61, 0.1);
    color: var(--muted);
    font-size: 0.85rem;
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 246, 247, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(15, 44, 61, 0.2);
    box-shadow: var(--shadow);
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.close-modal {
    background: linear-gradient(135deg, var(--navy), var(--navy-700));
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

@media (max-width: 1200px) {
    .hero-title { font-size: 3.2rem; }
    section { padding: 6rem 8%; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .slogan { font-size: 1.3rem; }
    .section-title h2 { font-size: 2.2rem; }
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .node-grid { max-width: 400px; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .nav-links li { margin: 0 0.5rem; }
    .nav-links a { font-size: 0.85rem; padding: 0.4rem 0.5rem; }
    .btn-login { padding: 0.4rem 1rem !important; font-size: 0.85rem; }
    .logo-text { font-size: 1.4rem; }
    .logo-img { height: 45px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: var(--transition);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(15, 44, 61, 0.1);
        padding: 5rem 2rem 2rem;
    }
    
    .nav-links.active { right: 0; }
    .nav-links li { margin: 1rem 0; width: 100%; }
    .nav-links a { padding: 0.8rem 1rem; width: 100%; display: block; font-size: 1rem; }
    .btn-login { margin-left: 0; width: 100%; text-align: center; }
    .user-profile-container { margin-top: 1rem; width: 100%; }
    .hamburger { display: block; z-index: 1000; }
    header .logo-container::after { display: none; }

    section { padding: 5rem 5%; }
    .hero-section { padding: 100px 5% 0; }
    .hero-title { font-size: 2.2rem; text-align: center; }
    .slogan { 
        font-size: 1.1rem; 
        text-align: left; 
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        padding-left: 25px;
    }
    .slogan:before {
        left: 0;
    }
    .hero-description { 
        font-size: 1rem; 
        text-align: justify; 
    }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }

    .services-grid,
    .solutions-grid,
    .projects-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid { grid-template-columns: 1fr; }
    .tech-visual { height: 250px; margin-top: 1rem; }
    .specialization-header h3 { font-size: 1.8rem; }
    .node-grid { max-width: 300px; gap: 20px; }
    .solution-buttons { flex-direction: column; }
    .btn-solution { width: 100%; }
    .project-card { max-width: 400px; margin: 0 auto; width: 100%; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; width: 100%; }
    .hero-buttons { flex-direction: column; }
    .section-title h2 { font-size: 1.8rem; }
    .logo-text { font-size: 1.3rem; }
    .logo-img { height: 40px; }
    .logo-sub { height: 20px; font-size: 0.6rem; }
    .node-card { max-width: 140px; padding: 15px 10px; }
    .node-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .node-card h5 { font-size: 0.9rem; }
    .node-card p { font-size: 0.75rem; }
    .solution-logo { max-width: 80px; }
    .solution-card h3 { font-size: 1.5rem; }
    .contact-form { padding: 1.5rem; }
    .footer-grid { gap: 2rem; }
    .slogan { font-size: 1rem; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.8rem; }
    .logo-text { font-size: 1.2rem; }
    .logo-img { height: 36px; }
}