/* General Styles */
:root {
    --primary-color: #B3BBF2;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navigation Bar */
nav {
    background-color:#adadfa; 
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-left {
    font-size: 1.5rem;
    font-weight: bold;
    padding-left: 1rem;
}

.nav-right {
    list-style: none;
    display: flex;
    margin: 0;
    padding-right: 1rem;
    color: #0021f9;
}

.nav-right li {
    margin-left: 1.25rem;
    color: #3141f1;
}

.nav-right a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: var(--transition);
}
.nav-right a:hover {
    color: #780000;
    text-decoration: underline;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* Home Section */
#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 1.5rem;
    margin-top: 5rem;
    min-height: calc(100vh - 5rem);
}

.home-left {
    width: 60%;
    text-align: left;
    padding: 1.25rem;
}

.home-left h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.home-left h1 span {
    color: #2b327f;
    position: relative;
}

.home-left h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
}

.home-left p {
    font-size: 1.2rem;
    color: #555;
}

.home-right {
    width: 40%;
    text-align: center;
    padding-right: 1.5rem;
}

.home-right img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    object-fit: cover;
}

.home-right img:hover {
    transform: scale(1.02);
}

/* Common Section Styles */
section {
    padding: 4rem 2rem;
}

#about, #projects, #skills, #contact {
    max-width: 1100px;
    margin: 2rem auto;
    background: rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 2rem;
}

section h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

/* Projects */
.proje {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.project {
    flex: 0 0 calc(50% - 2rem);
    max-width: 400px;
    margin-bottom: 1.25rem;
    background-color: #f5f6f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project h3 {
    padding: 1rem;
    background-color:#8fa9f9fa;
    color: #333;
}

.project a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.project:hover img {
    transform: scale(1.05);
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-item {
    background: #f5f6f9fa;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.skill-item:hover {
    transform: translateY(-5px);
    background: #0021f9;
    color: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a {
    color: #5865F2;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background-color: #9ba6f0;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Mobile View */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    nav {
        padding: 2rem;
    }
    
    .nav-left {
        font-size: 1.3rem;
        padding-left: 0.5rem;
    }

    .nav-right {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        clip-path: circle(0px at top right);
        transition: var(--transition);
        opacity: 0;
    }

    .nav-right.active {
        clip-path: circle(1000px at top right);
        opacity: 1;
    }

    .nav-right li {
        margin: 0.8rem 0;
    }

    .hamburger {
        display: block;
        padding-right: 0.5rem;
    }

    #home {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        margin-top: 4rem;
    }

    .home-left {
        width: 100%;
        text-align: center;
        padding: 1rem 0.5rem;
        order: 2;
    }

    .home-left h1 {
        font-size: 1.8rem;
    }

    .home-right {
        width: 100%;
        padding-top: 100px;
        margin-bottom: 1.5rem;
        order: 1;
    }

    .home-right img {
        width: 200px;
        height: 200px;
    }

    section {
        padding: 2.5rem 1rem;
    }

    .project {
        flex: 0 0 100%;
    }
}

/* Tablet View */
@media (min-width: 769px) and (max-width: 1024px) {
    #home {
        padding: 2rem;
    }

    .home-left h1 {
        font-size: 2rem;
    }

    .home-right img {
        width: 250px;
        height: 250px;
    }

    .project {
        flex: 0 0 calc(50% - 1rem);
    }
}
