
:root {
    --bg-color: #222526;
    --text-color: #e0e0e0;
    --muted-color: #939393;
    --accent: #fff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1c1c1cae;  
    backdrop-filter: blur(10px);             
    -webkit-backdrop-filter: blur(10px);  
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDown 1s ease-out forwards;
    opacity: 0;
}

.navbar.scrolled {
    background-color: #1c1c1cae; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 15px 5%;
}

@keyframes slideDown {
    0% {
    transform: translateY(-50px);
    opacity: 0;
    }
    100% {
    transform: translateY(0);
    opacity: 1;
    }
}

.nav-link {
    position: relative;
    color: var(--muted-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-color);
}


.nav-menu {
    display: flex;
    gap: 30px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 20vh 5% 10vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-title.animate-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    line-height: 1.4;
    text-align: center;
}


.animate-text span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
}

.animate-text span:nth-child(1)  { animation-delay: 0s; }
.animate-text span:nth-child(2)  { animation-delay: 0.05s; }
.animate-text span:nth-child(3)  { animation-delay: 0.10s; }
.animate-text span:nth-child(4)  { animation-delay: 0.15s; }
.animate-text span:nth-child(5)  { animation-delay: 0.20s; }
.animate-text span:nth-child(6)  { animation-delay: 0.25s; }
.animate-text span:nth-child(7)  { animation-delay: 0.30s; }
.animate-text span:nth-child(8)  { animation-delay: 0.35s; }
.animate-text span:nth-child(9)  { animation-delay: 0.40s; }
.animate-text span:nth-child(10) { animation-delay: 0.45s; }
.animate-text span:nth-child(11) { animation-delay: 0.50s; }
.animate-text span:nth-child(12) { animation-delay: 0.55s; }
.animate-text span:nth-child(13) { animation-delay: 0.60s; }
.animate-text span:nth-child(14) { animation-delay: 0.65s; }
.animate-text span:nth-child(15) { animation-delay: 0.70s; }
.animate-text span:nth-child(16) { animation-delay: 0.75s; }
.animate-text span:nth-child(17) { animation-delay: 0.80s; }
.animate-text span:nth-child(18) { animation-delay: 0.85s; }
.animate-text span:nth-child(19) { animation-delay: 0.90s; }
.animate-text span:nth-child(20) { animation-delay: 0.95s; }

@keyframes fadeUp {
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted-color);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.9s; /* starts after the name animation ends */
}

@keyframes fadeInUp {
    to {
    opacity: 1;
    transform: translateY(0);
    }
}


.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.about-text,
.contact-section p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

#contact .section-title {
    color: var(--bg-color);
}

.about-text {
    color: var(--text-color);
}

.contact-section p {
    color: #222526;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #353A3E;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    background: #444a4fe1;
    box-shadow: 0 3px 18px rgba(0,0,0,0.4);
}

.project-card h3 {
    margin-bottom: 15px;
}

.project-card p {
    margin-bottom: 15px;
}

.project-link {
    color: #85a8cd;
    text-decoration: none;
    font-size: 1rem;
}

.project-link:hover {
    text-decoration: underline;
    color: #DCD7C9;
}

.certificate-list a {
    display: block;
    background: #353A3E;
    padding: 2rem;
    color: #e0e0e0;
    width: 100%;
    max-width: 90vw;
    margin: 0 auto 3rem;
    border: 2px solid #353A3E;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.3s;
    text-align: center;
}

.certificate-list a:hover {
    border-color: var(--accent);
    max-width: 92vw;
}

.footer {
    background: #F0F0F0;
    text-align: center;
    padding: 30px 5%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-icons a {
    color: var(--muted-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--bg-color);
}

.copyright {
    color: var(--muted-color);
    font-size: 0.9rem;
}

hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 3rem auto;
    max-width: 700px;
}

@media (max-width: 768px) {
    .hero-title {
    font-size: 3rem;
    }
    .hero-subtitle {
    font-size: 1.2rem;
    }
    .nav-menu {
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    top: 100%;
    right: 5%;
    background: #1c1c1c;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 6px;
    }

    .nav-menu.show {
    display: flex;
    }

    .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    }

    .navbar {
    position: relative;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
    display: none;
    }
}

@media (max-width: 573px) {
    .hero-title.animate-text span {
    font-size: 2.2rem;
    }

    .hero-subtitle {
    font-size: 1rem;
    }

    .section-title {
    font-size: 1.7rem;
    }

    .about-text{
    font-size: 1rem;
    }
}

