:root {
    --primary: #6a0dad;
    --primary-light: #9d4edd;
    --primary-dark: #3a0ca3;
    --accent: #ff00ff;
    --accent-glow: rgba(255, 0, 255, 0.5);
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --background: #0f0f1a;
    --transition: all 0.3s ease;
    --glass: rgba(15, 15, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Video Background with Parallax Effect */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    filter: contrast(1.2) saturate(1.2);
}

.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/stars.png');
    opacity: 0.5;
    animation: floatBackground 100s linear infinite;
}

.constellation-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/constellations.png');
    opacity: 0.3;
    animation: floatBackground 150s linear infinite reverse;
    transform: scale(1.2);
}

.nebula-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(106, 13, 173, 0.1) 50%, transparent 100%);
    mix-blend-mode: screen;
    animation: pulseNebula 15s ease-in-out infinite;
}

@keyframes floatBackground {
    from { transform: translate(0, 0); }
    to { transform: translate(-50%, -50%); }
}

@keyframes pulseNebula {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

/* Interactive Cursor - Removed */

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background: rgba(15, 15, 26, 0.95);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-light);
    position: relative;
    animation: textGlow 3s infinite;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px var(--accent-glow);
        color: var(--primary-light);
    }
    50% {
        text-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent);
        color: #ffffff;
    }
    100% {
        text-shadow: 0 0 5px var(--accent-glow);
        color: var(--primary-light);
    }
}

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

.nav-links li {
    margin-left: 2.5rem;
    position: relative;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right, var(--primary), var(--accent));
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--accent);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(106, 13, 173, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--accent-glow);
    position: relative;
    z-index: 1;
}

.hero h1 span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 5px;
    left: 0;
    background-image: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: -1;
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: right;
}

.hero-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-btn:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent);
}

/* Sections */
.section {
    padding: 8rem 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(106, 13, 173, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section h2 {
    font-size: 3rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section h2::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: -10px;
    left: 0;
    background-image: linear-gradient(90deg, var(--primary), var(--accent), transparent);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--primary-light);
    font-weight: 300;
    max-width: 700px;
}

.content {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

.content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    list-style: none;
    margin-bottom: 1rem;
}

.social-icons li {
    margin: 0 0.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.copyright {
    width: 100%;
    margin-top: 2rem;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 6rem 8%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: rgba(15, 15, 26, 0.95);
        backdrop-filter: blur(10px);
        transition: var(--transition);
        padding: 2rem;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .section {
        padding: 4rem 5%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .content {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links, .social-icons {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-light);
    opacity: 0.7;
    transition: var(--transition);
    pointer-events: none;
}

.form-group.focused label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--background);
    padding: 0 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--accent-glow);
}

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.form-group.focused .form-highlight {
    width: 100%;
}

/* Button Styles */
button, 
.btn,
.submit-btn,
.hero-btn,
.project-btn,
.twitch-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button::before, 
.btn::before,
.submit-btn::before,
.hero-btn::before,
.project-btn::before,
.twitch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: -1;
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: right;
}

button:hover::before, 
.btn:hover::before,
.submit-btn:hover::before,
.hero-btn:hover::before,
.project-btn:hover::before,
.twitch-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

button:hover, 
.btn:hover,
.submit-btn:hover,
.hero-btn:hover,
.project-btn:hover,
.twitch-btn:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

button:active, 
.btn:active,
.submit-btn:active,
.hero-btn:active,
.project-btn:active,
.twitch-btn:active {
    transform: translateY(1px);
}

button:disabled,
.btn:disabled,
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

button i, 
.btn i,
.submit-btn i,
.hero-btn i,
.project-btn i,
.twitch-btn i {
    margin-left: 0.5rem;
}

/* Submit Button Specific Styles */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.submit-btn i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Project Button Specific Styles */
.project-btn {
    font-size: 0.8rem;
    padding: 0.6rem 1.5rem;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

/* Twitch Button Specific Styles */
.twitch-btn {
    background: #6441a5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.twitch-btn i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Contact Form Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-method:hover i {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Responsive Form */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* Contact Form Specific Styles */
.contact-form {
    background: rgba(15, 15, 26, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-light);
    opacity: 0.7;
    transition: var(--transition);
    pointer-events: none;
}

.form-group.focused label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--background);
    padding: 0 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--accent-glow);
}

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.form-group.focused .form-highlight {
    width: 100%;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: -1;
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: right;
}

.submit-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.submit-btn:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

.submit-btn i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add a cosmic glow effect to the form on hover */
.contact-form:hover {
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.2);
}

/* Add animation to form elements */
.contact-form .form-group {
    opacity: 0;
    transform: translateY(20px);
    animation: formFadeIn 0.5s forwards;
}

.contact-form .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-form .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-form .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-form .submit-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: formFadeIn 0.5s 0.4s forwards;
}

@keyframes formFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
