.main-nav{
	list-style: none;
	display: flex;
	padding:0;
	margin:0;
	height:8vh;
	align-items: center;
	font-size: 22px;
	font-weight: bold;
	color: black;
	position: fixed;
	top: 0;
	z-index: 1000;
	width: 100vw;
    transform: translateY(10px);
}

.main-nav a, .sub-menu a{
	text-decoration: none;
	color: white;
}

.main-nav li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

.main-nav img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

li{
	margin:3%;
	padding:6px 13px;
	border-radius:50px;
	transition:0.3s;
}

li:hover{
	transform:translateY(-5px);
	background-color:rgba(225,225,225,0.5);
}



ul li:first-child{
	margin-right:auto;
}

li img{
	height:50px;
	border-radius:50%;
	transition:0.3s;
}

li img:hover{
	transform:scale(1.05);
}

body{
	margin:0;
	color: white;
}

header{
     color: white;
     background-color: salmon;
     height:10vh ;
     padding:6px;
     width: 100%;
     margin:0;
     top: 0;
     position: fixed;
     z-index: 1000;

}

.intro{
	min-height:100vh;
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	text-align:center;
	padding-top:10vh;
}

html{
	scroll-padding-top: 20vh;
	scroll-behavior: smooth;
}

td{
	margin:2%;
	padding:6px;
	border-radius:50px;
	transition:0.3s;
}

td:hover{
	transform:translateY(-10px);
	background-color:rgba(225,225,225,0.5);
}

.section div{
animation: fadeIn 1s ease;
}

@keyframes fadeIn{
from{
opacity:0;
transform: translateY(30px);
}
to{
opacity:1;
transform: translateY(0);
}
}

