:root {
    --nav-height: 80px;
}

body {
    background-color: #0f171e;
    color: #88b5a5; /* Default text color matches brand */
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f171e;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Selection */
::selection {
    background-color: #88b5a5;
    color: #0f171e;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Navbar Pill */
.nav-pill {
    background-color: rgba(15, 23, 30, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(136, 181, 165, 0.1);
    border-radius: 9999px;
}

/* Custom Underline for Nav Links */
.nav-link {
    position: relative;
    padding-bottom: 4px;
    color: #88b5a5;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: #e2e8f0;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e2e8f0;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Sparkle Button */
.btn-sparkle {
    position: relative;
    color: #88b5a5;
    background-color: transparent;
    border: 1px solid #88b5a5;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-sparkle:hover {
    background-color: rgba(136, 181, 165, 0.1);
}

.sparkle-icon {
    position: absolute;
    width: 12px;
    height: 12px;
    fill: #88b5a5;
    animation: twinkle 2s infinite ease-in-out;
    opacity: 0;
}

.btn-sparkle:hover .sparkle-icon {
    opacity: 1;
}

.sparkle-1 { top: -8px; left: 20%; animation-delay: 0s; }
.sparkle-2 { bottom: -6px; left: 10%; animation-delay: 0.5s; width: 8px; height: 8px; }
.sparkle-3 { top: 50%; right: 10%; transform: translateY(-50%); animation-delay: 1s; width: 10px; height: 10px; }

.large-sparkle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    fill: #88b5a5;
    animation: float-twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes float-twinkle {
    0%, 100% { opacity: 0.4; transform: translate(-50%, 0) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -5px) scale(1.1); }
}

.project-card {
    background-color: rgba(21, 32, 43, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
}

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

.tech-tag {
    border: 1px solid #2d3748;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    background-color: rgba(15, 23, 30, 0.5);
    transition: border-color 0.3s, color 0.3s;
}

.tech-tag:hover {
    border-color: #88b5a5;
    color: #88b5a5;
}

/* Skill Pills */
.skill-pill {
    border: 1px solid rgba(35, 48, 42, 0.4);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #e2e8f0;
    background-color: transparent;
    transition: all 0.3s;
    cursor: default;
    position: relative;
    z-index: 2;
}

.skill-pill:hover {
    background-color: rgba(136, 181, 165, 0.1);
    color: #ffffff;
    border-color: #4c5552;
}

/* Section Headings */
.section-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    color: #0f171e;
}

.section-heading::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0f171e;
}

.fixed-socials-left {
    position: fixed;
    left: 40px;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.fixed-socials-left::after {
    content: '';
    width: 1px;
    height: 90px;
    background-color: #88b5a5;
    margin-top: 10px;
}

.fixed-email-right {
    position: fixed;
    right: 40px;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fixed-email-right a {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.fixed-email-right::after {
    content: '';
    width: 1px;
    height: 90px;
    background-color: #88b5a5;
}

.social-icon {
    color: #e2e8f0;
    transition: transform 0.3s, color 0.3s;
}
.social-icon:hover {
    transform: translateY(-4px);
    color: #ffffff;
}

/* Mobile contact row (shown only below md, replaces the fixed side rails) */
.mobile-contact-row {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}
.mobile-contact-row .social-icon {
    color: #0f171e;
}

/* Planet Background Container */
.planet-section {
    position: relative;
    padding-top: 15vh;
    min-height: 100vh;
}

/* Contact Section Specific */
.contact-content {
    position: relative;
    z-index: 20;
    color: #0f171e;
    text-align: center;
}

.btn-contact {
    color: #0f171e;
    border: 1px solid #0f171e;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    transition: all 0.3s;
}
.btn-contact:hover {
    background-color: rgba(15, 23, 30, 0.1);
}

/* Certification download link */
.cert-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f171e;
    margin-top: 0.5rem;
    padding-left: 2.25rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cert-download:hover {
    opacity: 0.7;
}

/* Resume download button state (disabled until file exists) */
.btn-sparkle[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
