:root{
    --mainColor : #111844;
    --secondaryColor : #021A54;
    --acsentColor : #F4B342;
    --secondacsentColor : #FFC85C;
}

body {
    background-color: var(--mainColor);
    min-height: 900px;
    font-family: 'ubuntu', sans-serif;
}

section h1 {
    color: #fff;
    font-size: 2.5rem;
}

/* Navbar */

.nav-link.active {
    color: var(--secondacsentColor) !important;
    font-weight: 700;
}

.nav-dark {
    background-color: var(--secondaryColor) !important;
    z-index: 10;
    transition: 0.9s;
}


.navbar .nav-link:hover{
    color: var(--secondacsentColor);
}

.navbar .nav-link.active{
    color: var(--secondacsentColor);
    font-weight:700;
}

#skill {
    scroll-margin-top: 90px; /* adjust to your navbar height */
}

#projects {
    scroll-margin-top: 255px; /* adjust to your navbar height */
}

/* Default */
.navbar .nav-link{
    color: #9aa0b5 !important;   /* gray */
    transition: color .4s ease;
}

/* Active page (HOME) */
.navbar .nav-link.active{
    color: var(--secondacsentColor) !important;
    font-weight: 700;
}

/* Hover */
.navbar .nav-link:hover{
    color: var(--secondacsentColor) !important;
}
/* End Navbar */

/* Hero */

.color-acsent {
    color: var(--secondacsentColor);
}

#home {
    color: #fff;
    min-height: 100vh;
    padding-top: 70px;
}

#home h1 {
    font-size: 2.4rem;
}

#home h2 {
    font-weight: 400;
}

#home p {
    font-size: 1.107rem;
    font-weight: 500;
}

/* CTA */
.btn-custom1 {
    background-color: var(--acsentColor);
    text-align: center;
    color: #fff;
    min-width: 180px;
    height: 45px;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;   /* prevents text from wrapping */
}

.btn-custom1:hover {
    box-shadow: 0 0 15px rgba(255, 166, 0, .8)
}



.social-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1px;
}

.cv {
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.social-icon svg{
    margin-right: 1rex;
    margin-bottom: 4px;
}

.social-icon {
    transform: translateY(-10px);
}



/* End Hero */

/* About */

hr{
    width: 35%;
    height: 5px;
    color: var(--acsentColor);
    margin: 0 auto;
    opacity: 100%;
}

#about {
    min-height: 300px;
    width: 100%;
    background-color: var(--secondaryColor);
    color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.about-grid {
    font-weight: 500;
}


/* End About */

/* Skill */

#skill {
    min-height: 600px;
    width: 100%;
    color: #fff;

}

#skill img {
    height: 97px;      /* fixed height, adjust until it matches your XD scale */
    width: auto;       /* let width scale proportionally based on height */
    margin: 15px;
}

/* Add for skill description */
.skill-item{
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.skill-item img{
    transition: .3s;
}

.skill-text{
    margin-top: 10px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    width: 180px;

    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.skill-item:hover .skill-text{
    opacity: 1;
    visibility: visible;
}

.skill-item:hover img{
    transform: scale(1.08);
}

.skill-item{
    position: relative;
    display: inline-block;
    text-align: center;
}

.skill-info{
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    margin-top: 10px;
}

.skill-item:hover .skill-info{
    opacity: 1;
    visibility: visible;
}

.skill-title{
    color: #fff;
    font-size: 1.5rem;      /* Logo name */
    font-weight: 700;
    margin-bottom: 5px;
}

.skill-desc{
    color: #fff;
    font-size: 0.90rem;     /* Smaller description */
    font-weight: 400;
    margin: 0;
}
/* End for skill description */

#skill .card{
    background-color: #14496C;
    height: 340px;
}

#skill .card:hover {
    background-color: var(--acsentColor);
}

.skill-content{
    margin-top: 120px;
}

/* End Skill */

/* Click Card Teleport to Projects */
html {
    scroll-behavior: smooth;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

#project-lead-capture,
#project-invoice,
#project-vps {
    scroll-margin-top: 100px; /* adjust to match your navbar height */
}

/* End Click Card Teleport to Projects */

/* Projects */

#projects {
    margin-top: -170px;
    padding: 270px 0;
    padding-bottom: 200px; /* increase section height */
    background-color: var(--secondaryColor);
}

.project-grid img {
    border-radius: 8px;
    max-width: 85%;
    height: auto;
}

.project-grid p {
    color: #fff;
    text-align: center;
}

#projects p, 
#projects a{
    color: #fff !important;
    text-decoration: none;
}

/* Hover Project Card*/
.project-card{
    transition: transform .3s ease;
}
.project-card img{
    transition: transform .3s ease, box-shadow .3s ease;
    border-radius: 16px;
}

.project-card:hover img{
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(255,255,255,.8);
    border-radius: 16px;
    
}


/* End Hover Project Card*/

/* End Projects */


/* Blog */
.linkedin-link{
    color: var(--acsentColor);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .3s ease;
}

.linkedin-link:hover{
    color: var(--secondacsentColor);
}

.linkedin-link svg{
    position: relative;
    top: 4px;    /* move down */
}
/* End Blog */