.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#home,
#about,
#showcase #contact,
#showcase #contact,
#creative-universe-portfolio,
#insights {
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity .6s ease-in-out, transform .6s ease-in-out;
}

#home.shown,
#about.shown,
#showcase.shown #contact.shown,
#showcase.shown #contact.shown,
#creative-universe-portfolio.shown,
#insights.shown {
    opacity: 1;
    transform: translateY(0);
}

body.loading {
    overflow: hidden !important;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    cursor: none;
    scroll-behavior: smooth;

}


/* scrollbar */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #1b2428;
}

::-webkit-scrollbar-thumb {
    background: #4dd0e1c4;
    border-radius: 3px;
}


::-webkit-scrollbar-thumb:hover {
    background: #00e1ffc4;
    background: #00e1ffc4;
}


header {
    background-color: #1c2833;
    color: white;
    padding: 12px 50px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    z-index: 1001;
    box-sizing: border-box;
    justify-content: space-between;
}

#menu-icon {

    display: flex;
    flex-direction: column;
    height: 2.5rem;
    width: 2.5rem;
    gap: 4.5px;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    padding: 0;
    position: relative;
    z-index: 2000;
}

#menu-icon span {
    width: 22px;
    height: 2.5px;
    background-color: rgb(255, 255, 255);
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.3s ease;
}

#menu-icon:not(.hidden).hover span:nth-child(2) {
    transform: scaleX(0.8);
    transform-origin: right;
}

#menu-icon:not(.hidden).hover span:nth-child(3) {
    transform: scaleX(0.6);
    transform-origin: right;
}

#menu-icon.hover.hidden span {
    background-color: rgb(56, 85, 113);
}

#menu-icon.hidden span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-icon.hidden span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#menu-icon.hidden span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
}

#menu-icon.hidden {
    z-index: 1002;
}

hr {
    border: none;
    height: 2px;
    background-color: #848484;
}

.logo {
    font-weight: bold;
    font-size: 1.35em;
    padding: 0px 45px;
    font-family: 'ClashGrotesk-Light';
    letter-spacing: 1.5px;
}

/* Base Navigation Styling */
nav {
    position: fixed;
    top: 0;
    right: -200%;
    width: 100vw;
    height: 100vh;
    background: #1c2833fd;
    transition: right 0.6s ease-in-out;
    padding: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    /* justify-content: center; */
}

/* Navigation List Styling */
nav ul {
    list-style-type: none;
    padding: 0;
    margin-left: 130px;
    text-align: center;
}

nav ul li {
    margin: 20px 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-family: 'LouizeDisplay', serif;
    font-size: 5em;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0;
    transition: color 0.2s ease-in-out, font-size 0.5s ease, letter-spacing 0.3s ease;
}

nav ul li a:hover {
    color: #00467b;
    letter-spacing: 10px;
    font-size: 7em;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(80, 115, 146);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav.active {
    right: 0;
}

/* Contact Form Lightbox */
.contact-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.contact-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    height: 80vh;
    background-color: #1a2a2d;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 255, 255, 0.1);
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.contact-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #4dd0e1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-close:hover {
    color: #ffffff;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    background-color: #263238;
    border: 1px solid #37474f;
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4dd0e1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 208, 225, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.contact-form button {
    flex: 1;
    background-color: #378c97;
    color: #1a2a2d;
    padding: 12px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.contact-form button:hover {
    background-color: #041b26;
    color: #688694;
}

.contact-form button:active {
    transform: scale(0.98);
}

.contact-form button.clear-btn {
    background-color: #041b26;
    color: #688694;
}

.contact-form button.clear-btn:hover {
    background-color: #378c97;
    color: #1a2a2d;
}

.contact-form h2 {
    color: #4dd0e1;
    margin-bottom: 20px;
    text-align: center;
}

/* Placeholder color */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #78909c;
}

/* Scrollbar styles for webkit browsers */
.contact-lightbox-content::-webkit-scrollbar {
    width: 8px;
}

.contact-lightbox-content::-webkit-scrollbar-track {
    background: #263238;
}

.contact-lightbox-content::-webkit-scrollbar-thumb {
    background-color: #4dd0e1;
    border-radius: 4px;
}

.hero {
    background-image: url('images/studyofdista.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding-left: 100px;
    color: white;
    margin: 0;
}

/*parallax effetc*/
.hero {
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* .hero::before {
    content: url('images/cat.jpeg');  
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;  
    z-index: 0;  
    max-width: 80%;
    max-height: 80%;
} */


@keyframes gentleWiggle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-2deg);
    }

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


.hero h3 {
    font-size: 1.9em;
    margin: 0px;
    width: fit-content;
    display: inline-block;
    font-family: 'New Caledonia';
}

.hero {
    overflow: hidden;
}

.hero h3.wiggling {
    animation: gentleWiggle 0.7s ease-in-out;
}

.hero h1 {
    font-size: 4em;
    margin: 0px;
    font-family: 'Poppins';
}

.hero p {
    font-size: 1.4em;
    margin: 10px;
    margin-right: 240px;
    font-family: 'GT Ultra';
}

.hero .second {
    margin-left: 55px;
}

.name {
    -webkit-text-stroke: 1.2px rgb(255, 255, 255);
    color: transparent;
}

.view-services-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    background-color: #07252a;
    color: white;
    font-size: 0.9em;

    font-family: 'Poppins';

    margin-top: 10px;
    margin-left: 90px;

    border-radius: 50%;
    width: 10rem;
    height: 10rem;
    outline: none;
    box-shadow: none;

}

.view-services-btn .text {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.view-services-btn:hover {
    background-color: #061a1de1;

}

/* .view-services-btn .hover-effect {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #061a1de1;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out;
    pointer-events: none;
} */
section {
    position: relative;
    z-index: 1;
    position: relative;
    z-index: 1;
}

.showcase {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    overflow: hidden;
    z-index: 1;
}

/* .showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.689);  
    z-index: 2;  
    pointer-events: none;  
} */

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.showcase video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    object-fit: cover;
    z-index: 1;
}

