:root {
    --bg-color: #0d001a;
    --primary-purple: #8a2be2;
    --secondary-yellow: #fadd00;
    --text-light: #e0e0e0;
    --flame-color: #ff4500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Hide default cursor everywhere */
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* Custom Cursor */
#rocket-cursor {
    position: fixed;
    top: -100px;
    left: -100px;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.rocket-icon {
    font-size: 24px;
    position: relative;
    z-index: 2;
    transform: rotate(-45deg);
}

.flame {
    position: absolute;
    top: 24px;
    left: 10px;
    width: 10px;
    height: 0px;
    /* Changes based on scroll */
    background: linear-gradient(to bottom, var(--secondary-yellow), var(--flame-color), transparent);
    border-radius: 50% 50% 20% 20%;
    opacity: 0.9;
    filter: blur(2px);
    z-index: 1;
    transform-origin: top center;

}

/* Stars Background */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, var(--secondary-yellow), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 160px 120px, var(--primary-purple), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 300px 250px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 200px 300px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 400px 400px;
    animation: stars-move 100s linear infinite;
    opacity: 0.6;
}

@keyframes stars-move {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -5000px 5000px;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(13, 0, 26, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.3));
}

.logo:hover .nav-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--primary-purple));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--secondary-yellow);
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav a:not(.logo) {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

nav a:not(.logo):hover,
nav a.active:not(.logo) {
    color: var(--secondary-yellow);
    border-color: var(--secondary-yellow);
    background: rgba(250, 221, 0, 0.05);
    box-shadow: 0 0 15px rgba(250, 221, 0, 0.3);
    transform: translateY(-3px);
    text-shadow: 0 0 8px var(--secondary-yellow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15), transparent 70%);
}

.hero-logo-container {
    margin-bottom: 2rem;
    animation: logo-float 6s ease-in-out infinite;
}

.hero-logo {
    width: 450px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(138, 43, 226, 0.5));
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: glow-pulse 4s infinite alternate;
}

.highlight {
    color: var(--secondary-yellow);
    text-shadow: 0 0 20px rgba(250, 221, 0, 0.6);
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
    }

    100% {
        text-shadow: 0 0 35px rgba(138, 43, 226, 0.9);
    }
}

p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.6;
    color: #b3b3b3;
}

/* Button */
.launch-btn {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid var(--primary-purple);
    color: var(--text-light);
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    font-family: inherit;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.launch-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.7);
    transform: translateY(-2px);
    border-color: var(--secondary-yellow);
}

.launch-btn .icon {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.5, 0, 0.2, 1);
    font-size: 1.4rem;
}

/* Fly animation classes */
.fly-away {
    animation: blast-off 0.8s forwards ease-in;
}

@keyframes blast-off {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }

    20% {
        transform: translateY(5px) scale(0.9);
    }

    100% {
        transform: translate(300px, -300px) scale(0.5) rotate(45deg);
        opacity: 0;
    }
}

.text-fade {
    opacity: 0;
    transition: opacity 0.3s;
}

/* Services */
.services {
    padding: 7rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(13, 0, 26, 1), transparent);
}

.services h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 320px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 221, 0, 0.05), transparent);
    transition: left 0.6s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
    border-color: var(--secondary-yellow);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.6s ease;
}

/* Interactive elements hover effect for cursor */
/* Cursor logic handled in JS */

/* Custom Notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-notification {
    background: rgba(13, 0, 26, 0.9);
    border-left: 4px solid var(--secondary-yellow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
    max-width: 350px;
    pointer-events: auto;
}

.custom-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-notification.error {
    border-left-color: #ff4d4d;
}

.custom-notification.success {
    border-left-color: #00fa9a;
}

/* Showcase Section */
.showcase-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
    z-index: 10;
}

@media (min-width: 768px) {
    .showcase-container {
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
    }

    .showcase-item {
        margin-bottom: 0;
    }

    /* Asymmetric layout logic */
    .item-1 {
        grid-column: 1 / 8;
        transform: translateY(0);
    }

    .item-2 {
        grid-column: 5 / 13;
        transform: translateY(80px);
        /* mid-right delayed down */
    }

    .item-3 {
        grid-column: 2 / 9;
        transform: translateY(160px);
        /* bottom left delayed down even more */
    }
}

.showcase-link {
    display: block;
    text-decoration: none;
    color: var(--text-light);
    background: rgba(20, 5, 40, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.showcase-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 221, 0, 0.1), transparent);
    transition: left 0.6s;
    z-index: 10;
    pointer-events: none;
}

.showcase-link:hover::before {
    left: 100%;
}

.showcase-link:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-yellow);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.3);
}

.showcase-image {
    height: 250px;
    background-size: cover;
    background-position: top center;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    transition: background-position 2s ease-in-out;
}

.showcase-link:hover .showcase-image {
    background-position: bottom center;
}

.showcase-info {
    padding: 1.5rem;
}

.showcase-info h3 {
    color: var(--secondary-yellow);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.showcase-info p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Page Standard Padding */
.page-content {
    padding-top: 120px;
    padding-bottom: 5rem;
    min-height: 100vh;
}

.showcase-more {
    text-align: center;
    margin-top: 15rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-logo {
        width: 350px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .showcase-more {
        margin-top: 10rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .nav-logo {
        height: 50px;
    }

    /* Show hamburger, hide nav links */
    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    /* Hamburger to X animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 100;
        backdrop-filter: blur(15px);
        background: rgba(13, 0, 26, 0.98);
    }

    nav ul.active {
        left: 0;
    }

    .hero-logo {
        width: 250px;
    }

    h1 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.1rem;
    }

    .launch-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .services h2,
    #about h2,
    #showcase h2,
    #contact h2 {
        font-size: 2.2rem;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }

    .showcase-more {
        margin-top: 5rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding-top: 100px;
    }

    .hero {
        padding-top: 0;
        height: 80vh;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-logo-container {
        margin-bottom: 1rem;
    }

    .hero-logo {
        width: 200px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .showcase-more {
        margin-top: 3rem;
    }
}

/* Centering Utilities */
.centered-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    width: 100%;
    min-height: 70vh;
    /* Give it more room to breathe and center vertically */
    padding: 10rem 5%;
}

.content-width {
    width: 100%;
    max-width: 900px;
    /* Slightly wider for better balance */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
    #rocket-cursor {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}