* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a002e;
    color: #e5e5f7;
}

#first-page-box {
    background: url("../images/background.jpg") center/cover no-repeat #080808;
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    z-index: -1;
}

#preloader {
    background: #000 url("../images/preloader.gif") no-repeat center center;
    background-size: 25%;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: transparent !important;
}

.container {
    padding: 10px 10%;
    min-height: 100vh;
}

.navbar-container {
    padding-left: 0;
}

#seeMoreNav {
    position: absolute;
}

nav {
    display: flex;
    position: fixed;
    top: 0;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    width: 100%;
    min-height: 100px;
}

.logo {
    width: 140px;
    margin-left: 25px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 0 80px; /*To change line spacing between nav elements*/
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: rgb(13, 46, 101);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
    padding: 10px 15%;
}

.header-text p {
    -webkit-text-stroke: 1px #fff;
}

.header-text h3 span {
    text-decoration: wavy;
}

h2 {
    color: whitesmoke;
    font-size: 2rem;
    font-family: "Space Mono", monospace;
    display: inline-block;
}

.glitch {
    color: whitesmoke;
    display: inline-block;
}

/*--------------------------- Split Screen Portfolio Reveal --------------------------*/
.split-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0;
    flex-wrap: wrap;
}

.split-project:nth-child(even) {
    flex-direction: row-reverse;
}

.split-project img {
    width: 45%;
    border-radius: 10px;
}

.split-project .info {
    width: 50%;
    color: #ccc;
}

.split-project .info h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.split-project .info p {
    margin-bottom: 10px;
}

.hero {
    display: flex;
    height: 100vh;
}

.left, .right {
    flex: 1;
    display: flex;
    padding-left: 10rem;
    justify-content: center;
    align-items: center;
}

.left h2 {
    white-space: nowrap;
    font-size: 3rem; /* adjust as needed */
    width: max-content;
}

.right img {
    width: 330px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.right img:hover {
    transform: scale(1.05);
}

/*--------------------------------------about-----------------------------------------*/
#about {
    padding: 80px 0 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#slideshowImage {
    width: 100%;
    border-radius: 15px;
    height: 80vh;
    object-fit: cover;
    opacity: 0;
    top: 0;
    transition: opacity 0s ease-in-out 0s;
    animation: slide 5s infinite;
    transform: scale(1.1);
}

@keyframes zoomInOut {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes slide {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    color: #fff;
    font-weight: bold;
    animation: glitchAnim 1s infinite;
}

@keyframes glitchAnim {
    0% {
        text-shadow: 2px 2px red;
    }
    25% {
        text-shadow: -2px -2px cyan;
    }
    50% {
        text-shadow: 2px -2px magenta;
    }
    75% {
        text-shadow: -2px 2px yellow;
    }
    100% {
        text-shadow: none;
    }
}

.about-col-2 {
    flex-basis: 60%;
    transform: translateY(-20px);
    transition: all 5s ease;
}

.sub-title {
    font-size: 60px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #1C7293;
}

.tab-titles {
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #1B3B6F;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #448be5;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/*------------------services------------------*/

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h2 {
    color: #448be5;
    margin-bottom: 12px;
}

/*------------------portfolio------------------*/
#portfolio {
    padding: 50px 0;
}

#portfolio1 {
    padding-top: 150px;
}

#portfolio1 h1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
    height: 60vh;
}

.layer {
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgb(13, 46, 101));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: rgb(13, 46, 101);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid rgb(13, 46, 101);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover {
    background: rgb(13, 46, 101);
}

/*-------------------------------------------------------Personal----------------------------------------------------*/
.personal-container {
    margin-top: 125px; /* Adjust to match nav min-height */
}

#personal-video {
    padding-top: 2%;
    width: 100%;
    height: 80vh;
    object-fit: cover;
    position: relative;
}

#personal-video h2 {
    text-align: center;
    display: flex;
    justify-content: center;
}

.video-container {
    max-width: 360px;
    max-height: 600px;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 1rem;
    background-color: black;
    left: 10%;
    position: relative;
}

#personal-video blockquote {
    position: absolute;
    top: 15%;
    left: 35%;
    color: #fff;
    font-size: 24px;
    text-align: center;
}

#personal-video .hobby-card {
    position: relative;
    max-width: 60%;
    top: -90%;
    left: 35%;
    text-align: center;
    margin-top: 1%;
}

#slideshowVideos {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or use contain if you want full visibility */
    display: block;
    border-radius: 1rem;
}

/*------------------personal slideshow------------------*/
#photoSlideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#photoSlideshow .hobby-card {
    display: block;
    position: absolute;
    max-width: 60%;
    top: 15%;
    left: 5%;
    text-align: center;
    margin-top: 1%;
}

.hobby-card.spiritual-hobby-card {
    top: 55% !important;
}

