html {
    scroll-behavior: smooth;
}

section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    scroll-margin-top: 80px;
}

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

*{
    margin: 0;
    padding: 0;
}

body {
    color: white;
    background-color: #0a0f1e;
    font-family: 'Inter', sans-serif;
}

section h2 i {
    color: #00aaff;
    margin-right: 12px;
}

.nav-subtitle {
    color: #ffffff;
    font-weight: normal;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: #001f60;
}

nav a { 
    color: rgb(255, 255, 255);
    font-size: 16px;
    font-weight: bolder;
    text-decoration: none;
}

nav a:hover {
    color: #00aaff;
    transition: color 0.3s;
}

nav ul{
    list-style: none;
    display: flex;
    gap: 20px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    border: 3px solid #ffffff;
    flex-shrink: 0;
}

.btn:hover {
    background-color: #00aaff;
    color: #0a0f1e;
    transition: background-color 0.3s, color 0.3s;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

#hero{
    padding: 120px 60px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero h1{
    font-size: 50px;
}

#hero p{
    font-size: 20px;
    color: #ffffff;
    margin-top: 10px;
}

.btn{
    text-decoration: none;
    background-color: #002d96;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 20px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}


#about {
    padding: 60px;
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

#about h2{
    font-size: 40px;
    margin-bottom: 20px;
}

#about p {
    font-size: 18px;
    color: #ffffff;
    margin-top: 10px;
    line-height: 1.8;
    max-width: 100%;
}

#experience{
    padding: 60px;
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

#experience h2{
    font-size: 40px;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding-left: 34px;
    margin-top: 10px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: #1e2a45;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00aaff;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.6);
}

.experience-card {
    background-color: #141b2e;
    border: 1px solid #1e2a45;
    border-radius: 12px;
    padding: 28px 32px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.experience-card:hover {
    border-color: #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
}

.experience-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.experience-logo {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.experience-date {
    font-size: 14px;
    color: #00aaff;
    font-weight: 600;
    margin-bottom: 8px;
}

.experience-info h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 8px;
}

.experience-company {
    font-size: 18px;
    color: #ffffff;
}

.experience-desc {
    font-size: 17px;
    color: #ffffff;
    line-height: 1.7;
    padding-left: 20px;
}

.experience-desc li {
    margin-bottom: 12px;
}

.experience-desc li:last-child {
    margin-bottom: 0;
}

#projects{
    padding: 60px;
    display: flex;
    flex-direction: column;
}

#projects h2{
    font-size: 40px;
    margin-bottom: 30px;
}


.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.project-card {
    position: relative;
    background-color: #141b2e;
    border: 1px solid #1e2a45;
    border-radius: 12px;
    padding: 22px 22px 22px 64px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.project-number {
    position: absolute;
    left: 20px;
    top: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a3a5c;
    color: #60aaff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
}

.project-card:hover {
    border-color: #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
}

.project-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #ffffff;
    margin-top: 0;
}

.project-tech-inline {
    font-size: 13px;
    font-weight: normal;
    color: #8a9bbf;
}

.project-card p {
    font-size: 14px;
    color: #8a9bbf;
    line-height: 1.7;
    margin-bottom: 8px;
}

.project-card p.project-subheader {
    font-size: 12px;
    color: #00aaff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0;
    margin-bottom: 10px;
}

.project-card p.project-pitch {
    font-size: 14px;
    color: #8a9bbf;
    line-height: 1.6;
    margin-top: 0;
}

.project-card p.project-action {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    margin-top: 8px;
}

.card-link {
    display: inline-block;
    margin-top: 16px;
    color: #00aaff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #00aaff;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.card-link:hover {
    background-color: #00aaff;
    color: #0a0f1e;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.tag-blue { background-color: #1a3a5c; color: #60aaff; }
.tag-green { background-color: #1a3a2a; color: #4caf82; }
.tag-yellow { background-color: #3a3010; color: #f0c040; }
.tag-purple { background-color: #2a1a4a; color: #b07aff; }
.tag-orange { background-color: #3a2010; color: #ff8c42; }

.card-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

#certifications {
    padding: 60px;
    display: flex;
    flex-direction: column;
}

#certifications h2 {
    font-size: 40px;
    margin-bottom: 30px;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-card {
    background-color: #001f60;
    padding: 24px 32px;
    border-radius: 12px;
    font-size: 16px;
    color: #ffffff;
    border: 1px solid transparent;
    transition: border 0.3s, box-shadow 0.3s;
}

.cert-card:hover {
    border: 1px solid #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
}

.cert-card span {
    display: block;
    font-size: 13px;
    color: #8a9bbf;
    margin-top: 6px;
}

#tech{
    padding: 60px;
    display: flex;
    flex-direction: column;
}

#tech h2{
    font-size: 40px;
    margin-bottom: 20px;
}

#tech p {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 16px;
}

#tech span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

#tech i {
    font-size: 42px;
}

#contact{
    padding: 60px;
    display: flex;
    flex-direction: column;
}

#contact h2{
    font-size: 40px;
    margin-bottom: 20px;
}

#contact p{
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    gap: 16px;
}

.contact-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    background-color: #001f60;
    padding: 14px 32px;
    border-radius: 8px;
}

.contact-links a:hover {
    background-color: #00aaff;
    color: #0a0f1e;
    transition: background-color 0.3s, color 0.3s;
}

footer{
    padding: 30px 60px;
    text-align: center;
    border-top: 1px solid #001f60;
    color: #8a9bbf;
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-subtitle {
        display: none;
    }

    nav ul {
        gap: 8px;
    }

    nav a {
        font-size: 12px;
    }

    #hero {
        padding: 100px 20px 40px 20px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    #hero h1 {
        font-size: 32px;
    }

    #hero p {
        font-size: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    #about {
        padding: 40px 20px;
    }

    #projects {
        padding: 40px 20px;
    }

    #certifications {
        padding: 40px 20px;
    }

    #tech {
        padding: 40px 20px;
    }

    #contact {
        padding: 40px 20px;
    }

    .contact-links {
        flex-direction: column;
    }

    .card-buttons {
        flex-direction: column;
    }
}