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

@property --rotate {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
    --primary: #0f172a;
    --secondary: #111827;
    --accent: #3fef9a; /* primary signature green */
    --accent-bright: #8cfcc5;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --hover: #38bdf8; /* blue accent */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background-color: var(--primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Content Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    animation: fadeIn 0.8s ease-in;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.logo-green {
    color: var(--accent);
}

.logo-gradient {
    color: #3CD6C9; /* midpoint between green and blue */
}

.logo-blue {
    color: var(--hover);
}

/* Profile Picture */
.pfp-container {
    display: flex;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 40px;
    animation: fadeIn 1s ease-in;
}

.pfp-container img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 12px 36px rgba(63, 239, 154, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pfp-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 48px rgba(63, 239, 154, 0.35);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 480px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 1s ease-in;
    margin-top: 0;
    padding-bottom: 120px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--hover) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 1s ease-out;
}

.hero .tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    animation: slideUp 1.2s ease-out;
}

.hero .wip-note {
    font-size: 0.95rem;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 28px;
    animation: slideUp 1.3s ease-out;
}

.cta-button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 2px solid var(--accent);
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    width: 12rem;
    height: auto;
    border-radius: 1.625rem;
    animation: slideUp 1.4s ease-out;
    transition: border-color 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.cta-button .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    border-radius: 1.625rem;
}

.cta-button .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: var(--primary);
}

.cta-button .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

.cta-button .circle .icon.arrow::before {
    position: absolute;
    content: '';
    top: -0.25rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid var(--primary);
    border-right: 0.125rem solid var(--primary);
    transform: rotate(45deg);
}

.cta-button .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: var(--accent);
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.cta-button:hover {
    border-color: transparent;
}

.cta-button:hover .circle {
    width: 100%;
    background: var(--hover);
}

.cta-button:hover .circle .icon.arrow {
    background: var(--primary);
    transform: translate(1rem, 0);
}

.cta-button:hover .button-text {
    color: var(--primary);
}

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--hover);
    border-radius: 2px;
}

/* Social Links */
.social-section {
    padding: 72px 0 64px;
    text-align: center;
    animation: fadeInOnScroll 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-card {
    background: #191c29;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
    width: 500px;
    max-width: 95vw;
    padding: 0.5px;
    position: relative;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.social-card::before {
    content: "";
    width: 101%;
    height: 100.5%;
    border-radius: 12px;
    background-image: linear-gradient(
        var(--rotate),
        #3fef9a,
        #38bdf8 43%,
        #8cfcc5
    );
    position: absolute;
    z-index: -1;
    top: -0.25%;
    left: -0.5%;
    animation: spin 2.5s linear infinite;
}

.social-card::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    filter: blur(40px);
    background-image: linear-gradient(
        var(--rotate),
        #3fef9a,
        #38bdf8 43%,
        #8cfcc5
    );
    opacity: 0.8;
    animation: spin 2.5s linear infinite;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

.social-card .section-title {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    padding: 40px 40px 0 40px;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    position: relative;
    z-index: 1;
    padding: 0 40px 40px 40px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--accent-bright);
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
}

.social-link:hover {
    color: var(--hover);
    transform: translateY(-8px);
}

.social-link-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.social-link-disabled:hover {
    color: var(--accent-bright);
    transform: none;
}

.social-link-disabled .social-icon {
    border-color: currentColor;
    background: none;
    box-shadow: none;
}

.social-link-disabled:hover .social-icon {
    border-color: currentColor;
    background: none;
    box-shadow: none;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    border-color: var(--hover);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.social-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 80px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOnScroll {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 0;
    }

    .pfp-container {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .pfp-container img {
        width: 280px;
        height: 280px;
    }

    .hero {
        min-height: auto;
        padding: 40px 0 220px;
    }

    .hero h1 {
        margin-bottom: 15px;
    }

    .social-section {
        padding: 60px 0;
    }

    .social-links {
        gap: 20px;
    }

    .social-link {
        padding: 15px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    nav {
        padding: 20px 15px;
    }

    .pfp-container {
        padding-top: 90px;
        padding-bottom: 10px;
    }

    .pfp-container img {
        width: 290px;
        height: 290px;
        border: 3px solid var(--accent);
    }

    .hero {
        min-height: auto;
        padding: 20px 0 260px;
    }

    .logo {
        font-size: 20px;
    }

    .social-section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

}
