:root {
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --accent-cyan: #00f0ff;
    --accent-purple: #bc13fe;
    --border-color: #333333;
    --grid-line: rgba(255, 255, 255, 0.03);

    --font-heading: 'Oswald', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: left 0.1s, top 0.1s, transform 0.2s;
    backdrop-filter: blur(1px);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: 1px solid var(--accent-cyan);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Typography & Layout */
section {
    padding: 100px 10%;
    min-height: 100vh;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.loader-text {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grid-line);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
    border: 1px solid var(--accent-cyan);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: var(--font-heading);
}

.highlight {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    overflow: hidden;
    color: var(--accent-cyan);
    transition: width 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: transparent;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-status {
    color: var(--text-secondary);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
}

.status-online {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
    pointer-events: none;
}

.glitch-wrapper {
    position: relative;
}

.glitch {
    font-size: 6rem;
    font-weight: 700;
    position: relative;
    color: var(--text-primary);
    line-height: 1;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-purple);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(4px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(98px, 9999px, 8px, 0);
    }

    40% {
        clip: rect(6px, 9999px, 54px, 0);
    }

    60% {
        clip: rect(51px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(32px, 9999px, 78px, 0);
    }

    100% {
        clip: rect(89px, 9999px, 11px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(12px, 9999px, 5px, 0);
    }

    40% {
        clip: rect(87px, 9999px, 29px, 0);
    }

    60% {
        clip: rect(33px, 9999px, 62px, 0);
    }

    80% {
        clip: rect(9px, 9999px, 45px, 0);
    }

    100% {
        clip: rect(27px, 9999px, 82px, 0);
    }
}

.subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    letter-spacing: 10px;
    margin-bottom: 30px;
}

.terminal-text {
    margin-bottom: 40px;
    border-left: 2px solid var(--accent-cyan);
    padding-left: 20px;
    color: var(--accent-cyan);
    font-size: 1rem;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cta-button {
    position: relative;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: 0.3s;
    font-weight: bold;
}

.cta-button:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.scrolldown {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.scrolldown .line {
    width: 1px;
    height: 50px;
    background: var(--text-secondary);
    margin-top: 10px;
}

/* Services */
.section-header {
    margin-bottom: 60px;
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.line-break {
    width: 100px;
    height: 4px;
    background: var(--accent-purple);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-num {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
}

.card-body h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tech-list {
    list-style: none;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.scan-line {
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.card:hover .scan-line {
    transform: translateX(0);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 30px;
}

.info-link {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: var(--font-heading);
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    border: 1px solid var(--border-color);
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    background: repeating-linear-gradient(45deg,
            var(--bg-secondary),
            var(--bg-secondary) 10px,
            #111 10px,
            #111 20px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

input,
textarea {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 15px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    outline: none;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.submit-btn {
    padding: 15px;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    font-weight: bold;
    font-family: var(--font-mono);
    text-transform: uppercase;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
}

/* Footer */
footer {
    padding: 50px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .glitch {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Social Links */
.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-label {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--accent-cyan);
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--accent-cyan);
}

@media (max-width: 1024px) {
    .header-social {
        display: none;
        /* Hide on smaller screens to avoid crowding */
    }
}