/* --- 1. Variables & Reset --- */
:root {
    /* Palette: Premium Dark Mode */
    --bg-color: #000000;
    --surface-color: #080808;
    --surface-hover: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --primary-glow: rgba(255, 255, 255, 0.15);
    --accent-gradient: linear-gradient(90deg, #FFFFFF, #999999);

    /* Spacing & Layout */
    --container-max: 1200px;
    --gutter: 24px;

    /* Fonts */
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Remove o outline azul feio e coloca um customizado apenas se usar teclado */
    outline: none;
}

*:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Ambient Light (Background Effect) --- */
/* Cria aquela luz suave no fundo que sites caros têm */
.ambient-light {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(50, 50, 100, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
}

/* --- 3. Layout & Typography --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
}

.section {
    padding: 120px 0;
}

.bg-darker {
    background: linear-gradient(180deg, #000 0%, #050505 50%, #000 100%);
}

/* --- 4. Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    /* Efeito vidro fosco */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: #666;
}

.desktop-menu {
    display: flex;
    gap: 40px;
}

.desktop-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-menu a:hover {
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
}

/* --- 5. Buttons --- */
.btn-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 24px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary .btn-line-1,
.btn-primary .btn-line-2 {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-primary .btn-line-2 {
    font-weight: 700;
}

.btn-primary svg {
    stroke: #000;
}

.btn-glow {
    /* Botão com brilho suave */
    display: inline-block;
    padding: 14px 28px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover,
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-ghost {
    display: inline-block;
    padding: 14px 28px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* --- 6. Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    /* Resetting max-width to match container exactly */
    max-width: var(--container-max);
    width: 100%;
    z-index: 2;
    position: relative;
    /* Ensure content inside limits its own width */
}

/* Limit content width inside hero to maintain design but keep alignment */
.hero-content h1,
.hero-content p,
.hero-content .hero-actions,
.hero-content .badge {
    max-width: 700px;
}

/* Abstract Snake Shape */
.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60vw;
    /* Increased width to allow exit */
    z-index: 1;
    pointer-events: none;
    overflow: visible;
    /* Allow it to bleed out */
    display: flex;
    align-items: flex-start;
    /* Changed to start to allow top positioning */
    justify-content: flex-end;
}

.hero-shape svg {
    width: 100%;
    height: 100%;
    stroke: #FFFFFF;
    /* Pure white */
    stroke-width: 180px;
    /* Thicker */
    stroke-linecap: round;
    fill: none;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.4));
    /* Stronger glow */
    opacity: 1;
    /* Full opacity */
    transform: translateX(0);
    /* Removed translate to let it flow naturally */
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-title {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Texto degradê sutil */
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 580px;
    /* Slightly constrained for readability */
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* --- 7. Brand Strip --- */
.brand-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
}

.brand-strip p {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.5;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logos a {
    display: inline-block;
    transition: transform 0.3s;
}

.logos a:hover {
    transform: translateY(-3px);
}

.logo-ph {
    font-weight: 700;
    color: #444;
    font-size: 1.1rem;
}

.partner-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

/* --- 8. Cards & Grid (Glassmorphism) --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card.offset {
    margin-left: 60px;
    /* Increased offset */
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

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

.stat .num {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.stat .label {
    font-size: 0.9rem;
}

/* --- 9. Services (Expertise) - Light Theme --- */
#services {
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
    color: #000;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#services .section-title {
    color: #000;
}

#services .section-subtitle {
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Darker border for light theme */
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    background: #fdfdfd;
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    color: #000;
}

.service-card p {
    color: #666;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.05);
    /* Light theme icon background */
    color: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

/* --- 9.5 Marquee Section --- */
/* --- 9.5 Marquee Section (Redesigned) --- */
.marquee-strip {
    background: transparent;
    /* Transparent for continuity */
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through if needed */
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Thin white line separator */
}

.marquee-content {
    display: flex;
    width: fit-content;
    /* Allow it to grow naturally */
    animation: marquee-scroll 20s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Gap between text and separator */
    margin-right: 40px;
    /* Spacing between separator and next text (equal to gap for centering) */
    padding: 0;
    /* Removed padding to use gap/margin logic */
}

.marquee-item .text {
    font-size: 1rem;
    /* Reduced size */
    font-weight: 800;
    /* Extra Bold */
    color: #FFFFFF;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.marquee-item .separator {
    font-size: 1rem;
    /* Reduced size to match text */
    color: rgba(255, 255, 255, 0.6);
    /* Slightly dimmer separator for visual hierarchy */
    font-weight: 400;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 10. Projects --- */
/* --- 10. Portfolio Slider --- */
.portfolio-section {
    overflow: hidden;
    padding: 60px 0;
    position: relative;
    background: transparent;
    /* Allow ambient light through */
}

.portfolio-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: portfolio-scroll 40s linear infinite;
}


/* .portfolio-track:hover {
    animation-play-state: paused;
} REMOVED AS REQUESTED */

.portfolio-card {
    width: 450px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s;
}

/* Ensure background continuity */
/* Make sections transparent where needed for the blue gradient */
#projects,
#awards {
    background: transparent;
    position: relative;
    z-index: 2;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.p-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.3;
    font-family: var(--font-main);
}

.p-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.p-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 3em;
    /* fix height/alignment */
}