@media (max-width: 430px) {
    .hero-title.animate-text span {
    font-size: 2rem;
    }
}

@media (max-width: 390px) {
    .hero-title.animate-text span {
    font-size: 1.7rem;
    }

    .hero-subtitle{
    font-size: 0.8rem;
    }
}

.custom-footer {
    background: #f0f0f0;
    border: 1px solid #222;
    border-radius: 18px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 2.2rem;
    padding-bottom: 1rem;
    color: #222;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-column h4 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: #000;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin: 1.3rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.footer-column.logo-column{
    align-items: center;
}

@media (max-width: 490px){
    .footer-logo {
    width: 140px;
    height: auto;
    }

}

.footer-social {
    display: flex;
    gap: 15px;
    font-size: 1.3rem;
    margin-top: 8px;
    justify-content: flex-start;
}

.footer-social a {
    color: #444;
}

.footer-social a:hover {
    color: #000;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
}

.contact-email-alt {
    display: inline-flex;
    align-items: center;
    color: #444;
    font-weight: 500;
    font-size: 1rem;
    transform: translateX(-15px);
    transition: padding-left 0.3s ease;
}

.contact-email-alt i {
    opacity: 0;
    margin-right: 0;
    transform: translateX(-14px);
    transition: opacity 0.3s ease,  transform 0.3s ease;
    color: #1a1a1a;
}

.contact-email-alt a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.contact-email-alt:hover i {
    opacity: 1;
    transform: translateX(3px);
    margin-right: 8px;
    margin-top: 2px;
}

.contact-email-alt:hover a {
    transform: translateX(4px);
    text-decoration: underline;
}

.contact-label {
    font-size: 0.95rem;
    color: #444;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

#skills .skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #2f3235, #3f4448);
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.skill-category:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.skill-category h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-top: 35px;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--accent);
}

.skill-category:nth-child(1)::before { content: "\f0ae"; } 
.skill-category:nth-child(2)::before { content: "\f121"; } 
.skill-category:nth-child(3)::before { content: "\f0ad"; } 

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tags span {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

.skill-tags span:hover {
    transform: scale(1.05);
    transform: translateY(-5px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    0% {
    opacity: 0;
    transform: translateY(15px);
    }
    100% {
    opacity: 1;
    transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #skills .skills-wrapper {
    flex-direction: column;
    align-items: center;
    }
}

.floating-shapes {
    /* position: fixed; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 0; 
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.07; 
}

.circle {
    width: 160px;
    height: 160px;
    background: #85a8cd;
    border-radius: 50%;
    top: 10%;
    left: 15%;
}

.square {
    width: 140px;
    height: 140px;
    background: #fff;
    top: 50%;
    left: 70%;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 150px solid #e0e0e0;
    top: 70%;
    left: 20%;
}

.blob {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, #fff, transparent 70%);
    border-radius: 50%;
    top: 40%;
    left: 50%;
}

@keyframes drift {
    0% {
    transform: translate(0, 0) rotate(0deg);
    }
    25% {
    transform: translate(50px, -50px) rotate(40deg);
    }
    50% {
    transform: translate(-30px, 60px) rotate(-25deg);
    }
    75% {
    transform: translate(40px, 10px) rotate(30deg);
    }
    100% {
    transform: translate(0, 0) rotate(0deg);
    }
}

@media (max-width: 880px) {
    .circle {
    width: 100px;
    height: 100px;
    top: 7%;
    left: 18%;
    }

    .square {
    width: 90px;
    height: 90px;
    top: 40%;
    left: 70%;
    }

    .triangle {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid #e0e0e0;
    top: 55%;
    left: 15%;
    }

    .blob {
    width: 160px;
    height: 160px;
    top: 25%;
    left: 50%;
    }
}

@media (max-width: 573px) {
    .circle {
    width: 80px;
    height: 80px;
    top: 12%;
    left: 12%;
    }

    .square {
    width: 70px;
    height: 70px;
    top: 40%;
    left: 67%;
    }

    .triangle {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 75px solid #e0e0e0;
    top: 50%;
    left: 15%;
    }

    .blob {
    width: 120px;
    height: 120px;
    top: 25%;
    left: 50%;
    }
}

.hidden-section {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.9s ease-out;
}

.show-section {
    opacity: 1;
    transform: translateY(0);
}
