/* ==========================================
   NUVI DEVELOP — CSS DESIGN SYSTEM & STYLES
   ========================================== */

/* Custom Variables */
:root {
    --bg-color: #080C14;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(139, 92, 246, 0.35);
    
    --primary: #8B5CF6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #06B6D4;
    --secondary-glow: rgba(6, 182, 212, 0.4);
    
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Glowing Background Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.orb-1 {
    width: 550px;
    height: 550px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 650px;
    height: 650px;
    background: var(--secondary);
    top: 600px;
    left: -200px;
    animation: float 25s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 40px) scale(1.15); }
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn .btn-icon {
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.35));
}

.logo:hover .logo-icon {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 6px 16px rgba(6, 182, 212, 0.45));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
}

.logo-text span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.main-nav a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:not(.btn):hover {
    color: white;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
}

.badge {
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    line-height: 1.18;
    margin-bottom: 20px;
    font-weight: 900;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Hero Stats Bar */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    padding: 16px 36px;
    border-radius: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #FFF, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-hover-border);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.08);
}

.featured-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.project-badge {
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 4px 12px;
    border-radius: 9999px;
}

.project-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
    margin-bottom: 32px;
}

.project-tags li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.project-tags li:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
}

/* Featured Card Visual Mockup */
.card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-mockup {
    background: #0D1322;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
    overflow: hidden;
}

.mockup-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-header .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-header .dot.red { background: #EF4444; }
.mockup-header .dot.yellow { background: #F59E0B; }
.mockup-header .dot.green { background: #10B981; }

.mockup-header .title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
}

.mockup-body {
    padding: 22px;
}

.mockup-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 18px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mockup-typing-text {
    font-family: var(--font-body);
    color: #F3F4F6;
}

.mockup-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    padding: 10px 14px;
    border-radius: 10px;
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: rgba(8, 12, 20, 0.6);
    position: relative;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
}

.service-item:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(6, 182, 212, 0.08);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #A78BFA;
    transition: var(--transition-smooth);
}

.service-item:hover .service-icon-wrapper {
    transform: scale(1.08) rotate(3deg);
    color: #06B6D4;
    border-color: rgba(6, 182, 212, 0.45);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(6, 182, 212, 0.22));
}

.service-item h4 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-item p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    backdrop-filter: blur(20px);
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.15;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: #06B6D4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.detail-item:hover .detail-icon {
    color: #A78BFA;
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-text .val {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 14px 18px;
    border-radius: 14px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.form-success-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.form-success-message h4 {
    font-size: 1.4rem;
    color: #10B981;
}

.form-success-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 0;
    background: #05080f;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-brand .brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-brand .brand-name span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 9999px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.back-to-top {
    color: var(--secondary) !important;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 20px;
    }

    .main-nav a:not(.btn) {
        font-size: 0.88rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .card-visual {
        justify-content: flex-start;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 40px;
    }
}

@media (max-width: 900px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(8, 12, 20, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--card-border);
        padding: 24px;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .main-nav ul li a {
        display: block;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        grid-column: span 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