.showcase-content,
.showcase-image {
    position: relative;
    z-index: 3;
    z-index: 3;
}

.showcase-content h1 {
    font-size: 2em;
    font-family: 'Poppins';
    margin-top: 5px;
    margin-bottom: 10px;
}

.showcase-content h4 {
    font-size: 0.9em;
    font-family: 'Poppins';
    margin-bottom: 5px;
    color: rgb(67, 110, 96);
}

.showcase-content {
    flex: 1;
    padding-right: 0px;
    text-align: left;
    font-size: 1.1em;
    font-family: 'PlayfairDisplay';
}

.showcase-content p {
    margin-bottom: 20px;
}

.showcase-image {
    flex: 1;
}

.get-in-touch {
    position: relative;
    border: 1.3px solid #1c2833;
    padding: 8px 20px;
    text-decoration: none;
    color: black;
    background-color: #ffffff;
    display: inline-block;
    margin-top: 20px;
    font-family: 'Sans-Serif';
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.get-in-touch .button-text {
    position: relative;
    z-index: 2;
    font-size: 0.9em;
    transition: color 0.3s ease-in-out;
}

.get-in-touch::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    left: 0;
    background-color: #2a3c39;
    transition: right 0.3s ease-in-out;
    z-index: 1;
}

.get-in-touch:hover::before {
    right: 0;
}

.get-in-touch:hover .button-text {
    color: #ffffff;
}

nav ul li a:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid black;
    border-radius: 50%;
    pointer-events: none;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}



.footer-cursor {
    background-color: black;
    border: 2px solid #f5f5f5;
}

.custom-cursor.hidden {
    opacity: 0;
    transform: scale(0.5);
}

.header-cursor {
    background-color: white;
    border: 2px solid black;
}

.hero-cursor {
    background-color: white;
    border: 2px solid black;
    mix-blend-mode: difference;
}

.showcase-cursor {
    background-color: black;
    border: 2px solid white;
}

#creative-universe-portfolio {
    /* Inherit font and background from the section style directly */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
    /* Ensure section behaves like a block element */
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll due to grid */
}

#creative-universe-portfolio .container {
    max-width: 1200px;
    margin: 0 auto;
}

#creative-universe-portfolio .section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #8b92b3 0%, #1e003c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bento Grid Styling - Adjusted for larger tiles */
#creative-universe-portfolio .bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: minmax(200px, auto);
    /* Allows rows to grow with content */
    grid-auto-flow: dense;
    /* Fills in empty spaces with smaller tiles */
}

/* Specific grid layout for larger screens */
@media (min-width: 1024px) {
    #creative-universe-portfolio .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Enforce 4 columns on large screens */
    }
}

#creative-universe-portfolio .bento-tile {
    background: linear-gradient(135deg, #1a1a1a 0%, #000b25 100%);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#creative-universe-portfolio .bento-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

#creative-universe-portfolio .bento-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

#creative-universe-portfolio .bento-tile:hover::before {
    transform: scaleX(1);
}

/* Large Presentation Showcase */
#creative-universe-portfolio .showcase-large {
    grid-column: span 4;
    /* Span 4 columns (full width) */
    grid-row: span 1;
    /* Small height (1 row) */
    min-height: 280px;
    /* Adjusted min-height for small size */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Ensures content pushes to edges */
}

#creative-universe-portfolio .presentation-viewer {
    width: 100%;
    height: 200px;
    /* Keeping this height for image preview */
    background: #000;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    /* For centering slide text */
    align-items: center;
    justify-content: center;
}

#creative-universe-portfolio .slide-preview {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    /* Cover ensures the image fills the area */
    background-repeat: no-repeat;
    display: flex;
    /* For centering slide title text */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    /* Ensure text is readable over image */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    /* Add shadow for text visibility */
}

/* Central overlay controls for presentation viewer */
#creative-universe-portfolio .viewer-overlay-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* Space between buttons */
    background: rgba(0, 0, 0, 0.4);
    /* Semi-transparent overlay */
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 5;
    /* Above slide-preview */
}

#creative-universe-portfolio .presentation-viewer:hover .viewer-overlay-controls {
    opacity: 1;
    /* Show on hover over viewer */
}

#creative-universe-portfolio .play-pause-btn,
#creative-universe-portfolio .nav-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 15px;
    /* Larger hit area */
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#creative-universe-portfolio .play-pause-btn:hover,
#creative-universe-portfolio .nav-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

#creative-universe-portfolio .play-pause-btn svg {
    pointer-events: none;
}

/* Bottom controls for presentation tile */
#creative-universe-portfolio .bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    /* Space from viewer */
}

#creative-universe-portfolio .presentation-details-popup {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 15px;
    max-height: 0;
    /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

#creative-universe-portfolio .presentation-details-popup.active {
    max-height: 150px;
    /* Max height when active */
    padding: 15px;
    opacity: 1;
}

#creative-universe-portfolio .control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#creative-universe-portfolio .control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* My Certifications Tile - Mid-size height with Floating Cards */
#creative-universe-portfolio .certificates-large {
    grid-column: span 3;
    /* Changed to span 3 columns */
    grid-row: span 2;
    /* Mid-size height (1 row) */
    min-height: 350px;
    /* Adjusted min-height for mid-size height */
    display: flex;
    flex-direction: column;
    position: relative;
    /* For absolute positioning of children */
    overflow: hidden;
    /* Hide cards outside boundaries */
    /* Removed transform and box-shadow transitions from here for performance */
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Only border transition */
}

/* Explicitly ensure no transform or box-shadow on hover for this tile */
#creative-universe-portfolio .certificates-large:hover {
    transform: none;
    box-shadow: none;
    border-color: #667eea;
    /* Keep the border color change on hover */
}

/* Ensure the ::before animation is still active */
#creative-universe-portfolio .certificates-large:hover::before {
    transform: scaleX(1);
}


