
body{
    background-color: #121212;
    color: aliceblue;
    margin: 0;
    padding: 0;

}


:root{
    --menu-width: 260px;
    --menu-bg: #0f1720;
    --content-transition: 320ms cubic-bezier(.22,.9,.32,1);
}

/* side menu */
.side-menu{
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--menu-width);
    max-width: 90%;
    background: var(--menu-bg);
    color: #fff;
    transform: translateX(-100%);
    transition: transform var(--content-transition);
    z-index: 220;
    padding: 20px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}
.side-menu ul{
    list-style: none;
    padding: 0;
    margin: 36px 0 0 0;
}
.side-menu a{
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 6px;
    border-radius: 6px;
}
.side-menu a:hover{ background: rgba(255,255,255,0.04); }

.side-menu .close-menu{
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

/* when menu open */
.backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 200;
    opacity: 0;
    transition: opacity var(--content-transition);
    pointer-events: none;
}


.content{
    min-height: 100vh;
    transform-origin: left center;
    transition: transform var(--content-transition);
    position: relative;
    z-index: 100;
	padding-top: 10vh;
}

body.menu-open .side-menu{
    transform: translateX(0);
}
body.menu-open .backdrop{
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .content{
    transform: translateX(var(--menu-width)) scale(0.98);
    filter: saturate(0.98);
}


header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 10vh;
    background:#228B22;
    display: flex;
    align-items: center;
    z-index: 140; 
	box-shadow: 0 6px 20px rgba(0,0,0,0.45);
	padding: 0 16px;
}


.top-hero { position: relative; overflow: hidden; }


.hero-inner{
    position: absolute;
    left: 6%;
    right: 6%;
    top: 18%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    z-index: 10;
	top: 16%;
	left: 6%;
	right: 6%;
	padding: 18px;
	border-radius: 10px;
	backdrop-filter: blur(4px);
	align-items: center;
}

/* coder image */
.coder{
    width: 420px;
    max-width: 42vw;
    height: auto;
    transform: translateX(120%);
    opacity: 0;
    flex-shrink: 0;
	width: 520px;
	max-width: 44vw;
	box-shadow: 0 18px 40px rgba(0,0,0,0.55);
	border-radius: 12px;
}

/* intro text block */
.intro{
    transform: translateX(-120%);
    opacity: 0;
    color: #fff;
    max-width: 56ch;
	padding: 12px 18px;
	background: rgba(0,0,0,0.18);
	border-radius: 12px;
}

.intro h1{
    margin: 0 0 10px 0;
    font-size: clamp(1.6rem, 4.2vw, 3rem);
    color: #fff;
}
.intro .lead{
    margin: 0 0 10px 0;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: #e6e6e6;
}
.intro p{
    margin: 0 0 8px 0;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #dcdcdc;
}
.intro .cta a { 
    color: var(--menu-bg); 
    background: #22c55e; 
    padding: 6px 10px; 
    border-radius: 6px; 
    text-decoration: none; 
    color: #071409; 
    font-weight: 600; }