.about-text{
background: linear-gradient(135deg, #FA8072, #FF9A9E, #FFD1C1);
background-size:200% 200%;
animation: moveBG 6s ease infinite;
padding:30px;
border-radius:20px;
color:#5a2a27;
}

@keyframes moveBG{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}

.about-image img{
width:70%;
border-radius:50%;
box-shadow:0 0 25px rgba(255,182,193,0.8);
animation:float 4s ease-in-out infinite;
transition:0.4s;
}

.about-image img:hover{
transform:scale(1.08);
}

@keyframes float{
0%{transform:translateY(0);}
50%{transform:translateY(-15px);}
100%{transform:translateY(0);}
}

.birth-month{
background:linear-gradient(45deg, #2A7B9B, #FFABAB,#28A1D1);
background-size:200% 200%;
animation: moveBG 6s ease infinite;
padding:30px;
border-radius:20px;
color:#5a2a27;
}

@keyframes moveBG{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}

/*my elementary header*/
.elem-header {
    background: linear-gradient(45deg, #00B7E0, #FFFD80, #F56975);
    background-size: 300% 300%;   /* Important for animation */
    animation: moveBG 6s ease infinite;
    padding: 2vh;
    height: 18vh;
    color: #5a2a27;
}

@keyframes moveBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.elemdays-image img{
    height: auto;
    width: 100%;
}

/* GLASS elementary*/
.glass-elem {
    font-size: 3vh;
    height: auto;
    width: 40%;
    margin: auto;
    padding: 5vh;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-family: 'Marshmallow', cursive;
    margin:0;
}


/*my high school header*/
.hs-header {
    background: linear-gradient(45deg, #72D474, #F0F04D, #F7572F);
    background-size: 300% 300%;   /* Important for animation */
    animation: moveBG 6s ease infinite;
    padding: 2vh;
    height: 18vh;
    color: #5a2a27;
}

@keyframes moveBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* GLASS */
.glass-elem {
    font-size: 3vh;
    width: 40%;
    margin: auto;
    padding: 5vh;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
}

/* GLASS CARD */
.glass-card{
    width: 60%;
    margin: auto;
    padding: 5vh;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	font-size: 3vh;
    font-family: 'Marshmallow', cursive;
    margin:0;
    align-items: center;
}

/* GRADUATION */

.row .col-md-2{}

/* Responsive tweaks */
@media (max-width: 768px) {
    .row .col-md-2 {
        flex: 0 0 33.333%; 
        max-width: 33.333%;
    }
}

@media (max-width: 576px) {
    .row .col-md-2 {
        flex: 0 0 50%; 
        max-width: 50%;
    }
}

.custom-card{
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: 0.4s;
}

.custom-card:hover{
    transform: translateY(-10px) scale(1.03);
}

.me {
    font-size: 1.5rem;          
    font-weight: 600;           
    margin: 25px 0 15px 0;      
    text-align: center;          
    color: darkred;                
    border-bottom: 2px solid gray; 
    display: inline-block;      
    padding-bottom: 5px;
}

.row img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.row img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.carousel-item img {
    object-fit: cover;
}

.carousel-caption h5 {
    color: whitesmoke!important;      
    font-weight: bold !important;
    font-size: 2.5vh !important;    
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7) !important;
}

.carousel-caption p {
    color: #ffffff;
    font-size: 2vh;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7) !important
}

/* Masonry Gallery for Elementary Days */
.masonry-gallery {
    column-count: 3;          
    column-gap: 18px;         
    max-width: 1200px;
    margin: 0 auto 5vh auto;
    padding: 0 10px;
}

.masonry-gallery img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 15px;
    display: block;
    break-inside: avoid;      
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-gallery {
        column-count: 1;
    }
}


.clg-header {
    background: linear-gradient(45deg, #020E78, #82B6FF, #FFF98F, #FCF112);
    background-size: 300% 300%;   /* Important for animation */
    animation: moveBG 6s ease infinite;
    padding: 2vh;
    height: 18vh;
    color: #5a2a27;
}

@keyframes moveBG {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/*ABOUT BSIT SECTION*/
.bsit-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bsit-logo {
    width: 35%;
    height: 35%;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.bsit-logo:hover {
    transform: scale(1.05);
}

.about-bsit {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 5vh;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
}

/* ================= COLLEGE MOMENTS SECTION ================= */
.college-moments {
    padding: 60px 0;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* Card Design */
.college-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

/* Image Styling */
.college-card img {
    width: 100%;
    height: 250px; /* Ensures uniform image size */
    object-fit: cover;
}

/* Hover Effect */
.college-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

/* Caption Styling */
.college-caption {
    padding: 15px;
    text-align: center;
    background: #ffffff;
}

.college-caption h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #020E78; /* You can adjust this to match ASC colors */
    margin-bottom: 5px;
}

.college-caption p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .college-card img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .college-card img {
        height: 200px;
    }
}

/* Skills Section */
.skills-section {
    background-color: cadetblue;
    padding: 60px 5%;
    color: white;
}

/* Title */
.skills-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

/* Container Layout */
.skills-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Left Text Box */
.skills-text {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Skills Section */
.skills-section {
    background-color: cadetblue;
    padding: 60px 5%;
    color: white;
}

/* Title */
.skills-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

/* Layout Container */
.skills-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Left Text Area */
.skills-text {
    flex: 1;
    padding: 20px;
}

/* MY SKILLS Image */
.my-skills-img {
    width: 220px;
    margin-bottom: 20px;
}

div .skills-container{
     transform: translateY(-45px); /* Paangatin ang image */
}

/* Skills List */
.skills-title{
    color: whitesmoke;
}
.skills-text ul {
    margin-top: 15px;
    padding-left: 20px;
}

.skills-text li {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Right Image Section */
.skills-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ekangskie Image - Clean and Large */
.skills-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transform: translateY(-45px); /* Paangatin ang image */
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        text-align: center;
    }

    .skills-image img {
        max-width: 350px;
        margin-top: 20px;
    }
}


/* ===== GLOBAL RESPONSIVE FIX (APPLIES TO ALL PAGES) ===== */

/* Make everything flexible */
*{
    max-width: 100%;
    box-sizing: border-box;
}

/* Images auto scale */
img{
    max-width: 100%;
    height: auto;
}

/* Fix navbar on mobile */
@media (max-width: 768px){

    .main-nav{
        flex-direction: column;
        align-items: center;
        height: auto;
        position: relative;
    }

    .main-nav li{
        margin: 8px 0;
    }

    header{
        height: auto;
        position: relative;
    }

    /* Fix intro spacing */
    .intro{
        padding-top: 20px;
    }

    /* Fix text sizes globally */
    h1{
        font-size: 24px;
    }

    p{
        font-size: 16px !important;
    }

    /* Fix quote */
    .quote{
        font-size: 1.3rem !important;
        max-width: 90% !important;
    }

    /* Fix about section */
    .about{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image img{
        width: 80%;
        height: auto;
    }

    /* Fix glass cards */
    .glass-card, .glass-elem{
        width: 90% !important;
    }

    /* Fix skills */
    .skills-container{
        flex-direction: column;
        text-align: center;
    }

    .skills-image img{
        max-width: 300px;
        transform: none;
    }

    /* Fix profile */
    .profile-card img{
        width: 120px;
        height: 120px;
    }

}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px){

    h1{
        font-size: 20px;
    }

    p{
        font-size: 14px !important;
    }

    .quote{
        font-size: 1rem !important;
    }

}