/* ===== VARIABLES ===== */
:root {
    --color-dark: #2E2E2E;
    --color-primary: #672DDA;
    --color-secondary: #A637FF;
    --color-accent: #15E7DC;
    --color-light: #BDC3C7;
    --color-white: #FFFFFF;
    --color-bg: #1a1a1a;
    --color-bg-secondary: #2d2d2d;
    --color-text: #e0e0e0;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

/* ===== LOADER ===== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2.5s forwards;
}

.loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.loader-bar::before {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    animation: floatToCorner var(--duration) ease-out infinite;
    opacity: var(--opacity);
    will-change: transform, opacity;
}

.particle.type-circle {
    background: radial-gradient(circle at 30% 30%, rgba(103, 45, 218, 0.8), rgba(21, 231, 220, 0.3));
    border-radius: 50%;
    box-shadow: 0 0 var(--glow-size) rgba(21, 231, 220, 0.6);
}

.particle.type-square {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 0 var(--glow-size) rgba(103, 45, 218, 0.6);
}

.particle.type-line {
    background: linear-gradient(90deg, var(--color-accent), transparent);
    box-shadow: 0 0 var(--glow-size) rgba(21, 231, 220, 0.8);
}

@keyframes floatToCorner {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: var(--opacity);
        filter: blur(0px);
    }
    50% {
        opacity: calc(var(--opacity) * 1.5);
        filter: blur(0.5px);
    }
    100% {
        transform: translateY(var(--tx)) translateX(var(--ty)) rotate(360deg) scale(0.5);
        opacity: 0;
        filter: blur(1px);
    }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 var(--glow-size) rgba(21, 231, 220, 0.6); }
    50% { box-shadow: 0 0 calc(var(--glow-size) * 1.5) rgba(21, 231, 220, 0.9); }
}

.particle.has-glow {
    animation: floatToCorner var(--duration) ease-out infinite, glow-pulse 3s ease-in-out infinite;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: slideDown 0.5s ease 2.5s backwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.logo-icon {
    width: 45px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.logo-text {
    width: 20%;
}

.logo-full {
    width: 15%;
    align-items: center;
    justify-content: center;
}

.logo:hover .logo-icon {
    transform: rotate(360deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ===== THEME ===== */
/* Unified dark mode as default theme using global variables */

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, rgba(42, 20, 70, 0.3), rgba(15, 100, 100, 0.2));
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 2.8s backwards;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.glitch::after {
    animation: glitch 2s infinite reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.subtitle {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 3s backwards;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-light);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 3.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.8s ease 3.4s backwards;
    display: inline-block;
    text-decoration: none;
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.4);
}

.cta-button:hover .button-overlay {
    width: 300px;
    height: 300px;
}

