:root{
--accent1:#1e9e9e;
--accent2:#6bd14d;
}

*{
box-sizing:border-box;
max-width:100%;
}

html, body{
width:100%;
max-width:100%;
overflow-x:hidden;
}

body{
margin:0;
font-family:Arial, sans-serif;
color:white;
background:linear-gradient(120deg,var(--accent1),var(--accent2));
background-attachment:fixed;
scroll-snap-type:y mandatory;
}

button{
font:inherit;
color:inherit;
background:none;
border:none;
}

header{
min-height:100vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
scroll-snap-align:start;
padding:120px 20px 56px;
}

h1{
font-size:clamp(40px,8vw,120px);
margin:0;
}

h2{
font-size:clamp(36px,5vw,72px);
width:100%;
text-align:center;
margin:0 0 30px 0;
}

section p, section ul{
font-size:clamp(18px,1.6vw,26px);
max-width:900px;
text-align:left;
line-height:1.7;
}

nav{
position:fixed;
top:20px;
right:20px;
z-index:50;
}

nav a{
background:rgba(0,0,0,0.4);
padding:10px 18px;
margin-left:10px;
text-decoration:none;
color:white;
border-radius:6px;
transition:.3s;
}

nav a:hover{
background:rgba(0,0,0,0.7);
}

.logo{
position:fixed;
top:20px;
left:20px;
width:80px;
height:80px;
object-fit:cover;
z-index:60;
border-radius:10px;
}

section{
min-height:80vh;
height:auto;
width:min(90%,1200px);
margin:4vh auto 8vh;
background:rgba(0,0,0,0.7);
border-radius:20px;
padding:40px;
display:flex;
flex-direction:column;
justify-content:flex-start;
scroll-margin-top:24px;
scroll-snap-align:center;
opacity:0;
transform:translateY(60px);
transition:1s ease;
overflow:hidden;
}

#about{
margin-top:2vh;
}

#portfolio, #contact{
min-height:60vh;
height:auto;
position:relative;
}

section.visible{
opacity:1;
transform:translateY(0);
}

.about-wrapper{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:40px;
flex-wrap:wrap;
}

.about-wrapper > *{
flex:1 1 280px;
min-width:0;
}

.about-text{
display:flex;
flex-direction:column;
align-items:flex-start;
max-width:520px;
padding:10px 0;
}

