/* --- General  CSS Styling  --- */
:root {
    --background-main: #05070a;     /* Primary Background color [Dark Background] */
    --background-light: #22345d;    /* Secondary Background color [Navy Blue] */
    --background-dull: #1a1a1a;    /* Dull Background color [Ash Blue] */
    --other-color: #5c5c8a;         /* BackUp Color (Old Header) */
    --code-green: #00ff41;          /* Classic Terminal Green */
    --primary-color: #6d5dfc;       /* Main Headers, [Bright Pink]*/
    --primary-cyan: #00f2ff;
    --secondary-color: #ff4d4d;     /* Secondary heders [Blood Red] */
    
    --text-dip: #888;           /* Regulare  Dull-Ashe Text*/     
    --text-norm: #b3bdcc;           /* Regulare  Mild-Ashe Paragraph Text*/     
    --text-white: #ffff;          /* Bright White Paragraph Text [Bright White]*/
    
    --glass: rgba(255, 255, 255, 0.01);        /* Transparent Glass Effect */
    --opaque: rgba(255, 255, 255, 0.05);       /* Opaque Glass Effect */
    --glass-border: rgba(168, 255, 158, 0.2);  /* Glass Border Effect */
    
    --font-family: 'Orbitron', sans-serif; /* Futuristic font */

    --transition: all 0.4s cubic-bezier(2.165, 3.84, 3.44, 1); 
}
            
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-norm);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}
 
/* --- Default / Category / Header / Footer Background --- */
body, 
header, 
footer, 
#category {
    background-color: var(--background-main);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
}

/* --- Pillar 01: ML & Python (Digital Blue/Cyan) --- */
#pillar01 {
    margin: -150px 0 -50px 0; 
    padding: 300px 0 50px 0; 
    background: linear-gradient(135deg, #05070a 0%, #001a1d 100%);
    border-left: 4px solid #00f2ff;
}

/* --- Pillar 02: Robotics (Industrial Purple) --- */
#pillar02 {
    margin: -150px 0 -50px 0; 
    padding: 300px 0 50px 0;
    background: linear-gradient(135deg, #05070a 0%, #120b1e 100%);
    border-left: 4px solid #6d5dfc;
}

/* --- Pillar 03: Power Engineering (High-Voltage Amber/Orange) --- */
#pillar03 {
    margin: -150px 0 -50px 0; 
    padding: 300px 0 50px 0; 
    background: linear-gradient(135deg, #05070a 0%, #1e1405 100%);
    border-left: 4px solid #ff9d00;
}

/* --- Pillar 04: Security (Tactical Deep Green) --- */
#pillar04 {
    margin: -150px 0 -50px 0; 
    padding: 300px 0 50px 0;
    background: linear-gradient(135deg, #05070a 0%, #081a0e 100%);
    border-left: 4px solid #00ff80;
}

/* --- Pillar 05: Management (Corporate Slate/Steel) --- */
#pillar05 {
    margin: -150px 0 -50px 0; 
    padding: 300px 0 50px 0;
    background: linear-gradient(135deg, #05070a 0%, #111827 100%);
    border-left: 4px solid #94a3b8;
}

/* --- Pillar 06: Specialized Skills (Artistic Deep Red/Crimson) --- */
#pillar06 {
    margin: -150px 0 -50px 0; 
    padding: 300px 0 50px 0;
    background: linear-gradient(135deg, #05070a 0%, #1a0505 100%);
    border-left: 4px solid #ff4d4d;
}

