/* --- Global Configuration & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0f172a;
    --second-bg-color: #1e293b;
    --text-color: #f8fafc;
    --main-color: #38bdf8;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* --- Navigation Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
    font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

/* --- Hero Section --- */
.home {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.home-content {
    max-width: 60rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0;
}

.home-content h3 span {
    color: var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn-box {
    display: flex;
    gap: 2rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: .3s ease;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 1.5rem var(--main-color);
    transform: translateY(-2px);
}

.btn-transparent {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.btn-transparent:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* --- Global Section Headings --- */
.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 700;
}

.heading span {
    color: var(--main-color);
}

/* --- About Section --- */
.about {
    background: var(--second-bg-color);
    text-align: center;
}

.about-content {
    max-width: 80rem;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 4rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.skill-badge {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
    background: var(--bg-color);
    color: var(--main-color);
    border-radius: 2rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-weight: 500;
}

/* --- Projects Section Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    padding: 0 2rem;
}

.project-card {
    background: var(--second-bg-color);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 25rem;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
}

.project-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.project-info p {
    font-size: 1.4rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.project-link {
    font-size: 1.5rem;
    color: var(--main-color);
    font-weight: 600;
    display: inline-block;
}

.project-link:hover {
    text-decoration: underline;
}

/* --- Contact Form Section --- */
.contact {
    background: var(--second-bg-color);
}

.contact-form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact-form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form .input-box input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .input-box input {
    width: 49%;
}

.contact-form textarea {
    resize: none;
}

.contact-form .btn {
    margin-top: 2rem;
}

/* --- Footer --- */
.footer {
    padding: 3rem 9%;
    background: var(--bg-color);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    font-size: 1.4rem;
    color: #64748b;
}

/* --- Media Queries (Responsive Mobile Support) --- */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    .header {
        padding: 2rem 5%;
    }
    section {
        padding: 10rem 5% 2rem;
    }
    .contact-form .input-box input {
        width: 100%;
    }
    .navbar {
        display: none; /* Can be paired with a simple mobile hamburger toggle button later */
    }
}
