/* ========================================
   NwDigitalServices - Custom CSS
   Modern Dark Theme Portfolio
   ======================================== */

/* CSS Variables */
:root {
    --bg-dark: #0a0f1c;
    --bg-dark-secondary: #111827;
    --bg-card: #1a2236;
    --bg-card-hover: #212d47;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-soft: rgba(59, 130, 246, 0.15);
    --text-white: #ffffff;
    --text-light-muted: #94a3b8;
    --border-color: #2d3748;
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-light-muted {
    color: var(--text-light-muted) !important;
}

.bg-primary-soft {
    background-color: var(--primary-soft) !important;
}

.bg-dark-secondary {
    background-color: var(--bg-dark-secondary);
}

/* Navbar */
.navbar {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.brand-text {
    color: var(--text-white);
}

.nav-link {
    color: var(--text-light-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white) !important;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: 0;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    line-height: 1.3;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll-indicator a {
    color: var(--text-light-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* Code Window */
.code-window {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.code-window.large {
    max-width: 500px;
}

.code-header {
    background: var(--bg-dark-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-header .dot.red { background: #ff5f56; }
.code-header .dot.yellow { background: #ffbd2e; }
.code-header .dot.green { background: #27ca40; }

.code-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-light-muted);
    font-family: var(--font-mono);
}

.code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    color: var(--text-light-muted);
}

.code-body code {
    font-family: inherit;
}

.code-body .keyword { color: #c678dd; }
.code-body .class { color: #e5c07b; }
.code-body .type { color: #61afef; }
.code-body .method { color: #61afef; }
.code-body .comment { color: #5c6370; font-style: italic; }

/* Page Hero */
.page-hero {
    padding: 140px 0 60px;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--text-light-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light-muted);
}

/* Sections */
.section {
    padding: 100px 0;
}

/* Service Cards */
.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Service Card Large */
.service-card-lg {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card-lg:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.service-icon-lg {
    width: 80px;
    height: 80px;
    background: var(--primary-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon-lg i {
    font-size: 2rem;
    color: var(--primary);
}

.service-icon-hero {
    width: 100px;
    height: 100px;
    background: var(--primary-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-hero i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Project Cards */
.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark-secondary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-dark-secondary);
    border-radius: 4px;
    color: var(--text-light-muted);
}

.tech-tag-lg {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    display: inline-block;
    margin: 0.25rem;
}

/* Project Detail */
.project-detail-image {
    border-radius: 16px;
    overflow: hidden;
}

.project-detail-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--bg-dark-secondary), var(--bg-card));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-detail-placeholder i {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
}

/* Value Cards */
.value-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary);
}

.value-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Process Cards */
.process-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--border-color);
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.testimonial-quote {
    color: var(--text-light-muted);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-list i {
    font-size: 1.25rem;
}

/* Content Card */
.content-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

/* Sidebar Card */
.sidebar-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.sidebar-card.cta-sidebar {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary);
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.contact-info-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.contact-cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--primary);
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--primary);
}

/* Form Styles */
.form-control {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--bg-dark-secondary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
    color: var(--text-white);
}

.form-control::placeholder {
    color: var(--text-light-muted);
    opacity: 0.6;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.success-animation {
    display: flex;
    justify-content: center;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

.success-checkmark i {
    font-size: 3rem;
    color: white;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* About Section */
.about-image-container {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--border-color);
    max-width: 350px;
}

/* Tech Grid */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Tech Showcase */
.tech-showcase {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.tech-badge {
    background: var(--bg-dark-secondary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tech-badge span {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 24px;
    padding: 4rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

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

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

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-white);
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-light-muted);
}

.btn-outline-secondary:hover {
    background: var(--bg-dark-secondary);
    border-color: var(--text-light-muted);
    color: var(--text-white);
}

.btn-lg {
    padding: 1rem 2rem;
}

/* Footer */
.footer {
    background: var(--bg-dark-secondary);
    padding: 80px 0 30px;
}

.footer-links {
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links a {
    color: var(--text-light-muted);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* Toast Notifications */
.toast {
    background: var(--bg-card);
    border: none;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .row > div:first-child {
        order: 1;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .cta-card {
        padding: 2.5rem;
    }

    .service-card-lg {
        flex-direction: column;
        text-align: center;
    }

    .service-icon-lg {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .page-hero {
        padding: 120px 0 40px;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.min-vh-100 {
    min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light-muted);
}
