:root {
    /* Color Palette */
    --bg-color: #050505;
    --surface-color: rgba(20, 20, 20, 0.6);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    
    /* Neon Accents */
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff00ff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Blobs for Atmosphere */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--neon-cyan);
    top: -100px;
    left: -100px;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--neon-magenta);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Utility Classes */
.glass {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}
.neon-text-small {
    color: var(--neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neon-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}
.neon-heading-small {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}
.logo span {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover {
    color: var(--neon-cyan);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}
.nav-link:hover::after {
    width: 100%;
}

/* Main Layout */
main {
    padding: 0 5%;
}
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.hero-content {
    max-width: 600px;
}
.greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.glitch {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    position: relative;
    margin-bottom: 0.5rem;
}
.subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}
.btn-primary {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 15px rgba(0, 243, 255, 0.1);
}
.btn-primary:hover {
    background: var(--neon-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

.btn-outline.neon-border {
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline.neon-border:hover {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), inset 0 0 10px rgba(255, 0, 255, 0.2);
    color: #fff;
}

/* Hero Graphic & 3D CSS Cube */
.hero-graphic {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.neon-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
    animation: rotate 20s linear infinite;
}
.neon-ring::before {
    content: '';
    position: absolute;
    top: -2px; left: 50%;
    width: 20px; height: 4px;
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.cube-container {
    perspective: 800px;
}
.cube {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 10s infinite linear;
}
.face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--neon-magenta);
    box-shadow: inset 0 0 20px rgba(255, 0, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-magenta);
}
.front  { transform: rotateY(  0deg) translateZ(50px); }
.right  { transform: rotateY( 90deg) translateZ(50px); }
.back   { transform: rotateY(180deg) translateZ(50px); }
.left   { transform: rotateY(-90deg) translateZ(50px); }
.top    { transform: rotateX( 90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotate-cube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* Sections General */
.section-header {
    margin-bottom: 4rem;
    position: relative;
}
.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--neon-cyan);
    margin-top: 10px;
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.5s ease;
}
section:hover .section-header .line {
    width: 120px;
}

/* Expertise Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.skill-card {
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card h3 {
    font-family: var(--font-heading);
    margin: 1rem 0;
    font-size: 1.4rem;
}
.skill-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}
.skill-card .icon {
    font-size: 2.5rem;
}
.hover-glow:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}
.project-card {
    border-radius: 16px;
    overflow: hidden;
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255, 0, 255, 0.15);
}
.img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
}
.view-project {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--neon-cyan);
    border-radius: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease, background 0.3s, box-shadow 0.3s;
}
.project-card:hover .img-wrapper img {
    transform: scale(1.05);
}
.project-card:hover .overlay {
    opacity: 1;
}
.project-card:hover .view-project {
    transform: translateY(0);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}
.project-info {
    margin-top: 1.5rem;
}
.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

/* Contact Section */
.contact {
    align-items: center;
    text-align: center;
}
.contact-card {
    padding: 4rem;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
}
.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.social-btn {
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s;
}

/* Form Styles */
.schedule-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 3rem;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
}
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: all 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}
.schedule-form .btn-primary {
    text-align: center;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Testimonials Carousel */
.testimonials {
    text-align: center;
}
.carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding: 1rem 0;
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.testimonial-card {
    min-width: 100%;
    scroll-snap-align: center;
    padding: 3rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.testimonial-card .quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 700px;
}
.carousel-btn {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-size: 3rem;
    cursor: pointer;
    padding: 0 1rem;
    z-index: 10;
    transition: transform 0.3s, text-shadow 0.3s;
}
.carousel-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
}
.prev-btn { margin-right: -1rem; }
.next-btn { margin-left: -1rem; }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.slide-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    .hero-graphic {
        margin-top: 4rem;
    }
    .glitch {
        font-size: 3.5rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .bio {
        margin: 0 auto 2.5rem;
    }
}