/* Floating Certificate Wrapper */
#creative-universe-portfolio .floating-certificate-wrapper {
    position: absolute;
    width: 350px;
    /* Adjusted width for more landscape certificates */
    height: 250px;
    /* Adjusted height for more landscape certificates */
    transition: transform 0.5s ease-out, z-index 0.3s ease;
    cursor: pointer;
    z-index: 1;
    /* Default z-index */
    /* Initial random positions will be set by JS */
}

#creative-universe-portfolio .floating-certificate-wrapper:hover {
    z-index: 10;
    /* Bring to front on hover */
    /* Animation pause handled by JS for more control */
}

#creative-universe-portfolio .certificate-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    /* Soft gradient for certificates */
    border: 3px solid #fff;
    border-radius: 12px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#creative-universe-portfolio .certificate-card.flipped {
    transform: rotateY(180deg);
}

#creative-universe-portfolio .certificate-front,
#creative-universe-portfolio .certificate-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 9px;
    /* Slightly smaller than parent for border effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Removed padding from front to allow image to fill fully */
    font-size: 0.9rem;
    text-align: center;
    color: #333;
    /* Darker text for readability on lighter background */
}

#creative-universe-portfolio .certificate-front img {
    width: 100%;
    /* Make image fill the entire front */
    height: 100%;
    /* Make image fill the entire front */
    border-radius: 5px;
    /* Apply border radius to image */
    object-fit: cover;
    /* Crop to fill if aspect ratio differs */
    /* Removed margin-bottom */
}

#creative-universe-portfolio .certificate-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    /* Darker gradient for back */
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 15px;
    /* Keep padding for text on back */
}

/* Removed .certificate-title-front and .certificate-issuer styling as they are removed from HTML */

/* Creative Toolkit / Tech Playground */
#creative-universe-portfolio .tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

#creative-universe-portfolio .tool-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

#creative-universe-portfolio .tool-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

#creative-universe-portfolio .tool-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

#creative-universe-portfolio .tool-name {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    /* Ensure long names wrap well */
}

/* Stats Counter / Learning Metrics */
#creative-universe-portfolio .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Can adjust to 2 or 3 based on content density */
    gap: 10px;
    /* Reduced gap for more compactness */
    margin: 15px 0;
    /* Reduced margin */
}

#creative-universe-portfolio .stat-item {
    text-align: center;
    padding: 10px;
    /* Reduced padding */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#creative-universe-portfolio .stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

#creative-universe-portfolio .stat-icon {
    font-size: 1.6rem;
    /* Slightly reduced icon size */
    color: #4ade80;
    /* Consistent highlight color */
    margin-bottom: 3px;
    /* Reduced margin */
}

#creative-universe-portfolio .stat-number {
    font-size: 1.8rem;
    /* Slightly reduced number size */
    font-weight: bold;
    color: #4ade80;
    display: block;
}

#creative-universe-portfolio .stat-label {
    font-size: 0.8rem;
    /* Slightly reduced label size */
    opacity: 0.8;
    margin-top: 3px;
    /* Reduced margin */
}

/* Currently Section */
#creative-universe-portfolio .current-focus {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

#creative-universe-portfolio .focus-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #667eea;
}

#creative-universe-portfolio .focus-content {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* 3D Elements */
#creative-universe-portfolio .floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #96a5e7, #351458);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
    /* Ensure it stays behind content */
}

#creative-universe-portfolio .floating-element:nth-child(1) {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

#creative-universe-portfolio .floating-element:nth-child(2) {
    bottom: 20px;
    left: 20px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* --- STYLES FOR THE "DOOR TO THE VOID" TILE ITSELF (#void-container) --- */
/* These styles are applied directly to the #void-container to avoid conflicts */
#void-container {
    border: 1px solid #333;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 600px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    text-align: center;
    background: #000 !important;
    /* Force pure black background, crucial for the void effect */
    grid-column: span 2 !important;
    /* Force this tile to span 2 columns */
    padding: 0 !important;
    /* Force no padding for the internal canvas to fill */
    /* Ensure general .bento-tile hover effects don't apply, handled by #void-container:hover */
    transform: none !important;
    box-shadow: none !important;
}

/* Hover state for the specific void tile */
#void-container:hover {
    box-shadow: 0 0 40px rgba(187, 134, 252, 0.3), 0 0 15px rgba(255, 255, 255, 0.1) inset;
    border-color: #bb86fc;
}

/* The 3D canvas will live here */
#void-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.5s ease-out;
    pointer-events: none;
    /* Allow clicks to pass through canvas to the link */
    border: none !important;
    /* Removes any default canvas border */
    display: block;
    /* Ensures no whitespace beneath inline canvas */
}

#void-container:hover #void-canvas {
    transform: scale(1.1);
    /* Canvas scales slightly on hover */
}

/* The link wrapper for content */
#void-container .door-link {
    cursor: none !important;
    /* Scoped to #void-container */
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    cursor: none;
    /* Ensure cursor is hidden on the link too */
}

/* Text styling */
#void-container .abyss-text {
    /* Scoped to #void-container */
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    transform-style: preserve-3d;
    /* Needed for smooth 3D transform */
    transition: color 0.8s ease-in-out, text-shadow 0.8s ease-in-out, transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* Text now falls into the void on hover */
#void-container:hover .abyss-text {
    /* Scoped to #void-container */
    opacity: 0;
    transform: translateZ(-120px) scale(0.6);
    /* Move backward and shrink */
}

