
:root {
    --primary-color: #6803d5; 
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #1f0234;
    --text-color-dark: #000000;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(2.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: large;
    font-weight: 550;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}


main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-wrapper {
    background-color: rgba(30, 30, 30, 0.8);
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}


.hero-section {
    text-align: center;
    padding: 8rem 0;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    max-width: 600px;
    color: var(--text-color);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    max-width: 600px;
    margin-bottom: 1rem;
}

.hero-content .description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    
    color: var(--text-color-dark);
}

.cta-button {
    margin-left: 13rem;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: #6a00d5;
    transform: translateY(-4px);
}


.about-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    max-width: 300px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}

.about-text {
    color: white;
    flex: 2;
    text-align: center;
    
}

.page-title{
    margin-left: 20rem;
    text-decoration: underline;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(238, 197, 121);
}

.about-text h2 {
    color: wheat;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text h3 {
    color: var(--primary-color);
    text-align: center;
    font-size: larger;
    color: wheat;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.works-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.page-title2{
    text-align: center;
    text-decoration: underline;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(238, 197, 121);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.overlay p {
    font-size: 0.9rem;
}

/* --- Contact Page --- */
.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-title3{
    text-align: center;
    text-decoration: underline;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(238, 197, 121);
}

.contact-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    flex: 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #6a00d5;
}

.contact-info {
    flex: 1;
    text-align: center;
}

.contact-info p {
    margin-bottom: 1rem;
    color: white;
}
.contact-info h3 {
    color: wheat;
    margin-bottom: 1rem;
}
.contact-info p {
    margin-bottom: 1.5rem;
}
.contact-info a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: var(--text-color-dark);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
   
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-container, .contact-container {
        flex-direction: column;
    }

    .about-image {
        text-align: center;
    }

    .about-image img {
        max-width: 200px;
    }
}
