/* ============================= */
/* THEME VARIABLES */
/* ============================= */
:root {
    --bg: #0e1117;
	--bg2: #f7f7f7;
    --card: #1a1f27;
    --text: #ffffff;
	--text2: #222;
    --subtext: #b9c4d0;
    --accent: #f4b939;
    --border: #242a34;
}

html[data-theme="light"] {
    --bg: #f7f7f7;
	--bg2:#0e1117;
    --card: #ffffff;
    --text: #222;
	--text2: #ffffff;
    --subtext: #555;
    --accent: #ce8e00;
    --border: #ddd;
}
html[data-theme="light"] .skill-box {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0,0,0,0.1);
}
html[data-theme="light"] .bar {
    background: rgba(0,0,0,0.12);
}
/* Make Featured Projects title black in dark mode */
html[data-theme="dark"] #featured-projects h4 {
    color: #222 !important;
}
html[data-theme="dark"] #featured-projects .view-all {
    color: #222 !important;
}
/* Make Featured Projects title white in white mode */
html[data-theme="light"] #featured-projects h4 {
    color: #ffffff !important;
}
html[data-theme="light"] #featured-projects .view-all {
    color: #ffffff !important;
}
html[data-theme="dark"] .hero-img {
    background-image: url("assets/hero_background/hero_dark.jpg");
}

html[data-theme="light"] .hero-img {
    background-image: url("assets/hero_background/hero_light.jpg");
}
.hero-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    width: 100%;
    height: 420px;
}
/* ============================= */
/* GLOBAL STYLES */
/* ============================= */
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", sans-serif;
}
html[data-theme="light"] .card-glass::before,
html[data-theme="light"] .card-dark::before {
    opacity: 0.28;
    mix-blend-mode: multiply;
}
/* ============================= */
/* NAVBAR */
/* ============================= */
.navbar {
    background: var(--card) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    font-weight: 700;
    font-size: 22px;
}

.navbar .nav-link {
    color: var(--text) !important;
}

.navbar .nav-link:hover {
    color: var(--accent) !important;
}

.navbar-brand {
    color: var(--text) !important;
	font-size: 2rem;
}
.navbar-brand2 {
    color: var(--accent) !important;
	font-size: 2rem;
}

/* Hamburger Mobile Icon */
.hamburger {
    font-size: 26px;
    cursor: pointer;
    display: none;
}

/* Theme Toggle */
.theme-toggle {
    margin-left: 20px;
    width: 40px;
    height: 22px;
    position: relative;
}
.theme-toggle input { display: none; }

.slider {
    background: var(--border);
    border-radius: 20px;
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
}
.slider:before {
    content: "";
    position: absolute;
    background: var(--accent);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 2px; left: 3px;
    transition: 0.3s;
}
input:checked + .slider:before {
    transform: translateX(18px);
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
    display: flex;
    align-items: center;
    padding: 70px 50px;
    gap: 50px;
}

/* Desktop */
@media (min-width: 992px) {
    .hero-img {
        background-image: url("assets/hero_background/hero_desktop.jpg");
        height: 500px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-img {
        background-image: url("assets/hero_background/hero_tablet.jpg");
        height: 420px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-img {
        background-image: url("assets/hero_background/hero_mobile.jpg");
        height: 360px;
        margin-top: 20px;
        border-radius: 12px;
    }
}

.hero-left h1 {
    font-size: 40px;
    margin-bottom: 10px;
}
.hero-left h3 {
    color: var(--accent);
}

.hero-buttons {
    margin-top: 20px;
}

.btn {
    padding: 12px 22px;
    border-radius: 8px;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.primary {
    background: var(--accent);
    color: #000;
}
.outline {
    border: 2px solid var(--accent);
}

/* ============================= */
/* SECTIONS */
/* ============================= */
.section {
    padding: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================= */
/* PROJECT GRID */
/* ============================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--card);
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
}

/* ============================= */
/* ABOUT & SKILLS */
/* ============================= */
.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-card,
.skills-card {
    background: var(--card);
    padding: 25px;
    border-radius: 16px;
}

.about-stats {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

/* Skills Bar */
.skill {
    margin: 12px 0;
}
.bar {
    background: var(--border);
    height: 8px;
    border-radius: 8px;
}
.bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 8px;
}

/* ============================= */
/* GALLERY */
/* ============================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    border-radius: 10px;
}

/* ============================= */
/* CONTACT */
/* ============================= */
.contact-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.contact-box input,
.contact-box textarea {
    padding: 12px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
}

/* ============================= */
/* FOOTER */
/* ============================= */
footer {
    text-align: center;
    padding: 25px 0;
    color: var(--subtext);
}

/* ============================= */
/* MOBILE RESPONSIVENESS */
/* ============================= */

@media(max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--card);
        padding: 20px;
        position: absolute;
        top: 70px;
        right: 10px;
        border-radius: 10px;
        border: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }
}
.section-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 22px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.28);
    transition: 0.3s ease;
}

/* Hover lift */
.section-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255,193,7,0.35);
}

/* Dark theme override for Skills Card */
.dark-card {
    background: rgba(14,17,23,0.88);
    border: 1px solid rgba(255,255,255,0.1);
}
html[data-theme="light"] .dark-card {
    background: rgba(240,240,240,0.9);
    border-color: rgba(0,0,0,0.08);
}

/* Blueprint overlay */
.section-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/images/blueprints/valkei_blueprint_animated.svg");
    opacity: 0.14;
    mix-blend-mode: screen;
    pointer-events: none;
	height: 100%;
    display: flex;
    flex-direction: column;
}
.section-card .spacer {
    margin-top: auto;
}
.gallery-img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-img:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 15px rgba(255,193,7,0.35);
}
.bar {
    position: relative;
    height: 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    width: var(--w);
    background: var(--accent);
    border-radius: inherit;
    position: relative;
    box-shadow: 0 0 14px var(--accent);
}

/* Moving glow highlight */
.bar span::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.7),
        transparent
    );
    animation: barShine 2.2s infinite;
    opacity: 0.6;
}

@keyframes barShine {
    0% { left: -40px; }
    100% { left: calc(100% + 40px); }
}
.bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 4px,
        transparent 4px,
        transparent 8px
    );
    pointer-events: none;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}
.skills-list li {
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.skills-list li:hover {
    transform: translateX(6px);
    color: var(--accent);
}
.bar span {
    box-shadow:
        0 0 10px var(--accent),
        0 0 20px var(--accent),
        inset 0 0 6px rgba(0,0,0,0.5);
}
/* Floating card container */
.carousel-card {
    background: var(--bg2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    position: relative;
}

/* Horizontal scroller */

.project-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: auto !important;
    padding-bottom: 8px;
	white-space: nowrap;
}

.project-carousel::-webkit-scrollbar {
    display: none;
}

.project-item {
    min-width: 240px;
    background: rgba(0,0,0,0.25);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: 0.25s ease;
	flex: 0 0 auto;
}

/* Hover animation */
.project-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(255,193,7,0.35);
}

/* Project image */
.project-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
}

.project-item h5 {
    font-size: 16px;
    margin-top: 10px;
    color: var(--text2);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 4px;
    background: var(--accent);
    color: #000;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    font-size: 26px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.25s ease;
}
.carousel-btn:hover {
    background: var(--accent);
    color: #000;
}

.carousel-btn.left { left: -18px; }
.carousel-btn.right { right: -18px; }

.project-item img {
    will-change: transform, opacity, clip-path;
}
#projectCarousel {
    scroll-behavior: auto !important;
    overflow-x: auto;
    white-space: nowrap;
/* CSS Document */