/* --- Trove Detail Sections (Neutral Dark) --- */
.page-section {
    margin-bottom: -50px;
    padding: 300px 0 50px 0;
    background-color: var(--deep-space);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(112, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        url('https://www.transparenttextures.com/patterns/stardust.png');
    color: var(--text-bright);
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Global Section Smoothness --- */
.page-section {
    transition: background 0.8s ease-in-out;
    min-height: 100vh;
    padding-bottom: 100px; /* Space so content doesn't hit footer */
}

/* --- NAVIGATION --- */
header {
    padding: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(3px);
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    top: 1px;
    max-height:125px;
    position: fixed;    
}
.HOD{
    white-space: nowrap;
    justify-content: left; /* Centers the whole group horizontally */
    align-items: left !important;
    display: flex;
    flex-direction: column;
    float: left;
    width: auto;
}

.logotext{
    font-family:'Raphtalia', 'Orbitron', 'Syncopate', sans-serif;
    font-size: 2.5rem;
    font-size: clamp(2.2rem, 4vw, 4.5rem); /* 2. Shrink to fit */
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    flex-direction: column;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    align-items: center;
    white-space: nowrap;
    margin-left: -200px;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #fff, var(--primary-cyan), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logotext:hover {
    font-family:'Raphtalia', 'Syncopate', sans-serif;
    font-size: 2.5rem;
    font-size: clamp(2.2rem, 4vw, 4.5rem); /* 2. Shrink to fit */
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 100px 100px 100px rgba(148, 77, 255, 0.1);
    text-align: center;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #fff, var(--primary-cyan), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/*---- LOGO ANIMATION ---*/

.logo {
    perspective: 1200px; /* Maintains the 3D depth for the rotation */
}
#logo{
    max-width:160px; 
    height:70px; 
    position: fixed; 
    display: flex; 
    margin: 140px 0 0 50px;
    z-index: -10;
}

:root {
    /* --- EDIT THESE VALUES TO VARY SPEED AND SIZE --- */
    --anim-speed: 30s;        /* Total time for one full loop */
    --max-scale: 1.0;        /* Final zoom size (1 = 100%, 2 = 200%) */
    --image-width: 250px;    /* Base width of my image */
    --bg-color: rgba(255, 255, 255, 0.5);     /* Background color */
}
.logo-anima {
    max-width: var(--image-width);
    height: auto;
    display: block;
    
    /* Clean image - no decorations */
    outline: none;
    border: none;

    /* Link to the keyframe sequence */
    animation: forraSequence var(--anim-speed) cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes forraSequence {
    /* 1. Grow from 0 to 50% of the base size */
    0% {
        transform: scale(0) rotateY(0deg);
        opacity: 0;
    }
    20% {
        transform: scale(0.5) rotateY(0deg);
        opacity: 1;
    }

    /* 2. Pause at 50% scale */
    30% {
        transform: scale(0.5) rotateY(0deg);
    }

    /* 3. Rotate 5 full turns (1800deg) on the N-S axis */
    70% {
        transform: scale(0.5) rotateY(1800deg);
    }

    /* 4. Resume Zooming to the max-scale value */
    90% {
        transform: scale(var(--max-scale)) rotateY(1800deg);
        opacity: 1;
    }

    /* 5. End of cycle / Reset */
    100% {
        transform: scale(var(--max-scale)) rotateY(1800deg);
        opacity: 0;
    }
}


/* --- NAVIGATION STYLES (Default: Large Screen) --- */
#main-nav ul {
    list-style: none;
    display: flex; /* Display items side-by-side */
    /* Added margin-right to pull ul away from lang selector */
    margin-right: 20px; 
}

#main-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 15px 20px;
    display: block;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
    font-weight: 700;
}

#main-nav ul li a:hover {
    color: var(--background-main);
    background-color: var(--primary-color);
    position: relative;
}

/* --- HAMBURGER MENU STYLES --- */
.hamburger {
    display: none; /* Hidden by default on large screens */
    cursor: pointer;
    padding: 10px;
    z-index: 100; /* Ensure it's above other content */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- MEDIA QUERY: SMALL SCREEN (Mobile View) --- */
/* Mobile-First Navigation Toggle (Small Screen) */
@media (max-width: 768px) {
    /* 1. Show the Hamburger Icon */
    .hamburger {
        display: block;
    }

    /* 2. Hide the regular navigation links */
    #main-nav {
        position: absolute;
        top: 100px; /* Position below the header/logo */
        left: 0;
        width: 100%;
        background-color: var(--opaqueXX); /* Background for the dropdown */
        max-height: 0; /* Start hidden */
        overflow: hidden; /* Hide overflow content */
        transition: max-height 0.3s ease-in-out;
        z-index: 50; /* Lower z-index than the language dropdown */
    }

    /* 3. Stack links vertically when displayed */
    #main-nav ul {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
        margin-right: 0;
    }

    #main-nav ul li a {
        padding: 10px;
        border-bottom: 1px solid var(--glass-border);        
        white-space: nowrap;
    }

    /* 4. Class added by JavaScript to display the menu */
    #main-nav.active {
        top: 120px;
        max-height: 500px; /* Arbitrarily large enough value to show all links */
        backdrop-filter: blur(10px);
        background: var(--background-dull); 
    }

    /* 5. Hamburger Icon Animation (The "X" or "bar-collapse" effect) */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* Hide the middle bar */
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg); /* Top bar rotates */
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); /* Bottom bar rotates */
    }
}

