@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Poppins&display=swap');
*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Define color variables for easier color management */
:root {
    --primary-color: #1e3a8a; /* Blue */
    --secondary-color: #f97316; /* Orange */
    --background-color: #020c1c;
    --text-light-color: #ffffff;
    --text-dark-color: #5b5b5b;
}

.Home {
    min-height: 100vh;
    background-color: var(--background-color);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    overflow: hidden;
    background-image: url('logo.png'); 
    background-repeat: no-repeat; 
    background-size: 100px; 
    background-position: 100px 10px; 
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 100px;
    font-size: 22px;
    z-index: 99;
    opacity: 0;
    animation: to_bottom 1s ease forwards;
    transition: top 0.3s; 
}

header.hidden {
    top: -100px; 
}

header nav a {
    color: var(--text-light-color);
    margin-left: 70px;
    font-size: 26px;
    position: relative;
}

header nav a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2.5px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    border-radius: 6px;
    transition: .3s;
    transform-origin: center;
    transform: scaleX(0);
}

header nav .active::before,
header nav a:hover::before {
    transform: scaleX(1);
}

.text-box {
    width: 50%;
}

.text-box h1 {
    font-size: 85px;
    color: var(--primary-color);
    animation: to_right 1s ease forwards .8s;
}

.text-box h1:nth-child(2) {
    font-size: 50px;
    color: var(--text-light-color);
    animation-delay: .9s;
}

.text-box p {
    margin: 40px 0;
    font-size: 22px;
    width: 77%;
    color: var(--text-dark-color);
    animation: to_right 1s ease forwards 1s;
}

.btn-box {
    display: flex;
    gap: 20px;
}

.btn {
    position: relative;
    color: var(--text-light-color);
    padding: 12px 30px;
    font-size: 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: .3s;
    animation: to_right 1s ease forwards 1.1s;
}

.btn:hover,
.btn:nth-child(2) {
    color: var(--background-color);
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

.btn:nth-child(2):hover {
    color: var(--text-light-color);
    background: transparent;
    box-shadow: none;
}

.img {
    position: absolute;
    right: 10px;
    top: 150px;
    height: 100%;
    max-width: 50%;
    z-index: 1;
    transform: translateY(100%);
    animation: to_top 1.8s ease forwards 1.1s;
}

.background-span {
    position: absolute;
    height: 100%;
    display: flex;
    right: 0;
    z-index: 0;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    animation: overlay_span 1.5s ease forwards 2.9s;
    transform-origin: right;
}

.text-box * {
    opacity: 0;
}

.text-box span {
    opacity: 1;
}

/* keyframes */
@keyframes to_bottom {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes to_right {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes to_top {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes overlay_span {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}


/* --------------- CONTENT ----------------- */
#Content {
    padding: 30px 0;
    background-color: var(--background-color);
    color: var(--text-light-color);
}

.Content-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin: 50px;
}

.Content-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--primary-color);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light-color);
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s, color 0.5s;
    height: 100%; 
}

.Content-item h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.Content-item p {
    color: var(--text-light-color);
    flex-grow: 1; 
}

.link-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; 
    margin-top: 20px; 
}

.link-container a {
    text-decoration: none;
    color: var(--text-light-color);
    font-size: 12px;
    display: inline-block;
    margin-top: 0; 
}

.link-container a .fa-file-video {
    font-size: 35px; 
    color: var(--text-light-color); 
}


.link-container a:hover .fa-file-video {
    color: #1e3a8a; 
}

.Content-item:hover {
    background: var(--secondary-color);
    transform: translateY(-10px);
    color: var(--background-color);
}

.Content-item:hover h2 {
    color: var(--primary-color);
}

.btn2 {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--background-color);
    padding: 10px 20px;
    font-size: 14px;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn2:hover {
    background: var(--primary-color);
    color: var(--text-light-color);
}

/* Sub-title style */
.sub-title {
    font-size: 50px; 
    font-weight: bold; 
    color: var(--secondary-color); 
    text-align: center; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    padding: 10px 0; 
}

@media (max-width: 768px) {
    .sub-title {
        font-size: 28px; 
    }
}


/* --------------- CONTACT ----------------- */
.contact-left {
    color: var(--text-light-color);
    background-color: var(--background-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}

.contact-left h1.sub-title {
    margin-bottom: 20px;
}

.contact-left p {
    margin-bottom: 10px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    text-decoration: none;
    font-size: 50px;
    margin-right: 15px;
    color: var(--text-dark-color);
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .contact-left {
        padding: 20px;
    }

    .social-icons {
        margin-top: 15px;
    }

    .btn2 {
        margin-top: 15px;
    }
}