/* Responsive */
@media (max-width: 1023px) {
        #creative-universe-portfolio .bento-grid {
            grid-template-columns: 1fr; /* Stack all tiles in a single column */
            gap: 15px; /* Slightly reduced gap for mobile compactness */
        }

        /* General adjustments for all bento tiles on mobile */
        #creative-universe-portfolio .bento-tile {
            padding: 20px; /* Slightly less padding on mobile */
            min-height: 200px; /* Default min-height for most tiles (e.g., Tech Playground, Stats) */
            /* Ensure they span 1 column */
            grid-column: span 1 !important;
            grid-row: auto !important; /* Allow rows to size naturally */
        }
        
        /* Specific height for Presentation Studio (showcase-large) */
        #creative-universe-portfolio .showcase-large {
            min-height: 280px; /* Keep it slightly larger for the viewer */
        }

        /* Specific height for My Certifications (certificates-large) - make it taller */
        #creative-universe-portfolio .certificates-large {
            min-height: 500px; /* Increased height for certificates */
        }

       /* Tech Playground internal grid adjustments - FOCUS ON SHRINKING INDIVIDUAL ITEMS */
        #creative-universe-portfolio .tools-grid {
            grid-template-columns: repeat(3, 1fr); /* Keep 3 columns if space allows */
            gap: 8px; /* Reduced gap for more compactness */
        }
        /* --- CRUCIAL CHANGE: Force shrink the individual tool items (Python, React etc.) --- */
        #creative-universe-portfolio .tool-item {
            padding: 8px !important; /* Significantly reduced and forced padding for smaller items */
            min-height: 70px; /* Set a smaller minimum height for tool items */
            font-size: 0.7rem; /* Smaller text for tool names */
        }
        #creative-universe-portfolio .tool-icon {
            font-size: 1.2rem; /* Smaller icons to match reduced padding */
            margin-bottom: 3px; /* Adjust margin */
        }

        /* For very small screens, revert Tech Playground to 2 columns */
        @media (max-width: 480px) {
            #creative-universe-portfolio .tools-grid {
                grid-template-columns: repeat(2, 1fr); /* 2 columns on very small screens */
            }
            #creative-universe-portfolio .tool-item {
                font-size: 0.7rem; /* Smaller text for tool items */
            }
            #creative-universe-portfolio .tool-icon {
                font-size: 1.2rem; /* Smaller icons */
            }
        }


        /* Floating Certificates adjustments for mobile */
        #creative-universe-portfolio .floating-certificate-wrapper {
            width: 160px; /* Smaller certificate cards */
            height: 110px; /* Smaller certificate cards */
        }
        #creative-universe-portfolio .certificate-front img {
            border-radius: 5px; /* Ensure image border radius is applied */
        }
        #creative-universe-portfolio .certificate-back {
            padding: 10px; /* Adjust padding for smaller back content */
            font-size: 0.75rem;
        }
        #creative-universe-portfolio .certificates-large p { /* Adjust bottom text for certificates tile */
            font-size: 0.8rem;
            bottom: 15px; /* Move text up slightly */
        }

        /* Abyss tile responsiveness (ensure it's here and uses !important) */
        #creative-universe-portfolio .door-to-abyss-tile {
            grid-column: span 1 !important; /* Ensure it's single column on mobile */
            max-width: 100%; /* Allow it to take full width on small screens */
            min-height: 220px; /* Maintain its specific min-height */
        }

        /* Adjust font sizes for general text within tiles on mobile if needed */
        #creative-universe-portfolio .bento-tile h3 {
            font-size: 1.1rem;
        }
        #creative-universe-portfolio .bento-tile p {
            font-size: 0.85rem;
        }
    }

.personal-insights {
    background-color: #0a0a2a;
    color: #ffffff;
    padding: 80px 20px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    position: relative;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 0.8;
}

.blink {
    animation: blink 2s infinite ease-in-out;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.3;
    }
}

.rocket {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('images/ship.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease-in-out;
    z-index: 9999;
}


.section-title,
.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5em;
    color: #3498db;
}

.section-subtitle {
    font-size: 2.5em;
    margin-bottom: 60px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.insight-card {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.insight-card i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #3498db;
}

.insight-card h3 {
    margin-bottom: 15px;
    color: #3498db;
}

.quote-container {
    text-align: center;
    font-style: italic;
    font-family: 'PlayfairDisplay-Bold';
    font-size: 1.4em;
    margin: 60px 0;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    border: 2px solid #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quote-author {
    font-family: 'ClashGrotesk';
    padding-left: 500px;
}

.quote-container::before {
    content: '“';
    font-size: 3em;
    color: #3498db;
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.2;
}

.quote-container::after {
    content: '”';
    font-size: 3em;
    color: #3498db;
    position: absolute;
    bottom: 10px;
    right: 25px;
    opacity: 0.2;
}

/* General container for the whole section */
.journey-timeline {
    flex-grow: 1;
    /* Allow it to grow and take available space */
    width: 100%;
    /* Take full width */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    padding-bottom: 1rem;
    /* Space for the mini-map */
    padding-top: 1rem;
    /* Added padding to ensure title visibility */
}

.journey-timeline h3 {
    font-family: 'Orbitron';
    /* More impactful font for titles */
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 3.2em;
    font-weight: 800;
    color: #6ee7b7;
    text-shadow: 0 0 15px rgba(110, 231, 183, 0.7);
    flex-shrink: 0;
}

/* Spaceship window frame - NOW USING IMAGE AS BACKGROUND */
.spaceship-window-frame {
    background-image: url('images/img1.png');
    /* Your spaceship window image */
    background-size: 100% 100%;
    /* Cover the entire element, stretching if needed */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: calc(100% - 1rem);
    /* Fill screen width with small padding */
    height: calc(100vh - 7rem);
    /* Dynamic height, accounting for title and mini-map */
    max-width: 1600px;
    /* Max width for very large screens */
    max-height: 900px;
    /* Max height for very large screens */
    aspect-ratio: 16 / 9;
    /* Maintain aspect ratio of the image */
    margin: 0 auto;
    /* Center horizontally */
    display: flex;
    /* Using flex for inner positioning */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Crucial for containing inner elements */
    border-radius: 2rem;
    /* Keep a slight border-radius for the outer container */
}

/* Inner content area for the actual "viewscreen" */
.inner-viewscreen {
    position: absolute;
    top: 50%;
    /* Center vertically */
    left: 48%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust for centering */
    width: 72%;
    /* Make it larger to fill more of the frame */
    height: 80%;
    /* Make it larger */
    overflow: hidden;
    /* Always hidden to prevent content overflow */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
    /* Clip-path for polygonal shape */
    clip-path: polygon(20% 0%,
            /* Top-left diagonal edge */
            80% 0%,
            /* Top-right diagonal edge */
            100% 20%,
            /* Right-top diagonal */
            100% 80%,
            /* Right-bottom diagonal */
            80% 100%,
            /* Bottom-right diagonal */
            20% 100%,
            /* Bottom-left diagonal */
            0% 80%,
            /* Left-bottom diagonal */
            0% 20%
            /* Left-top diagonal */
        );
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Below HUD grid */
}

/* New Linear Directional Scale */
.linear-scale-bar {
    position: absolute;
    top: 5%;
    /* Adjust as needed, relative to inner-viewscreen */
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    /* Span across the top */
    height: 30px;
    /* Height of the bar */
    background-color: rgba(0, 255, 255, 0.05);
    /* Subtle background */
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    z-index: 3;
    /* Above grid, below navigation buttons */
    pointer-events: none;
    /* Non-interactive */
}

.scale-marker {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #6ee7b7;
    text-shadow: 0 0 5px rgba(110, 231, 183, 0.5);
    position: relative;
    padding-bottom: 5px;
    /* Space for indicator */
}

.scale-marker.middle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background-color: #0ff;
    box-shadow: 0 0 8px #0ff;
}

