:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #3b82f6;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --box-shadow:rgba(0, 0, 0, 0.1);
}

.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #f8fafc;
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --box-shadow:rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px var(--box-shadow);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 4rem;
    right: -100%;
    width: 70%;
    height: calc(100vh - 4rem);
    background-color: var(--bg-color);
    box-shadow: -2px 0 10px var(--box-shadow);
    padding: 2rem;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-size: 1.2rem;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-left: 2rem;
}

/* Header Section */
header {
    margin-top: 4rem;
    padding: 5rem 2rem;
    text-align: center;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 3px solid var(--primary-color);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

#about{
    display: flex;
    flex-direction: column;
    align-items: center;
    p{
        text-align: center;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background-color: var(--nav-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: var(--box-shadow) 0px 2px 8px 0px;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--nav-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--box-shadow);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.btn-project{
    width: 100%;
    height: 30px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;

    a{
        padding: 5px 100px;
    }
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn {
    display: flex;
    margin-left: auto;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cv{
    margin-left: 0px;
    padding: 1rem 1rem;
    margin-top: 2rem;
}

.btn:hover {
    background: var(--secondary-color);
}

       /* Footer */
       footer {
        background-color: var(--bg-color);
        text-align: center;
        padding: 1rem;
        box-shadow: 0 -2px 10px var(--box-shadow);
    }

    .social-links {
        margin-bottom: 1rem;
    }

    .social-links a {
        color: var(--text-color);
        font-size: 1.5rem;
        margin: 0 1rem;
        transition: color 0.3s;
    }

    .social-links a:hover {
        color: var(--primary-color);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }
}