.slideshowContainer {
    max-width: 360px;
    max-height: 600px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 1rem;
    left: 70%;
    position: relative;
}

#photoSlideshow h2 {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: absolute;
    right: 60%;
}

#photoSlideshow blockquote {
    position: absolute;
    top: 8%;
    left: 25%;
    color: #02aa00;
    font-size: 24px;
    font-weight: bolder;
    text-align: center;
}

#personalSlideshowImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

/*-------------------------------------hobbies---------------------------------*/
#hobbies {
    position: relative;
    padding: 50px 10% 0 10%;
    color: #e5e5f7;
}

.hobbies h1 {
    color: #9f6bff;
    font-size: 75px;
}

.hobby-grid {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(150px, 0.5fr));
    gap: 24px;
    padding: 0;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-5px);
}

.hobby-card h3 {
    margin-bottom: 10px;
    color: #9f6bff;
}

/*------------------blog---------------------*/
.enter-blog h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a5ec4;
}

.blog-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-post {
    background: #1a1a2e;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    border: 1px solid #333;
}

.blog-post h2 {
    color: #00ffcc;
    margin-bottom: 10px;
}

.blog-post p {
    line-height: 1.6;
}

.blog-post small {
    color: #777;
    display: block;
    margin-top: 10px;
}

/*------------------contact------------------*/
.contact-left {
    flex-basis: 35%;
    padding-top: 100px;
}

.contact-right {
    padding-top: 100px;
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: rgb(13, 46, 101);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    margin-right: 15px;
    color: #ababab;
    font-size: 30px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.5s
}

.social-icons a:hover {
    color: rgb(13, 46, 101);
    transform: translate(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: rgb(13, 46, 101);
}

.contact-right {
    width: 100%;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form textarea {
    height: 200px;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

.copyright i {
    color: rgb(13, 46, 101);
}

#msg {
    color: #61b752;
    margin-top: -40px;
    display: block;
}

/*------------------responsive------------------*/

/*NAVBAR RESPONSIVENESS FIRST*/
@media (max-width: 600px) {
    /* Adjusted for index.html layout */
    body.home #sidemenu.active {
        display: flex !important;
        right: 0;
    }
    body.home #sidemenu li {
        margin: 20px 0;
        list-style: none;
    }
    body.home #sidemenu li a {
        color: white;
        font-size: 18px;
        text-decoration: none;
        right: 35px;
    }
    body.home #sidemenu li a:hover {
        color: #448be5;
    }
    body.home #closeMenu {
        position: absolute;
        top: 25px;
        right: 225px;
        font-size: 24px;
        color: white;
        cursor: pointer;
    }
    body.home #sidemenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }
    body.home #openMenu {
        display: block !important;
        z-index: 200;
        position: absolute !important;
        top: 25px;
        right: 70px;
        color: white;
        font-size: 30px;
    }

    .fa-xmark {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        position: absolute;
        top: 30px;
        right: 30px;
        z-index: 200;
    }
    /* Default for personal.html */
    body.personal #sidemenu.active {
        display: flex !important;
        right: 0;
    }
    body.personal #sidemenu li {
        margin: 20px 0;
        list-style: none;
    }
    body.personal #sidemenu li a {
        color: white;
        font-size: 18px;
        text-decoration: none;
        right: 0;
    }
    body.personal #sidemenu li a:hover {
        color: #448be5;
    }
    body.personal #closeMenu {
        position: absolute;
        top: 25px;
        right: 90px;
        font-size: 24px;
        color: white;
        cursor: pointer;
    }
    body.personal #sidemenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 115px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: opacity(0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }
    body.personal #openMenu {
        display: block !important;
        z-index: 200;
        position: absolute !important;
        top: 25px;
        right: 20px;
        color: white;
        font-size: 30px;
    }
}
@media (min-width: 601px) {
    nav ul {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        width: auto;
        padding: 0;
    }
    .fa-bars, .fa-xmark {
        display: none !important;
    }
}

/* Base styles for desktop (default) */

/* Tablet styles */
@media (max-width: 1024px) {
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }
    .logo {
        width: 100px;
    }
    .header-text h2, .header-text h3 {
        font-size: 1em;
    }
    .container {
        width: 90%;
        padding: 0 10px;
    }

    .hero {
        flex-direction: column;
        align-items: center;
    }

    .right img {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 220px;
        height: auto;
    }

    #about {
        display: flex;
        flex-direction: column;
    }

    .about-col-1 #slideshowImage {
        width: 100%;
        margin-bottom: 75px;
        display: flex;
        flex-direction: column;
        margin-left: 50px;
    }

    .split-project {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        margin-bottom: 24px;
    }
}
@media screen and (max-width: 820px) and (max-height: 1024px){
    body.home #sidemenu.active {
        display: flex !important;
        right: 0;
    }
    body.home #sidemenu li {
        margin: 20px 0;
        list-style: none;
    }
    body.home #sidemenu li a {
        color: white;
        font-size: 18px;
        text-decoration: none;
        right: 35px;
    }
    body.home #sidemenu li a:hover {
        color: #448be5;
    }
    body.home #closeMenu {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 225px;
        font-size: 24px;
        align-items: flex-start;
        color: white;
        cursor: pointer;
    }
    body.home #sidemenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }
    body.home #openMenu {
        display: block !important;
        z-index: 200;
        position: absolute !important;
        top: 25px;
        right: 70px;
        color: white;
        font-size: 30px;
    }

    .fa-xmark {
        display: block;
        z-index: 1001;
    }

}