.about-text p{
width:100%;
margin:0 0 18px;
padding:18px 22px;
background:rgba(255,255,255,0.08);
border-left:4px solid rgba(107,209,77,0.9);
border-radius:12px;
box-shadow:0 10px 24px rgba(0,0,0,0.18);
transition:transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.about-text p:last-child{
margin-bottom:0;
}

.about-gallery{
display:grid;
grid-template-columns:1fr;
gap:16px;
width:100%;
max-width:380px;
margin-right:28px;
padding-right:12px;
}

.about-gallery-item{
margin:0;
display:flex;
flex-direction:column;
gap:10px;
transition:transform .22s ease, box-shadow .22s ease;
transform-origin:center right;
}

.about-gallery img{
width:100%;
height:180px;
object-fit:cover;
border-radius:12px;
display:block;
box-shadow:0 10px 24px rgba(0,0,0,0.18);
}

.about-gallery-item figcaption{
margin:0;
padding:12px 14px;
font-size:15px;
line-height:1.5;
text-align:center;
background:rgba(255,255,255,0.08);
border-radius:10px;
box-shadow:0 10px 24px rgba(0,0,0,0.18);
}

.portfolio-wrapper{
width:100%;
overflow:hidden;
}

.portfolio-track{
display:flex;
align-items:center;
width:max-content;
will-change:transform;
animation:scroll var(--portfolio-duration, 30s) linear infinite;
}

.portfolio-item{
margin:0;
padding-right:40px;
text-align:center;
flex:0 0 auto;
width:min(320px,70vw);
}

.portfolio-item img{
width:100%;
max-width:320px;
height:200px;
object-fit:cover;
border-radius:10px;
display:block;
}

.portfolio-item p{
margin-top:12px;
padding:10px 14px;
font-size:18px;
text-align:center;
background:rgba(255,255,255,0.08);
border-radius:10px;
transition:transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.contact-intro{
max-width:520px;
margin:0 0 18px;
padding:14px 18px;
background:rgba(255,255,255,0.08);
border-radius:12px;
font-weight:600;
box-shadow:0 10px 24px rgba(0,0,0,0.18);
transition:transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.contact-list{
margin:0;
padding:22px 26px;
max-width:520px;
list-style:none;
background:rgba(255,255,255,0.08);
border-radius:14px;
box-shadow:0 10px 24px rgba(0,0,0,0.18);
transition:transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.contact-list li + li{
margin-top:12px;
padding-top:12px;
border-top:1px solid rgba(255,255,255,0.12);
}

@keyframes scroll{
from{transform:translateX(0)}
to{transform:translateX(calc(-1 * var(--portfolio-loop-distance, 50%)))}
}

.scroll-arrow{
position:fixed;
bottom:60px;
left:50%;
transform:translateX(-50%);
display:flex;
align-items:center;
justify-content:center;
width:56px;
height:56px;
font-size:0;
line-height:0;
cursor:pointer;
animation:bounce 2s infinite;
z-index:70;
padding:0;
border-radius:999px;
background:rgba(0,0,0,0.35);
box-shadow:0 10px 24px rgba(0,0,0,0.22);
backdrop-filter:blur(8px);
opacity:1;
visibility:visible;
pointer-events:auto;
transition:opacity .25s ease, visibility .25s ease;
}

.scroll-arrow.hidden{
opacity:0;
visibility:hidden;
pointer-events:none;
}

.scroll-arrow::before{
content:"";
width:14px;
height:14px;
border-right:3px solid white;
border-bottom:3px solid white;
transform:rotate(45deg) translate(-1px, -1px);
}

@keyframes bounce{
0%,20%,50%,80%,100%{transform:translate(-50%,0)}
40%{transform:translate(-50%,-10px)}
60%{transform:translate(-50%,-5px)}
}

.footer-bar{
position:fixed;
bottom:0;
left:0;
width:100%;
text-align:center;
padding:8px 12px;
font-size:14px;
background:rgba(0,0,0,.6);
z-index:80;
}

.menu-toggle{
position:fixed;
top:20px;
right:20px;
font-size:28px;
background:rgba(0,0,0,.6);
padding:10px 15px;
border-radius:8px;
cursor:pointer;
z-index:100;
display:none;
}

.sidebar{
position:fixed;
right:-260px;
top:0;
height:100%;
width:260px;
background:rgba(0,0,0,.95);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
padding:40px 20px;
transition:.4s;
z-index:99;
}

.sidebar a{
color:white;
text-decoration:none;
padding:15px 0;
font-size:22px;
text-align:center;
width:100%;
}

.sidebar.open{
right:0;
}

.lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.9);
display:flex;
justify-content:center;
align-items:center;
opacity:0;
pointer-events:none;
transition:.4s;
z-index:200;
}

.lightbox.open{
opacity:1;
pointer-events:auto;
}

.lightbox img{
max-width:90%;
max-height:90%;
object-fit:contain;
border-radius:10px;
}

.equalizer{
display:flex;
justify-content:center;
align-items:flex-end;
width:90%;
max-width:600px;
margin:0 auto 20px auto;
height:160px;
gap:10px;
}

.bar{
flex:1;
min-width:6px;
background:white;
border-radius:3px;
height:40px;
transition:height .50s linear;
}

.facebook-link{
position:absolute;
bottom:20px;
right:20px;
display:flex;
flex-direction:column;
align-items:center;
gap:8px;
}

.facebook-link img{
width:clamp(64px,10vw,100px);
height:clamp(64px,10vw,100px);
object-fit:cover;
cursor:pointer;
border-radius:8px;
transition:.3s;
}

.facebook-link img:hover{
transform:scale(1.1);
}

.facebook-link p{
margin:0;
font-size:16px;
text-align:center;
}

@media (hover:hover) and (pointer:fine) and (min-width:1025px){
.about-text p:hover{
transform:scale(1.02);
background:rgba(255,255,255,0.14);
box-shadow:0 14px 30px rgba(0,0,0,0.24);
}

.about-gallery-item:hover{
transform:scale(1.18);
box-shadow:0 18px 36px rgba(0,0,0,0.28);
z-index:2;
position:relative;
}
}

@media (max-width:1024px){
nav{
display:none;
}

.menu-toggle{
display:block;
}

header{
padding-top:130px;
padding-bottom:72px;
}

.about-wrapper{
flex-direction:column;
align-items:flex-start;
}

.about-text{
max-width:none;
}

.contact-intro{
max-width:none;
}

.about-gallery{
max-width:none;
grid-template-columns:repeat(2, minmax(0, 1fr));
margin-right:0;
padding-right:0;
}

.about-gallery img{
height:200px;
}

.portfolio-item{
width:min(220px,68vw);
padding-right:20px;
}

.portfolio-item img{
max-width:none;
height:150px;
}

section{
padding:25px;
min-height:auto;
margin:4vh auto 7vh;
}
}

@media (max-width:600px){
.equalizer{
height:120px;
gap:6px;
}

.bar{
min-width:4px;
}

section{
width:min(94%,640px);
padding:22px 18px;
}

.about-gallery{
grid-template-columns:1fr;
gap:14px;
}

.about-gallery img{
height:220px;
}

.facebook-link{
position:static;
margin-top:20px;
align-self:flex-end;
}

.scroll-arrow{
width:50px;
height:50px;
bottom:54px;
}
}

@media (max-height:520px) and (orientation:landscape){
body{
scroll-snap-type:none;
}

header{
min-height:auto;
padding:110px 20px 60px;
}

section,
#portfolio,
#contact{
min-height:auto;
height:auto;
margin:16px auto 56px;
}

.about-wrapper{
flex-direction:row;
align-items:flex-start;
gap:24px;
}

.about-text{
max-width:460px;
}

.about-text p{
padding:16px 18px;
}

.about-gallery{
max-width:420px;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:12px;
margin-right:0;
padding-right:0;
}

.about-gallery img{
height:140px;
}

.portfolio-wrapper{
overflow:hidden;
padding-bottom:0;
}

.portfolio-track{
animation:scroll var(--portfolio-duration, 30s) linear infinite;
padding-right:0;
}

.portfolio-item{
width:200px;
padding-right:16px;
}

.portfolio-item img{
height:130px;
}

.facebook-link{
position:static;
margin-top:16px;
align-self:flex-end;
}

.scroll-arrow{
bottom:46px;
}

.footer-bar{
position:static;
margin-top:20px;
}
}
