/* Custom CSS for Northwest Nerds */

/* Custom variables */
:root {
    --nw-primary: #007bff;
    --nw-warning: #ffc107;
    --nw-dark: #212529;
    --nw-light: #f8f9fa;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

/* Global styles */
body {
    padding-top: 3rem; /* Account for fixed navbar */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Custom gradient background */
.bg-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
}

/* Hero section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.hero-section h1,
.hero-section p,
.hero-section .lead {
    color: white !important;
}

.hero-section .text-warning {
    color: #ffc107 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.08"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.08"/><circle cx="90" cy="30" r="0.5" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: -1;
}

/* Hero animations */
.hero-animation {
    position: relative;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Button styles */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Navbar styles */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--nw-warning) !important;
}

/* Section spacing */
section {
    scroll-margin-top: 76px;
}

/* Custom responsive spacing */
@media (max-width: 768px) {
    .hero-section .row {
        min-height: 80vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-animation {
        margin-top: 2rem;
    }
}

/* Loading animation for dynamic content */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--nw-warning);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e0a800;
}

/* Form styles */
.form-control:focus {
    border-color: var(--nw-warning);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Footer links */
footer a:hover {
    color: var(--nw-warning) !important;
    transition: color 0.3s ease;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(45deg, var(--nw-primary), var(--nw-warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--nw-primary), var(--nw-warning)) 1;
}

/* Contact form specific styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--nw-dark);
    margin-bottom: 0.5rem;
}

/* Service page specific styles */
.service-hero {
    background: linear-gradient(135deg, var(--nw-primary) 0%, var(--nw-warning) 100%) !important;
    color: white !important;
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
}

.service-hero h1,
.service-hero p,
.service-hero .lead {
    color: white !important;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--nw-warning);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--nw-warning);
    border-radius: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item::before {
        left: 1rem;
    }
}

/* Price card styles */
.price-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--nw-warning);
    transform: scale(1.02);
}

.price-card.featured {
    border-color: var(--nw-warning);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

/* FAQ styles */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-answer {
    display: none;
    padding-top: 1rem;
    color: #666;
}

/* Testimonial styles */
.testimonial {
    position: relative;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--nw-warning);
    line-height: 1;
}

/* Skills progress bars */
.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--nw-primary), var(--nw-warning));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .btn {
        color: #000 !important;
        text-decoration: none !important;
    }
}