/* Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
}

:root {
    --background: rgb(24, 24, 24);
    --secondBackground: rgb(20, 20, 20);
    --accent: linear-gradient(to right, rgb(0, 230, 0), rgb(20, 225, 225));
}

/* General */
body {
    min-height: 100vh;
    background-color: var(--background);
    color: white;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5em 15%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul li a {
    color: white;
    opacity: 0.7;
    transition: all 0.2s ease-in-out;
}

nav ul li a:hover {
    opacity: 1;
}

.logo {
    font-size: 1.5em;
    color: white;
    font-weight: 800;
    opacity: 0.75;
    transition: all 0.2s ease-in-out;
}

.logo:hover {
    opacity: 1.3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8em 2em;
    border-radius: 0.5em;
    border-color: white;
    border-width: 2px;
    border-style: solid;
    background-color: transparent;
    color: white;
    cursor: pointer;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background-color: white;
    color: var(--secondBackground);
}

/* Accent Text */
span {
    background: var(--accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 6% 15%;
}

/* Home Section */
#Home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
    text-align: center;
}

#Home img {
    width: 26vh;
    border-radius: 50%;
    margin-top: 4em;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    max-width: 600px;
}

.info-box h1 {
    font-size: 3.5em;
    font-weight: 600;
}

.info-box h3 {
    font-size: 1.8em;
    font-weight: 400;
}

.info-box p {
    opacity: 0.7;
    line-height: 1.6em;
}

/* ---------------- Projects Section ---------------- */
#projects {
    padding: 80px 10%;
    background: var(--secondBackground);
    text-align: center;
}

#projects .header {
    font-size: 2rem;
    margin-top: 20px;
}

.projects-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 80px;
}

.project-card {
    background: var(--background);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
    background: var(--accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.8;
    padding: 0 15px;
    margin-bottom: 15px;
}



.project-card .btn:hover {
    background: white;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ---------------- Skills Section ---------------- */
#skills {
    padding: 60px 10%;
    background: var(--background);
    text-align: center;
}

#skills .header {
    font-size: 2rem;
    margin-top: 40px;
    color: #222;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 35px;
}

.skill-card {
    margin-top: 50px;
    background: var(--secondBackground);
    border-radius: 15px;
    padding: 25px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card i {
    font-size: 2rem;
    background: var(--accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    background: var(--accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.8;
    line-height: 1.4em;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* Contact Section */
#Contact {
    background-color: var(--secondBackground);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    text-align: center;
}

#Contact .header {
    font-size: 2.5em;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    width: 100%;
    max-width: 500px;
}

form .input-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6em;
    width: 100%;
}

form label {
    font-size: 1.2em;
    opacity: 0.9;
}

form input,
form textarea {
    font-size: 1em;
    padding: 0.8em 1em;
    border-radius: 0.5em;
    border: none;
    outline: none;
    width: 100%;
}

form input:focus,
form textarea:focus {
    background: #f1f1f1;
    color: black;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4em;
    background-color: var(--background);
    width: 100%;
    padding: 4em 15%;
    flex-wrap: wrap;
}

.col-left {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    color: white;
}

.col-box {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.col-box i {
    font-size: 1.5em;
}

.col-box span {
    font-size: 1.1em;
}

.col-right {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    color: white;
    max-width: 500px;
}

.col-right h3 {
    font-size: 1.5em;
}

.col-right p {
    line-height: 1.6em;
    opacity: 0.9;
}

.col-right .social {
    display: flex;
    gap: 1em;
    margin-top: 0.5em;
}

.col-right .social a {
    color: #aaa;
    transition: all 0.2s ease-in-out;
    font-size: 1.8em;
}

.col-right .social a:hover {
    color: white;
}