/* --- Global Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fffaf0; /* Match your site background */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* CHANGED: Replaced the old spinner CSS with your new loader */
.loader {
  display: inline-grid;
  font-size: 50px;
}
.loader:before,
.loader:after {
  content: "💯";
  grid-area: 1/1;
}
.loader:after {
  animation: l10 1s infinite;
}
@keyframes l10 {
  to {transform:scale(1.8);opacity:0}
}


#preloader p {
    font-weight: 500;
    color: #555;
}


/* --- Global Styles & Variables --- */
:root {
    --sidebar-left-width: 350px;
    --sidebar-right-width: 600px; 
    --bg-color-left: #fffaf0;
    --bg-color-right: #fdfcf3;
    --text-color: #3D3D3D;
    --border-color: #000000;
}

/* --- Base & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Custom Text Highlighting --- */
::selection {
    background-color: #222831;
    color: white;
}
::-moz-selection { /* For Firefox */
    background-color: #222831;
    color: white;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
                 sans-serif;
    
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* --- Main Layout --- */
.main-container {
    display: flex;
    flex-grow: 1;
    overflow: hidden; 
}

/* --- Main Content (Center Column) --- */
.main-content {
    flex-grow: 1;
    position: relative; 
    
    background-color: var(--bg-color-right); 
    background-image: url('./Images/Wallpaper.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Sidebar (Shared Styles) --- */
.sidebar {
    flex-shrink: 0;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Sidebar Specifics --- */
.sidebar-left {
    width: var(--sidebar-left-width);
    background-color: var(--bg-color-left);
    box-shadow: 4px 0px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* --- Right Sidebar Default State (Hidden) --- */
.sidebar-right {
    width: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-color-left);
    box-shadow: none; 
    transition: width 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

/* --- Right Sidebar Visible State --- */
.sidebar-right.is-visible {
    width: var(--sidebar-right-width);
    padding: 0;
    box-shadow: -4px 0px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* --- Wrapper to prevent content squishing --- */
.sidebar-content-wrapper {
    width: var(--sidebar-right-width);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.profile-pic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.profile-info h1 {
    font-size: 24px;
    font-weight: 600;
}

#clock {
    font-size: 14px;
    color: #888888;
    margin-top: 4px;
    font-weight: 500;
}

.divider {
    width: 100%;
    border: none;
    height: 2px;
    background-image: radial-gradient(circle at center, var(--border-color) 1px, transparent 1px);
    background-repeat: repeat-x;
    background-position: center;
    background-size: 6px 1px;
}

.bio {
    font-size: 14px;
    line-height: 1.6;
}

.focus-section h3,
.contact-section h3 {
    font-weight: 600;
    margin-bottom: 12px;
}

.focus-section h3 {
    font-size: 14px;
}
.contact-section h3 {
    font-size: 16px;
}

.focus-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.focus-section li {
    font-size: 14px;
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
}

.focus-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-links a {
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px; 
}

.contact-icon {
    height: 1em; 
    width: 1em; 
}

.contact-links a:hover {
    text-decoration: none;
}

.contact-links a:hover .link-text {
    text-decoration: underline;
}

.link-description {
    color: #888888;
    transition: color 0.2s ease-in-out;
}

.contact-links a.copied-success .link-description {
    color: #28a745;
    font-weight: 600;
}

/* --- CORNER ICON STYLES --- */
.icon-wrapper {
    position: absolute;
    bottom: 25px;
    right: 25px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; 
}

#specs-icon {
    left: 25px;
    right: auto;
}

.credits-wrapper {
    bottom: 120px; 
}

.icon-wrapper:hover {
    transform: scale(1.08);
}

.icon-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.icon-text {
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 768px) {
    body {
        height: auto;
        overflow-y: auto;
        background: var(--bg-color-left);
    }

    .sidebar-left {
        width: 100%;
        box-shadow: none;
        padding: 25px 20px;
    }

    .main-content,
    .sidebar-right {
        display: none;
    }
}

/* --- Right Sidebar Content Management --- */
.content-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: none; /* All frames are hidden by default */
}

.content-frame.is-active {
    display: block; /* We only show the active one */
}