/* CSS Variables for Hacker Theme */
:root {
    /* Hacker theme - Light mode (rarely used) */
    --background: hsl(0 0% 7%);
    --foreground: hsl(120 100% 80%);
    --card: hsl(0 0% 10%);
    --card-foreground: hsl(120 100% 80%);
    --popover: hsl(0 0% 8%);
    --popover-foreground: hsl(120 100% 80%);
    --primary: hsl(120 100% 50%);
    --primary-foreground: hsl(0 0% 0%);
    --secondary: hsl(0 0% 15%);
    --secondary-foreground: hsl(120 100% 80%);
    --muted: hsl(0 0% 12%);
    --muted-foreground: hsl(120 50% 60%);
    --accent: hsl(120 100% 25%);
    --accent-foreground: hsl(120 100% 90%);
    --destructive: hsl(0 84% 60%);
    --destructive-foreground: hsl(0 0% 98%);
    --border: hsl(120 30% 20%);
    --input: hsl(0 0% 12%);
    --ring: hsl(120 100% 50%);
    --radius: 0.375rem;

    /* Hacker gradients and effects */
    --gradient-matrix: linear-gradient(135deg, hsl(120 100% 10%), hsl(120 100% 5%));
    --gradient-terminal: linear-gradient(180deg, hsl(0 0% 8%), hsl(0 0% 5%));
    --glow-green: 0 0 20px hsl(120 100% 50% / 0.3);
    --text-glow: 0 0 10px hsl(120 100% 50% / 0.5);
}

/* Dark mode - Primary hacker theme */
.dark {
    --background: hsl(0 0% 5%);
    --foreground: hsl(120 100% 85%);
    --card: hsl(0 0% 8%);
    --card-foreground: hsl(120 100% 85%);
    --popover: hsl(0 0% 6%);
    --popover-foreground: hsl(120 100% 85%);
    --primary: hsl(120 100% 50%);
    --primary-foreground: hsl(0 0% 0%);
    --secondary: hsl(0 0% 12%);
    --secondary-foreground: hsl(120 100% 85%);
    --muted: hsl(0 0% 10%);
    --muted-foreground: hsl(120 50% 65%);
    --accent: hsl(120 100% 30%);
    --accent-foreground: hsl(120 100% 95%);
    --destructive: hsl(0 84% 60%);
    --destructive-foreground: hsl(0 0% 98%);
    --border: hsl(120 30% 15%);
    --input: hsl(0 0% 10%);
    --ring: hsl(120 100% 50%);
}

/* Base Styles */
* {
    border-color: var(--border);
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden {
    display: none !important;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Terminal Text */
.terminal-text {
    font-family: 'Courier New', monospace;
    text-shadow: var(--text-glow);
}

/* Background Classes */
.matrix-bg {
    background: var(--gradient-matrix);
}

.terminal-bg {
    background: var(--gradient-terminal);
}

/* Glow Effect */
.glow {
    box-shadow: var(--glow-green);
}

/* Scan Lines Effect */
.scan-lines {
    position: relative;
}

.scan-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        hsl(120 100% 50% / 0.03) 2px,
        hsl(120 100% 50% / 0.03) 4px
    );
    pointer-events: none;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background-color: hsl(120 100% 45%);
    border-color: hsl(120 100% 45%);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

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

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
    border-color: transparent;
}

.btn-ghost:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

.w-full {
    width: 100%;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--primary) / 0.3);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    height: 1.5rem;
    width: 1.5rem;
    color: var(--primary);
}

.logo-text {
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-prefix {
    color: var(--muted-foreground);
}

.logo-suffix {
    color: var(--primary);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-mobile {
    display: block;
}

.nav-mobile-menu {
    padding: 1rem 0;
    border-top: 1px solid hsl(var(--primary) / 0.3);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-icon, .close-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 4rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 2rem;
}

.hero-terminal-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    color: var(--primary);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1;
}

.hero-prefix {
    color: var(--muted-foreground);
}

.hero-text {
    color: var(--primary);
}

.cursor {
    color: var(--primary);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-foreground);
}

/* Section Styles */
.projects-section, .services-section, .contact-section {
    padding: 5rem 0;
}

.projects-section {
    background-color: hsl(var(--card) / 0.3);
}

.contact-section {
    background-color: hsl(var(--card) / 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-prefix {
    color: var(--muted-foreground);
}

.section-suffix {
    color: var(--primary);
}

.section-description {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 32rem;
    margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.project-card {
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: hsl(var(--primary) / 0.6);
    transform: translateY(-2px);
}

.project-header {
    margin-bottom: 1rem;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-icon {
    color: var(--primary);
}

.project-title {
    font-size: 1.25rem;
    margin: 0;
}

.project-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.project-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.project-tech {
    margin-bottom: 1rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: calc(var(--radius) - 2px);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
}

.project-actions .btn {
    flex: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.service-card {
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: hsl(var(--primary) / 0.6);
    transform: translateY(-2px);
}

.service-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-description {
    color: var(--muted-foreground);
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.feature-icon {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--primary);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.service-pricing {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.price {
    display: block;
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
}

.cta-text {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

.contact-form-card, .info-card {
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.card-description {
    color: var(--muted-foreground);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
}

.form-input, .form-textarea {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--input);
    color: var(--foreground);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.g-recaptcha > div {
    border-radius: var(--radius);
    overflow: hidden;
}

/* Dark theme for reCAPTCHA */
.g-recaptcha iframe {
    filter: invert(1) hue-rotate(120deg) brightness(0.8) contrast(1.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-right: 0.75rem;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-grid .btn {
    justify-content: flex-start;
}

.quick-response-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: var(--radius);
    background: var(--gradient-terminal);
}

.response-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.response-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.response-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    border-top: 1px solid hsl(var(--primary) / 0.3);
    padding: 2rem 0;
    background-color: hsl(var(--card) / 0.3);
    text-align: center;
}

.footer-text {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.footer-prefix {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: var(--primary);
    background-color: hsl(120 100% 50% / 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .nav-mobile {
        display: none;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Text Colors */
.text-primary {
    color: var(--primary);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

/* Spacing Utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-16 { margin-top: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; } 