/* ========================================
   DAIZ Solutions — Modern 3D Static Site
   ======================================== */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #f0f0f5;
    --text-secondary: #9898a8;
    --text-muted: #6b6b7b;
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #3b82f6;
    --red-accent: #dc2626;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #3b82f6 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
    --border-color: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 60px rgba(99,102,241,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Gradient Text --- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99,102,241,0.45);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--accent-1);
    background: rgba(99,102,241,0.08);
    transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}
.nav-logo strong { font-weight: 700; }
.logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    padding: 10px 24px !important;
    background: var(--gradient-primary);
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.3); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
/* Perspective grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(30deg);
    transform-origin: center 80%;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 70%);
}
/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.hero-orb--1 {
    width: 500px; height: 500px;
    background: var(--accent-1);
    top: -10%; right: -5%;
    animation: float-orb 20s ease-in-out infinite;
}
.hero-orb--2 {
    width: 400px; height: 400px;
    background: var(--accent-2);
    bottom: -10%; left: -5%;
    animation: float-orb 25s ease-in-out infinite reverse;
}
.hero-orb--3 {
    width: 300px; height: 300px;
    background: var(--accent-3);
    top: 40%; left: 50%;
    animation: float-orb 18s ease-in-out infinite 5s;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(99,102,241,0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 32px; background: var(--border-color); }

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* ========================================
   SECTION SHARED STYLES
   ======================================== */
section { padding: 120px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(99,102,241,0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* --- 3D Card Effect --- */
.card-3d {
    height: 100%;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}
.card-3d:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about { background: var(--bg-secondary); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.about-card--main { grid-column: 1 / -1; }
.about-card--main .card-3d {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99,102,241,0.06) 100%);
    border-color: rgba(99,102,241,0.15);
}
.about-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gradient-subtle);
    color: var(--accent-1);
    margin-bottom: 20px;
}
.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card .card-3d { position: relative; overflow: hidden; }
.service-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
}
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gradient-subtle);
    color: var(--accent-1);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   GOVERNANCE SECTION
   ======================================== */
.governance { background: var(--bg-secondary); }
.governance-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.governance-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}
.governance-list { display: flex; flex-direction: column; gap: 20px; }
.governance-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.gov-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-subtle);
    color: var(--accent-1);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}
.governance-list strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.governance-list p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Governance visual */
.governance-visual { position: relative; }
.gov-card-stack {
    position: relative;
    width: 100%;
    height: 400px;
}
.gov-center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.gov-center-node span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
}
.gov-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}
.gfc-icon { font-size: 1.2rem; }
.gfc-status {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gfc-status--green { background: rgba(34,197,94,0.15); color: #22c55e; }
.gfc-status--blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.gfc-status--amber { background: rgba(245,158,11,0.15); color: #f59e0b; }

.gov-floating-card--1 {
    top: 10%;
    left: 5%;
    animation: gov-float 6s ease-in-out infinite;
}
.gov-floating-card--2 {
    top: 45%;
    right: 0;
    animation: gov-float 7s ease-in-out infinite 1s;
}
.gov-floating-card--3 {
    bottom: 10%;
    left: 10%;
    animation: gov-float 8s ease-in-out infinite 2s;
}
@keyframes gov-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.team-card .card-3d { text-align: center; }
.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}
.team-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.team-role {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-1);
    font-weight: 500;
    margin-bottom: 12px;
}
.team-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact { background: var(--bg-secondary); }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}
.contact-channels { display: flex; flex-direction: column; gap: 20px; }
.contact-channel {
    display: flex;
    align-items: center;
    gap: 16px;
}
.channel-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gradient-subtle);
    color: var(--accent-1);
    flex-shrink: 0;
}
.contact-channel strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.contact-channel span { color: var(--text-secondary); font-size: 0.88rem; }

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-color);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 48px;
}
.footer-brand { max-width: 360px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}
.footer-links { display: flex; gap: 64px; }
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-social a:hover {
    color: var(--text-primary);
    border-color: var(--accent-1);
    background: rgba(99,102,241,0.1);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .governance-layout { gap: 48px; }
}

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

    /* Nav mobile */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        border-left: 1px solid var(--border-color);
        transition: right 0.4s ease;
    }
    .nav-links.open { right: 0; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Hero */
    .hero { min-height: auto; padding: 140px 0 80px; }
    .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .hero-stats { gap: 20px; }

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

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

    /* Governance */
    .governance-layout { grid-template-columns: 1fr; }
    .governance-visual { display: none; }

    /* Team */
    .team-grid { grid-template-columns: 1fr; max-width: 400px; }

    /* Contact */
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }

    /* Footer */
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { padding: 14px 28px; width: 100%; max-width: 280px; }
    .stat-divider { display: none; }
    .hero-stats { gap: 24px; }
    .contact-form-wrap { padding: 24px; }
    .footer-links { flex-direction: column; gap: 32px; }
}