.p-image-container {
    width: 100%;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
}

.p-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.p-image-container:hover .p-image {
    transform: scale(1.05);
}

@keyframes portfolio-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Remove old project-row styles if unused, or keep for backup. Overwriting them above. */

.gradient-1 {
    background: linear-gradient(135deg, #111, #222);
    border: 1px solid #333;
}

.gradient-2 {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    border: 1px solid #333;
}

/* --- 11. Contact Form (Clean) --- */
.cta-section {
    text-align: center;
}

.cta-card {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.clean-form {
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.full-width {
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    border: none;
}

/* --- 11.5. Contact Section Light Theme --- */
.light-theme {
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 50%, #f5f5f5 100%);
    padding: 100px 0 !important;
}

.contact-wrapper {
    background: #ffffff;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.contact-badge {
    display: inline-block;
    width: fit-content;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    font-weight: 600;
}

.contact-left h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.contact-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.contact-info-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.contact-info-item svg {
    color: #000;
    flex-shrink: 0;
    margin-top: 0;
}

.contact-info-item div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: #000;
    font-weight: 500;
}

.decorative-circle {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
    z-index: 1;
}

.contact-right {
    display: flex;
    align-items: center;
}

.contact-form-dark {
    width: 100%;
    background: #000;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit-dark {
    width: 100%;
    padding: 16px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 100px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-submit-dark:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-submit-dark svg {
    width: 20px;
    height: 20px;
}

/* --- 11.6. Policy Modals --- */
.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.policy-modal.active {
    display: flex;
}

.policy-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    /* Borda bem arredondada conforme solicitado */
    padding: 0;
    /* Padding moved to inner wrapper for scroll fix */
    max-width: 1300px;
    /* Design grande horizontal */
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    /* Hide overflow on main container */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
}


.policy-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 80px;
    height: 100%;
    scrollbar-gutter: stable;
    /* Keeps space for scrollbar inside */
}

/* Custom Scrollbar for Policy Content */
.policy-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
    /* Slightly thinner for elegance */
}

.policy-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 20px;
}

.policy-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.policy-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    background-clip: content-box;
}

.policy-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

/* --- 12. Testimonials (Reconhecimentos) --- */
.testimonials-wrapper {
    padding: 40px 0;
}

.testimonial-header {
    margin-bottom: 60px;
    text-align: left;
}

.testimonial-slider-container {
    position: relative;
    padding-right: 150px;
    /* Spacing for arrows on the right */
}

.testimonial-slider {
    position: relative;
    min-height: 300px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    /* Smoother, longer transition */
    filter: blur(10px);
    /* Start blurred */
    transform: scale(0.98);
    /* Slight scale for depth */
}

.testimonial-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    filter: blur(0);
    transform: scale(1);
}