/* --- DYNAMIC VIEWPORT (Only this scrolls) --- */
    #viewport {
        flex-grow: 1;
        overflow-y: auto;
        scroll-behavior: smooth;
        padding-top: 20px;
    }

    .page-section {
        display: none;
        padding: 20px 5%;
        min-height: 80vh; /* Ensures footer isn't immediately visible on short pages */
        animation: slideUp 0.4s ease-out;
    }

    .page-section.active { display: block; }

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

/* --- MODERN RESPONSIVE FOOTER --- */
footer {
    margin-top: 50px;
    padding: 40px 5%;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);    
}

.foot-left { flex: 1; display: flex; justify-content: flex-start; }
.foot-center { flex: 2;  text-align: center; font-size: clamp(0.7rem, 2vw, 0.9rem); color: #94a3b8; }
.foot-right { flex: 1; display: flex; justify-content: flex-end; gap: 15px; }
.foot-logo { width: 60px; height: 60px; border-radius: 12px; transition: 0.3s; animation: blink 3s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.foot-logo:hover { transform: rotate(10deg); filter: brightness(1.2); }
.foot-icon { font-size: 1.5rem; color: var(--primary-cyan); transition: 0.3s; text-decoration: none; }

.foot-icon:hover { color: #fff; transform: scale(1.2); }

@media (max-width: 768px) {
    footer { flex-direction: column; text-align: center; }
    .foot-right, .foot-left { justify-content: center; }
}

/*--- The Back to top  ----*/
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-cyan); /* Secondary color from my portfolio */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#backToTop:hover {
    background-color: var(--secondary-color);
}

/*----------------------------------------------------------------*/
/*                        PROJECTS: CATEGORY                      */
/*----------------------------------------------------------------*/

section {
    margin-top: 140px;
    color: var(--primary-color);
}

/* Defining */

.sectionID{
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--secondary-color);
}


.intro {
    height: auto;
    padding: 5px 30px 0px 30px;
    margin: 20px 5px -10px 5px;
    letter-spacing: 1px;
}

.intro p{
    font-size: 1.3rem;
    text-align: justify;
    color: var(--text-norm);
    font-family: 'Times New Roman';
    margin-top:20px;
}

.intro a{
    font-size: 1.3rem;
    text-decoration: none; 
    font-style: oblique;
    text-align: justify;
    color: var(--primary-color);
    font-family: 'Times New Roman';
}
.intro a:hover{
    font-size: 1.3rem;
    color: var(--primary-cyan);
    font-style: italic;
    text-align: justify;
    cursor: pointer;
    font-family: 'Times New Roman';
}
.intro b{
    font-size: 1.3rem;
    text-align: justify;
    color: var(--text-norm);
    font-family: 'Times New Roman';
}
.intro i{
    text-align: justify;
    color: var(--text-norm);
    font-style: italic;
    font-family: 'Times New Roman';
}
.intro ul, .intro ul il, .intro ol, .intro ul il{
    font-size: 1.2rem;
    margin: 5px 0px 5px 50px; 
    text-align: justify;
    color: #94a3b8;
    font-family: 'Times New Roman';
}

.intro h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.9rem;
    color: var(--secondary-color);
    margin-top:5px;
}
.intro h3{
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.7rem;
    text-align: center;
    color: var(--primary-color);
    margin-top:5px;
}
.intro h4{
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    text-align: left;
    color: var(--primary-cyan);
    margin-top:15px;
}
.intro h5{
    font-family: 'Exo 2', sans-serif; 
    font-size: 1.3rem;
    text-align: left;
    color: var(--primary-cyan);
    margin-top:15px;
}
.intro h6{
    font-family: 'Exo 2', sans-serif; 
    font-size: 1.3rem;
    text-align: left;
    color: var(--text-white);
    margin-top:15px;
}

.category: p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: yellowgreen;
    max-width: 700px;
}

/* --- FONT SHOWCASE GRID --- */
.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary-cyan);
}

.font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 1%;
}

.font-card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 20px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.font-card:hover::before {
    width: 800px;
    height: 800px;
}

.font-card:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 255, 0.02);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.font-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    top: 50%;
    left: 50%;
    width: 0px;
    height: 0px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 25px;
    transition: var(--transition);
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(168, 255, 158, 0.6));
    display: grid;
    align-items: center;
}


