/* --- Basic Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #120e1f;
    color: #f0f0f0;
    overflow-x: hidden;
}

/* --- Fluid Animated Background --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* This creates the soft, fluid look */
    opacity: 0.7;
}

.color-1 {
    width: 500px;
    height: 500px;
    background: #4f00bc; /* Dark Purple */
    top: -150px;
    left: -150px;
    animation: move 25s infinite alternate;
}

.color-2 {
    width: 400px;
    height: 400px;
    background: #8e2de2; /* Lighter Purple */
    bottom: -100px;
    right: -100px;
    animation: move 30s infinite alternate;
}

.color-3 {
    width: 300px;
    height: 300px;
    background: #4a00e0; /* Bright Purple/Blue */
    bottom: 20%;
    left: 20%;
    animation: move 20s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(400px, 200px) rotate(360deg);
    }
}

/* --- Content Styling --- */
.content {
    position: relative;
    z-index: 1;
    padding: 0 5%;
}

.full-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-section {
    padding: 100px 0;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Glassmorphism Cards & Buttons --- */
.project-card, .cta-button, .social-links a {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 15px 30px;
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 600;
    font-size: 1rem;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* --- Work Section --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    text-align: left;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
}

.project-card h3 {
    font-size: 1.5rem;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
}

.project-card p {
    font-size: 1rem;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    text-decoration: none;
    color: #c792ff;
    font-weight: 600;
}

/* --- Contact Section --- */
.contact-text {
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;         /* ADDED */
    flex-wrap: wrap;       /* ADDED */
    justify-content: center; /* ADDED */
    gap: 1rem;             /* ADDED */
}

.social-links a {
    padding: 10px 20px;
    text-decoration: none;
    color: #f0f0f0;
    /* REMOVED margin: 0 10px; */
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Scroll-in Animation --- */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
    }
}
/* --- Contact Form Styling --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    width: 100%;
    margin: 2rem auto;
}

.form-group {
    display: flex;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #cccccc;
}

.contact-form button {
    border: none;
    cursor: pointer;
    align-self: center; /* Aligns button to the center */
}

/* Responsive form */
@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* --- Navigation Bar Styling (Floating Pill) --- */
.navbar {
    position: fixed;
    top: 30px; /* Moves it down from the top edge */
    left: 50%;
    transform: translateX(-50%); /* Perfectly centers the element */
    z-index: 10;
}

.nav-links {
    display: flex;
    gap: 1rem; /* ADDED for better spacing */
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* This makes it pill-shaped */
}

.nav-links a {
    color: #f0f0f0;
    text-decoration: none;
    /* REMOVED margin: 0 20px; */
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}