.scale-indicator {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 15px;
    background-color: #f39c12;
    /* Orange for indicator */
    box-shadow: 0 0 10px #f39c12;
    transition: left 0.5s ease-out;
    /* Smooth movement */
    left: 50%;
    /* Start at 0 degrees */
    transform: translateX(-50%);
}

/* Main HUD Grid Wrapper */
.hud-grid-wrapper {
    position: absolute;
    /* Occupy the full inner-viewscreen area */
    top: 0;
    left: 0;
    width: 104%;
    height: 104%;
    display: grid;
    /* Adjusted grid template to remove the top row for HUD panels */
    grid-template-columns: 0.18fr 1fr 0.18fr;
    /* Sidebars, main content */
    grid-template-rows: 1fr 0.12fr;
    /* Main content row, bottom bar row */
    grid-template-areas:
        "left-sidebar main-content-area right-sidebar"
        ". bottom-bar .";
    /* Bottom bar spans middle column */
    gap: 0.8%;
    pointer-events: none;
    z-index: 2;
    padding-top: 50px;
    /* Add padding to account for the new linear scale bar at the top */
    box-sizing: border-box;
    /* Include padding in height calculation */
}

/* Individual HUD Panel Styling */
.hud-panel {
    background-color: rgba(0, 255, 255, 0.03);
    /* Very subtle transparent background */
    border: 1px solid rgba(0, 255, 255, 0.1);
    /* Thin, glowing border */
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.05);
    /* Subtle glow */
    backdrop-filter: blur(1px);
    /* Very subtle blur for depth */
    position: relative;
    /* For pseudo-elements like scanning lines */
    overflow: hidden;
    /* Important for contained animations */
    pointer-events: auto;
    /* Allow interaction for content within panels */
    top: 1.5rem;
    padding: 0.8rem;

    color: #a7f3d0;
    /* Light green for general text */
    font-size: 0.85rem;
    display: flex;
    /* For internal content alignment */
    flex-direction: column;
}

/* Grid Area Assignments */
/* Removed top-left-corner and top-right-corner from grid areas */
.hud-panel-top-bar {
    grid-area: top-bar;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

.hud-panel-bottom-bar {
    grid-area: bottom-bar;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

.hud-panel-left-sidebar {
    grid-area: left-sidebar;
}

.hud-panel-right-sidebar {
    grid-area: right-sidebar;
}

/* The main content area where planet and text will reside */
.hud-panel-main-content-area {
    grid-area: main-content-area;
    background-color: transparent;
    /* This area primarily holds your content */
    border: none;
    /* No border for the main area */
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    /* To manage planet/text inside */
    justify-content: center;
    align-items: center;
    position: relative;
    /* Crucial for positioning planet/text inside it */
    overflow: hidden;
}

/* Adjust your existing planet and text to be positioned relative to .main-content-area */
.project-content-overlay,
.text-details-container {
    position: absolute;
    /* Now absolute relative to .main-content-area */
}

.project-content-overlay {
    z-index: 2;
    /* Ensure planet is behind text */
    opacity: 0.6;
    /* Increased opacity for more visibility */
    border-radius: 50%;
    /* Make it circular */


    /* Sizing and positioning handled by JS */
    width: 80%;
    /* Default size, will be overridden by JS */
    height: 80%;
    /* Default size, will be overridden by JS */
    bottom: 2%;
    /* Offset from bottom corner */
    left: 2%;
    /* Offset from left corner (or right) */
    transform: none;
    /* No transforms */
}

.text-details-container {
    z-index: 3;
    /* Text details always on top */
    justify-content: flex-start;
    /* Ensure content starts from top */
    padding: 1.5rem;
    /* Consistent padding */
    box-sizing: border-box;
    opacity: 0;
    /* Animated in */
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Essential for scrolling */
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);

    /* Positioning will be handled by JS for precise placement */
    top: 5%;
    /* Position from top edge of main-content-area */
    bottom: 5%;
    /* Position from bottom edge of main-content-area */
    left: auto;
    /* Let JS handle left/right */
    right: auto;
    /* Let JS handle left/right */
    width: auto;
    /* Let flex/absolute positioning handle width */
    height: auto;
    /* Let flex/absolute positioning handle height */
    transform: none;
    /* Remove any transform */
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    /* Allow tags to wrap to next line */
    margin-top: 0.8rem;
    /* Space above tags */
    margin-bottom: 1rem;
    /* Space below tags */
}

/* Styling for the tech stack tags */
.tech-stack span {
    display: inline-block;
    /* Allows padding and margin */
    background-color: rgba(110, 231, 183, 0.15);
    /* Subtle green transparent background */
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    color: #a7f3d0;
    box-shadow: 0 0 5px rgba(110, 231, 183, 0.3);
    /* Subtle glow for tags */
    opacity: 0;
    /* Start invisible for animation */
    transform: translateY(10px);
    /* Start slightly below for animation */
}

/* Styling for project description paragraph */
#projectDescription {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-shadow: 0 0 3px rgba(226, 232, 240, 0.3);
    /* Subtle glow */
}