.font-card:hover .icon-box {
    filter: drop-shadow(0 0 15px var(--primary-cyan));
    transform: scale(1.1);
}

.card-label {
    font-size: 0.8rem;
    color: var(--accent-purple);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

/* --- INDIVIDUAL FONT STYLES --- */

.f-exo { font-family: 'Exo 2', sans-serif; font-size: 1.3rem; margin-bottom: 10px; text-align: center;}
.f-orbitron { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; margin-bottom: 23px; text-align: center; }
.f-rajdhani { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; margin-bottom: 10px; text-align: center; }
.f-syncopate { font-family: 'Syncopate', sans-serif; font-size: 1.05rem; margin-bottom: 10px; text-align: center; }
.f-impact { font-family: 'Impact', sans-serif; font-size: 1.7rem; margin-bottom: 10px; text-align: center; }
.f-raphtalia { font-family: 'Raphtalia', sans-serif; font-size: 1.8rem; margin-bottom: 10px; text-align: center; }

.preview-text {
    color: var(--text-norm);
    font-size: 0.9rem;
    text-align: center;
}

/*----------------------------------------------------------------*/
/*                PROJECTS: CATEGORY > TROVE                     */
/*----------------------------------------------------------------*/

/* Container to align the three groups side-by-side */
.navigation-group {
    display: flex;
    justify-content: center; /* Centers the whole group horizontally */
    gap: 50px;              /* Space between the three items */
    padding: 40px;
    text-align: center;
}

/* Individual item styling */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centers image and text horizontally */
    text-decoration: none;  /* Removes underline if used as links */
    color: white;           /* Matches portfolio theme */
    transition: transform 0.3s;
}

.nav-item:hover {
    transform: translateY(-5px);
    color: #00bcd4; /* Primary color from my portfolio */
}

.nav-item img {
    width: 50px;   /* Adjust size as needed */
    height: auto;
    margin-bottom: 1px;
}

.nav-item span {
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 0.9em;
}

.introLink {
    text-decoration: none;  /* Removes underline if used as links */
    transition: transform 0.3s;
    font-style: italic;
}

.introLink:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
    cursor: pointer;
    
}

/*-- GLASS BODY --*/

#carrier {
    margin: auto;
    padding: 20px;
    align-items: center;
}
#carrier h1{
    font-family:'Space+Grotesk', sans-serif;font-size: 1.5rem;
    font-size: clamp(1.0rem, 4vw, 1.5rem); /* 2. Shrink to fit */
    font-weight: 500;
    color: var(--accent-purple);
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    flex-direction: column;
    align-items: center;
}

/* 1. The Container - Defining the Box */
.pillarGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the boxes on the screen */
    gap: 20px;
    margin-top: 20px;
    padding: 20px 0;
}


.hidden-light {
    position: relative;
    width: 350px; /* Adjust based on troveDP dimensions */
    height: 300px;
    background: #05070a;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease;
    z-index: 1;
}

/* 2. The "Thick Gas" Layer (The Background Effect) */
.hidden-light::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Dense, cloudy gradient */
    background: radial-gradient(circle at center, 
        rgba(0, 242, 255, 0.6) 0%, 
        rgba(109, 93, 252, 0.4) 30%, 
        rgba(5, 7, 10, 1) 70%);
    
    /* The "Cloudy" Secret: Heavy Blur */
    filter: blur(40px);
    opacity: 0; /* Hidden until hover */
    z-index: -1;
    
    /* Color changing animation */
    animation: gasCloudShift 2s infinite linear;
    transition: opacity 0.6s ease;
}

/* 3. Hover State: Make the Gas fill the box */
.hidden-light:hover::before {
    opacity: 1;
}

