:root {
    --neon-green: #39FF14;
    --dark-green: #0a1f0a;
    --eerie-green: #1b4d3e;
    --black: #020502;
    --white: #e0f2f1;
    --glass: rgba(27, 77, 62, 0.15);
    --glass-border: rgba(57, 255, 20, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Space+Grotesk:wght@300;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

body.preloader-active {
    overflow: hidden;
    height: 100vh;
}

h1,
h2,
h3,
h4,
.futuristic-font {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Background Galaxy Effect */
#galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0d1a0d 0%, #020502 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.preloader-logo {
    animation: pulseLogo 3s ease-in-out infinite;
    max-width: 80%;
}

@keyframes pulseLogo {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.loader-container {
    width: 300px;
    max-width: 80%;
    height: 40px;
    border: 2px solid var(--neon-green);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    padding: 3px;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.loader-liquid {
    height: 100%;
    width: 0%;
    background: var(--neon-green);
    border-radius: 20px;
    box-shadow: 0 0 20px var(--neon-green);
    position: relative;
    animation: loadProgress 4s linear forwards, liquidAgitate 2s ease-in-out infinite;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes liquidAgitate {

    0%,
    100% {
        transform: scaleY(1) skewX(0deg);
    }

    50% {
        transform: scaleY(1.1) skewX(2deg);
        filter: brightness(1.2);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(2, 5, 2, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 35px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

/* Hero Section */
.hero {
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--neon-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.3));
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #a0c4a0;
}

.hero-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.hero-ufo {
    width: 60px;
    filter: drop-shadow(0 0 10px var(--neon-green));
    animation: floatUFO 3.5s ease-in-out infinite;
}

@keyframes floatUFO {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.liquid-button-container {
    position: relative;
    width: 260px;
    max-width: 100%;
}

.liquid-button {
    width: 100%;
    padding: 18px 30px;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-weight: bold;
    cursor: pointer;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: block;
    text-align: center;
    transition: var(--transition);
}

.button-text {
    position: relative;
    z-index: 3;
    transition: var(--transition);
}

.button-liquid {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-green);
    z-index: 2;
    transition: all 0.85s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    border-radius: 50% 50% 0 0;
    filter: blur(2px);
}

.liquid-button:hover .button-liquid {
    top: 0;
    border-radius: 0;
    animation: liquidAgitate 2.5s ease-in-out infinite;
}

.liquid-button:hover .button-text {
    color: var(--black);
}

.cta-button {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 30px;
}

/* Cards & Sections */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3.5rem;
    color: var(--white);
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--neon-green);
    margin: 15px auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(57, 255, 20, 0.05);
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.1);
}

.card i {
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 2rem;
}

/* UFO Animation */
.ufo {
    position: fixed;
    width: 80px;
    pointer-events: none;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px var(--neon-green));
    z-index: 1;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    border: 1px solid var(--glass-border);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3) brightness(0.7);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 2, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 2.5rem;
    text-align: center;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.15);
    filter: grayscale(0) sepia(1) hue-rotate(90deg) saturate(6) brightness(1.1);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--glass);
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--neon-green);
    transform: translateX(12px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--neon-green);
}

.contact-link {
    font-size: 1.25rem;
    color: var(--white);
    display: block;
    margin-top: 5px;
}

.contact-link:hover {
    color: var(--neon-green);
}

.contact-form {
    background: var(--glass);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--neon-green);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: inherit;
    border-radius: 10px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 2, 0.95);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--black);
    border: 2px solid var(--neon-green);
    border-radius: 35px;
    padding: 4rem 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.3);
    transform: scale(0.7);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 4.5rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    }

    50% {
        text-shadow: 0 0 35px var(--neon-green);
    }
}

/* Responsive Queries */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    header {
        padding: 0.75rem 0;
    }

    section {
        padding: 70px 0;
    }

    .hero h1 {
        margin-bottom: 2rem;
    }

    .contact-item {
        padding: 1.25rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero p {
        margin-bottom: 2.5rem;
    }

    .modal-content {
        padding: 3rem 1.5rem;
    }

    .ufo {
        width: 55px;
    }
}