/* Project Link Button Styling */
.project-link-button {
    background: linear-gradient(145deg, #00BCD4, #0097A7);
    /* Cyan gradient */
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.6);
    /* Cyan glow shadow */
    align-self: flex-start;
    /* Align to start of flex container */
    margin-top: auto;
    /* Pushes button to bottom of text container */
    opacity: 0;
    /* Start invisible for animation */
}

.project-link-button:hover {
    background: linear-gradient(145deg, #005b65, #000707);
    transform: translateY(-2px) scale(1.02);
    /* Slight lift and scale */
    box-shadow: 0 0 15px rgba(0, 121, 136, 0.8);
}

.project-link-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 5px rgba(0, 188, 212, 0.4);
}

/* Example internal panel content styles */
.hud-section-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #6ee7b7;
    /* Bright green */
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(110, 231, 183, 0.5);
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(110, 231, 183, 0.3);
    padding-bottom: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    /* Adjusted font size to prevent clipping */
}

.data-line {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    /* Adjusted font size to prevent clipping */
    padding: 0 0.2rem;
}

.data-value {
    font-weight: 600;
}

.data-value.green {
    color: #6ee7b7;
}

.data-value.blue {
    color: #3498db;
}

.data-value.red {
    color: #f87171;
}

.data-value.yellow {
    color: #fbbf24;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    padding: 0 0.2rem;
    /* Align with data lines */
}

.progress-bar div {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.5), #0ff);
    transition: width 0.5s ease-out;
    /* For animated progress */
}

.log-entry {
    font-size: 0.65rem;
    /* Reduced font size for less distraction */
    color: #e2e8f0;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    padding: 0 0.2rem;
    opacity: 0.8;
    /* Slightly reduced opacity */
}

.log-entry.warning {
    color: #fbbf24;
    text-shadow: 0 0 3px rgba(251, 191, 36, 0.7);
}

.hud-info-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #6ee7b7;
    text-shadow: 0 0 8px rgba(110, 231, 183, 0.7);
}

/* Geometric Details with pseudo-elements */
.hud-panel::before,
.hud-panel::after {
    content: '';
    position: absolute;
    background-color: #0ff;
    /* Cyan glow */
    box-shadow: 0 0 5px #0ff;
    opacity: 0.7;
}

/* Subtle animated scanning line to panels */
.hud-panel-left-sidebar::before,
.hud-panel-right-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    /* Thin line */
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
    animation: scanLine 4s infinite linear;
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(calc(100% + 1px));
    }

    /* Move past the bottom edge */
}

/* Subtle border glow animation */
.hud-panel {
    animation: borderPulse 5s infinite ease-in-out;
}

@keyframes borderPulse {

    0%,
    100% {
        border-color: rgba(0, 255, 255, 0.1);
        box-shadow: 0 0 8px rgba(0, 255, 255, 0.05);
    }

    50% {
        border-color: rgba(0, 255, 255, 0.3);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    }
}

/* Glitch/Flicker effect on specific elements (e.g., .hud-clock) */
.hud-info-text {
    animation: flicker 1s infinite alternate;
}

.hud-section-title {
    animation: flicker 1.4s infinite alternate;
}

.hud-panel-main-content-area .text-details-container h2 {
    text-decoration: underline;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(110, 231, 183, 0.7);
    }

    5%,
    25% {
        opacity: 0.8;
        text-shadow: 0 0 5px rgba(110, 231, 183, 0.5);
    }

    10% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(110, 231, 183, 0.7);
    }

    20% {
        opacity: 0.9;
        text-shadow: 0 0 6px rgba(110, 231, 183, 0.6);
    }

    30% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(110, 231, 183, 0.7);
    }
}

/* Loading indicator styles */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #6ee7b7;
    font-size: 1.5rem;
    font-weight: 600;
    display: none;
}

.loading-indicator.active {
    display: block;
}

/* Navigation Buttons (Inside the frame, at the bottom) */
.navigation-buttons-inside {
    position: absolute;
    bottom: 1.5rem;
    /* Adjusted to fit the image's console area */
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    /* Above text container */
    display: flex;
    gap: 0.6rem;
    /* Reduced gap */
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.6rem;
    /* Reduced padding */
    border-radius: 9999px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    pointer-events: auto;
    /* Ensure buttons are clickable */
}

.nav-button-inside {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    padding: 0.2rem 0.5rem;
    /* Reduced padding */
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.7rem;
    /* Reduced font size */
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button-inside:hover {
    background: linear-gradient(145deg, #2980b9, #3498db);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-button-inside:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-button-inside svg {
    width: 0.8em;
    /* Reduced icon size */
    height: 0.8em;
    fill: currentColor;
}

/* Mini Flight Path Map */
.mini-map-container {
    margin-top: 1rem;
    width: calc(100% - 1rem);
    max-width: 800px;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    position: relative;
    flex-shrink: 0;
    z-index: 5;
}

.mini-map-svg {
    width: 100%;
    height: 35px;
    display: block;
}

.mini-map-line {
    stroke: rgba(52, 152, 219, 0.9);
    stroke-width: 2;
}

.mini-map-node {
    fill: #3498db;
    stroke: #2980b9;
    stroke-width: 1;
}

.mini-map-node.active {
    fill: #a7f3d0;
    stroke: #6ee7b7;
    stroke-width: 3;
    filter: drop-shadow(0 0 2px rgba(167, 243, 208, 0.9));
}

/* Game Container */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Game Info (Score & Timer) */
#game-info {
    position: absolute;
    top: 60px;
    left: 90px;
    color: #ffffff;
    font-size: 20px;
    z-index: 10001;
}

#score-display,
#timer-display {
    margin-bottom: 10px;
}

