/* ===============================
   VARIABLES & GLOBAL RESET
================================ */
:root {
    --rainbow: linear-gradient(to right, #29aae1 11.11%, #8ac76f 28.77%, #fbed21 47.13%, #f16b4e 70.11%, #ea088b 100%);
    --bg-black: #000;
    --card-bg: #1a1a1a;
    --text-white: #fff;
    --text-gray: #9e9e9e;
    --accent-blue: #00b0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'aktiv-grotesk', sans-serif;
    line-height: 1.6;
    background: var(--bg-black);
    color: var(--text-white);
}

button, input, select, textarea {
    font-family: inherit;
}

/* ===============================
   NAVBAR
================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(0,0,0,0.9);
}

.gradient-border-bottom {
  border-bottom: 1px solid transparent; 
  border-image-source: var(--rainbow);
  border-image-slice: 1;
}

.logo {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

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

.nav-links a.active {
    background-image: var(--rainbow);
    color: black;
}

/* Mobile Hamburger */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-white);
}

/* ===============================
   SECTIONS
================================ */
.section {
    padding: 40px 20px;
}

.section-soft {
    background: #0f0f0f;
}

.section-card {
    background: var(--card-bg);
}

.section-gradient {
    background:
        linear-gradient(to right, rgb(41, 170, 225, 0.3) 11.11%, rgb(138, 199, 111, 0.3) 28.77%, rgb(251, 237, 33, 0.3) 47.13%, rgb(241, 107, 78, 0.3) 70.11%, rgb(234, 8, 139, 0.3) 100%);
    padding: 15px;
    border-radius: 5px;
}

.content {
    max-width: 900px;
    margin: auto;
}

.center-image {
    display: block;
    margin: 60px auto;
    max-width: 420px;
    width: 80%;
    height: auto;
}

/* ===============================
   CONTACT & FORM
================================ */
.forms {
    max-width: 600px;
    margin: auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid #333;
}

.contact-title {
    text-align: center;
    font-size: 2.2rem;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 35px;
}

/* Enhanced Subtitle Link Styles */
.contact-subtitle a {
    color: var(--text-white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-subtitle a:hover {
    color: #8ac76f; /* Green from your rainbow palette */
    border-bottom: 1px solid #8ac76f;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#contactForm label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

#contactForm input,
#contactForm textarea {
    padding: 14px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #0f0f0f;
    color: white;
    transition: border-color 0.3s;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

#contactForm button {
    margin-top: 25px;
    padding: 14px;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    background-image: var(--rainbow);
    color: black;
    transition: transform 0.2s, filter 0.2s;
}

#contactForm button:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* ===============================
   FOOTER
================================ */
.site-footer {
    background: #000;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.gradient-border-top {
  border-top: 1px solid transparent;
  border-image-source: linear-gradient(to left, #29aae1 11.11%, #8ac76f 28.77%, #fbed21 47.13%, #f16b4e 70.11%, #ea088b 100%);
  border-image-slice: 1;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    gap: 30px;
}

.footer-links,
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-white);
}

.social-icons a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px); /* Gentle lift on hover */
}

/* BACK TO TOP - MOVED TO FAR LEFT */
#backToTop {
    display: none; /* Keep this to hide it on page load */
    position: fixed;
    bottom: 30px;
    right: 30px; /* Changed to right for better thumb reach/standard UX */
    z-index: 2000;
    background: #1a1a1a;
    color: white;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    border-color: #29aae1;
    transform: scale(1.1);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
    .section { padding: 60px 15px; }
    .abt-container h1,
    .resume-title,
    .contact-title { font-size: 2rem; }
    .abt-container p,
    .contact-subtitle { font-size: 0.95rem; }
    .center-image { max-width: 350px; }
    .portfolio-grid { gap: 20px; }
    .resume-images img { max-width: 100%; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--bg-black);
        flex-direction: column;
        width: 200px;
        border-left: 1px solid #333;
        padding: 20px;
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section { padding: 50px 10px; }
    .abt-container h1,
    .resume-title,
    .contact-title { font-size: 1.75rem; }
    .abt-container p,
    .contact-subtitle { font-size: 0.9rem; }
    .center-image { max-width: 300px; }
    .resume-images { flex-direction: column; gap: 15px; }
    .project-card img { height: 180px; }
    .forms { padding: 30px 15px; }
    #contactForm input,
    #contactForm textarea { padding: 12px; }
    #contactForm button { padding: 12px; }
}

@media (max-width: 480px) {
    .section { padding: 40px 10px; }
    .abt-container h1,
    .resume-title,
    .contact-title { font-size: 1.5rem; }
    .abt-container p,
    .contact-subtitle { font-size: 0.85rem; }
    .center-image { max-width: 90%; }
    .project-card img { height: 160px; }
    .btn-rainbow { padding: 10px 20px; font-size: 0.85rem; }
    .forms { padding: 20px 10px; }
    #backToTop { bottom: 20px; left: 20px; }
}