/* Base Styles */
:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-purple: #9d00ff;
    --dark-bg: #0a0a12;
    --darker-bg: #050508;
    --glass-bg: rgba(10, 10, 18, 0.7);
    --text-color: #e0e0e0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(41, 10, 89, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.2) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

/* Neon Text Effect */
.neon-text {
    color: var(--neon-pink);
    text-shadow:
        0 0 5px rgba(255, 0, 255, 0.8),
        0 0 10px rgba(255, 0, 255, 0.5),
        0 0 15px rgba(255, 0, 255, 0.3);
    animation: neon-pulse 2s infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow:
            0 0 5px rgba(255, 0, 255, 0.8),
            0 0 10px rgba(255, 0, 255, 0.5),
            0 0 15px rgba(255, 0, 255, 0.3);
    }
    to {
        text-shadow:
            0 0 10px rgba(255, 0, 255, 0.8),
            0 0 20px rgba(255, 0, 255, 0.5),
            0 0 30px rgba(255, 0, 255, 0.3);
    }
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 18, 0.8), rgba(10, 10, 18, 0.9));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-block {
    margin-top: 3rem;
}

.cta-block p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow:
        0 0 10px rgba(157, 0, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: button-pulse 2s infinite alternate;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 15px rgba(157, 0, 255, 0.7),
        0 0 30px rgba(0, 255, 255, 0.5);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

@keyframes button-pulse {
    from {
        box-shadow:
            0 0 10px rgba(157, 0, 255, 0.5),
            0 0 20px rgba(0, 255, 255, 0.3);
    }
    to {
        box-shadow:
            0 0 15px rgba(157, 0, 255, 0.7),
            0 0 30px rgba(0, 255, 255, 0.5);
    }
}

/* About Section */
.about {
    background-color: var(--darker-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.about__content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 20px;
}

.about__photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    position: relative;
}

.about__photo img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    top: -48px;
}

.about__photo:hover img {
    transform: scale(1.05);
}

.about__photo::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue), var(--neon-pink), var(--neon-purple));
    background-size: 400% 400%;
    z-index: -1;
    animation: gradient-rotate 3s ease infinite;
    opacity: 0.7;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.about__text {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about__text p {
    margin-bottom: 1rem;
}

.about__cta {
    margin-top: 2rem;
    text-align: center;
}

.resume-button {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.resume-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.7);
}

.resume-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.resume-button:hover::before {
    left: 100%;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .about__content {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .about__photo {
        width: 250px;
        height: 250px;
        flex-shrink: 0;
    }

    .about__text {
        flex: 1;
    }

    .about__cta {
        text-align: left;
    }
}

/* Portfolio Section */
.portfolio__gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 2rem;
}

.portfolio-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(1) {
    background-image: url('images/demo1.png');
}

.portfolio-item:nth-child(2) {
    background-image: url('images/demo2.png');
}

.portfolio-item:nth-child(3) {
    background-image: url('images/demo3.png');
}

.portfolio-item:nth-child(4) {
    background-image: url('images/demo4.png');
}

.portfolio-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(10, 10, 18, 0.9), transparent);
    transition: all 0.3s ease;
}

.portfolio-item__overlay span {
    font-family: var(--font-heading);
    color: var(--neon-blue);
    font-size: 1.2rem;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-blue);
}

/* Services Section */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    opacity: 0;
    transition: all 0.3s ease;
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

/* Contact Form Section */
.contact {
    background-color: var(--darker-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--neon-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(10, 10, 18, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.submit-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
            0 0 10px rgba(157, 0, 255, 0.5),
            0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow:
            0 0 15px rgba(157, 0, 255, 0.7),
            0 0 30px rgba(0, 255, 255, 0.5);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.contact-alternative {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
}

.whatsapp-link {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--darker-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .portfolio__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }

    .portfolio__gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card {
        padding: 40px 30px;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content, .about__content, .portfolio__gallery, .services__grid, .contact-form {
    animation: fadeIn 1s ease-out forwards;
}

/* Glitch Effect for Hover */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.section-title:hover {
    animation: glitch 0.5s cubic-bezier(.25, .46, .45, .94) both infinite;
}