@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173));
}

nav {
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.9);
    z-index: 1000;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    color: black;
    font-size: 2rem;
    font-weight: bolder;
}

.logo span {
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.hamburg, .cancel {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: black;
    font-size: 2rem;
    display: none;
}

.nav-container .links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-container .links a {
    position: relative;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transform: 0.3s linear;
}

.nav-container .links a::before {
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: rgb(109,67, 0);
    transition: 0.2s linear;
}

.nav-container .links a:hover::before {
    width: 100%;
}

.nav-container .contact-btn {
    background-color: transparent;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid rgb(109, 67, 0);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-container .contact-btn a {
    color: rgb(109, 67, 0);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    z-index: 2; /* Higher than button's z-index */
    transition: color 0.3s ease;
}

/* Hover effects */
.nav-container .contact-btn:hover {
    background-color: rgb(109, 67, 0);
}

.nav-container .contact-btn:hover a {
    color: white;
}

/* Optional: Smooth background animation */
.nav-container .contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgb(109, 67, 0);
    transition: all 0.4s ease;
    z-index: 1;
}

.nav-container .contact-btn:hover::after {
    left: 0;
}

.nav-container .links a:hover {
    color: rgb(109,67, 0);
}

.dropdown {
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: brightness(40%) blur(3px);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a {
    color: white;
    display: flex;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover {
    background-color: rgb(109,67, 0);
}

section {
    width: 100%;
    min-height: 100vh;
    padding: 20px 0;
}

.main-container {
    width: 100%;
    min-height: 90vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .image {
    z-index: -1;
    width: 50%;
}

.main-container .image img {
    width: 100%;
}

.main-container .content {
    color: black;
    width: 40%;
    min-height: 100px;
}

.content h1 {
    font-size: clamp(1rem, 2rem + 5vw, 3rem);
}

.content h1 span {
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.content .typewriter {
    font-weight: 600;
    font-size: clamp(1rem, 1rem + 5vw, 2rem);
}

.content .typewriter span {
    color: rgb(109,67, 0);
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgb(109,67, 0);
    position: relative;
    transition: 0.3s linear;
}

.typewriter span::before {
    content: "Developer";
    animation: words 15s infinite;
}

.typewriter span::after {
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    animation:  cursor 0.6s linear infinite;
}

@keyframes cursor {
    to {
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 33% {
        content: "Developer";
    }
    34%, 66% {
        content: "Designer";
    }
    67%, 100% {
        content: "Youtuber";
    }
}

.content p {
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

.social-links i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid rgb(109,67, 0);
    border-radius: 50%;
    color: rgb(109,67, 0);
    margin: 5px 10px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover {
    scale: 1.3;
    color: white;
    background-color: rgb(109,67, 0);
    filter: drop-shadow(0 0 10px rgb(109,67,0));
}

.content button {
    width: 40%;
    height: 6vh;
    margin: 30px;
    background-color: rgb(109,67, 0);
    color: white;
    border: none;
    outline: none;
    font-size: 100%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}

.content button:hover {
    scale: 1.1;
    color: rgb(109,67, 0);
    border: 2px solid rgb(109,67, 0);
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px rgb(109,67, 0);
}

/* About Section */
.about-section {
    width: 100%;
    padding: 50px 0;
}

.about-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 50px;
}

.about-image {
    width: 40%;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.about-content {
    width: 50%;
    min-width: 300px;
}

.about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-content h3 {
    font-size: 1.5rem;
    color: rgb(109,67,0);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.personal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.info-item {
    flex: 1 1 200px;
}

.info-item span {
    font-weight: bold;
    color: rgb(109,67,0);
}

/* Skills Section */
.skills-section {
    width: 100%;
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.section-title span {
    color: rgb(109,67,0);
}

.skills-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 50px;
}

.technical-skills, .professional-skills {
    flex: 1 1 500px;
    background: rgba(255,255,255,0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.skills-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: rgb(109,67,0);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: rgb(109,67,0);
    border-radius: 5px;
}

.html { width: 95%; }
.css { width: 90%; }
.javascript { width: 85%; }
.react { width: 80%; }
.design { width: 90%; }
.communication { width: 95%; }
.teamwork { width: 90%; }
.management { width: 85%; }
.creativity { width: 95%; }
.problem-solving { width: 90%; }

/* Services Section */
.services-section {
    width: 100%;
    padding: 50px 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 50px;
}

.service-card {
    background: rgba(255,255,255,0.8);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(109,67,0,0.2);
}

.service-card i {
    font-size: 3rem;
    color: rgb(109,67,0);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-section {
    width: 100%;
    padding: 50px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 50px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(109,67,0,0.8);
    color: white;
    transition: 0.3s;
}

.gallery-item:hover .overlay {
    bottom: 0;
}

.overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Active Link */
.link.active a {
    color: rgb(109,67,0);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 884px) {
    nav .logo {
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    .main-container {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .nav-container .links {
        display: none;
    }

    .hamburg, .cancel {
        display: block;
    }

    .main-container .content {
        width: 90%;
        margin-top: 30px;
    }

    .main-container .image {
        width: 90%;
        margin-top: 30px;
    }

    .social-links i {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .cancel {
        color: white;
    }
}

@media (max-width: 768px) {
    .about-container, .skills-container {
        padding: 0 20px;
    }
    
    .about-image, .about-content {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .services-container, .gallery-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}