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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, rgba(146,130,130,0.973), rgb(131,124,153));
    padding-top: 100px; /* space for fixed nav */
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 10px 10px;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 50%;
}

.logo-container .disc h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-container .disc p {
    font-size: 12px;
    opacity: 0.9;
}

img.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

img.logo:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style-type: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #94bac9;
    text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Home Section */
.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    gap: 40px;
    min-height: calc(100vh - 100px);
}

.profile-image-container {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    margin-top: -2vh;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.intro {
    flex: 1;
    text-align: left;
    padding: 0;
}

.intro h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #2b2828;
    line-height: 1.2;
}

.text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2b2828;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    font-size: 1.2rem;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

hr {
    margin: 15px auto;
    width: 90%;
    font-weight: px;
    border: none;
    border-top: 3px solid #555;
}

/* Skills Section */
#skills {
    padding: 80px 0;
}

.heading {
    text-align: center;
    font-size: 50px;
    color: #922222ce;
    margin-bottom: 20px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 5%;
}

img{
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sub-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sub-section:hover {
    transform: translateY(-5px);
}

.sub-section h3 {
    text-decoration: underline;
    margin-bottom: 10px;
    color: #333;
}

.sub-section p {
    color: #555;
    line-height: 1.5;
}

/* Projects Section */
#projects {
    padding: 80px 0;
}

/* Contact Section */
#contacct {
    padding: 80px 0;
    padding-bottom: 60px;
}

.social-links {
    margin-bottom: 15px;

}

.social-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
}

.social-links a {
    color: #5f2e1f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #94bac9;
    text-decoration: underline;
}

.social-links-img{
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    margin-left: 10px;
    margin-right: 10px;

}
/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}


footer hr {
    margin: 15px auto;
    width: 80%;
    border: none;
    border-top: 1px solid #555;
}

footer p {
    margin: 10px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .intro h1 {
        font-size: 2.5rem;
    }
    
    .text {
        font-size: 1.2rem;
    }
    
    .heading {
        font-size: 40px;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #333;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 30px;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .home-content {
        flex-direction: column;
        padding: 15vh 10%;
        text-align: center;
        gap: 30px;
    }
    
    .profile-image-container {
        max-width: 100%;
        margin-top: -70px;
        margin-bottom: 10px;
    }
    
    .intro {
        text-align: center;
    }
    
    .intro h1 {
        font-size: 2rem;
    }
    
    .text {
        font-size: 1rem;
    }
    
    .heading {
        font-size: 2rem;
    }
    
    .logo-container {
        max-width: 70%;
    }
    
    .logo-container .disc h1 {
        white-space: normal;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 80px;
    }
    
    nav {
        padding: 8px 15px;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    img.logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-container .disc h1 {
        font-size: 14px;
    }
    
    .logo-container .disc p {
        font-size: 10px;
    }
    
    .home-content {
        padding: 10vh 5%;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .social-links ul {
        flex-direction: row;
        gap: 10px;
    }
}