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

/* Variables */
:root {
    --primary-color: #0077ff;
    --primary-hover: #005fcc;

    --text-color: #333;
    --text-light: #555;
    --text-muted: #666;

    --background-color: #f5f5f5;
    --surface-color: #ffffff;

    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    --border-radius: 10px;

    --container-width: 1200px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    padding-top:40px;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Navigation bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    gap: 20px;
    background-color: var(--surface-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Reusable Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Reusable Buttons */

.btn{
    display:inline-block;

    padding:12px 24px;

    border-radius:var(--border-radius);

    text-decoration:none;

    font-weight:600;

    transition:
        transform .3s ease,
        background-color .3s ease,
        color .3s ease;
}

.btn-primary{

    background:var(--primary-color);

    color:white;
}

.btn-primary:hover{

    background:var(--primary-hover);

    transform:translateY(-3px);
}

.btn-secondary{

    border:2px solid var(--primary-color);

    color:var(--primary-color);

}

.btn-secondary:hover{

    background:var(--primary-color);

    color:white;

    transform:translateY(-3px);

}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 600px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons a {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--surface-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.hero-buttons a:hover {
    background-color: var(--primary-hover);
}

.hero-image img {
    width: 300px;
    border-radius: 50%;
}

/* About section */

.about {
    padding: 100px 80px;
    background-color: var(--surface-color);
}

.about .container {
    max-width: 800px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--background-color);
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-card {
    padding: 30px;
    background-color: var(--surface-color);
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Projects Section */

.projects {
    padding: 100px 0;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact */

.contact {
    padding: 100px 0;
    background-color: var(--surface-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.contact-form button {
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);

    background-color: var(--primary-color);
    color: white;

    cursor: pointer;

    transition: 0.3s;
}

.contact-form button:hover {
    background-color: var(--primary-hover);
}

.social-links{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-bottom:40px;

}

.social-links a{

    color:var(--primary-color);

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.social-links a:hover{

    color:var(--primary-hover);

}

/* footer */

footer {
    padding: 30px 0;
    background-color: #222;
    color: white;
    text-align: center;
}

@media (max-width: 768px) {

    body{
        padding-top: 80px;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image img {
        width: 220px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about,
    .skills,
    .projects,
    .contact {
        padding: 70px 0;
    }
}