/* ============================================
   HackLancers - Neon Black Cyberpunk Theme
   ============================================ */

/* CSS Variables */
:root {
    --neon-cyan: #00ffff;
    --neon-green: #00ff00;
    --neon-pink: #ff00ff;
    --neon-purple: #9d00ff;
    --neon-orange: #ff0080;
    --neon-lime: #00ff80;

    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #0f0f0f;

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #606060;

    --font-main: 'Orbitron', sans-serif;
    --font-mono: 'Orbitron', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Background */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s;
    box-shadow: 0 0 5px var(--neon-cyan);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    background: var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
}

.hero-content .tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--neon-green);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--bg-black);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-primary:hover {
    background: #000000;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.btn-outline:hover {
    background: #000000;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.service-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    padding: 2.5rem;
    border-radius: 10px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: #000000 !important;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

/* Only titles should be neon green on hover */
.service-card:hover h3,
.service-card:hover h4 {
    color: var(--neon-green) !important;
}

/* Keep other text white on hover */
.service-card:hover p,
.service-card:hover .service-features li {
    color: #ffffff !important;
}

.service-card:hover .service-icon {
    color: var(--neon-green) !important;
}

.service-card:hover .service-features li::before {
    color: var(--neon-green) !important;
}

/* Button hover with proper contrast */
.service-card:hover .btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid var(--neon-green) !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4) !important;
}

.service-card:hover .btn:hover {
    background: var(--neon-green) !important;
    color: #000000 !important;
    border: 2px solid var(--neon-green) !important;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.7) !important;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-card h4 {
    font-family: 'Orbitron', sans-serif;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-weight: bold;
}

/* Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--bg-darker);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.alert-error {
    background: rgba(255, 0, 128, 0.1);
    border-color: var(--neon-orange);
    color: var(--neon-orange);
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--neon-cyan);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-subtitle {
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--neon-green);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--neon-cyan);
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-contact a:hover {
    color: var(--neon-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--neon-cyan);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--neon-cyan);
}

.social-link:hover {
    background: #000000;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

.footer-bottom {
    border-top: 1px solid var(--bg-card);
    padding-top: 2rem;
    text-align: center;
}

.legal-notice {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid var(--neon-orange);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-notice i {
    color: var(--neon-orange);
    margin-right: 10px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 0, 255, 0.8)); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--neon-green); }
}

/* Responsive */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* Tablets (768px to 1024px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        border-left: 2px solid var(--neon-cyan);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 30px rgba(0, 255, 255, 0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border: 1px solid transparent;
        border-radius: 5px;
        transition: all 0.3s;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        border-color: var(--neon-green);
        background: rgba(0, 255, 0, 0.1);
    }

    /* Overlay for mobile menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: -1;
    }

    /* Hero Section */
    .hero {
        min-height: 70vh;
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-content .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .typing-text {
        font-size: 0.9rem;
    }

    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Section Titles */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-subtitle {
        font-size: 1rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .legal-notice {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    /* Contact Form */
    .contact-form {
        padding: 2rem 0;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 1rem;
        padding: 0.9rem;
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-brand {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .nav-menu {
        width: 90%;
        max-width: none;
        padding: 4rem 1.5rem 1.5rem;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-content .tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .typing-text {
        font-size: 0.85rem;
        white-space: normal;
        border-right: none;
        animation: none;
    }

    .cta-buttons {
        margin-top: 2rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Services */
    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-features {
        font-size: 0.85rem;
    }

    .service-features li {
        padding: 0.4rem 0;
        padding-left: 1.2rem;
    }

    /* Section */
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    /* Footer */
    .footer-grid {
        gap: 1.5rem;
    }

    .footer-col {
        text-align: left;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .footer-desc,
    .footer-links,
    .footer-contact {
        font-size: 0.9rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .legal-notice {
        font-size: 0.75rem;
        text-align: left;
    }

    .copyright {
        font-size: 0.8rem;
    }

    /* Form */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.85rem;
        font-size: 1rem;
    }

    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content .tagline {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.25rem 0.75rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-menu {
        height: 100vh;
        padding: 4rem 1.5rem 1.5rem;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .nav-menu a {
        padding: 1.2rem;
        min-height: 48px;
    }

    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px;
    }

    /* Simplify hover effects on touch devices */
    .service-card:active {
        background: #000000 !important;
        border: 2px solid var(--neon-green);
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    }

    /* Only titles should be neon green on active */
    .service-card:active h3,
    .service-card:active h4 {
        color: var(--neon-green) !important;
    }

    /* Keep other text white on active */
    .service-card:active p,
    .service-card:active .service-features li {
        color: #ffffff !important;
    }

    .service-card:active .service-icon {
        color: var(--neon-green) !important;
    }

    .service-card:active .service-features li::before {
        color: var(--neon-green) !important;
    }

    /* Button active with proper contrast */
    .service-card:active .btn {
        background: #000000 !important;
        color: #ffffff !important;
        border: 2px solid var(--neon-green) !important;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.4) !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
