/* ==========================================================================
   Neximux - Components CSS
   All UI Component Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-lg) 0;
    background: transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    padding: var(--space-md) 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.logo img {
    height: 45px;
    transition: filter var(--transition-fast);
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-blue);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-blue);
}

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

/* Language Selector */
.lang-selector {
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: var(--space-xs);
}

.lang-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.lang-btn.active {
    color: var(--text-primary);
    background: var(--brand-blue);
    box-shadow: var(--glow-blue);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(204, 0, 0, 0.04) 0%, transparent 45%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: moveGrid 40s linear infinite;
    opacity: 0.5;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

.hero-title .accent {
    display: block;
    color: var(--brand-blue);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Hero Decorative Elements - Line Art */
.hero-decoration {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    color: var(--brand-blue);
}

.hero-decoration svg {
    width: 100%;
    height: 100%;
    opacity: 0.06;
    animation: subtleRotate 90s linear infinite;
    will-change: transform;
}

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

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    background: var(--bg-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--brand-blue);
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Line art corner - top right */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-right: 1px solid var(--brand-blue);
    border-top: 1px solid var(--brand-blue);
    opacity: 0.12;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Line art corner - bottom left */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-left: 1px solid var(--brand-blue);
    border-bottom: 1px solid var(--brand-blue);
    opacity: 0.08;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.10), var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 0.2;
    width: 60px;
    height: 60px;
}

.service-card:hover::after {
    opacity: 0.15;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-base);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--brand-blue);
    fill: none;
    stroke-width: 1.5;
}

.service-card:hover .service-icon {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: var(--glow-blue);
}

.service-card:hover .service-icon svg {
    stroke: #ffffff;
    animation: subtleIconPulse 2s ease-in-out infinite;
}

@keyframes subtleIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.service-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
    background: var(--bg-primary);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all var(--transition-base);
}

/* Gradient border effect */
.about-visual::before {
    content: '';
    position: absolute;
    inset: -4px;
    max-width: 358px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
    border-radius: calc(var(--radius-xl) + 4px);
    z-index: -1;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.about-visual:hover::before {
    opacity: 1;
}

.about-visual:hover .about-photo {
    transform: scale(1.02);
}

.about-text h2 {
    margin-bottom: var(--space-xl);
}

.about-text p {
    margin-bottom: var(--space-lg);
}


/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Floating geometric shapes - decorative background */
.contact-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.contact-shape {
    position: absolute;
    border: 1px solid;
    opacity: 0.05;
    animation: floatShapeSubtle 25s ease-in-out infinite;
    will-change: transform;
}

/* Diamond - top left */
.contact-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 8%;
    border-color: var(--brand-blue);
    transform: rotate(45deg);
    animation-delay: 0s;
}

/* Diamond - top right */
.contact-shape:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 12%;
    border-color: var(--brand-red);
    transform: rotate(45deg);
    animation-delay: -5s;
}

/* Large diamond - bottom left */
.contact-shape:nth-child(3) {
    width: 140px;
    height: 140px;
    bottom: 20%;
    left: 5%;
    border-color: var(--brand-blue);
    transform: rotate(45deg);
    animation-delay: -10s;
}

/* Small diamond - bottom right */
.contact-shape:nth-child(4) {
    width: 50px;
    height: 50px;
    bottom: 15%;
    right: 8%;
    border-color: var(--brand-red);
    transform: rotate(45deg);
    animation-delay: -15s;
}

/* Medium diamond - center right */
.contact-shape:nth-child(5) {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 3%;
    border-color: var(--brand-blue);
    transform: rotate(45deg);
    animation-delay: -20s;
}

@keyframes floatShapeSubtle {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.08;
    }
    50% {
        transform: rotate(45deg) translateY(-8px);
        opacity: 0.12;
    }
}

/* Diagonal decorative line - Neximux style */
.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 4px;
    background: var(--brand-red);
    transform: rotate(-45deg);
    transform-origin: bottom right;
    opacity: 0.3;
}

