/* CSS Reset and Variables */
:root {
    --bg-dark: #111111;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Idea Integra Colors */
    --color-yellow: #f6cd00;
    --color-magenta: #c20076;
    --color-green: #00b050;
    
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
}

.highlight-yellow {
    color: var(--color-yellow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
}

.custom-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 0;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 0.85;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.logo-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: skew(-20deg);
    margin: 0 4px;
}

.bar {
    height: 9px;
}

.bar.yellow { background-color: var(--color-yellow); width: 45px; transform: translateX(-5px); }
.bar.magenta { background-color: var(--color-magenta); width: 55px; }
.bar.green { background-color: var(--color-green); width: 35px; transform: translateX(10px); }

.logo-goto {
    display: flex;
    align-items: center;
    gap: 6px;
}

.goto-text {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    position: relative;
    color: var(--text-light);
}

.goto-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-yellow);
}

.partner-text {
    font-size: 0.6rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-yellow);
}

.btn-nav {
    border: 2px solid var(--color-yellow);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease !important;
}

.btn-nav:hover {
    background: var(--color-yellow);
    color: var(--bg-dark) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--bg-dark);
    border: 2px solid var(--color-yellow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-yellow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--text-light);
}

/* 3D Element */
.hero-3d-element {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-core {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.ai-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 0 15px var(--color-yellow), 0 0 30px var(--color-magenta), 0 0 45px var(--color-green);
    animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% { transform: translate(-50%, -40%) translateZ(0) scale(0.9); }
    100% { transform: translate(-50%, -60%) translateZ(0) scale(1.1); }
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid;
    transform-style: preserve-3d;
    box-shadow: 0 0 10px currentColor, inset 0 0 10px currentColor;
}

.ring1 {
    width: 90px;
    height: 90px;
    margin-top: -45px;
    margin-left: -45px;
    border-color: var(--color-magenta);
    animation: spinRing1 4s linear infinite;
}

.ring2 {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-left: -60px;
    border-color: var(--color-green);
    animation: spinRing2 5s linear infinite reverse;
}

.ring3 {
    width: 150px;
    height: 150px;
    margin-top: -75px;
    margin-left: -75px;
    border-color: var(--color-yellow);
    border-style: dashed;
    animation: spinRing3 8s linear infinite;
}

@keyframes spinRing1 {
    0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes spinRing2 {
    0% { transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg); }
    100% { transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg); }
}

@keyframes spinRing3 {
    0% { transform: rotateX(80deg) rotateY(20deg) rotateZ(0deg); }
    100% { transform: rotateX(80deg) rotateY(20deg) rotateZ(360deg); }
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: transparent;
}

.front  { transform: translateZ(100px); border: 3px solid var(--color-yellow); }
.back   { transform: rotateY(180deg) translateZ(100px); border: 3px solid var(--color-magenta); }
.right  { transform: rotateY(90deg) translateZ(100px); border: 3px solid var(--color-green); }
.left   { transform: rotateY(-90deg) translateZ(100px); border: 3px solid var(--color-yellow); }
.top    { transform: rotateX(90deg) translateZ(100px); border: 3px solid var(--color-magenta); }
.bottom { transform: rotateX(-90deg) translateZ(100px); border: 3px solid var(--color-green); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Sections Common */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

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

/* Services */
.services {
    background-color: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--color-yellow);
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
}

.service-card .icon.whatsapp-icon {
    color: var(--color-green);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(20px);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    transform: translateZ(10px);
}

/* About (Mission / Vision) */
.about {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #151515 100%);
}

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

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.about-card.mision::before { background: var(--color-magenta); }
.about-card.vision::before { background: var(--color-green); }

.about-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.about-card.mision .about-icon { color: var(--color-magenta); }
.about-card.vision .about-icon { color: var(--color-green); }

.about-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background-color: #000;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--color-yellow), var(--color-magenta), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--color-yellow);
}

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

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        margin-bottom: 4rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(17, 17, 17, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}
