html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #333;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
}

nav ul li a:hover {
    color: #007bff;
    transform: scale(1.2);
}

section {
    padding: 6rem 2rem;
    min-height: 100vh;
}

#home {
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#about {
    background-color: #f9f9f9;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-left {
    flex: 1;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.about-image-container img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

.about-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.about-social a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.about-social a:hover {
    transform: translateY(-5px);
}

.about-right {
    flex: 2;
}

.about-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #007bff;
}

.typing {
    border-right: 3px solid #007bff;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { border-color: transparent }
}

.about-details {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item i {
    width: 30px;
    height: 30px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-section {
    margin: 2rem 0;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill {
    width: 100%;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.skill-bar {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.skill-per {
    height: 100%;
    background: #007bff;
    border-radius: 5px;
    position: relative;
    transition: width 0.5s ease-in-out;
}

.skill-per::before {
    content: attr(per);
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    color: #007bff;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.download-cv {
    background: #007bff;
    color: white;
}

.hire-me {
    border: 2px solid #007bff;
    color: #007bff;
}

.download-cv:hover {
    background: #0056b3;
}

.hire-me:hover {
    background: #007bff;
    color: white;
}

#portfolio {
    background-color: #f4f4f4;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

#contact {
    text-align: center;
    background-color: white;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 2rem;
    margin: 0 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #007bff;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-container {
        flex-direction: column;
    }

    .about-left {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .about-buttons {
        flex-direction: column; text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}