:root {
    --accent-color: hsl(23, 90%, 50%);
}


body {
    color: white;
    background-color: #0a0a0a;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Orbitron', sans-serif;
    user-select: none;
    -webkit-user-select: none; /* For Safari */
    -moz-user-select: none; /* For Firefox */
    -ms-user-select: none; /* For older IE */
}


a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}


.php-email-form .error-message {
    display: none;
    background: #df1529;
    color: #ffffff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;

}

.php-email-form .sent-message {
    display: none;
    color: #ffffff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;

}


@keyframes php-email-form-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.scroll-top {
    color: white;
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: -15px;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 44px;

    line-height: 0;
}

.scroll-top:hover {
    color: white;
    background-color: color-mix(in srgb, var(--accent-color), transparent 20%);

}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 15px;
}


h2 {
    color: #00ffe1;
    text-shadow: 0 0 8px #00ffe1, 0 0 16px #0088ff;
    animation: glitch 1s infinite;
}

.resume-item {
    padding: 0 0 60px 60px;
    margin-top: -2px;
    margin-left: 30px;
    border-left: 2px solid var(--accent-color);
    position: relative;
}

.carlsberg::before {
    background: white url('../img/resume-icons/Carlsberg Group.svg');
}

.britvic::before {
    background: white url('../img/resume-icons/Britvic.png');
}

.kcl::before {
    background: white url('../img/resume-icons/kcl.jpeg');
}

.qmul::before {
    background: white url('../img/resume-icons/qmul.jpeg');
}

.resume-item::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 12%;
    left: -35px;
    top: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid var(--accent-color);
}


.portfolio-filters {
    padding: 0;
    margin: 0 auto 20px auto;
    list-style: none;
    text-align: center;
}

.portfolio-filters li {
    color: white;
    cursor: pointer;
    display: inline-block;
    padding: 8px 20px 10px 20px;
    line-height: 1;
    margin: 0 0 5px;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;

}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {

    background-color: var(--accent-color);
}

.php-email-form {
    height: 100%;
}

input, textarea, button {
    width: 100%;
}

input {
    height: 40px;
    margin-bottom: 10px;
}

.php-email-form input[type=text],
.php-email-form input[type=email],
.php-email-form textarea {
    font-size: 14px;
    box-shadow: none;
    border-color: black;
}

.php-email-form input[type=text]:focus,
.php-email-form input[type=email]:focus,
.php-email-form textarea:focus {
    border-color: var(--accent-color);
}


#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    z-index: -1; /* Push it behind text */
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-1px, 1px);
    }
    40% {
        transform: translate(-1px, -1px);
    }
    60% {
        transform: translate(1px, 1px);
    }
    80% {
        transform: translate(1px, -1px);
    }
    100% {
        transform: translate(0);
    }
}

.hero-text-box {
    background: rgba(0, 255, 255, 0.08);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    animation: pulseBorder 4s ease-in-out infinite;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    width: 33%;
    height: 100px;
    min-width: 300px;
    margin: 0 auto;

}

/* Typed Gradient Text */
.hero-text-box p span {

    background: linear-gradient(to right, #00ffe1, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glow Cursor */
.typed-cursor {
    color: #00ffe1;
    animation: blink 0.7s infinite;
}

.hero-text-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 400% 400%;
    z-index: -1;
    animation: borderGlow 6s linear infinite;
    opacity: 0.5;
    filter: blur(2px);
}

/* Animations */
@keyframes pulseBorder {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
        border-color: rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
        border-color: rgba(0, 255, 255, 0.8);
    }
}

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

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-text-box * {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none;
    opacity: 1 !important;
    color: inherit;
}


.col1 {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 25%;
    padding: 1%;
    min-width: 300px;
    margin-bottom: 10px;

}

.col2 {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1 1 25%;
    padding: 1%;
    min-width: 300px;
    margin-bottom: 10px;
}


p {
    color: #ccf;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.animated-divider {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #00ffe1, #8a2be2, #00ffe1);
    background-size: 200% auto;
    border-radius: 2px;
    margin-top: 10px;
    animation: shimmer 3s linear infinite;
    margin-bottom: 10px;
}

.content {
    width: 96%;
    margin: auto;
    padding-top: 2%;

}

