/* Base Styles */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
}

.navbar-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-right: 30px;
    align-items: center;
}

.nav-button {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 60%;
    text-align: center;
    height: 100%;
    color: black;
    text-decoration: none;
    padding: 10px;
    transition: opacity 0.3s;
}

.nav-button:hover {
    text-decoration: underline;
    opacity: 100%;
}

/* Mobile Navigation */
.mobile-header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.mobile-tabs {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: white;
    z-index: 100;
}

.mobile-tab {
    flex: 1;
    display: flex;
    justify-content: center;
    text-decoration: none;
    color: black;
    opacity: 90%;
    padding: 8px 0;
}

.tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-content h3 {
    margin: 0;
    font-size: 0.9rem;
}

/* Main content styles */
.about-container {
    margin-top: 4rem;
    padding: 50px;
}

.profile-section {
    display: flex;
    gap: 15%;
}

.profile-intro {
    display: flex;
    flex-direction: column;
}

.greeting {
    font-style: italic;
}

.intro-heading {
    font-size: 2.5rem;
    margin-top: 0;
}

.profile-image {
    height: 85%;
    width: auto;
}

.profile-details {
    width: 100%;
}

/* Contact Information */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: large;
}

.divider {
    width: 100%;
    height: 0px;
    border: 1px solid black;
    margin: 20px 0;
}

/* Skills Section */
.section-heading {
    margin-top: 3rem;
    display: block;
}

.skills-grid {
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill-card {
    border-radius: 15px;
    width: 200px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skill-card img {
    width: 40px;
    height: 40px;
}

.skill-card h3 {
    margin: 0;
    color: white;
}

/* Skill card colors */
.flutter {
    background: linear-gradient(45deg, #02569B, #027DFD);
}

.kotlin {
    background: linear-gradient(45deg, #7F52FF, #9D7AFF);
}

.nextjs {
    background: linear-gradient(45deg, #bdbdbd, #dfdfdf);
}

.nextjs h3 {
    color: black;
}

.typescript {
    background: linear-gradient(45deg, #3178C6, #4BA8E3);
}

.html {
    background: linear-gradient(45deg, #E34F26, #FF6A3C);
}

.css {
    background: linear-gradient(45deg, #1572B6, #3993DD);
}

.javascript {
    background: linear-gradient(45deg, #b6a316, #FFD600);
}

.python {
    background: linear-gradient(45deg, #3776AB, #599AD6);
}

.java {
    background: linear-gradient(45deg, #00526b, #1A84CE);
}

.csharp {
    background: linear-gradient(45deg, #512BD4, #856CDE);
}

.c {
    background: linear-gradient(45deg, #A8B9CC, #D0D9E2);
}

/* Qualifications */
.qualifications-list {
    padding-left: 20px;
}

/* CV Button */
.cv-button {
    background-color: black;
    width: 230px;
    margin: 2rem 0;
    justify-content: center;
    border: 0px;
    color: white;
    font-weight: bolder;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
    display: flex;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cv-button:hover {
    background-color: #333;
}

/* Responsive Styles */
@media only screen and (min-width: 1080px) {
    .mobile-nav {
        display: none;
    }
    .desktop-nav {
        display: block;
    }
}

@media only screen and (max-width: 1080px) {
    .mobile-nav {
        display: block;
    }
    .desktop-nav {
        display: none;
    }
    
    .about-container {
        padding: 20px;
        margin-bottom: 80px; /* Space for mobile navbar */
    }
    
    .profile-section {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .profile-intro {
        text-align: center;
    }
    
    .profile-image {
        height: auto;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .skill-card {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
    
    .section-heading {
        display: block;
        margin: 3rem auto 1rem auto;
        max-width: 100%;
    }
    
    .cv-button {
        width: 100%;
        max-width: 230px;
        margin: 2rem auto;
    }
}