:root {
    --text-color: #f8f9fa;
    --text-secondary: #adb5bd;
    --background-color: #0d1117;
    --secondary-background: #161b22;
    --accent-background: #21262d;
    --link-color: #58a6ff;
    --hover-color: #79c0ff;
    --accent-color: #238636;
    --accent-hover: #2ea043;
    --button-bg: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    --button-text: #ffffff;
    --border-color: #30363d;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

* {
    transition: all 0.3s ease;
}

.container {
    max-width: 900px; /* Adjust as needed for width */
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--secondary-background);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.profile-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-icon:hover .avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.profile-icon .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.profile-icon .name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.profile-icon:hover .name {
    color: var(--link-color);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--text-color) 0%, var(--link-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

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

/* About Section */
.about-section {
    padding: 0 20px 60px;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--secondary-background) 100%);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    background-color: var(--accent-background);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.about-content p {
    flex: 1;
    max-width: 600px;
    font-size: 1.15rem;
    color: var(--text-color);
    margin-top: 0;
    line-height: 1.8;
}

.btn-cv {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 5px;
    box-shadow: 0 4px 16px rgba(35, 134, 54, 0.3);
    transition: all 0.3s ease;
}

.btn-cv:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(35, 134, 54, 0.4);
}

/* Projects Section */
.projects-section {
    padding: 60px 0 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--link-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.project-item {
    background: linear-gradient(135deg, var(--secondary-background) 0%, var(--accent-background) 100%);
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--link-color) 0%, var(--accent-color) 100%);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px var(--shadow-medium);
    border-color: var(--link-color);
}

.project-item h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.project-item p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.link-icon {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1.5rem;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.link-icon:hover {
    color: var(--hover-color);
}

.project-image {
    margin-top: 20px;
    text-align: center;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }

    .about-content p {
        max-width: 100%;
    }

    .btn-cv {
        align-self: center;
        margin-top: 10px;
    }

    .project-item {
        padding: 25px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: center;
    }

    .link-icon {
        margin-left: 0;
        margin-top: 5px;
    }

    .project-item h3 {
        font-size: 1.3rem;
    }

    .project-item {
        padding: 20px;
        margin-bottom: 20px;
    }

    .about-content {
        padding: 20px 30px;
    }

    .navbar {
        padding: 15px 0;
    }

    .profile-icon .avatar {
        width: 40px;
        height: 40px;
    }

    .profile-icon .name {
        font-size: 1.1rem;
    }

    .footer-right {
        gap: 15px;
    }

    .footer-link {
        padding: 10px;
    }

    .footer-link i {
        font-size: 20px;
    }
}

.project-video {
    margin-top: 25px;
    text-align: center;
}

.project-video video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-video video:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px var(--shadow-heavy);
}

.project-item a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.project-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, var(--link-color) 0%, var(--hover-color) 100%);
    transition: width 0.3s ease;
}

.project-item a:hover {
    color: var(--hover-color);
}

.project-item a:hover::after {
    width: 100%;
}

/* Update the style for the links in the 'About' section */
.link-placeholder {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.link-placeholder::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, var(--link-color) 0%, var(--hover-color) 100%);
    transition: width 0.3s ease;
}

.link-placeholder:hover {
    color: var(--hover-color);
}

.link-placeholder:hover::after {
    width: 100%;
}


footer {
    background: linear-gradient(135deg, var(--secondary-background) 0%, var(--accent-background) 100%);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: center;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 50%;
    background-color: var(--accent-background);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-link:hover {
    color: var(--link-color);
    background-color: var(--secondary-background);
    border-color: var(--link-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.footer-link i {
    font-size: 24px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .footer-left {
        order: 2;
    }

    .footer-right {
        order: 1;
    }
}