/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
}


header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
    transition: color .3s ease;
}

.logo a:hover{
    color: #ff6600;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin-right: auto; /* Pushes the links to the right */
}

.nav-links li {
    margin-left: 1.5rem; /* Adds spacing between links */
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6600;
}

/* Download CV Button */
.btn-download {
    background: #ff6600;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 1rem;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: #e65c00;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #444;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 1rem 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .btn-download {
        display: inline-block; /* Hide the CV button in mobile view */
    }
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-content .btn-primary,
.hero-content .btn-secondary {
    display: inline-block;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    margin-right: 1rem;
}

.btn-primary {
    background: #ff6600;
    color: #fff;
}

.btn-primary:hover {
    background: #e65c00;
}

.btn-secondary {
    background: #fff;
    color: #2575fc;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.hero-image {
    position: relative;
    top: 20px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        height: auto;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content .btn-primary,
    .hero-content .btn-secondary {
        margin: 0.5rem 0;
    }
}

/* About Section */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 2rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-content {
    flex: 2;
    padding: 1rem;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.btn-primary {
    background: #2575fc;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background: #1d63d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        padding: 0;
    }

    .about-content h2 {
        font-size: 1.75rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    background: #f5f5f5;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.projects-header p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
    text-align: left;
}

.project-info h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.project-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-project {
    text-decoration: none;
    background: #2575fc;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-project:hover {
    background: #1d63d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}

/* Skills Section */
.skills {
    padding: 4rem 2rem;
    background: #f9f9f9;
    text-align: center;
}

.skills-header {
    margin-bottom: 2rem;
}

.skills-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.skills-header p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.skill-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
    text-align: center;
    max-width: 200px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.skill-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1rem;
    color: #333;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .skill-card {
        max-width: 150px;
    }

    .skill-card img {
        width: 60px;
        height: 60px;
    }

    .skill-card h3 {
        font-size: 0.9rem;
    }
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background: #f5f5f5;
    text-align: center;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 0.75rem;
    background: #2575fc;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #1d63d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
}

/* Footer Section */
.footer {
    padding: 2rem;
    background: #333;
    color: #fff;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-left p {
    font-size: 1rem;
    color: #bbb;
    margin: 0;
}

.footer-right .social-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.footer-right .social-links li {
    display: inline;
}

.footer-right .social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.footer-right .social-icon img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left p {
        margin-bottom: 1rem;
    }

    .footer-right .social-links {
        justify-content: center;
    }
}