/* Canvas Styling */
canvas {
    background-color: #001f3f;
    border: 2px solid #ffffff;
}

#gameCanvas {
    width: 90%;
    height: 90%;
    background-color: #002B36;
    border-radius: 15px;
    border: 2px solid white;
}

#closeGame {
    position: absolute;
    top: 5%;
    right: 6%;
    color: white;
    font-size: 50px;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
}

#game-controls {
    position: absolute;
    bottom: 10%;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10001;
}

.control-button {
    width: 60px;
    height: 60px;
    margin: 5px;
    background-color: #007bff;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.control-button:hover {
    background-color: #0056b3;
}

#arrow-controls {
    position: absolute;
    bottom: 10%;
    /* Adjust this value to position the arrows correctly */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    /* Ensure it's above other content */
}

/* Arrow Buttons */
.arrow-button {
    width: 60px;
    /* Adjust size for desktop */
    height: 60px;
    background-color: #03424c;
    /* Darker green-blue */
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
}

.arrow-button:active {
    background-color: #006575;
    /* Slightly darker when pressed */
}

footer {
    background-color: #f5f5f5;
    padding: 40px 0;
    font-family: 'Poppins', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
    position: relative;
}

.footer-section1,
.footer-section2,
.footer-section3 {
    flex: 1;
}

.footer-section1 h2 {
    font-size: 24px;
    margin-bottom: 20px;
    margin-left: 15px;
    letter-spacing: 1.5px;
}

.footer-section2 h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.footer-section2 ul {
    list-style-type: none;
    padding: 0;
}

.footer-section2 ul li {
    margin-bottom: 10px;
}

.footer-section2 ul li a {
    text-decoration: none;
    color: #666;
    font-family: 'Poppins';
    font-size: 0.9em;
    font-weight: 500;
}

.footer-section3 p {
    color: #666;
    margin-bottom: 10px;
    font-family: 'New Caledonia';
    font-weight: 100;
}