/* Mobile styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100vw;
        background: #fff;
        display: none;
    }

    nav ul.open {
        display: flex;
    }

    .logo {
        width: 120px;
    }

    .header-text h2, .header-text h3 {
        font-size: 1.2em;
    }

    .right img, .about-col-1 img {
        width: 150px;
        height: auto;
    }

    .services-list, .split-project {
        flex-direction: column;
        align-items: center;
    }

    .service-card, .split-project {
        width: 100%;
    }

    .contact-left, .contact-right {
        width: 100%;
        margin-bottom: 20px;
    }

    .row {
        flex-direction: column;
    }

    .btn, .btn2 {
        width: 100%;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .header-text h2, .header-text h3, .glitch {
        right: 100px;
        top: 25px;
        display: block;
        position: relative;
        font-size: 0.65em;
    }
    .sub-title{
        font-size: 1.5em;
    }
    .right img, .about-col-1 img {
        width: 100px;
    }

    .service-card, .split-project {
        padding: 10px;
    }

    .btn, .btn2 {
        font-size: 1em;
        padding: 10px 0;
    }
}

/*----------------------------------------------Media for personal.html-----------------------------------------------*/
/* Tablet and below: stack and align everything cleanly */
@media screen and (max-width: 1024px) {
    .personal-container{
        padding: 1rem;
        width: 100%;
        max-width: none;
    }
    #personal-video {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 2rem 1rem;
        position: relative;
    }
    .video-quote {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: auto;
    }

    #personal-video .hobby-card,
    #photoSlideshow .hobby-card {
        position: static !important;
        width: 100% !important;
        margin: 20px auto !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        display: block;
    }


    .video-container, .slideshowContainer {
        width: 100%;
        max-width: 90%;
        height: auto;
        aspect-ratio: 9/16;
        left: 0 !important;
        position: relative !important;
        margin: auto;
    }

    #photoSlideshow h2, #personal-video h2, #photoSlideshow blockquote, #personal-video blockquote {
        position: static !important;
        text-align: center;
        margin: 1rem auto;
        font-size: 18px;
    }

    #photoSlideshow, #personal-video {

        display: flex;
        flex-direction: column;
        padding: 1rem;
        margin: auto;
    }

    .hobby-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .hobby-card {
        padding: 16px;
        font-size: 15px;
    }
    #photoSlideshow blockquote {
        position: static !important;
        width: 85%;
        max-width: 600px;
        margin: 20rem auto 1rem auto;
        text-align: center;
        font-size: 1.3rem;
        line-height: 1.5;
        padding: 1rem;
        border-radius: 0.5rem;
    }

    #personal-video blockquote {
        position: static !important;
        width: 85%;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 1rem;
        border-radius: 0.5rem;
    }
    .enter-blog h1 {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    #personal-video, #photoSlideshow, #hobbies {
        display: block;
        height: auto;
        width: 100%;
        padding: 20px 0;
    }

    .video-container {
        display: block;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    .video-container video {
        width: 100%;
        height: auto;
        display: block;
    }

    .hobby-card {
        display: block;
        width: 90%;
        margin: 20px auto;
    }

    #photoSlideshow .hobby-card {
        display: block;
        position: absolute;
        max-width: 100%;
        top: 15%;
        left: 5%;
        text-align: center;
        margin-top: 1%;
    }

    #personal-video .hobby-card {
        position: relative;
        max-width: 100%;
        top: -90%;
        left: 35%;
        text-align: center;
        margin-top: 1%;
    }

    #personal-video blockquote, #photoSlideshow blockquote {
        width: 90%;
        margin: 0;
        text-align: center;
    }
}

/* Extra small: optionally hide video/slideshow for space */
@media screen and (max-width: 480px) {
    #personal-video,
    #photoSlideshow {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /*.video-container,*/
    .slideshowContainer {
        display: none;
    }

    #personal-video blockquote,
    #photoSlideshow blockquote {
        font-size: 14px;
        text-align: center;
        margin: 0;
    }

    .hobby-card {
        width: 100%;
        font-size: 13px;
        padding: 10px;
        margin-bottom: 20px;
    }
}
