:root {
    --primary: #0000FF;
    --primary-glow: rgba(0, 0, 255, 0.5);
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #FFFFFF;
    --text-dim: #A0A0A0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Decorative Elements --- */
.noise-bg {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glow-cursor {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    filter: blur(8px);
    opacity: 0.6;
    transition: transform 0.1s ease;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 40px;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links li {
    opacity: 1;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.gradient-text {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.badge {
    background: rgba(0, 0, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-visual {
    position: relative;
}

.logo-3d-wrap {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-3d-wrap::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scan 4s linear infinite;
    opacity: 0.5;
    z-index: 3;
}

@keyframes scan {
    0% {
        top: -20%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 120%;
        opacity: 0;
    }
}

.floating-logo {
    width: 320px;
    filter: drop-shadow(0 0 50px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

/* --- Services --- */
.services {
    padding: 10rem 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 255, 0.02), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.25rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(0, 0, 255, 0.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-dim);
}

/* --- Tech Banner --- */
.tech-banner {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 255, 0.05), transparent);
}

.banner-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 120px;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 255, 0.1);
}

.gif-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.8) contrast(1.2) hue-rotate(5deg);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(5, 5, 5, 0.4));
    display: flex;
    align-items: center;
    padding: 0 3rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 255, 0.3);
    backdrop-filter: blur(5px);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

.status-test {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Gallery Archive --- */
.portfolio-archive {
    padding: 10rem 0;
}

.gallery-category {
    margin-bottom: 8rem;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-header h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary);
    white-space: nowrap;
}

.category-icon {
    margin-right: 0.5rem;
}

.category-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 16 / 10;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(20%);
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}



/* --- Contact --- */
.contact {
    padding: 10rem 0;
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 255, 0.05);
}

.full-width {
    width: 100%;
}

.contact-socials {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.contact-socials p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    color: var(--text-dim);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* --- Footer --- */
footer {
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.footer-logo {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    margin-bottom: 1rem;
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
/* --- Notification Toast --- */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 255, 0.3);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    overflow: hidden;
}

.notification-toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px var(--primary));
}

#toast-message {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: white;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform-origin: left;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.notification-toast.show .toast-progress {
    animation: toastProgress 4s linear forwards;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 100;
        padding-top: 0;
    }

    .nav-links li {
        opacity: 0;
        margin-bottom: 2.5rem;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        cursor: pointer;
        z-index: 101;
    }

    .burger div {
        width: 25px;
        height: 2px;
        background-color: white;
        margin: 6px;
        transition: all 0.3s ease;
    }

    .toggle .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line:nth-child(2) {
        opacity: 0;
    }

    .toggle .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 2.5rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-cta {
        display: none;
    }

    .service-card {
        padding: 2rem;
    }

    .banner-content {
        height: 100px;
    }

    .status-indicator {
        padding: 0.5rem 1rem;
    }

    .status-test {
        font-size: 0.7rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 6rem;
    }
}