.hidden-light:hover {
    border-color: rgba(0, 242, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

/* 4. Color Shifting Animation Engine */
@keyframes gasCloudShift {
    0% { filter: hue-rotate(0deg) blur(40px); transform: rotate(0deg); }
    100% { filter: hue-rotate(360deg) blur(60px); transform: rotate(360deg); }
}

/* 5. Ensuring Image & Text Stay Visible (High Contrast) */
.troveDP {
    width: 310px;
    height: 200px;
    border-radius: 10px;
    position: relative;
    z-index: 2; /* Sits above the gas */
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
}

.hidden-light p, .hidden-light span {
    position: relative;
    z-index: 2;
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 5px #000; /* Shadow ensures legibility against the gas */
}

/*----------------------------------------------------------------------*/
/*--------------------- PROJECTS: CATEGORY > TROVE  --------------------*/
/*----------------------------------------------------------------------*/

#pillar01, #pillar02, #pillar03, #pillar04, #pillar05, #pillar06,{
    background: var(--bg-dark);
    background-attachment: fixed;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(168, 255, 158, 0.08) 0%, transparent 80%),
        url('https://www.transparenttextures.com/patterns/stardust.png');
    background-size: cover;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/*  Table Configuration */

table {
    border-collapse: collapse;
    max-width: 100%;
    margin: 10px;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 20px;
    flex-direction: column;
    line-height: 2;
    cursor: pointer;
    user-select: none;
}

th {
  border: 1px solid var(--background-light);
  text-align: left;
  padding: 12px;
  color: var(--primary-cyan);
}td{
  border: 1px solid var(--background-light);
  text-align: left;
  padding: 10px;
}

tr:nth-child(even) {
  background-color: var(--opaque);
}

/*  Trove ID Image */
.trovePix {
    margin: 0 auto; 
    max-width: 800px;
    min-width: 200px;
    max-height: 500px;
    min-height: 200px;
    background: #1c1f2b;
    text-align: center;
    border-radius: 10px;
    position: relative; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.trovePix img{
    width: 100%;
    height: 100%;
    max-height: 400px;
    text-align: center;
    border-radius: 10px;
}

/* To Animate the Trove ID Image */
.trovePix::after, .trovePix::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: conic-gradient(from var(--angle),transparent 1%, 
        #1c1f2b,#1c1f2b,#1c1f2b,#1c1f2b,#1c1f2b, 
        #ffff,#ffff,#ffff,#ffff,#ffff,
        #1c1f2b,#1c1f2b,#1c1f2b,#1c1f2b,#1c1f2b, 
        #ffff,#ffff,#ffff,#ffff,#ffff,#1c1f2b);
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 5px;
    border-radius: 10px;
    animation: 20s spin linear infinite;
}

.trovePix::before {
    filter: blur(1.5rem);
    opacity: 0.5;
}
@keyframes spin{
    from{
        --angle: 0deg;
    }
    to{
        --angle: 360deg;
    }
}
@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
/*----- Sentinel Dashboard Theme For The Web Crawler Display -------*/

.devOps{
    max-height: 740px;
    padding: 25px;
    margin: 20px 0 20px 0;
    border-radius: 12px; 
    border: 2px solid var(--glass-border);
    box-shadow: 0 4px 6px var(--opaque); 
    font-family:  'Courier New', monospace;
    font-size: 16px;
    overflow-x: scroll;
    background-color: var(--background-main);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
} 
.devOps h4{
    margin-top: 0;  
    text-align: center;
    padding-bottom: 15px;
    color: var(--primary-color); 
    border-bottom: 2px solid var(--other-color); 
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.7em;
    font-family: 'impact', sans-serif;
}
.devOps hr{
    margin: 10px  0 20px 0;  
    border-bottom: 2px solid var(--code-green); 
}

.devOps h5 {
    border-left: 5px solid var(--code-green);    
    border-radius: 8px; 
    padding-left: 10px;
    margin: 20px 0 10px 0;
    color: var(--primary-cyan);
    font-size: 1.0em;
    font-family: 'Courier New', monospace;

}

/* ForraCorp Logo Active Pulse Effect */
#devOpsImg{
    max-width: 50px;
    max-height: 50px;
    filter: drop-shadow(0 0 15px var(--primary-cyan));
    margin-bottom: -15px;
    animation: blink 3s infinite;
}
    @keyframes blink {
        0% { opacity: 1; }
        50% { opacity: 0.3; }
        100% { opacity: 1; }
    }

.sitrep span{
    font-size: 1.0rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--code-green);
    text-transform: uppercase;
}

#update-time, #active-system-time, #job-count {
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
}

.crawler{
    padding: 10px 25px 10px 25px; 
    border-radius: 8px; 
    border-left: 5px solid var(--code-green);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    max-height: 300px;
    overflow: scroll;
}
.sector-label {
    font-size: 0.95em;
    color: var(--text-dull);
    letter-spacing: 2px;
    margin-top: 20px;
    border-left: 5px solid var(--other-color);    
    border-radius: 8px; 
    padding-left: 10px;
}

 /* -- Glow Cards -- */
