:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --primary-cyan: #00f3ff;
    --secondary-purple: #b026ff;
    --card-bg: rgba(20, 20, 25, 0.8);
    --font-main: 'Share Tech Mono', monospace;
    --neon-glow-cyan: 0 0 5px var(--primary-cyan), 0 0 10px var(--primary-cyan), 0 0 20px var(--primary-cyan);
    --neon-glow-purple: 0 0 5px var(--secondary-purple), 0 0 10px var(--secondary-purple), 0 0 20px var(--secondary-purple);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Typography & Components */
a {
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.neon-text {
    color: var(--primary-cyan);
    text-shadow: var(--neon-glow-cyan);
}

.neon-text-alt {
    color: var(--secondary-purple);
    text-shadow: var(--neon-glow-purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px var(--primary-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-cyan);
    transition: width 0.3s;
    box-shadow: var(--neon-glow-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: 0.3s;
    margin-left: 0.5rem;
}

.lang-switcher button:hover, .lang-switcher button.active {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: inset 0 0 5px var(--primary-cyan);
}

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-cyan);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    position: relative;
    text-align: left;
    padding: 0 5%;
}

/* 3D Cube Animation */
.cube-container {
    perspective: 1200px;
    width: 250px;
    height: 250px;
    z-index: 2;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.cube-face.front  { transform: rotateY(  0deg) translateZ(125px); }
.cube-face.right  { transform: rotateY( 90deg) translateZ(125px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(125px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(125px); }
.cube-face.top    { transform: rotateX( 90deg) translateZ(125px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(125px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.glitch {
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #ccc;
}

.btn.neon-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
    background: rgba(0, 243, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
}

.btn.neon-btn:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: var(--neon-glow-cyan);
}

/* Pricing Banner */
.pricing-banner {
    background: linear-gradient(90deg, rgba(176,38,255,0.2) 0%, rgba(0,243,255,0.2) 100%);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--secondary-purple);
    border-bottom: 1px solid var(--primary-cyan);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.alert-icon {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    animation: blinker 1.5s infinite;
}

/* Services */
.services {
    padding: 6rem 5%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.service-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.1);
}

.service-card .icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
    transition: 0.4s;
}

.service-card:hover .icon {
    color: rgba(0, 243, 255, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.highlight-card {
    border-color: var(--secondary-purple);
    background: linear-gradient(135deg, rgba(176,38,255,0.1) 0%, rgba(20,20,25,0.9) 100%);
}
.highlight-card:hover {
    border-color: var(--secondary-purple);
    box-shadow: 0 10px 20px rgba(176, 38, 255, 0.2);
}

/* Portfolio */
.portfolio {
    padding: 6rem 5%;
    background: rgba(10, 10, 12, 0.8);
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-card {
    display: block;
    background: #000;
    border: 1px solid rgba(0, 243, 255, 0.3);
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    opacity: 0.1;
    transform: scale(1.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
    filter: brightness(0.3) contrast(1.2);
}

.portfolio-card:hover .portfolio-image {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0.5) contrast(1.2);
}

.portfolio-content {
    text-align: center;
    z-index: 2;
}

.portfolio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.link-icon {
    color: var(--secondary-purple);
    font-weight: bold;
    transition: 0.3s;
}

.portfolio-card:hover .link-icon {
    color: var(--primary-cyan);
    text-shadow: var(--neon-glow-cyan);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.portfolio-card:hover::before {
    transform: translateX(100%);
}

.tech-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-cyan);
    box-shadow: var(--neon-glow-cyan);
}

/* Contact */
.contact {
    padding: 6rem 5%;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(20, 20, 25, 0.5);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.form-container::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; width: 20px; height: 20px;
    border-top: 2px solid var(--primary-cyan);
    border-left: 2px solid var(--primary-cyan);
}
.form-container::before {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px; width: 20px; height: 20px;
    border-bottom: 2px solid var(--secondary-purple);
    border-right: 2px solid var(--secondary-purple);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-main);
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #888;
    pointer-events: none;
    transition: 0.3s;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #555;
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-cyan);
    transition: 0.3s;
}

.input-group input:focus ~ .input-line::after,
.input-group input:not(:placeholder-shown) ~ .input-line::after,
.input-group textarea:focus ~ .input-line::after,
.input-group textarea:not(:placeholder-shown) ~ .input-line::after {
    width: 100%;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.2rem;
}

.social-icon:hover {
    color: var(--secondary-purple);
    text-shadow: var(--neon-glow-purple);
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.95);
        padding: 2rem 0;
        text-align: center;
        border-bottom: 1px solid var(--primary-cyan);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .glitch {
        font-size: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cube-container {
        width: 150px;
        height: 150px;
        margin-top: 2rem;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
    
    .cube-face.front  { transform: rotateY(  0deg) translateZ(75px); }
    .cube-face.right  { transform: rotateY( 90deg) translateZ(75px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(75px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(75px); }
    .cube-face.top    { transform: rotateX( 90deg) translateZ(75px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
}
