.navbar {
    height: 70px; 
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    background-color: #1a2639;
    color: #d4d4dc;
    animation: fadeIn 1s ease-in;
    transition: background-color 0.3s ease;
    padding-top: 0;
    margin-top: 0;
}

/* Logo size now consistent across all pages (defined in styles.css) */

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 80px 20px 60px;
}

@media (max-width: 768px) {
    #hero {
        padding: 100px 20px 40px;
        min-height: calc(100vh - 70px);
    }
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
    }
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.social-links a:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
}

.bottom-rectangle {
    position: absolute;
    width: 100%;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 125px;
    background: rgba(0,0,0,0.6);
    z-index: -1; 
}

/*about*/

#about {
    background-color: #1a1a1a;
    color: white;
    padding: 50px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    width: 100%;
    margin-bottom: 40px;
}

.publications {
    display: flex;
    justify-content: space-between;
}

.publications p {
    flex: 1;
    margin-right: 20px;
}

.skills-summary {
    width: 100%;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
}

.skills-grid {
    display: flex;
    justify-content: space-between;
}

.skill-column {
    flex: 1;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .skills-grid {
        flex-direction: column;
    }

    .skill-column {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

h2 {
    margin-left: 180px;
    font-size: 70px;
}

h2, h3, h4 {
    margin-bottom: 20px;
}


/*skills*/

.container {
    width: 80%;
    margin-left: 10%;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: #ddd;
}

.skills {
    text-align: right;
    padding: 5px;
    color: white;
}

.fluent {
    width: 100%;
    background-color: #888888;
}

.good {
    width: 67%;
    background-color: #888888;
}

.familiar {
    width: 33%;
    background-color: #888888;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #FFFFFF;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -5px;
    left: 110%;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

#skillicon {
    color:#EEEEEE; 
    margin: 5px;
}

#skillicon:hover {
    color:#FFFFFF; 
    transition: opacity 0.1s;
}

p a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #84a9ac;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

a {
    text-decoration: none;
    color: #84a9ac;
    transition: color 0.3s ease;
    position: relative;
}

a:hover {
    color: #e8e8e8;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #84a9ac;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

a:hover::after {
    transform: scaleX(1);
}