/* Additional diagonal line - top */
.contact::after {
    content: '';
    position: absolute;
    top: 60px;
    left: -50px;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
    transform: rotate(-45deg);
    opacity: 0.2;
}

/* Contact Card - Conversational Form */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

/* Line art bracket - top left */
.contact-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-left: 1px solid var(--brand-blue);
    border-top: 1px solid var(--brand-blue);
    opacity: 0.15;
    pointer-events: none;
}

/* Line art bracket - bottom right */
.contact-card::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-right: 1px solid var(--brand-red);
    border-bottom: 1px solid var(--brand-red);
    opacity: 0.15;
    pointer-events: none;
}

/* Hover glow effect */
.contact-card:hover {
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.13),
        0 0 0 1px rgba(0, 0, 0, 0.07),
        0 0 60px -20px rgba(0, 102, 255, 0.12);
}

.contact-badge {
    display: inline-block;
    background: var(--brand-blue-muted);
    color: var(--brand-blue);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xl);
}

.contact-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-2xl);
}

/* Conversational Form Sentences */
.form-sentence {
    font-size: var(--text-xl);
    color: var(--text-primary);
    line-height: 2.5;
    margin-bottom: var(--space-md);
}

.form-statement {
    color: var(--text-secondary);
    font-style: italic;
}

/* Inline Inputs */
.inline-input,
.inline-select {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    font-style: italic;
    padding: var(--space-xs) var(--space-sm);
    min-width: 150px;
    transition: border-color var(--transition-fast);
}

.inline-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.inline-input:focus,
.inline-select:focus {
    outline: none;
    border-bottom-color: var(--brand-blue);
}

.inline-input-email {
    min-width: 200px;
}

.inline-select {
    cursor: pointer;
    appearance: none;
    padding-right: var(--space-xl);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
}

.inline-select option {
    background: #ffffff;
    color: var(--text-primary);
}

/* Details Section */
.form-details {
    margin: var(--space-2xl) 0;
}

.form-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--text-base);
    resize: vertical;
    transition: all var(--transition-fast);
}

.form-textarea::placeholder {
    color: var(--text-muted);
}

/* Sweeping light effect when "other" is selected */
.form-details {
    position: relative;
}

.form-details.highlight-sweep::before {
    content: '';
    position: absolute;
    top: calc(var(--space-md) + var(--space-xs));
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: conic-gradient(
        from var(--sweep-angle, 0deg),
        var(--brand-blue),
        var(--brand-red),
        transparent 120deg
    );
    border-radius: calc(var(--radius-lg) + 3px);
    animation: sweepBorder 1.5s ease-out forwards;
    z-index: 0;
    pointer-events: none;
}

.form-details.highlight-sweep .form-textarea {
    position: relative;
    z-index: 1;
}

@property --sweep-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes sweepBorder {
    0% {
        --sweep-angle: 0deg;
        opacity: 1;
    }
    100% {
        --sweep-angle: 360deg;
        opacity: 0;
    }
}

.form-textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: var(--glow-blue);
}

/* Large Button */
.btn-large {
    width: 100%;
    max-width: 350px;
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
    margin-top: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #1a1a2e;
    border-top: none;
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-text {
    color: rgba(255, 255, 255, 0.9);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-blue-light);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive - Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Header */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        transition: right var(--transition-base);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: calc(var(--z-fixed) + 1);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .lang-selector {
        position: fixed;
        bottom: var(--space-xl);
        left: 50%;
        transform: translateX(-50%);
        z-index: calc(var(--z-fixed) + 1);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }

    .nav-links.active ~ .lang-selector,
    .lang-selector.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* Sections */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-visual {
        order: -1;
        height: 250px;
    }

    .contact-card {
        padding: var(--space-2xl);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--space-4xl);
    }

    .hero-decoration {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-sentence {
        font-size: var(--text-lg);
        line-height: 2.2;
    }

    .inline-input,
    .inline-select {
        min-width: 120px;
        display: block;
        margin: var(--space-sm) 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}