.content > div:first-child {
    background: linear-gradient(135deg, #2b1055, #7597de);
    box-shadow: 0 0 15px rgba(117, 151, 222, 0.6);
    border-radius: 20px;
    transition: 0.3s;
}

@keyframes iconPulse {
    0%, 100% {
        text-shadow: 0 0 10px #00ffe1, 0 0 20px #00ffe1;
    }
    50% {
        text-shadow: 0 0 20px #00ffe1, 0 0 40px #00ffe1;
    }
}

.content i {
    font-size: 36px;
    color: #00ffe1;
    text-shadow: 0 0 10px #00ffe1;
    animation: iconPulse 2.5s infinite ease-in-out;
    margin: 1%;

}

.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://www.transparenttextures.com/patterns/circuits.png') repeat,
    radial-gradient(ellipse at top, #0a0a0a 0%, #000 100%);
    background-size: 300px 300px, cover;
    z-index: 1;
}

h3 {
    color: #ccf;
    margin: 1% 0;
}

h4 {
    color: #00ffe1;
    margin: 1% 0;
}


#footer {
    text-align: center;
}

#footer .social-links a {
    background: none;
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

#footer .social-links a:hover {
    color: #00ffe1;
    text-shadow: 0 0 8px #00ffe1;
}

.icon {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.icon svg path {
    fill: #00ffe1;
    opacity: 0.08;
    animation: driftGlow 20s linear infinite;
}

.icon img {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 8px #00ffe1);
}

.php-email-form .form-control {
    background: radial-gradient(
            circle at center,
            rgba(0, 255, 225, 0.1) 0%,
            rgba(0, 0, 0, 0.5) 100%
    );
    border: 1px solid rgba(0, 255, 225, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    /*padding: 20px 16px;*/
    box-shadow: 0 0 8px rgba(0, 255, 225, 0.2),
    inset 0 0 5px rgba(0, 255, 225, 0.1);
    transition: 0.3s;
}

.php-email-form .form-control:focus {
    background: radial-gradient(
            circle at center,
            rgba(0, 255, 225, 0.15) 0%,
            rgba(0, 0, 0, 0.4) 100%
    );
    border-color: #00ffe1;
    box-shadow: 0 0 16px #00ffe1,
    inset 0 0 8px rgba(0, 255, 225, 0.2);
    outline: none;
}

.php-email-form .form-control::placeholder {
    color: rgba(0, 255, 225, 0.4);
}


/* Button */
.futuristic-btn {
    background: transparent;
    color: #00ffe1;
    border: 1px solid #00ffe1;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    padding: 20px 28px;
    border-radius: 20px;
    margin-top: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 255, 225, 0.4);
}

.futuristic-btn:hover {
    background: #00ffe1;
    color: #000;
    box-shadow: 0 0 20px #00ffe1aa;
}

.neon-container {
    position: relative;
    width: 100%;
    overflow: hidden;

}

/* Common styles for both neon lines */
.neon-line {
    position: absolute;
    top: 0;
    width: 0.5%;
    height: 100%;
    animation: glow 2s linear infinite;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    z-index: 999;
}

.neon-line.left {

    left: 0;
    background: linear-gradient(to right,
    rgba(255, 0, 255, 1),
    rgba(0, 255, 255, 0.5),
    rgba(255, 0, 255, 0));

}

.neon-line.right {
    right: 0;
    background: linear-gradient(to left,
    rgba(255, 0, 255, 1),
    rgba(0, 255, 255, 0.5),
    rgba(255, 0, 255, 0));

}

/* Animation to create dynamic glow effect */
@keyframes glow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.col1::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(90deg, #00ffe1, #8a2be2, #00ffe1);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.container {
    width: 90%;
    margin: 0;
}

.pub-item {
    display: none; /* Hide by default */
}

.pub-item.show {
    display: block;
}

.custom-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.custom-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.custom-slide {
    /*min-width: 100%;*/
    /*box-sizing: border-box;*/
    display: none;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap; /* Optional: wrap on small screens */
}

.custom-slide.active {
    display: block;
}

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 10px;
    min-height: 20px;
}

.custom-pagination .dot {
    height: 20px;
    width: 20px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-pagination .dot.active {
    width: 40px;
    border-radius: 999px;
    background-color: var(--accent-color);
}


.reveal-from-bottom {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}

.reveal-from-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}




.hidden {
    display: none !important;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #0f0f1f;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px #00ffff;
    border-radius: 20px;
    padding: 2rem;
    color: #00ffff; /* <- ensure text is visible */
    text-align: center;
    max-width: 90%;
    width: 400px;
    font-family: 'Orbitron', sans-serif; /* Optional: match your futuristic style */
    animation: fadeInUp 0.5s ease;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #ff00ff;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