.job-card {
    padding: 15px;
    margin: 12px 0;
    transition: all 0.3s ease 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.05);
    border: 2px solid var(--glass-border);
    border-right: 4px solid var(--code-green);
    background: var(--opaque);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.job-card:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);   
    transform: scale(1.03);
    background: var(--background-dull);
}

.job-card p {
    font-size: 0.99rem;
    color: var(--text-norm);
    line-height: 1.4;
    margin: 10px 0;
}
.job-card a {
    display: inline-block;
    color: var(--code-green);
    background-color: var(--background-dull);
    padding: 6px 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 3px;
    text-transform: uppercase;
    max-width: 100%;
}
.job-card a:hover {
    
}

/* "job-card" Active Scanner Effect */
.job-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 0, 0.05), transparent);
    transform: rotate(45deg);
    animation: scan 3s infinite linear;
}
@keyframes scan {
    from { transform: translateY(-100%) rotate(45deg); }
    to { transform: translateY(100%) rotate(45deg); }
}

.secure-link {
    text-decoration: none !important;
    font-style: normal !important;
    font-size: 0.85em !important;
    font-weight: bold !important;
    cursor: progress !important;
    color: var(--code-green) !important;
    font-family: 'Courier New', monospace !important;
}
.secure-link:hover { 
    text-decoration: none !important;
    font-style: normal !important;
    font-size: 0.85em !important;
    font-weight: bold !important;
    cursor: progress !important;
    color: var(--code-green) !important;
    font-family: 'Courier New', monospace !important;
 }

#activity-log {
    list-style: none;
    padding: 10px;
    background: var(--background-main);
    font-size: 0.75em;
    color: var(--code-green);
    opacity: 0.8;
    max-height: 150px;
    overflow: scroll;
    font-family: 'Courier New', monospace;
    margin-left: -10px;
}



/* --- CENTRALIZED HOVER DISPLAY  FOR DATA VISUAL--- */  
.introHV {
    position: relative;
    width: 100%;
    height: 60vh; /* 60% of screen height */
    overflow: hidden;
}

/*----- Paragraph Settings for the Inro Div of the Trove Pages  -------*/

.introH{
    width: auto;
    height: 60vh; 
    white-space: nowrap;
    justify-content: center; /* Centers the whole group horizontally */
    padding: 30px;
    margin-bottom: 2rem auto;
    align-items: center !important;
    display: flex;
    flex-direction: column;
}
.introH img{
    max-width: 100%;
    height: 100%;
}

.introDPL {
    display: block !important;
    float: left;
    max-width: 50vh;
    height: auto;
    shape-outside: linear(50%); /* Tells text to follow a circular parth */
    clip-path:  linear(50%);   /* Actually crops the image into a circule */
    margin: 10px 20px -3px 20px;
    text-align: center !important;
}
.introDPR {
    display: block !important;
    float: right;
    max-width: 50vh;
    height: auto;
    shape-outside: linear(50%); /* Tells text to follow a circular parth */
    clip-path:  linear(50%);   /* Actually crops the image into a circule */
    margin: 10px 20px -3px 20px;
    text-align: center !important;
}
.introDPX {
    display: block !important;
    float: right;
    max-width: 70%;
    height: auto;
    shape-outside: linear(50%); /* Tells text to follow a circular parth */
    clip-path:  linear(50%);   /* Actually crops the image into a circule */
    margin: 10px 20px -3px 20px;
    text-align: center !important;
}

.introDP {
    width: 100%;
    height: 100%;
}

/*----- THE BOOKS SECTION CONTROLS  -------*/

/* --- 3D SHELF & CAROUSEL --- */
.library-container { 
    width: 100%; 
    padding: 40px 0; 
    perspective: 1200px; /* Added deeper perspective for Mac/Desktop */
    overflow: hidden; /* Prevents scrollbar during rotation */
}

.swiper { 
    width: 100%; 
    padding: 80px 0; /* Extra padding for the 'growing' focal image */
}

.swiper-wrapper {
    display: flex !important;
}

.swiper-slide { 
    width: 300px; /* Fixed width ensures consistency across screens */
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shelf {
    position: relative;
    width: 290px; 
    height: 420px;
    background: var(--background-main);
    border-radius: 15px;
    transition: all 0.5s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);

    overflow: hidden; /* Clips the overlay as it moves up */
    display: flex;
    flex-direction: column;

}

