/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: #ededed;
    background: #081b29; /* Background color for other sections */
}

/* --- Header & Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(8, 27, 41, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 18px; /* Standardized size */
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover, .navbar a.active {
    color: #0ef;
}

/* --- Home Section --- */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('Purple\ Illustrated\ Mountain\ Desktop\ Wallpaper.png') no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 18px;
    margin-top: 10px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}

.home-sci a:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef, 0 0 25px #0ef;
}

.btn-box:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px cyan;
}

/* --- Shared Heading --- */
.heading {
    font-size: 45px;
    text-align: center;
    margin-bottom: 50px;
}
.heading span {
    color: #0ef;
}

/* --- About Section --- */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: #112e42;
    padding: 100px 10%;
}
.about-img img {
    width: 350px;
    border-radius: 20%;
    border: 4px solid #0ef;
}
.about-content h2 { text-align: left; margin-bottom: 10px; }
.about-content p { font-size: 16px; margin: 2rem 0 3rem; }

/* --- Services Section --- */
.services { padding: 100px 10%; }
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div {
    background: #112e42;
    padding: 40px;
    font-size: 13px;
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s;
}
.services-list div:hover {
    background: #0ef;
    color: #081b29;
    transform: translateY(-10px);
}
.services-list div i { font-size: 50px; margin-bottom: 30px; }
.services-list div h2 { font-size: 30px; margin-bottom: 15px; }

/* --- Skills Section --- */
.skills { background: #081b29; padding: 100px 10%; }
.skills-main { max-width: 800px; margin: auto; }
.skill-bar { margin-bottom: 25px; }
.skill-bar .info { display: flex; justify-content: space-between; margin-bottom: 10px; }
.bar {
    width: 100%;
    height: 10px;
    background: #112e42;
    border-radius: 10px;
    position: relative;
}
.bar span {
    height: 100%;
    position: absolute;
    background: #0ef;
    border-radius: 10px;
}
.html { width: 90%; }
.js { width: 75%; }
.react { width: 80%; }

/* --- Portfolio/Projects --- */
.portfolio { padding: 100px 10%; }
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}
.portfolio-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}
.portfolio-box img { width: 100%; transition: .5s ease; opacity: 0.7; }
.portfolio-box:hover img { transform: scale(1.1); }
.portfolio-layer {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), #0ef);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 40px; text-align: center;
    transform: translateY(100%); transition: .5s ease;
}
.portfolio-box:hover .portfolio-layer { transform: translateY(0); }
.portfolio-layer h4 { font-size: 30px; color: #081b29; }
.portfolio-layer p { color: #081b29; margin: 10px 0; }
.portfolio-layer i { color: #081b29; background: #fff; padding: 10px; border-radius: 50%; }

/* --- Contact Section --- */
.contact { background: #112e42; padding: 100px 10%; }
.contact form { max-width: 700px; margin: 0 auto; text-align: center; }
.contact form .input-box { display: flex; justify-content: space-between; flex-wrap: wrap; }
.contact form .input-box input, .contact form textarea {
    width: 100%; padding: 15px; font-size: 16px; color: #fff;
    background: #081b29; border-radius: 10px; margin: 10px 0; border: none;
}
.contact form .input-box input { width: 49%; }

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 10%;
    background: #081b29;
}
.footer-text p { font-size: 16px; }
.footer-iconTop a {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 10px; background: #0ef; border-radius: 10px; transition: .5s ease;
}
.footer-iconTop a:hover { box-shadow: 0 0 20px #0ef; }
.footer-iconTop a i { font-size: 24px; color: #081b29; }

/* --- Animations --- */
@keyframes slideRight { 0% { transform: translateX(-100px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes slideLeft { 0% { transform: translateX(100px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes slideTop { 0% { transform: translateY(100px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes slideBottom { 0% { transform: translateY(-100px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }