/*Global & Variables*/
:root {
    --bg-color: #121212; 
    --primary-color: #1e1e1e;
    --secondary-color: #00bfa5;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem;}
h3 { font-size: 1.5rem; }

section {
    padding: 6rem 5%;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
    
}

ul {
    list-style: none;
}


/*Header & Navigation*/
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul a {
    color: var(--text-color);
    font-weight: 500;
}
nav ul a:hover {
    color: var(--secondary-color);
}


/*About / Hero Section*/
#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
}

.about-text {
    max-width: 600px;
}

.about-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
    max-width: 350px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #121212;
    padding: 0.8rem 1.4rem;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 3rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.cta-button:hover{
    background-color: #00a088;
    color: #000000;
    transition: background-color 0.3s ease;
    
}


/*Projects Section*/
#projects {
    background-color: var(--primary-color);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 191, 165, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3,
.project-card p,
.project-links {
    padding: 1rem 1.5rem;
}

.project-card p {
    padding-top: 0;
}

.project-links a {
    margin-right: 1rem;
    font-weight: 500;
}


/*Contacts Section*/
#contact form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: var(--text-color);
    border-radius: 5px;
    font-family: var(--font-family);
}

#contact button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.contact-icon{
    position:static;
    bottom: 0%;
    left: 0%;
    display: flex;
    justify-content: center;
}
.contact-icon img{
    width: 100px;
}

.contact-icon:hover img {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}


/*Footer*/
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--primary-color);
    font-size: 0.9rem;
}


/*Responsive Design*/
@media (max-width: 750px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    nav ul {
        display: block;
    }
    
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-image img {
        max-width: 250px;
        margin-top: 1rem;
    }

    #contact form {
        width: 100%;
    }
}