/* animation  */
@keyframes slideInFromLeft {
    from { transform: translateX(-120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideInFromRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}


.animate-in.coder {
    animation: slideInFromRight 900ms cubic-bezier(.22,.9,.32,1) 140ms forwards;
}
.animate-in.intro {
    animation: slideInFromLeft 900ms cubic-bezier(.22,.9,.32,1) 0ms forwards;
}


.top-hero{
    background-image: url(background.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    height: 95vh;
    background-size: cover;
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.top-bar{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* menu left, logo right */
    padding: 0 16px;
    box-sizing: border-box;
	gap: 12px;
}
.menu-btn, .fa-bars {
	cursor: pointer;
	border-radius: 8px;
	padding: 6px;
	transition: background 160ms, transform 160ms;
}
.menu-btn:focus, .menu-btn:hover, .fa-bars:hover {
	background: rgba(255,255,255,0.04);
	transform: translateY(-1px);
}


.logo{
    margin: 0;
    margin-left: auto;
}

.logo img{
    display: block;
    height: calc(10vh * 1); 
    max-height: 60px;
    width: auto;
    margin-left: auto;
	height: calc(10vh * 0.9);
	max-height: 56px;
}


.cta { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: 8px 12px; background: #22c55e; color: #061207; border-radius: 6px; text-decoration: none; font-weight: 700;
	transition: transform 140ms ease, box-shadow 140ms;
	box-shadow: 0 8px 20px rgba(2,6,23,0.35);
}

/* Projects grid */
.projects-section{ 
    padding: 64px 6%; 
    background: rgba(255,255,255,0.02); 
    color: #fff; }

.projects-section h2{ 
    margin:0 0 18px 0; 
    font-size:1.6rem; 
}

.project-grid{ 
    display:grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap:18px; 
}

.project-card{ 
    background: rgba(255,255,255,0.02); 
    border-radius: 8px; 
    overflow: hidden; 
    display:flex; 
    flex-direction: column;
	transition: transform 220ms cubic-bezier(.2,.9,.25,1), box-shadow 220ms;
	box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.project-card:hover{
	transform: translateY(-8px);
	box-shadow: 0 26px 60px rgba(0,0,0,0.55);
}
.project-card img{ width:100%; height:160px; object-fit:cover; display:block;
	height: 220px;
	max-height: 40vh;
	object-position: center center;
	transition: transform 360ms ease;
}
.project-card:hover img { transform: scale(1.03); }
.project-card .meta{ padding:12px; flex:1; display:flex; flex-direction:column; gap:8px; }
.project-card h3{ margin:0; }
.project-card p{ margin:0; color:#d6d6d6; flex:1; }

/* project card button */
.project-card .view-project{
     margin-top:8px;
    align-self:flex-start;
    padding:8px 10px;
    border-radius:6px; 
    background:#22c55e; 
    color:#071409; 
    border:0; 
    cursor:pointer; }




/* when using small screens, stack modal content */
@media (max-width:800px){
    .modal-inner{ flex-direction: column; padding: 16px; }
    .modal-embed{ width:100%; max-width:100%; }
    .modal img.modal-img{ width: 100%; height: auto; margin-bottom: 12px; }
    .modal-content{ padding: 0; }
}

/* Skills section */
.skills-section{ padding: 48px 6%; background: transparent; color: #fff; }
.skills-section h2{ margin:0 0 18px 0; font-size:1.6rem; }
.skills-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; align-items: start; }
.skill-card{ background: rgba(255,255,255,0.02); border-radius: 10px; padding: 14px; text-align: center; display:flex; flex-direction:column; gap:8px; align-items:center;
	padding: 18px;
	transition: transform 200ms ease, box-shadow 200ms;
}

.skill-card:hover{
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.skill-card img{
	/* increased icon size for better visual weight */
	width: 96px;
	height: 96px;
	object-fit: contain;
	margin-bottom: 6px;
}


/* keep it reasonable on small screens */ 
@media (max-width:600px){ 
    .skill-card img[alt="HTML"] { width: 96px; height: 96px; } } 
    
/* skill title and description spacing */ 
.skill-card h4{ 
    margin-top: 6px; 
    font-size: 1.05rem; }
    
.skill-card p{ 
    color: #d6d6d6; font-size: 
    0.95rem; }
    
/* --- Footer styling --- */ 
.site-footer{
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.06)); 
    border-top: 1px solid rgba(255,255,255,0.03); 
    padding: 18px 6%; }
    
.site-footer a{ 
    color: var(--menu-bg); 
    text-decoration: underline; 
    font-weight:600; }
    
/* accessibility: reduce motion preference */ 
@media (prefers-reduced-motion: reduce){
    .hero-inner, .project-card, .skill-card, .btn { transition: none !important; animation: none !important; } }

/* Contact slider styles (shorter, centered, improved UI) */ 
.contact-slider { 
    max-width: 820px; 
    margin: 16px auto 12px auto; 
} 

.contact-instruction { 
    margin: 6px 0 10px 0; 
    color: #e6e6e6; font-weight: 600; 
    text-align:center; } 
    
.slider-wrap { 
    background: rgba(255,255,255,0.035); 
    padding: 16px; border-radius: 14px; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    box-shadow: 0 8px 22px rgba(0,0,0,0.48); 
} 

/* customize range input */ 
input[type="range"]{ 
    -webkit-appearance: none; 
    appearance: none; 
    width: 100%; max-width: 360px;

 /* keep track visually short */ 
 height: 14px; background: linear-gradient(90deg,#2a2a2a 0%, #2a2a2a 100%); 
 border-radius: 10px; 
 outline: none; 
 padding: 0; 
 transition: box-shadow 160ms ease; 
 box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
 
 input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: transparent; border-radius: 8px; }
 
 input[type="range"]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    width: 28px; 
    height: 28px; 
    background: #fff; 
    border-radius: 50%; 
    box-shadow: 0 10px 26px rgba(2,6,23,0.45); 
    margin-top: -10px; cursor: grab; 
    transition: transform 120ms ease, box-shadow 120ms ease; }
    
input[type="range"]::-moz-range-track { 
        height: 8px; background: transparent; 
        border-radius: 8px; } 
        
input[type="range"]::-moz-range-thumb {
        width: 28px; 
        height: 28px; 
        background: #fff; 
        border-radius: 50%; 
        box-shadow: 0 10px 26px rgba(2,6,23,0.45); 
        cursor: grab; 
        transition: transform 120ms ease, box-shadow 120ms ease; } 
        
/* reveal box */ 

.contact-reveal { 
    margin-top: 14px; 
    padding: 18px 20px; 
    min-height: 64px; 
    border-radius: 12px; 
    background: linear-gradient(180deg, rgba(34,197,94,0.08), rgba(0,0,0,0.06)); 
    border: 1px solid rgba(34,197,94,0.14); 
    display: none; 
    align-items: center; 
    justify-content: space-between; 
    gap: 14px; overflow: hidden; } 
    
.contact-reveal.visible { display: flex; } 
    
.revealed-email { 
    font-weight: 800; 
    color: #dff9e0; 
    margin: 0; 
    white-space: nowrap; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    text-overflow: clip; flex: 1 1 auto; 
    font-size: 1.05rem; } 
        
        
        
.reveal-actions { 
    display:flex; 
    gap: 12px; 
    align-items:center; 
    flex: 0 0 auto; }
    
@media (max-width:600px){ 
    .contact-slider { 
        max-width: 100%;
        margin: 12px auto; 
        padding: 0 12px; } 

        .contact-reveal { flex-direction: column; 
            align-items: stretch; 
            min-height: auto; 
            padding: 12px; 
            gap: 10px; } 
        
        .revealed-email { 
            white-space: normal;
            overflow-x: visible; 
            font-size: 0.98rem; 
        } 
        .reveal-actions .btn { width:100%; } }