.footer-section3 p i {
    font-size: 19px;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-section1 .social a {
    color: black;
    width: 60px;
    height: 60px;
    font-size: 25px;
    display: inline-block;
    line-height: 65px;
    text-align: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-section1 .social a:hover {
    transform: scale(1.2);
    color: #d6d6d6;
    background-color: #313131;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-section1 .copyright {
    font-size: 0.8em;
    font-family: 'Arial';
    padding: 10px;
}

.footer-section1 .social {
    word-spacing: 2px;
}

a:visited,
a:active,
a:hover,
a:focus,
a,
.menu-icon {
    cursor: none;
    color: inherit;
    text-decoration: none;
}

/* Poppins Fonts */
@font-face {
    font-family: 'New Caledonia';
    src: url('fonts/NewCaledoniaLTStdRg.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'GT Ultra';
    src: url('fonts/GTUltraMedian-Regular.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}


@font-face {
    font-family: 'Aptos';
    src: url('fonts/aptos.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins-Bold';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins-Italic';
    src: url('fonts/Poppins-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

/* Playfair Display Fonts */
@font-face {
    font-family: 'Sans-Serif';
    src: url('fonts/Microsoft-Sans-Serif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('fonts/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PlayfairDisplay-Bold';
    src: url('fonts/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


/* Clash Grotesk Fonts */
@font-face {
    font-family: 'ClashGrotesk';
    src: url('fonts/ClashGrotesk-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ClashGrotesk-Bold';
    src: url('fonts/ClashGrotesk-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ClashGrotesk-Light';
    src: url('fonts/ClashGrotesk-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'LouizeDisplay';
    src: url('fonts/LouizeDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TitlingGothic';
    src: url('fonts/TitlingGothic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Responsive Design */
@media (max-width: 767px) {
    ::-webkit-scrollbar {
        width: 7px;
    }

    .logo {
        padding-left: 0px;
    }

    .menu-icon {
        padding-left: 110px;
    }

    nav {
        padding: 5px;
        width: 100vw;
    }

    nav ul {
        gap: 30px;
        margin-left: 60px;
    }

    nav ul li a {
        font-size: 3.5em;
    }

    nav ul li a:hover {
        font-size: 5em;
    }

    .contact-lightbox-content {
        width: 90%;
        height: 85vh;
        padding: 20px;
        max-width: 400px;
    }

    .contact-close {
        top: 20px;
        right: 25px;
        font-size: 28px;
    }

    .contact-form {
        margin-top: 10vh;
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .contact-form textarea {
        min-height: 100px;
    }

    .contact-form button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .button-group {
        gap: 25px;
    }

    .hero {
        padding-left: 20px;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 0.9em;
        margin-right: 5px;
    }

    .showcase {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .showcase-image img {
        padding-top: 10px;
        height: auto;
    }

    .timeline-container {
        width: 100%;
        height: auto;
        height: auto;
        position: relative;
        left: 0;
        left: 0;
    }

    .timeline-line {
        left: 6px;
        width: 4px;
        left: 6px;
        width: 4px;
    }

    .timeline-item {
        width: calc(100% - 20px);
        width: calc(100% - 20px);
        padding: 10px;
        margin: 10px auto;
        position: relative;
        margin: 10px auto;
        position: relative;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        left: 0;
    }

    .timeline-item::after {
        left: -10px;
        left: -10px;
    }

    /* General adjustments for the overall frame on smaller screens */
    .journey-timeline h3 {
        font-size: 2em; /* Smaller title font */
    }

    .spaceship-window-frame {
        width: 98%; /* Make the frame almost full width */
        height: 95vh; /* Increase height to give a grander feel */
        max-width: none; /* Remove max-width constraint to allow it to be larger */
        aspect-ratio: 16 / 9; /* Maintain a rectangular shape to avoid stretching */
        margin: 0.5rem auto; /* Center horizontally and add minimal vertical margin */
        border-radius: 0.8rem; /* Slightly smaller border-radius for mobile */
    }

    .inner-viewscreen {
        width: 98%; /* Expand the inner viewscreen to fill more of the frame */
        height: 98%; /* Expand to fill more of the frame */
    }

    /* HIDE ALL UNWANTED HUD ELEMENTS ON MOBILE */
    .linear-scale-bar,
    .hud-panel-left-sidebar,
    .hud-panel-right-sidebar,
    .hud-panel-bottom-bar {
        display: none; /* Completely hide these distracting HUD elements */
    }

    /* Reconfigure the grid to make the main content area the sole focus */
    .hud-grid-wrapper {
        grid-template-columns: 1fr; /* Force a single column */
        grid-template-rows: 1fr; /* Force a single row */
        grid-template-areas: "main-content-area"; /* Only the main content area occupies the grid */
        padding-top: 0; /* Remove top padding as the linear scale bar is hidden */
        gap: 0; /* Remove any gaps between non-existent grid items */
    }

    /* Ensure the main content area fills its new, larger grid space */
    .hud-panel-main-content-area {
        width: 100%; /* Take full width of its parent (.inner-viewscreen) */
        height: 100%; /* Take full height of its parent (.inner-viewscreen) */
        position: relative; /* Keep relative for internal absolute positioning of planet/text */
    }

    /* Text container (already good, maintaining previous settings) */
    .text-details-container {
        top: 5%;      /* Offset from top */
        bottom: 5%;   /* Offset from bottom */
        left: 5%;     /* Offset from left (making it about 90% width) */
        right: 5%;    /* Offset from right */
        width: auto;  /* Allow left/right to define width */
        height: auto; /* Allow top/bottom to define height */
        margin: 0;    /* Ensure no conflicting margins */
        transform: none; /* Ensure no conflicting transforms */
        
        padding: 1.2rem; /* Consistent internal padding */
        font-size: 0.95rem; /* Good base font size for readability */
        line-height: 1.6; /* Good line spacing */
        box-sizing: border-box; /* Include padding in the element's total width and height */
    }

    #projectTitle {
        font-size: 2em; /* Prominent title size */
        margin-bottom: 0.8rem; /* Space below title */
    }

    #projectDescription {
        font-size: 1rem; /* Clear and readable description text */
        line-height: 1.6;
        margin-bottom: 1.2rem; /* Space below description */
    }

    .tech-stack {
        margin-top: 1rem; /* Space above tags */
        margin-bottom: 1.2rem; /* Space below tags */
    }
    .tech-stack span {
        font-size: 0.85rem; /* Readable tech stack tags */
        padding: 0.25rem 0.7rem; /* Adjust padding */
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Project Link Button Styling - REMOVED margin-top: auto */
    .project-link-button {
        font-size: 1.05rem; /* Maintain a good readable size for the button */
        padding: 0.8rem 2rem; /* Adjust padding for the button */
        border-radius: 0.8rem;
        margin-top: 1.5rem; /* Controlled margin-top to create desired space */
    }

    /* Adjust planet position and size for mobile to be in the bottom center and visible */
    .project-content-overlay {
        width: 60%; /* Medium size for the planet */
        height: 60%;
        bottom: 3%; /* Slightly off the bottom edge */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Adjust for perfect horizontal centering */
        right: auto; /* Reset right property */
        opacity: 0.6; /* Balanced opacity for presence without distraction */
        box-shadow: 0 0 30px rgba(74, 144, 226, 0.8); /* Maintain a good glow */
        /* Ensure the gradient is centered for a horizontally centered planet */
        background: radial-gradient(circle at 50% 70%, #4a90e2, #2e62a4, #1a3a60);
    }

    /* Navigation buttons adjustments for mobile */
    .navigation-buttons-inside {
        bottom: 0.8rem; /* Position closer to the bottom */
        padding: 0.2rem 0.4rem; /* Reduce padding */
        gap: 0.4rem; /* Reduce gap */
    }
    .nav-button-inside {
        padding: 0.15rem 0.4rem; /* Further reduce button padding */
        font-size: 0.6rem; /* Smaller button text */
    }
    .nav-button-inside svg {
        width: 0.7em; /* Smaller icon size */
        height: 0.7em;
    }

    /* Mini map adjustments for mobile */
    .mini-map-container {
        width: 90%; /* Adjust width */
        padding: 0.6rem; /* Reduce padding */
        margin-top: 0.8rem; /* Reduce top margin */
    }
    .mini-map-svg {
        height: 25px; /* Adjust height */
    }

    footer {
        padding: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section1 {
        order: 3;
    }

    .footer-section1 h2 {
        margin-left: 0;
    }

    .footer-section1 .social a {
        height: 60px;
        width: 60px;
    }
}

/* animation scroll*/
[data-aos] {
    transition-duration: 0.5s;
}

/* loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #040115;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .4s ease-in-out, visibility .4s ease-in-out;
}

.loader svg {
    width: 20rem;
}

.loader svg text {
    font-size: 6rem;
    font-family: 'Poppins-Bold', 'Poppins';
    stroke-width: 2;
    letter-spacing: -6px;

}

text.text-body {
    stroke: #e8e5ff;
    color: #040115;
    animation: 3.3s infinite alternate animate;
}

text.text-dot {
    stroke: #e8e5ff;
    fill: #e8e5ff;
    animation: 3.5s alternate infinite animate-dot;
}

@keyframes animate {
    0% {
        fill: transparent;
        stroke: #e8e5ff;
        stroke-width: 3;
        stroke-dashoffset: 25%;
        stroke-dasharray: 0 26%;
    }

    50% {
        fill: transparent;
        stroke: #e8e5ff;
        stroke-width: 3;
    }

    80%,
    100% {
        fill: #e8e5ff;
        stroke: transparent;
        stroke-width: 0;
        stroke-dashoffset: -25%;
        stroke-dasharray: 26% 0;
    }
}

@keyframes animate-dot {

    0%,
    60% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* lenis */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}