/* Focal Image Growth. The Swiper adds this class automatically to the center item */
.swiper-slide-active .shelf {
    transform: scale(1.15); /* Makes the focal one bigger */
    z-index: 10;
    box-shadow: 0 0 30px var(--primary-color);
}

.shelf img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    border-radius: 20px 20px 0 0;
}

/* Smooth Scrolling feel for mouse users */
.swiper-free-mode > .swiper-wrapper {
    transition-timing-function: ease-out;
    margin: 0 auto;
}

.note{
    font-family: 'Rajdhani', sans-serif; 
    font-size: 0.9rem; 
    text-align: center;
    flex-direction: column;
    color: var(--secondary-color);
    font-style: italic;
}

/* The Overlay Logic */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.85); /* Slightly darker for readability */
    color: white;
    padding: 5px 15px 15px 15px;
    box-sizing: border-box;
    text-align: left;
    overflow: scroll;
    
    /* Animation: Start hidden and shifted down */
    opacity: 0;
    transform: translateY(100%); 
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 2;
}

.overlay p{
    font-size: 1.0rem;
    text-align: justify;
    color: var(--text-norm);
    font-family: 'Times New Roman';
    margin-top:5px;
}

.shelf:hover .overlay {
    opacity: 1; 
    transform: translateY(0); 
}

.shelf h4 { 
    text-align: center; 
    margin-bottom: 10px; 
    color: var(--primary-cyan); 
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Button Styling */
.click {
    background: var(--glass-border);
    color: var(--text-white);
    border: none;
    border-radius:  20px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    transition: background 0.3s;
    padding: 10px;
    text-decoration: none;
    border-style: outset;
}

.click:hover {
    background: var(--glass);
    border-style: inset;
}

.downloadA {
    padding: 5px; 
}
.downloadB {
    padding: 10px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: bold;
    white-space: wrap;
    transition: transform 0.2s;
    cursor: pointer;
    text-align: center;
    background: var(--background-light);
    margin: 20px;
    font-style: normal;
    color: var(--text-white);
}

.downloadB:hover {
    filter: drop-shadow(0 0 10px rgba(168, 255, 158, 0.6));
    transform: scale(1.05);
}

.video-selector{
    width:100%; 
    padding:10px; 
    background:#111; 
    color:#00f2ff; 
    border:1px solid #00f2ff; 
    border-radius:5px; 
    margin-bottom:5px;
}

.titleDisplay{
    font-family: 'Exo 2', sans-serif; 
    font-size: 1.3rem;
    color: var(--primary-cyan);
    margin-top:15px;
    text-align:center;
    margin-bottom:15px;
}

.textDisplay{
    line-height:1.8; 
    margin: 30px 0;"
}



/* --- ARTICLE OVERLAY --- */
.article-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 7, 10, 0.95); z-index: 1000; display: none;
    overflow-y: auto; color: #e2e8f0;
}

.article-content { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 40px 20px; 
}

.close-btn {
    position: fixed; top: 20px; right: 30px;
    font-size: 3rem; color: var(--accent-cyan); cursor: pointer; z-index: 1001;
}

/* Navigation Group */
.navigation-group {
    display: flex; justify-content: center; gap: 40px; 
    padding: 30px 10px; flex-wrap: wrap;
}
.nav-item { cursor: pointer; color: white; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.nav-item:hover { color: var(--accent-cyan); }
.nav-item img { width: 40px; margin-bottom: 5px; }

/* Media Layout */
.media-section {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin: 40px 0;
}

video { border: 2px solid var(--accent-cyan); border-radius: 12px; width: 100%; margin-bottom: 20px; }
audio { width: 100%; filter: invert(1); margin-top: 5px; }

/* Fix for smaller desktop screens */
@media (max-width: 1024px) {
    .shelf { width: 250px; height: 400px; }
    .shelf img { height: 330px; }
}


/*----- THE SONGS SECTION CONTROLS  -------*/

/* --- TURNTABLE CONTAINER (Row 1) --- */

.now-playing-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 300px;
}

.turntable-disk {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid #333;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* The Rotation Animation */
.rotating {
    animation: rotateDisk 3s linear infinite;
}

@keyframes rotateDisk {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- PLAYLIST GRID (Row 2) --- */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding-right: 50px;
}

.audio-item {
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.audio-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid transparent ;
}

.audio-item:hover img {
    border-color: var(--glass);
    transform: scale(1.07);
}

/* --- DESCRIPTION AREA (Row 3) --- */
.audio-description {
    padding: 20px;
    border-left: 4px solid var(--accent-cyan);
    min-height: 100px;
    color: #fff;
}

/* Custom Audio Controls */
audio {
    margin-top: 15px;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5); /* Makes it match Cyberpunk theme */
    width: 100%;
    max-width: 400px;
}

