/* ========================================================================
   Bruna Development - Minimalist Professional
   Inspired by Leven.tech - Clean, Balanced, No-AI-Icons
   ======================================================================== */

:root {
    /* Colors */
    --black: #000000;
    --gray-900: #0a0a0a;
    --gray-800: #151515;
    --gray-700: #1f1f1f;
    --gray-600: #2a2a2a;
    --gray-500: #404040;
    --gray-400: #666666;
    --gray-300: #8f8f8f;
    --gray-200: #b8b8b8;
    --gray-100: #e0e0e0;
    --white: #ffffff;

    /* Brand */
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent: #06b6d4;
    --success: #10b981;

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px;
    --card-radius: 16px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    color: var(--gray-200);
    transition: color 0.2s;
    font-weight: 400;
}

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

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
}

.status-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--success);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.status-text {
    font-size: 0.85rem;
    color: var(--success);
}

/* ===== Hero ===== */
.hero {
    padding: 200px 0 120px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gray-300);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-200);
    margin-bottom: 48px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--gray-500);
    color: var(--white);
}

.btn-secondary:hover {
    border-color: var(--gray-300);
    background: var(--gray-800);
}

/* ===== Cases Section ===== */
.cases-section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Case Card Base */
.case-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: var(--card-radius);
    padding: 48px;
    display: grid;
    gap: 60px;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.case-card:hover {
    border-color: var(--gray-600);
    transform: translateY(-4px);
}

/* Full Width (Featured) */
.case-card.full-width {
    grid-template-columns: 1fr 1fr;
}

/* Half Width - Default to 2 columns side by side */
.case-card.half-width {
    grid-template-columns: 1fr 1fr;
}

/* Image Right (default for full and half) */
.case-card.image-right {
    grid-template-columns: 1fr 1fr;
}

.case-card.image-right .case-content {
    order: 1;
}

.case-card.image-right .case-image {
    order: 2;
}

/* Image Left */
.case-card.image-left {
    grid-template-columns: 1fr 1fr;
}

.case-card.image-left .case-image {
    order: 1;
}

.case-card.image-left .case-content {
    order: 2;
}

/* Compact (No image, single column) */
.case-card.compact {
    grid-template-columns: 1fr;
    padding: 40px;
}

.case-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--gray-400);
    margin-bottom: 16px;
    font-weight: 500;
}

.case-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.case-desc {
    color: var(--gray-300);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.case-metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.metric {
    color: var(--gray-200);
}

.metric-dot {
    color: var(--gray-600);
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tech span {
    padding: 6px 12px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray-200);
}

.case-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-800);
    aspect-ratio: 16 / 10;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

/* ===== Services Section ===== */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.service-card {
    background: var(--black);
    border: 1px solid var(--gray-700);
    border-radius: var(--card-radius);
    padding: 48px;
}

.service-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.service-badge {
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.service-desc {
    color: var(--gray-300);
    margin-bottom: 32px;
    line-height: 1.7;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    padding-left: 24px;
    position: relative;
    color: var(--gray-300);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* ===== About Section ===== */
.about-section {
    padding: var(--section-padding) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.about-role {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.about-text {
    color: var(--gray-300);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-social-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 48px 0;
    padding: 32px 0;
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
}

.proof-stat {
    display: flex;
    flex-direction: column;
}

.proof-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.proof-label {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.about-certs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cert {
    padding: 8px 14px;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray-200);
}

.about-stack h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 32px;
    font-weight: 600;
}

.stack-section {
    margin-bottom: 32px;
}

.stack-section h5 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-tags span {
    padding: 6px 12px;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray-200);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact-subtitle {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 60px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.contact-link {
    background: var(--black);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
    min-width: 280px;
}

.contact-link:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.contact-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--gray-700);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    height: 100%;
    overflow: hidden;
}

.modal-gallery {
    background: var(--black);
    padding: 60px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: var(--black);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gray-600);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: 0.2s;
}

.gallery-btn:hover {
    background: white;
    color: black;
}

.gallery-btn.prev {
    left: 20px;
}

.gallery-btn.next {
    right: 20px;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumbs img {
    height: 80px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

.modal-info {
    padding: 60px 40px;
    overflow-y: auto;
}

.modal-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-info p {
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 32px;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section h4 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pills span {
    padding: 6px 12px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray-200);
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metrics-list div {
    color: var(--gray-200);
    font-size: 0.95rem;
    padding-left: 16px;
    position: relative;
}

.metrics-list div::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

/* ===== Fullscreen Image Viewer ===== */
.fullscreen-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullscreen-viewer.active {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 120px;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.fullscreen-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.fullscreen-nav.prev {
    left: 40px;
}

.fullscreen-nav.next {
    right: 40px;
}

.fullscreen-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: white;
}

/* Make modal gallery images clickable */
.gallery-main img {
    cursor: zoom-in;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .case-card {
        grid-template-columns: 1fr;
    }

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

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

    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .contact-methods {
        flex-direction: column;
    }

    /* Case Cards Mobile */
    .cases-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .case-card {
        padding: 0 !important;
        grid-column: span 1 !important;
        flex-direction: column !important;
        display: flex !important;
    }

    .case-card.full-width,
    .case-card.half-width,
    .case-card.compact,
    .case-card.image-left,
    .case-card.image-right {
        flex-direction: column !important;
        display: flex !important;
    }

    /* Force content before image by reversing image-left */
    .case-card.image-left .case-content {
        order: 1 !important;
    }

    .case-card.image-left .case-image {
        order: 2 !important;
    }

    /* Content and image order */
    .case-content {
        width: 100% !important;
        padding: 2rem 1.5rem 0.5rem 1.5rem !important;
    }

    .case-image {
        width: 100% !important;
        max-height: 350px;
        overflow: hidden;
        border-radius: 0 0 12px 12px !important;
    }

    .case-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .case-title {
        font-size: 1.4rem;
    }

    .case-desc {
        font-size: 0.95rem;
    }

    .case-metrics {
        font-size: 0.85rem;
    }

    .case-tech {
        gap: 8px;
    }

    .case-tech span {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: translateY(-2px) scale(1.02);
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}