/* --- Variables & Reset --- */

:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --accent-color: #d4af37;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}


/* --- Typography --- */

h1,h2,h3{
font-family:var(--font-heading);
font-weight:400;
margin-bottom:1rem;
}

h1{font-size:3rem;}

h2{
font-size:2.5rem;
text-align:center;
margin-bottom:40px;
color:var(--accent-color);
}

a{
text-decoration:none;
color:inherit;
transition:.3s;
}



/* --- Buttons --- */

.btn{
display:inline-block;
padding:12px 30px;
background:var(--accent-color);
color:#000;
font-weight:bold;
text-transform:uppercase;
letter-spacing:1px;
border:2px solid var(--accent-color);
}

.btn:hover{
background:transparent;
color:var(--accent-color);
}

.btn-outline{
background:transparent;
border:2px solid var(--text-color);
color:var(--text-color);
}

.btn-outline:hover{
border-color:var(--accent-color);
color:var(--accent-color);
}



/* --- Navigation --- */

nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 5%;
position:fixed;
width:100%;
top:0;
background:rgba(18,18,18,.95);
z-index:1000;
}

.logo{
font-family:var(--font-heading);
font-size:1.5rem;
letter-spacing:2px;
}

.nav-links{
list-style:none;
display:flex;
gap:20px;
}

.nav-links a:hover{
color:var(--accent-color);
}



/* --- Mobile Menu --- */

.menu-toggle{
display:none;
flex-direction:column;
cursor:pointer;
}

.menu-toggle .bar{
height:3px;
width:25px;
background:var(--text-color);
margin:3px 0;
}



/* --- Hero --- */

.hero{
height:100vh;

background:
linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
url('Images/salva_profile.png');

background-size:cover;
background-position:center;

display:flex;
align-items:center;
justify-content:center;

text-align:center;
}

.hero-content p{
font-size:1.2rem;
margin-bottom:2rem;
font-style:italic;
}



/* --- Containers --- */

.container{
padding:120px 10% 80px;
max-width:1200px;
margin:auto;
}



/* --- Sections FIXED --- */

/* METHOD */

#method{

min-height:100vh;
background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
url('Images/method_image.JPEG');

background-size:cover;
background-position:center;



}

/* STUDENTS */

#students{

min-height:100vh;
background:#000;

}


/* ABOUT */

#about{

height:100vh;

background:
linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
url('Images/about_image.JPEG');

background-size:cover;
background-position:center;

display:flex;
align-items:center;
justify-content:center;

text-align:center;

}

.about-text h2{
text-align:left;
}

.about-image img{
width:100%;
border-radius:4px;
filter:sepia(20%);
}



/* ================= */
/* VIDEO SECTION */
/* ================= */

.video-container{

position:relative;
width:100%;
height:370px;

overflow:hidden;

}


/* Edge fade */

.video-container::before,
.video-container::after{

content:"";
position:absolute;
top:0;
width:70px;
height:100%;
pointer-events:none;
z-index:5;

}

.video-container::before{
left:0;
background:linear-gradient(to right,#000,transparent);
}

.video-container::after{
right:0;
background:linear-gradient(to left,#000,transparent);
}



/* Scroll */

.video-grid{

display:flex;

overflow-x:auto;
overflow-y:hidden;

gap:20px;

padding:10px 70px;

height:370px;

scroll-behavior:smooth;

scroll-snap-type:x mandatory;

-webkit-overflow-scrolling:touch;

scrollbar-width:none;

}

.video-grid::-webkit-scrollbar{
display:none;
}



/* Videos */

.youtube-wrapper{

flex:0 0 auto;

width:200px;
height:350px;

scroll-snap-align:center;

transition:.25s;
}

.youtube-wrapper:hover{
transform:scale(1.05);
}

.youtube-wrapper iframe{

width:100%;
height:100%;

border-radius:10px;

background:#000;

}



/* Arrows */

.scroll-arrow{

position:absolute;

top:50%;
transform:translateY(-50%);

background:rgba(0,0,0,.7);

color:var(--accent-color);

border:none;

width:42px;
height:42px;

border-radius:50%;

cursor:pointer;

z-index:10;

display:flex;
align-items:center;
justify-content:center;

transition:.3s;
}

.scroll-arrow:hover{

background:rgba(0,0,0,.95);

transform:translateY(-50%) scale(1.1);

}

.left-arrow{left:10px;}
.right-arrow{right:10px;}

/* =========================
   VIDEO GALLERY ARROWS STYLING
   ========================= */

.video-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.video-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 0 60px; /* Space for arrows */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.video-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    /* Remove transform: scale(1.1) to avoid shifting */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Ensure arrows are always visible and don't overlap content */
@media (max-width: 768px) {
    .scroll-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}


/* --- Contact & Footer --- */
.contact-section {
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 10px; /* Reduces space below the heading */
}

.contact-section p {
    font-size: 1.2rem; /* Increases paragraph font size */
}

.socials {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between icons */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Icon container size */
    height: 50px; /* Icon container size */
    border-radius: 50%; /* Circular background */
    background-color: #f0f0f0; /* Light gray background */
    transition: all 0.3s ease; /* Smooth hover effect */
}

.social-icon i {
    font-size: 24px; /* Icon size */
    color: #333; /* Icon color */
}

.social-icon:hover {
    background-color: #e0e0e0; /* Darker gray on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.social-icon:hover i {
    color: #0073b1; /* Change icon color on hover */
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    font-size: 0.8rem;
    color: #666;
}




/* --- Mobile --- */

@media(max-width:768px){

h1{font-size:2rem;}

.menu-toggle{display:flex;}

.nav-links{

position:absolute;
top:70px;
right:0;

width:100%;

background:rgba(18,18,18,.98);

flex-direction:column;

text-align:center;

padding:20px 0;

display:none;

}

.nav-links.active{
display:flex;
}

.nav-links li{
margin:15px 0;
}

}