/* Lyrise Area Decoration and Hidden Light */
.glass-home {
    background: var(--background-dark);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(120px);
    margin: -1rem auto;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
}

.glass-card{
    padding: 3px; 
    background:  var(--background-light);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

/* Simple Way To Animate: The glass-home element */
.glass-home::after, .glass-home::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: conic-gradient(from var(--angle), #ff0000, #ff9800, #ffff00, #00ff00, #00bcd4, #0000ff, #8b00ff, #ff0000 );
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 3px;
    border-radius: 10px;
    animation: 3s spin linear infinite;
}

@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.glass-home::before {
    filter: blur(1.5rem);
    opacity: 0.5;
}

@keyframes spin{
    from{
        --angle: 360deg;
    }
    to{
        --angle: 0deg;
    }
}

article {
    background: var(--opaque);
    border: 1px solid var(--glass-border);
    padding: 30px;
    backdrop-filter: blur(120px);
    margin-bottom: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
    margin-top: 25px;
    text-align:justify; 
    font-size: 14px;
    font-family: 'Times New Roman', monospace;
    align-items: center !important;
}
.author {
    float: left;
    max-width: 40vh;
    height: auto;
    shape-outside: circuler(50%); /* Tells text to follow a circular parth */
    clip-path:  circuler(50%);   /* Actually crops the image into a circule */
    margin: 10px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-align:center; 
}
.authorDP{
    max-width: 100%;
    height: auto;
}
.author img{
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    display: grid;
    align-items: center;
}
.author p{
    flex-direction: column; 
    align-items: center;
    text-align:center; 
    align-items: center;
}

/*--- ForraCorp Developer Code Block Display Styles */

pre{
    background-color: #282c34; /* Dark Background */
    color: #abb2bf;   /* Light Text */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;  /* Add Scrol Bar If Code Too Long */
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
}

/* Custom colors for Python keywords if Prism defaults are too dull */
.token.keyword { color: #ff79c6 !important; font-weight: bold; } /* Pink keywords */
.token.function { color: #50fa7b !important; } /* Green functions */
.token.string { color: #f1fa8c !important; } /* Yellow strings */
.token.comment { color: #6272a4 !important; font-style: italic; } /* Muted comments */

code{
    font-family: "Lucida Console", "Consolas", "Monaco", monospace !important;
    font-size: 10px;
}

/*-------------------The X-Theme Web App--------------------------*/

:root {
    --bg-color: #1a1a1a;
    --text-color: #e0d5c3;
    --accent-blue: #00b4d8;
    --btn-bg: #2b3a67;
}

.theme-light {
    --bg-color: #f0f0f0;
    --text-color: #333333;
}

/* Ensure the body takes up the full screen */
body, html {
    margin: 0;
    padding: 0;
    height: 50%;
}

.X-THEME {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial Black', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 60vh; /* Changed from max-height to min-height */
    width: 100%;
    transition: background 0.5s ease;
    padding: 20px;
    box-sizing: border-box;
}

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px; /* Prevents it from stretching too wide on ultra-wide monitors */
}

#date-display {
    /* Fluid size: Min 1rem, scales with width, Max 2.5rem */
    font-size: clamp(0.9rem, 2.5vw, 2.8rem); 
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
    text-transform: uppercase;
}

#time-display {
    /* Fluid size: Min 3rem, scales with width, Max 10rem */
    font-size: clamp(0.5rem, 8vw, 15rem); 
    line-height: 1;
    cursor: pointer;
    user-select: none;
    margin-top: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.controls {
    margin-top: 5vh; /* Moves relative to screen height */
    width: 100%;
}

.theme-selector {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to stack on very small phones */
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    transition: transform 0.2s;
}

button:active {
    transform: scale(0.95);
}

#btn-system { background: var(--accent-blue); color: white; }
#btn-dark { background: #1e2a4a; color: white; }
#btn-light { background: #ffffff; color: black; border: 1px solid #ccc; }

/* Switch Styling */
.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: clamp(0.7rem, 2vw, 1rem);
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0; /* Prevents switch from squishing */
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #555;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent-blue); }
input:checked + .slider:before { transform: translateX(24px); }
