/* ============================================
   ELEMENTZ HOME PAGE REDESIGN
   Theme: Circuit Noir - Dark Technical Precision
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2332;
    --bg-card: #151d2e;

    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.15);
    --accent-amber: #f59e0b;
    --accent-amber-dim: rgba(245, 158, 11, 0.15);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Effects */
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-amber: 0 0 20px rgba(245, 158, 11, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'DM Sans', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1320px;
}

/* ============================================
   GLOBAL OVERRIDES
   ============================================ */
.home-redesign {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

.home-redesign * {
    box-sizing: border-box;
}

.home-redesign section {
    position: relative;
    padding: var(--section-padding);
}

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

/* PCB Trace Pattern Background */
.pcb-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(var(--accent-cyan) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.home-redesign h1,
.home-redesign h2,
.home-redesign h3 {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.home-redesign h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.home-redesign h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.home-redesign h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.home-redesign p {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-header .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header .label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary) !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, var(--accent-cyan-dim) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--accent-cyan);
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
    color: var(--bg-primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9);
}

/* Decorative circuit lines */
.circuit-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid var(--accent-cyan-dim);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    opacity: 0.5;
}

.circuit-decoration::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid var(--accent-amber-dim);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   ABOUT/WELCOME SECTION
   ============================================ */
.about-section {
    background: var(--bg-secondary);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--accent-cyan);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.3;
}

.about-content {
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   SERVICES SECTION (Bento Grid)
   ============================================ */
.services-section {
    background: var(--bg-primary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 24px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bento-item:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover::before {
    opacity: 1;
}

/* Featured large item */
.bento-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
}

.bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cyan-dim);
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

.bento-item h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.bento-item p {
    font-size: 0.95rem;
    margin: 0;
}

.bento-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    position: absolute;
    top: 24px;
    right: 24px;
}

/* ============================================
   RECENT WORKS SECTION
   ============================================ */
.works-section {
    background: var(--bg-secondary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.work-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.work-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

.work-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h4 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.work-overlay span {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* Tall item */
.work-item.tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

/* Wide item */
.work-item.wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-section {
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.portfolio-featured {
    grid-row: span 2;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-card-image {
    position: relative;
    overflow: hidden;
}

.portfolio-featured .portfolio-card-image {
    height: 300px;
}

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

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

.portfolio-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portfolio-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card h3 {
    margin-bottom: 12px;
}

.portfolio-card p {
    flex: 1;
    margin-bottom: 20px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.portfolio-link:hover {
    gap: 12px;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.clients-header {
    text-align: center;
    margin-bottom: 40px;
}

.clients-marquee {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    padding: 20px 0;
}

.clients-marquee-wrapper {
    display: flex;
    gap: 60px;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 10px 0;
}

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

.client-logo {
    flex-shrink: 0;
    height: 50px;
    opacity: 0.85;
    filter: brightness(1.5);
    transition: all 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.15);
    filter: brightness(1.8);
}

.client-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    background: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
}

.team-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.team-card:hover .team-card-image img {
    transform: scale(1.1);
}

.team-card-content {
    padding: 24px;
    text-align: center;
}

.team-card h4 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-card .role {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.team-socials a:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Team Member Card Overrides */
.home-redesign .team-member {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.home-redesign .team-member:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
}

.home-redesign .team-member .team-image img {
    width: 100%;
    height: auto;
}

.home-redesign .team-member .team-desc {
    padding: 20px;
    text-align: center;
    background: var(--bg-card);
}

.home-redesign .team-member .team-desc h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: 4px;
}

.home-redesign .team-member .team-desc span {
    font-size: 0.85rem;
    color: var(--accent-cyan) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

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

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-item.tall {
        grid-row: span 1;
        aspect-ratio: 1;
    }

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

    .portfolio-featured {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

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

    .bento-item.featured {
        grid-column: span 1;
    }

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

    .work-item.wide {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   HIDE ORIGINAL TEMPLATE STYLES
   ============================================ */
.home-redesign .inspiro-slider,
.home-redesign .slider-halfscreen {
    display: none !important;
}
