@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background:
            linear-gradient(180deg, #0a0a1a 0%, #1a0a2e 50%, #0a0a1a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container a:link, .container a:link:visited {
    text-decoration: none;
    color: #00ffff;
    transition: all 0.3s ease;
}

.container a:link:hover, .container a:link:focus, .container a:link:active {
    text-decoration: underline;
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
    transition: all 0.3s ease;

}

/* Subtle animated gradient background - lowest layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.05) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.05) 0%, transparent 40%);
    animation: backgroundPulse 8s ease-in-out infinite;
    z-index: -4;
}

/* Animated scanline effect - middle layer */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
    );*/
    z-index: -3;
    pointer-events: none;
    /*animation: scanlineScroll 3s linear infinite;*/
}



/* Header Styles */
header {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #b002b0 !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
}

.logo a:link, .logo a:visited {
    color: #b002b0 !important;
    text-decoration: none !important;
}

.logo a:hover, .logo a:link:active {
    color: #ff00ff !important;
    text-decoration: none !important;
}

.logo:hover {
    color: #ff00ff;
    text-shadow: 0 0 20px rgba(255, 0, 255, 1);
    transform: scale(1.05);
    cursor: pointer;
}



/* Define the hide animation */
@keyframes hide-element {
    0% {
        opacity: 0;
        transform: translateY(-20px);

    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation based on scroll position */
.element-to-hide {
    animation: hide-element linear;
    animation-timeline: scroll(root block);
    animation-range: 0 200px; /* Hides between 100px and 200px of scroll */
    transition: all 1s ease;
}

.hidden {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    /* Apply animation based on scroll position */
    .element-to-hide {
        animation: none;
        animation-timeline: none;
        animation-range: 0; /* Hides between 100px and 200px of scroll */
        transform: translateY(0);
        transition: all 1s ease;
    }

    .hidden {
        opacity: 1;
        transform: translateY(0px);
        transition: all 0.3s ease;
    }
}

/* Desktop Navigation */
.nav-menu {
    list-style: none;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.nav-link,.nav-link:visited {
    color: #e0e0e0;
    text-decoration: none !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.6rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff00ff, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.nav-link:hover {
    color: #ff00ff;
    border-color: rgba(255, 0, 255, 0.5);
    background: rgba(255, 0, 255, 0.05);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #00ffff;
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
    text-decoration: none;
}

.nav-link.active::after {
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    transform: scaleX(1);
}

.nav-link.active:hover {
    color: #ff00ff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00ffff;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Main Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 90px;
    position: relative;
    z-index: 1;

    background-position: top center, bottom center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Bio Section */
.bio-section {
    /*
    On lower screensizes the background scanlines
    make a weird affect due to these being transparent
    The below colour is this colour but not transparent:
    background: rgba(20, 15, 40, 0.7);
    */
    background: #121026;
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 300% 100%;
    animation: gradientFlow 24s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.bio-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.bio-image-container {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.bio-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff00ff;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.4);
    transition: all 0.4s ease;
}

.bio-image:hover {
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.6);
    border-color: #00ffff;
    transform: scale(1.05);
}

.bio-social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.bio-social-links a {
    color: #00ffff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    padding: 0.3rem;
}

.bio-social-links a:hover {
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
    transform: translateY(-3px) scale(1.15);
}

.bio-content {
    flex: 1;
}

.bio-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    line-height: 1.2;
}

.bio-content > p {
    color: #ffffff;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Bio Bullet Sections */
.bio-bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.bio-bullet-section {
    background: rgba(10, 10, 30, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bio-bullet-section:hover {
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.2);
    transform: translateY(-3px);
}

.bio-bullet-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #ffff00;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
}

.bio-bullet-section ul {
    list-style: none;
    padding-left: 0;
}

.bio-bullet-section li {
    color: #e0e0e0;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    font-weight: 500;
}

.bio-bullet-section li::before {
    content: "▸";
    color: #ff00ff;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Portfolio Item */
.portfolio-item {

    /*
    On lower screensizes the background scanlines
    make a weird affect due to these being transparent
    The below colour is this colour but not transparent:
    background: rgba(20, 15, 40, 0.7);
    */
    background: #121026;

    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.5);
}

.portfolio-item-wrapper {
    display: flex;
    align-items: center;
    min-height: 350px;
}

.portfolio-item:nth-child(even) .portfolio-item-wrapper {
    flex-direction: row-reverse;
}

.portfolio-item-images {
    flex: 0 0 45%;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
}

.portfolio-item-content {
    flex: 1;
    padding: 2.5rem;
}

.portfolio-item h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.portfolio-item .category {
    color: #ffff00;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
}

.portfolio-item .description {
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 500;
}

.portfolio-item-images img,
.portfolio-item-images iframe,
.portfolio-item-images .innerTag {
    width: 100%;
    border: 1px solid rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.portfolio-item-images img:hover,
.portfolio-item-images iframe:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.6);
}

.portfolio-item-images img {
    object-fit: cover;
}

.portfolio-item-images iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

.portfolio-item.work
{
    /*
On lower screensizes the background scanlines
make a weird affect due to these being transparent
The below colour is this colour but not transparent:
background: rgba(15, 20, 40, 0.7);
*/
    background: #101126;

    border: 1px solid rgba(0, 255, 255, 0.3);
}

.portfolio-item.work:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(255, 255, 0, 0.3);
    border-color: rgba(255, 255, 0, 0.5);
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 1rem;
}

.button-group a {
    flex: 1;
    padding: 0.8rem 1.5rem;
    text-align: center;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ff00ff, #cc00cc);
    color: white !important;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    text-decoration: none !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #cc00cc, #ff00ff) !important;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.7);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.btn-secondary {
    background: transparent;
    color: #00ffff !important;
    border: 1px solid #00ffff !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    text-decoration: none !important;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Footer */
footer {
    top: -10px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    color: #e0e0e0;
    text-align: center;
    padding: 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #00ffff;
    font-size: 1.6rem;
    margin: 0 0.8rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.social-links a:hover {
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
    transform: translateY(-3px) scale(1.2);
}

.constrainedImages
{

    margin-left:20% !important;
    width: 60% !important;

}

/* Ensure to keep this updated with the class container size. */
@media (max-width: 1400px) {

    .constrainedImages
    {
        width: 80% !important;
        margin-left: 10% !important;
    }
}

/* Ensure to keep this updated with the class container size. */
@media (max-width: 1200px) {

    .constrainedImages
    {
        width: 100% !important;
        margin-left: 0% !important;
    }
}

/* Responsive */
@media (max-width: 1300px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 1rem;
        border-top: 1px solid rgba(255, 0, 255, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        margin: 0 auto;
    }

}

/* Responsive */
@media (max-width: 768px) {


    .bio-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-image-container {
        flex: 1;
        width: 100%;
    }

    .bio-content h1 {
        font-size: 2.2rem;
    }

    .portfolio-item-wrapper,
    .portfolio-item:nth-child(even) .portfolio-item-wrapper {
        flex-direction: column;
    }

    .portfolio-item-images {
        flex: 1;
        width: 100%;
        padding: 1rem;
    }

    .portfolio-item-content {
        padding: 1.8rem;
    }

    .button-group {
        flex-direction: column;
    }
}



/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}



/*
Scanline effect.
Credit for this to: https://codepen.io/ynef/pen/yvvyGv
*/

.scanlines {
    overflow: hidden;
    position: relative;
}
.scanlines:before,
.scanlines:after {
    display: block;
    pointer-events: none;
    content: "";
    position: absolute;
}
.scanlines:before {
    width: 100%;
    height: 2px;
    z-index: 2147483649;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.75;
    animation: scanline 6s linear infinite;
}
.scanlines:after {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483648;
    background: linear-gradient(
            to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.3) 51%
    );
    background-size: 100% 4px;
    animation: scanlines 1s steps(60) infinite;
}

/* ANIMATE UNIQUE SCANLINE */
@keyframes scanline {
    0% {
        transform: translate3d(0, 200000%, 0);
    }
}
@keyframes scanlines {
    0% {
        background-position: 0 50%;
    }
}

div.scanlines {
    margin: 0;
    padding: 0;
    position: fixed;
    z-index: -4;
}
div.scanlines .jpg
{
    width: 100vw;
    height: 100vh;
    border: none;
}

/*
    Background other lines
*/

.content-area
{
    top: -10px;
    margin: 0;
    padding: 0;
    background-position: top center, bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    position: relative;

}

.content-area.no-webp
{
    background-image: url("images/layout/lines.png"), url("images/layout/lines2.png");
}

.content-area.webp
{
    background-image: url("images/layout/lines.webp"), url("images/layout/lines2.webp");
}


/*
    This makes the social icons change images without completely breaking.
 */

.icon-hover picture {
    transition: opacity 0.3s ease;
}

.icon-hover {
    width: 35px;
    height: 35px;
}

.icon-hover:hover picture.default {
    opacity: 0;
}

.icon-hover:hover picture.hover {
    opacity: 1;
}

.icon-hover picture.hover {
    opacity: 0;

    position: relative;

    top:-48px;
}