body {
	background-color: #0b1d3a;
	color: #f5f7ff;
	margin: 0;
	font-family: "Segoe UI", Arial, sans-serif;

	min-height: 80vh;
	display: flex;
	flex-direction: column;
	justify-content: left;
	align-items: left;
	text-align: left; /* This aligns the text on the page */

}


.navbar {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2% 5%;
	box-sizing: border-box;
}

.mediabar {
	position: fixed;
	bottom: 2rem;
	left: 2rem;
	z-index: 10;
}

.mediabar .vertical-list {
	gap: 1rem;
}

.mediabar a{
	font-weight: 600;
	color: #fefefe;
}

.mediabar a:hover {
    color: #b7b7b7;
}

.logo {
	width: 65px;
	height: auto;
	
}

.my-image {
	width: 200px;
	height: auto;
	border-radius: 10px;
	margin-top: 2rem;
	filter: grayscale(100%) brightness(1.1) sepia(1) hue-rotate(165deg) saturate(5);
	transition: filter 200ms ease;
}

.my-image:hover {
	filter: grayscale(100%) brightness(1.3) saturate(0);
}

.mirage-layer {
	position: absolute;
	top: 10px;
	left: 12px;
	opacity: 0.35;
	filter: blur(6px) saturate(1.4) hue-rotate(15deg);
	mix-blend-mode: screen;
	pointer-events: none;
	transform: skewX(-2deg);
	-webkit-mask-image: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
	mask-image: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.nav-links, .nav-icons {
	display: flex;
	gap: 3rem;
}

.nav-links a, .nav-icons a {
	color: #fefefe;
	text-decoration: none;
	font-weight: 600;
}

.nav-links a:hover, .nav-icons a:hover {
	color: #b7b7b7;
}

a,
a:visited,
a:hover,
a:active {
    color: #f5f7ff; /* or your desired color */
    text-decoration: none;
}

.horizontal-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 3rem;
}

.horizontal-list li {
	display: inline;
}
.vertical-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}



.home {
	padding-top: 10%;
	padding-left: 22%;
	box-sizing: border-box;
	overflow: hidden;
}

.about {
	width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
}

.about-grid {
	display: flex;
	gap: 3rem;
	align-items: center;
	max-width: 1100px;
	width: 100%;
}

.experience {
	width: 100%;
    min-height: 80vh;
	padding-top: 6%;
    display: flex;
	flex-direction: column;
    align-items: center;
	gap: 1.5rem;
    box-sizing: border-box;
	text-align: left;
}

.experience .vertical-list {
	gap: 1rem;
	
}

.about-text { flex: 1; }
.about-photo {flex: 1; display: flex; justify-content: center;}
.about-photo.mirage {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.about-photo.mirage .my-image:not(.mirage-layer) {
	position: relative;
	z-index: 1;
}

.meta      {font-size: 1rem; font-weight:600; color: #14bad7;}
.title     {font-size: 50pt; font-weight:600; margin: 0rem; color:#d2d9db; }
.subtitle  {font-size: 50pt; font-weight:600; margin: 0rem; color: #a0a8c0; }
.sentence  {font-size: 1rem; font-weight:400; margin-top: 2rem; max-width: 800px; color: #878a92;}
.post-title{font-size: 28pt; font-weight:600; margin: 0rem; color:#d2d9db; display: flex; align-items: center; }
.list-title{font-size: 18pt; font-weight:600; margin: 0rem; color:#d2d9db; }
.highlight { color: #00ffff; padding: 0 4px; border-radius: 4px;
}

.post-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(245, 247, 255, 0.35);
    margin-left: 8px;
    margin-top: 9px;
}

.tech-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    padding: 0;
    margin-top: 1rem;
    margin-left: 2rem;
    max-width: 300px;
    color: #00ffff;
    font-size: 0.8rem;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0.05em;
}

.projects {
    width: 100%;
    min-height: 80vh;
    padding-top: 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    box-sizing: border-box;
}

.projects > .post-title {
    width: 100%;
    max-width: 1200px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.project-image {
    width: 100%;
    border-radius: 8px;
    filter: brightness(0.8);
    transition: filter 200ms ease;
}

.project-image:hover {
    filter: brightness(1);
}

.project-info {
    display: flex;
    flex-direction: column;
}

.project-desc {
    background: #112240;
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #878a92;
    line-height: 1.6;
}

.gap {
	height: 15vh;
}

.about {
    /* center content vertically within its section */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience > .post-title {
    width: 100%;
    max-width: 1200px;
}

.experience-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.experience-list {
    gap: 0.75rem;
}

.exp-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #f5f7ff;
    font-weight: 600;
    padding: 0.5rem 0.25rem;
    cursor: pointer;
}

.exp-btn.is-active {
    color: #00ffff;
}

.experience-details {
    min-height: 150px;
}

.exp-panel {
    display: none;
}

.exp-panel.is-active {
    display: block;
}

/* ── Hamburger button (hidden on desktop) ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: #f5f7ff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Tablet breakpoint (768px) ── */
@media (max-width: 768px) {
    /* Navbar → hamburger */
    .hamburger {
        display: block;
    }

    .horizontal-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #0b1d3a;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .horizontal-list.nav-open {
        display: flex;
    }

    .horizontal-list li {
        display: block;
    }

    .navbar {
        position: relative;
    }

    /* Hide mediabar sidebar */
    .mediabar {
        display: none;
    }

    /* Home section */
    .home {
        padding: 10% 5%;
    }

    /* Typography */
    .title     { font-size: 28pt; }
    .subtitle  { font-size: 28pt; }
    .post-title{ font-size: 20pt; }
    .list-title{ font-size: 14pt; }

    /* About section → stack */
    .about {
        padding: 5%;
        min-height: auto;
    }

    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-photo {
        order: 1;
    }

    .sentence {
        max-width: 100%;
    }

    /* Experience section → single column */
    .experience {
        padding: 6% 5%;
    }

    /* Projects section → single column */
    .projects {
        padding: 6% 5%;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .experience-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 0;
    }

    .exp-btn {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        text-align: center;
    }
}

/* ── Small phone breakpoint (480px) ── */
@media (max-width: 480px) {
    .title     { font-size: 22pt; }
    .subtitle  { font-size: 22pt; }
    .post-title{ font-size: 18pt; }
    .list-title{ font-size: 13pt; }

    .home {
        padding: 15% 5% 10%;
    }

    .about {
        padding: 5% 4%;
    }

    .experience {
        padding: 6% 4%;
    }

    .gap {
        height: 5vh;
    }
}