.testimonial-text {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.3;
    color: #fff;
    font-weight: 500;
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: -0.01em;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111, #333);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider-controls {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
}

.slider-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.policy-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

#policyBody h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

#policyBody h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

#policyBody p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

#policyBody ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 20px;
    margin-bottom: 15px;
}

#policyBody li {
    margin-bottom: 8px;
}

/* --- 12. Footer --- */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
    font-size: 0.9rem;
    color: #666;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-left .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.footer-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 350px;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    text-decoration: none;
}

.social-circle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-3px);
}

.social-circle svg {
    width: 20px;
    height: 20px;
}

.footer-menus {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li {
    margin: 0;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #fff;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.contact-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contact-list span {
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* --- 13. Animations (Fade Up) --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* --- 14. Responsive --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .project-row,
    .input-row {
        grid-template-columns: 1fr;
    }

    .desktop-menu,
    .btn-primary {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .glass-card.offset {
        margin-left: 0;
    }

    .project-visual {
        order: -1;
        margin-bottom: 20px;
    }

    .visual-placeholder {
        height: 250px;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: #000;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: 0.4s ease-in-out;
    }

    .mobile-overlay.active {
        transform: translateY(0);
    }

    .mobile-overlay a {
        color: #fff;
        font-size: 1.5rem;
        text-decoration: none;
        font-weight: 600;
    }
}

/* Footer Responsive - Mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-menus {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-subtitle {
        max-width: 100%;
    }

    /* Contact Section Responsive */
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 40px;
    }

    .contact-form-dark {
        padding: 30px;
    }

    /* Policy Modal Responsive */
    .policy-content {
        padding: 30px 20px;
        max-height: 90vh;
    }

    .policy-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    /* --- Mobile Optimization Fixes --- */

    /* Fix Portfolio Card Width */
    .portfolio-card {
        width: 85vw;
        /* Responsive width for mobile */
        max-width: 400px;
        /* Cap it slightly smaller than desktop */
    }

    /* Fix Floating Badge Size & Position */
    .floating-badge {
        width: 90px;
        height: 90px;
        top: -40px;
        right: 0;
        /* Align to right edge, don't overflow */
    }

    .floating-badge svg {
        animation-duration: 15s;
        /* Slower rotation on mobile */
    }

    /* Ensure Services Grid Stacks */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Adjust Marquee Spacing */
    .marquee-item {
        gap: 20px;
        margin-right: 20px;
        padding: 0;
    }

    .marquee-item .text {
        font-size: 0.9rem;
    }

    .marquee-item .separator {
        font-size: 0.9rem;
    }

    /* General Typography Adjustments */
    .section-title {
        font-size: 2rem;
    }

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

    /* Adjust Footer Grid */
    .footer-menus {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-column ul {
        align-items: center;
        /* Center align links */
    }

    .footer-left {
        align-items: center;
        text-align: center;
    }
}

/* --- 15. Portfolio Modal Content --- */
.case-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.case-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 30px;
    display: inline-block;
}

.case-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 800px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.case-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.case-img:hover {
    transform: scale(1.02);
}

/* --- 16. Preloader (Redesigned) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #fff;
    text-transform: uppercase;
    animation: fade-in 1s ease-out forwards;
}

.loader-line {
    width: 0%;
    height: 1px;
    background: #fff;
    animation: line-expand 1.5s ease-out forwards 0.3s;
    /* Starts after text fade */
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes line-expand {
    from {
        width: 0%;
    }

    to {
        width: 60px;
    }
}


/* --- 17. Floating Badge (Refined) --- */
.floating-badge {
    position: absolute;
    top: -50px;
    /* Moved higher up */
    right: -25px;
    /* Slight adjustment */
    width: 120px;
    /* Larger size */
    height: 120px;
    /* Larger size */
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.floating-badge svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: badge-rotate 12s linear infinite;
    /* Slightly slower/smoother */
}

.floating-badge text {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 12px;
    /* Adjusted for new radius */
    fill: #000;
}

.badge-icon {
    position: relative;
    z-index: 2;
    width: 40px;
    /* Proportional increase */
    height: 40px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes badge-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}