/* --- 1. Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. Navigation (Header) --- */
.navbar {
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 20px 5%;
    background-color: black;
}

.logo {
    height: 80px;
    width: auto;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.nav-links a {
    text-decoration: none;
    color: rgb(158, 158, 158);
    padding: 10px 20px;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 12px;
}

.nav-links a:hover { color: white; }

.nav-links a.active {
    color: black;
    background-image: linear-gradient(to right, #EC018C 0%, #F9AD27 25%, #FCF103 50%, #9ED85A 75%, #00AEEF 100%);
}

.nav-links a.active:hover { color: rgb(83, 83, 83); }

/* --- 3. Images & Branding --- */
.center-image, .ctr-img {
    display: block;
    margin: 40px auto;
    width: 85%;
    height: auto;
}
.center-image { max-width: 600px; }
.ctr-img { max-width: 300px; }

/* --- 4. Content Containers --- */
.content, .abtme, .portfolio, .pbrand, .myport {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    padding: 30px;
}

.content { text-align: center; }
.content h2{ margin-bottom: 10px; text-align: left;}

.abtme { text-align: left; }
.abtme h1 { margin-bottom: 20px; font-size: 2rem; color: #00b0f0; }

.portfolio { text-align: center; display: grid; gap: 20px; }
.pbrand { max-width: 700px; text-align: center; }
.myport { text-align: center; }

/* Gradient Links (Portfolio & Resume) */
.portfolio a, #resume a {
    text-decoration: none;
    background-image: linear-gradient(to left, #EC018C 0%, #F9AD27 25%, #FCF103 50%, #9ED85A 75%, #00AEEF 100%);
    border-radius: 12px;
    padding: 10px 12px;
    color: black;
    font-weight: bold;
}

/* --- 6. Contact Form Section --- */
.forms {
    padding: 2rem;
    display: flex;
    justify-content: center;
    background-color: black; /* Matches your theme */
}

#contactForm {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between inputs */
}

#contactForm label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #00b0f0;
    text-align: left;
}

#contactForm input[type="text"], 
#contactForm textarea {
    background-color: #2c2c2c;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    color: #ffffff;
    padding: 12px;
    width: 100%;
    transition: 0.3s;
}

#contactForm input:focus, 
#contactForm textarea:focus {
    outline: none;
    background-image: linear-gradient(to right, #EC018C 0%, #F9AD27 25%, #FCF103 50%, #9ED85A 75%, #00AEEF 100%);
}

/* Specific Style for the Form Button to keep it at the bottom */
#contactForm button {
    position: static;     /* Fixes the "not at bottom" issue */
    transform: none;      /* Removes carousel button positioning */
    background-image: linear-gradient(to right, #EC018C 0%, #F9AD27 25%, #FCF103 50%, #9ED85A 75%, #00AEEF 100%);
    color: #1a1a1a;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
}

#contactForm button:hover { background-image: linear-gradient(to left, #EC018C 0%, #F9AD27 25%, #FCF103 50%, #9ED85A 75%, #00AEEF 100%);}

/* --- 7. Footer --- */
footer {
    padding: 60px 20px 40px;
    background-color: black;
    border-top: 1px solid #333;
    text-align: center;
    margin-top: 60px;
}

.social-icons a {
    text-decoration: none;
    font-size: 24px;
    margin: 0 15px;
    display: inline-block;
    transition: 0.3s;
}

.social-icons a:hover { transform: translateY(-3px); }
.fa-instagram { color: #DD2A7B; }
.fa-behance   { color: #053EFF; }
.fa-linkedin  { color: #0077B5; }
.fa-facebook  { color: #1877F2; }

.footer-links { display: flex; justify-content: center; gap: 20px; margin: 25px 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #777; font-size: 14px; }
.footer-links a:hover { color: white; }

.copyright { font-size: 12px; color: #bababa; text-transform: uppercase; letter-spacing: 1px; }

/* --- 8. Back to Top --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: #333;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

#backToTop:hover {
    background-image: linear-gradient(to right, #EC018C 0%, #F9AD27 25%, #FCF103 50%, #9ED85A 75%, #00AEEF 100%);
    transform: scale(1.1);
}

/* --- 9. Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 20px; }
    .nav-links { margin-left: 0; width: 100%; justify-content: center; }
    .logo { height: 60px; }
    .content, .abtme, .portfolio { padding: 20px; }
}
