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

html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    line-height: 1.7;
    background-color: #ffffff;
    color: #222222;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section {
    padding: 80px 10%;
}

.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #eaeaea;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10%;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

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

.nav-link {
    position: relative;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: #0077ff;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0077ff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

#themeToggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-content {
    flex: 1;
}

.about-content h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.animated-text {
    font-size: 1.1rem;
    color: #0077ff;
    margin-bottom: 20px;
}

.intro {
    max-width: 520px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    padding: 25px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.achievements-list {
    margin-top: 30px;
    padding-left: 20px;
}

.achievements-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-links a {
    text-decoration: none;
    color: #0077ff;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-left,
.contact-right {
    flex: 1;
}

.contact-right {
    min-height: 350px;
}

.contact-right iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.contact-form {
    max-width: 500px;
    margin-top: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.btn {
    background: linear-gradient(135deg, #0077ff, #005fd1);
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.3);
}

.form-success {
    display: none;
    margin-top: 15px;
    color: green;
}

.contact-social {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-social a {
    font-size: 1.6rem;
    color: #0077ff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-social a:hover {
    transform: translateY(-6px) scale(1.1);
    color: #0055cc;
}

.footer {
    margin-top: 80px;
    padding: 30px 10%;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
    background-color: #fafafa;
    animation: fadeUp 0.6s ease;
}

body.dark {
    background-color: #0f1115;
    color: #e4e4e4;
}

body.dark .header {
    background-color: rgba(15, 17, 21, 0.9);
    border-color: #2a2a2a;
}

body.dark .nav-link {
    color: #cccccc;
}

body.dark .nav-link.active,
body.dark .nav-link:hover {
    color: #66aaff;
}

body.dark .project-card {
    background-color: #16181d;
    border-color: #2a2a2a;
}

body.dark .contact-social a {
    color: #66aaff;
}

body.dark .footer {
    background-color: #0f1115;
    border-color: #2a2a2a;
    color: #aaaaaa;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-right {
        height: 300px;
    }
}
