:root {
    --primary-color: #6c5ce7;
    --primary-hover: #5540c7;
    --text-main: #2d3436;
    --text-secondary: #636e72;
    --bg-color: #faf9f6;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 1);
}

html {
    scroll-behavior: smooth;
    font-size: large;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.4;
}

body::-webkit-scrollbar {
    display: none;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}


#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

/* Change state when scrolling */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.256); /* Glass effect background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    width: 2rem;
    color: inherit;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

header, section {
    min-height: 100vh; /* Takes up full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
    padding: 80px 0; /* Add padding to prevent nav overlap at top */
}

/* Header Specifics */
header {
    text-align: left;
    /* This ensures children (like the button) do not stretch to full width */
    align-items: flex-start; 
}

.intro-text {
    max-width: 600px;
}

@keyframes blur-breathe {
    0%, 100% { filter: blur(0px); opacity: 1; }
    50% { filter: blur(1.5px); opacity: 0.7; }
}
.status-text a {
    text-decoration: none;
}

.status-text a {
    text-decoration: none;   
    color: inherit;
    cursor: pointer;            /* Keeps the hand cursor so people know it's clickable */
}

.status-text {
    font-size: x-large;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    color: #21de37;
    animation: blur-breathe 3s ease-in-out infinite;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

h1 span {
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    color: var(--text-main);
}

h3 {
    color: var(--text-main);
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.skill-list {
    list-style: none;
    margin-top: 0;
    padding-top: 0;
}

.skill-list li {
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.skill-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 0.9rem;
}

.tag-container {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #b2bec3;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
    transition: background 0.5s ease;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid #4db5ff;
    color: #4db5ff;
    box-shadow: none;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
    cursor: pointer;
    transition: text-decoration 0.3s ease;
}

.card-link:hover {
    text-decoration: underline;
}


.contact-section {
    text-align: center;
    /* Override flex-start from generic section if needed, but centering handles it */
    align-items: center; 
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 32px;
    height: 32px;
}

footer {
    text-align: center;
    padding: 20px 0; /* Reduced padding since sections have their own */
    color: #b2bec3;
    font-size: 0.9rem;
}


#popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

#popup.show {
    display: flex;
}

#popup-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

#closeBtn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

#closeBtn:hover {
    color: var(--primary-color);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.5rem; }
    
    .container, .nav-container { padding: 15px; }

    .nav-links {
        display: none; /* Simple hide for now, or add hamburger menu logic */
    }
}