/* ===== FLOATING CARD ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeIn 0.8s ease 3.6s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.floating-pet {
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    margin-left: auto;
    margin-right: 0;
}



.floating-pet::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-pet:hover::before {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.card-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.floating-card h3 {
    font-size: 36px;
    margin-bottom: 30px;
}

.card-details {
    color: var(--color-white);
}

.card-details p {
    margin: 10px 0;
}

.role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 20px !important;
}

.card-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}


/* ===== SECTIONS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 20px;
    position: relative;
    background: var(--color-bg);
    
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(21, 231, 220, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    color: var(--color-text);
    line-height: 1.6;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-overlay {
    opacity: 0.1;
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 20px;
    background: var(--color-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(224, 224, 224, 0.9);
    margin-bottom: 40px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-bg-secondary);
    border-radius: 15px;
    border: 1px solid rgba(21, 231, 220, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
    height: 100%;
}

.stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.stat-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.stat-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat p {
    color: var(--color-light);
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* ===== CODE WINDOW ===== */
.code-window {
    background: var(--color-bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(21, 231, 220, 0.2);
}

.window-header {
    background: var(--color-bg-secondary);
    padding: 12px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }

.code-content {
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.8;
}

.code-content code {
    display: block;
    animation: typing 3s steps(50) infinite;
}

.purple { color: #c586c0; }
.cyan { color: #4ec9b0; }
.pink { color: #9cdcfe; }
.green { color: #ce9178; }

/* ===== CONTACT ===== */
.contact {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(42, 20, 70, 0.3), rgba(15, 100, 100, 0.2));
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(21, 231, 220, 0.2);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(21, 231, 220, 0.1);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.4s ease;
}

.form-group input:focus ~ .input-border,
.form-group textarea:focus ~ .input-border {
    width: 100%;
}

.submit-button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--color-bg-secondary);
    border-radius: 15px;
    border: 1px solid rgba(21, 231, 220, 0.2);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    border-color: var(--color-accent);
}

.info-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.info-item h4 {
    color: var(--color-accent);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--color-light);
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 20px;
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.footer p {
    color: var(--color-light);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    /* Navbar */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.99);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        gap: 30px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .navbar-right {
        display: flex;
        gap: 15px;
    }

    /* Hero */
    .hero {
        padding: 100px 20px 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 48px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        gap: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px;
    }

    /* Mission Vision */
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .mv-card {
        padding: 35px 25px;
    }

    .mv-title {
        font-size: 28px;
    }

    .mv-preview {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    /* Base */
    body {
        font-size: 14px;
    }

    /* Navbar */
    .navbar {
        padding: 12px 0;
        height: auto;
    }

    .navbar-right {
        display: flex;
        gap: 15px;
    }

    .nav-menu {
        top: 55px;
        padding: 25px 0;
        gap: 15px;
    }

    .nav-menu a {
        padding: 10px 0;
        font-size: 16px;
    }

    /* Logo */
    .logo-text {
        width: 12%;
    }

    .logo-icon img {
        width: 35px;
        height: 35px;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
        padding: 100px 16px 30px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 15px;
        width: fit-content;
    }

    .hero-visual img {
        width: 70% !important;
        max-width: 250px;
    }

    .scroll-indicator {
        bottom: 20px;
        display: none;
    }

    /* Section Title */
    .section-title {
        font-size: 26px;
        margin-bottom: 35px;
        line-height: 1.2;
    }

    /* Sections */
    .services,
    .about,
    .mission-vision,
    .contact {
        padding: 50px 16px;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px 18px;
    }

    .service-card h3 {
        font-size: 18px;
        margin: 15px 0 10px;
    }

    .service-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .service-icon {
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* About */
    .about-text h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat {
        padding: 20px 15px;
        min-height: 180px;
        border-radius: 12px;
    }

    .stat-icon img {
        width: 60px;
        height: 60px;
    }

    .stat-title {
        font-size: 14px;
        margin: 10px 0 8px;
    }

    .stat-number {
        font-size: 32px;
        margin-bottom: 5px;
        font-weight: 700;
    }

    .stat p {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Code Window */
    .code-window {
        border-radius: 8px;
        padding: 0;
        margin: 25px 0;
    }

    .window-header {
        padding: 8px 12px;
    }

    .dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }

    .code-content {
        padding: 16px;
        font-size: 12px;
        line-height: 1.5;
        overflow-x: auto;
    }

    /* Mission Vision */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mv-card {
        padding: 22px 16px;
    }

    .mv-card-header {
        gap: 12px;
        margin-bottom: 15px;
    }

    .mv-icon-wrapper {
        min-width: 60px;
        width: 60px;
        height: 60px;
    }

    .mv-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .mv-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .mv-preview {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .expand-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        gap: 14px;
    }

    .form-group {
        width: 100%;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 14px;
        border-radius: 8px;
        width: 100%;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
        font-family: 'Montserrat', sans-serif;
    }

    .submit-button {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
        border-radius: 8px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .info-item {
        padding: 14px;
        gap: 12px;
        border-radius: 10px;
    }

    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
        flex-shrink: 0;
    }

    .info-item h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .info-item p {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Footer */
    .footer {
        padding: 25px 16px;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-logo {
        font-size: 20px;
        gap: 8px;
    }

    .logo-full {
        width: 10%;
    }

    .footer p {
        font-size: 12px;
        text-align: center;
    }

    /* Modal */
    .modal-content {
        padding: 20px 16px;
        max-width: 90%;
        max-height: 80vh;
        border-radius: 8px;
    }

    .modal-header {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        flex-shrink: 0;
    }

    .modal-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .modal-body {
        font-size: 13px;
        line-height: 1.5;
    }

    .modal-body p {
        margin-bottom: 12px;
    }

    .modal-body ul {
        margin-top: 14px;
        padding-left: 0;
    }

    .modal-body li {
        padding-left: 22px;
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.4;
    }

    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    /* Floating Card */
    .floating-card {
        padding: 20px;
    }

    .card-logo {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .floating-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .card-details p {
        font-size: 13px;
        margin-bottom: 8px;
    }
}



/* ===== MISIÓN Y VISIÓN SECTION ===== */


.mission-vision {
    padding: 100px 20px;
    position: relative;
    background: var(--color-bg);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.mv-card {
    background: var(--color-bg-secondary);
    border-radius: 25px;
    padding: 45px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(21, 231, 220, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.mv-card:hover::before {
    opacity: 1;
}

.mv-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    box-shadow: 0 25px 50px rgba(21, 231, 220, 0.3);
}

.mv-card-inner {
    position: relative;
    z-index: 1;
}

.mv-card-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.mv-icon-wrapper {
    position: relative;
}

.mv-icon {
    width: 85px;
    height: 85px;
    
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

}

.mv-card:hover .mv-icon {
    transform: rotate(360deg) scale(1.1);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50%;
    filter: blur(20px);
}

.mv-card:hover .icon-glow {
    opacity: 0.6;
}

.mv-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.mv-card:hover .mv-title {
    transform: translateX(5px);
}

.mv-preview {
    color: var(--color-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.mv-card:hover .mv-preview {
    color: var(--color-white);
}

.expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(103, 45, 218, 0.3);
}

.expand-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.expand-btn:hover::before {
    width: 300px;
    height: 300px;
}

.expand-btn span {
    position: relative;
    z-index: 1;
}

.expand-btn:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(21, 231, 220, 0.5);
}

.arrow-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.expand-btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.4s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 50px;
    max-width: 650px;
    max-height: 85vh;
    width: 90%;
    position: relative;
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--color-primary), var(--color-accent)) 1;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    max-height: calc(85vh - 100px);
    overflow-y: scroll;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 10px 10px 0 0;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(21, 231, 220, 0.2);
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    animation: iconPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.modal-title {
    font-size: 34px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    color: var(--color-light);
    font-size: 16px;
    line-height: 1.7;
}

.modal-body p {
    margin-bottom: 18px;
}

.modal-body strong {
    color: var(--color-white);
    font-weight: 600;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.modal-body li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.modal-body li:hover {
    transform: translateX(10px);
}

.modal-body li::before {
    content: '✦';
    position: absolute;
    left: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.close-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
    z-index: 10;
}

.close-btn:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    transform: rotate(90deg);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(21, 231, 220, 0.5);
}

/* Decorative elements */
.modal-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent), transparent);
    opacity: 0.1;
    filter: blur(40px);
    pointer-events: none;
}

.decoration-1 {
    top: -50px;
    right: -50px;
}

.decoration-2 {
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, var(--color-primary), transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .modal-content {
        padding: 40px 30px;
        max-height: 80vh;
    }

    .modal-title {
        font-size: 28px;
    }

    .modal-body {
        font-size: 15px;
    }

    .mv-icon {
        width: 75px;
        height: 75px;
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .mv-card {
        padding: 35px 25px;
    }

    .mv-title {
        font-size: 28px;
    }

    .mv-preview {
        font-size: 15px;
    }

    .modal-content {
        padding: 30px 20px;
        max-height: 75vh;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-body {
        font-size: 14px;
    }

    .modal-body li {
        padding-left: 28px;
    }

    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    /* Base */
    html {
        scroll-behavior: auto;
    }

    body {
        font-size: 13px;
    }

    /* Navbar */
    .navbar {
        padding: 10px 0;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .nav-container {
        padding: 8px 12px;
    }

    .logo-icon img {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        width: 10%;
    }

    .nav-menu {
        top: 50px;
        padding: 20px 0;
        gap: 12px;
    }

    .nav-menu a {
        padding: 8px 0;
        font-size: 15px;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding: 90px 12px 25px;
    }

    .hero-text h1 {
        font-size: 26px;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .subtitle {
        display: none;
    }

    .hero-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 13px;
    }

    .hero-visual img {
        width: 60% !important;
        max-width: 200px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Section Title */
    .section-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    /* Sections */
    .services,
    .about,
    .mission-vision,
    .contact {
        padding: 40px 12px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 18px 12px;
    }

    .service-card h3 {
        font-size: 16px;
        margin: 12px 0 8px;
    }

    .service-card p {
        font-size: 12px;
    }

    .service-icon {
        height: 60px;
    }

    /* About */
    .about-text h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .about-text p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat {
        padding: 14px 10px;
        min-height: 160px;
        border-radius: 10px;
    }

    .stat-icon img {
        width: 55px;
        height: 55px;
    }

    .stat-title {
        font-size: 13px;
        margin: 8px 0 5px;
    }

    .stat-number {
        font-size: 28px;
        margin-bottom: 3px;
    }

    .stat p {
        font-size: 11px;
    }

    /* Code Window */
    .code-window {
        margin: 20px 0;
        border-radius: 6px;
    }

    .window-header {
        padding: 6px 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }

    .code-content {
        padding: 12px;
        font-size: 11px;
        line-height: 1.4;
    }

    /* Mission Vision */
    .mission-vision-grid {
        gap: 15px;
    }

    .mv-card {
        padding: 16px 12px;
    }

    .mv-card-header {
        gap: 10px;
    }

    .mv-icon-wrapper {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .mv-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .mv-title {
        font-size: 18px;
    }

    .mv-preview {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .expand-btn {
        padding: 9px 18px;
        font-size: 12px;
        width: 100%;
    }

    /* Contact */
    .contact-form {
        gap: 12px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 80px;
    }

    .submit-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .contact-info {
        gap: 10px;
    }

    .info-item {
        padding: 12px;
        gap: 10px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .info-item h4 {
        font-size: 13px;
    }

    .info-item p {
        font-size: 11px;
    }

    /* Footer */
    .footer {
        padding: 20px 12px;
    }

    .footer-logo {
        font-size: 18px;
    }

    .logo-full {
        width: 8%;
    }

    .footer p {
        font-size: 11px;
    }

    /* Modal */
    .modal-content {
        padding: 16px 12px;
        max-width: 95%;
        border-radius: 6px;
    }

    .modal-header {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .modal-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        font-size: 12px;
        line-height: 1.4;
    }

    .modal-body p {
        margin-bottom: 10px;
    }

    .modal-body ul {
        margin-top: 10px;
    }

    .modal-body li {
        padding-left: 20px;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .close-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 8px;
        right: 8px;
    }

    /* Floating Card */
    .floating-card {
        padding: 16px;
    }

    .card-logo {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .floating-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .card-details p {
        font-size: 12px;
        margin-bottom: 6px;
    }
}


