:root {
    --primary-color: #0B111D;
    --accent-color: #F9A825; /* Gold/Yellow from image */
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --card-bg-white: #FFFFFF;
    --card-bg-dark: #1A2233;
    --border-radius-lg: 32px;
    --border-radius-md: 20px;
    --shadow: 0 10px 40px rgba(0,0,0,0.15);
    
    /* Theme Variables (Default Dark) */
    --body-bg: #111827;
    --wrapper-bg: #0B111D;
    --content-bg: #F3F4F6;
    --card-bg: #FFFFFF;
	--text: #FFFFFF;
    --card-text: #0B111D;
    --nav-text: rgba(255, 255, 255, 0.7);
    --hero-text: #FFFFFF;
    --hero-subtext: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --bg-image: url('../assets/img/hero-bg-dark.jpg');
}

/* Light Theme Variables */
[data-theme="light"] {
    --body-bg: #F3F4F6;
    --wrapper-bg: #FFFFFF;
    --content-bg: #FFFFFF;
    --card-bg: #F8FAFC;
	--text: #0B111D;
    --card-text: #0B111D;
    --nav-text: rgba(15, 23, 42, 0.7);
    --hero-text: #0B111D;
    --hero-subtext: rgba(15, 23, 42, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
    --bg-image: url('../assets/img/hero-bg-light.jpg');
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    background-image: linear-gradient(rgba(11, 17, 29, 0.4), rgba(11, 17, 29, 0.4)), var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    margin: 0;
    padding: 20px;
    transition: background 0.5s ease, color 0.5s ease;
}

[data-theme="light"] body {
    background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), var(--bg-image);
    color: var(--card-text);
}

.main-wrapper.homepage-layout {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--wrapper-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

/* Custom Top Window Bar */
.top-window-bar {
    background: rgba(11, 17, 29, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0px; /* Aligns with the top of the screen by offsetting body padding */
    margin: -20px -20px -20px -20px; /* Pulls the bar to the edges of the wrapper */
    padding: 20px 20px 10px 20px !important;
    z-index: 1100;
    backdrop-filter: blur(20px);
    transition: background 0.3s ease;
	border-radius: var(--border-radius-md);
}

[data-theme="light"] .top-window-bar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    line-height: 0.5;
	color: var(--text);
}
.navbar-brand span { 
	color: var(--accent-color); 
}
.navbar-brand small { 
	font-size: 0.8rem; 
	opacity: 0.6; 
	color: var(--text);
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
	color: var(--text);
}
.nav-link.active { color: var(--accent-color) !important; position: relative; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--accent-color);
}

/* Hero Split Section */
.hero-split-section {
    display: flex;
    padding: 60px 50px;
    gap: 40px;
    background: radial-gradient(circle at 20% 30%, rgba(249, 168, 37, 0.05) 0%, transparent 50%);
    position: relative;
}

.hero-left-content {
    flex: 1.2;
}

.hero-labels {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}
.label-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.label-item::before {
    content: '';
    width: 3px;
    height: 15px;
    background: var(--accent-color);
}
.btn{
	color: var(--text);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: var(--text);
    font-weight: 600;
}
.btn-accent:hover { background: #e69a20; color: #000; }

/* Playlist Carousel */
.playlist-carousel {
    flex: 1.2;
    background: #FFFFFF;
    border-radius: var(--border-radius-md);
    padding: 25px;
    color: #333;
    transform: translateY(-20px);
    display: flex;
    flex-direction: column;
}

.playlist-container {
    display: flex;
    gap: 20px;
    height: 320px;
}

.playlist-main-preview {
    flex: 1.5;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.preview-img-container {
    width: 100%;
    height: 100%;
}

.preview-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.preview-overlay h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.playlist-sidebar {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

/* Custom scrollbar for playlist sidebar */
.playlist-sidebar::-webkit-scrollbar {
    width: 4px;
}
.playlist-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.playlist-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.playlist-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: #f8f9fa;
}

.playlist-item.active {
    background: #f0f4f8;
    border-color: rgba(249, 168, 37, 0.2);
}

.item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details h6 {
    font-size: 0.75rem;
    margin: 0 0 4px;
    font-weight: 700;
    color: #111;
}

.item-details span {
    font-size: 0.65rem;
}

@media (max-width: 1200px) {
    .playlist-container {
        flex-direction: column;
        height: auto;
    }
    .playlist-main-preview {
        height: 250px;
    }
    .playlist-sidebar {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
    }
    .playlist-item {
        min-width: 200px;
    }
}

/* Bento Grid Section */
.bento-grid-section {
    padding: 10px 50px 150px; /* Increased bottom padding for sticky footer */
    background: #F3F4F6;
}

.content-section-layout {
    padding-bottom: 150px !important; /* Spacing for sticky footer on sub-pages */
}

.bento-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 20px;
    margin-top: -30px;
}

.bento-card {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 30px;
    color: #333;
}

.dark-card {
    background: var(--card-bg-dark);
    color: #fff;
}

/* About Stats */
.bento-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.stat-box { text-align: center; }
.stat-val { font-size: 1.4rem; font-weight: 700; color: #111; }
.stat-lbl { font-size: 0.7rem; color: #888; text-transform: uppercase; }

/* Skill Bars */
.skill-item-row .skill-name { font-size: 0.8rem; margin-bottom: 8px; color: #ccc; }
.skill-bar-container { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.skill-bar-fill { height: 100%; background: var(--accent-color); border-radius: 2px; }

/* Gallery Carousel */
#homepageGalleryCarousel {
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    overflow: hidden;
}

#homepageGalleryCarousel .carousel-item {
    transition: opacity 1s ease-in-out;
}

#homepageGalleryCarousel .carousel-item.active {
    z-index: 1;
}

#homepageGalleryCarousel .carousel-control-prev,
#homepageGalleryCarousel .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-gallery:hover #homepageGalleryCarousel .carousel-control-prev,
.bento-gallery:hover #homepageGalleryCarousel .carousel-control-next {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    background-size: 60%;
}

/* Connect Bar */
.connect-bar-layout {
    margin: 0 50px 40px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: sticky;
    bottom: 20px; /* Small gap from the screen edge */
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(26, 34, 51, 0.9) !important; /* Slightly transparent for the blur */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Ensure the wrapper doesn't clip the sticky footer shadow */
.main-wrapper.homepage-layout {
    overflow: visible !important;
}

.c-item { font-size: 0.85rem; color: #aaa; display: flex; align-items: center; gap: 10px; }

@media (max-width: 991px) {
    .hero-split-section { flex-direction: column; text-align: center; }
    .hero-labels { justify-content: center; }
    .featured-projects-card { transform: none; }
    .bento-container { grid-template-columns: 1fr; }
    .connect-bar-layout .container-fluid { flex-direction: column; gap: 20px; }
    .connect-info-group { flex-direction: column; align-items: center; gap: 10px !important; }
}
