/* === CSS VARIABLES === */
:root {
    --bg-gradient: linear-gradient(135deg, #0a0510 0%, #150a1c 50%, #0a0510 100%);
    --glass-bg: rgba(20, 10, 27, 0.7);
    --glass-border: rgba(124, 46, 138, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --primary-blue: #7c2e8a;
    --primary-purple: #7c2e8a;
    --accent-purple: #5a2166;
    --accent-soft: #cda0d9;
    --primary-gradient: linear-gradient(135deg, #cda0d9 0%, #7c2e8a 100%);
    --text-main: #f5f0f4;
    --text-muted: #9c8fa0;
    --header-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 5, 15, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 46, 138, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 46, 138, 0.8);
}


/* === HEADER/NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 5, 16, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    z-index: 1000;
}

.logo {
    position: absolute;
    left: 50px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 45px;
    align-items: center;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-soft);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* === MOBILE BURGER MENU === */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    position: absolute;
    right: 20px;
    transition: all 0.3s ease;
}

.nav-burger:hover {
    transform: scale(1.1);
}

.nav-burger span {
    width: 23px;
    height: 2.5px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background: var(--accent-soft);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
    background: var(--accent-soft);
}


/* === HERO SECTION === */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -260px;
    left: 50%;
    width: 900px;
    height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, #3a1046, #190620 60%, transparent 75%);
    filter: blur(10px);
    opacity: 0.9;
    pointer-events: none;
}

.hero-wrapper {
    max-width: 1200px;
    width: 100%;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 25px;
}

.hero-left h1 .accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-left p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(20, 10, 27, 0.6);
    color: var(--text-main);
    border: 1px solid rgba(124, 46, 138, 0.3);
    padding: 14px 34px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(124, 46, 138, 0.15);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.hero-right {
    position: relative;
}

.hero-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.hero-icon {
    font-size: 5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-box-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* === PROJECTS SECTION === */
.projects {
    padding: 100px 50px;
    background: rgba(15, 8, 20, 0.4);
}

.section-center {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    font-size: 0.85rem;
    color: var(--accent-soft);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === PROJECTS GRID === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* === PROJECT CARD LINK === */
.project-card-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* === PROJECT CARD === */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: rgba(20, 10, 27, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 240px;
}

.project-card:hover {
    transform: translateY(-6px);
    background: rgba(24, 13, 32, 0.8);
    border-color: rgba(124, 46, 138, 0.4);
    box-shadow:
        0 15px 40px rgba(90, 33, 102, 0.25),
        0 0 40px rgba(90, 33, 102, 0.15);
}

.project-card:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

.project-card.aura {
    border-color: rgba(124, 46, 138, 0.4);
    background: linear-gradient(160deg, rgba(90, 33, 102, 0.3) 0%, rgba(20, 10, 27, 0.6) 60%);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(124, 46, 138, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    flex-shrink: 0;
}

.card-icon svg { width: 20px; height: 20px; }

.project-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-soft);
    background: rgba(124, 46, 138, 0.18);
    border: 1px solid rgba(124, 46, 138, 0.3);
    padding: 2px 9px;
    border-radius: 999px;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.project-stack {
    font-size: 0.82rem;
    color: rgba(156, 143, 160, 0.8);
    font-weight: 500;
}

.card-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-soft);
}

/* === ABOUT SECTION === */
.about {
    padding: 100px 50px;
}

.about-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.about-header h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 20px;
}

.about-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-member {
    background: rgba(20, 10, 27, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-member:hover {
    transform: translateY(-5px);
    background: rgba(24, 13, 32, 0.8);
    border-color: rgba(124, 46, 138, 0.4);
    box-shadow:
        0 15px 40px rgba(90, 33, 102, 0.25),
        0 0 40px rgba(90, 33, 102, 0.15);
}

.about-member-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.about-member-header .about-icon {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.about-member-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.about-member-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

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

.about-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    transition: 0.3s;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-soft);
    font-weight: 700;
    font-size: 1.1rem;
}

.about-list li:hover {
    color: var(--accent-soft);
    transform: translateX(8px);
}

/* === DECORATIVE SERVER STATUS WIDGET (stands in for a product screenshot) === */
.server-status {
    width: 100%;
    max-width: 380px;
    background: rgba(23, 23, 40, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 46, 138, 0.2);
    border-radius: 16px;
    padding: 26px 26px 8px;
    box-shadow: 0 15px 40px rgba(90, 33, 102, 0.2);
}

.server-status-title {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.server-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(124, 46, 138, 0.1);
}

.server-row:last-child {
    border-bottom: none;
}

.server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ecf8e;
    box-shadow: 0 0 6px rgba(62, 207, 142, 0.7);
    flex-shrink: 0;
    animation: server-pulse 2.4s ease-in-out infinite;
}

@keyframes server-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.server-name {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    flex-grow: 1;
}

.server-ping {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .server-status {
        max-width: 100%;
    }
}

/* === FOOTER === */
.footer {
    background: rgba(5, 3, 8, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 60px 50px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-soft);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(124, 46, 138, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.hero-left h1, .hero-left p, .hero-buttons {
    animation: slideInUp 0.6s ease-out forwards;
}

.hero-left p { animation-delay: 0.1s; }
.hero-buttons { animation-delay: 0.2s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 30px;
    }

    .hero-wrapper {
        padding: 0 30px;
        gap: 50px;
    }

    .hero-left h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 56px;
        position: fixed;
    }

    .logo {
        font-size: 1.05rem;
        gap: 8px;
        position: absolute;
        left: 16px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: var(--header-height);
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(3, 3, 8, 0.99);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(124, 46, 138, 0.1);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        display: none;
        z-index: 999;
        animation: slideDown 0.3s ease-out forwards;
        overflow-y: auto;
    }

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

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 16px 24px;
        border-bottom: 1px solid rgba(124, 46, 138, 0.08);
        font-size: 1.05rem;
        transition: all 0.3s ease;
        color: var(--text-muted);
        font-weight: 500;
    }

    .nav-menu a:hover {
        background: rgba(124, 46, 138, 0.1);
        color: var(--accent-soft);
        padding-left: 30px;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-burger {
        display: flex;
        position: absolute;
        right: 16px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 40px;
        min-height: 600px;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-left h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .hero-left p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .hero-right {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-box {
        width: 100%;
        max-width: 400px;
        padding: 40px 30px;
        border-radius: 14px;
    }

    .hero-icon {
        font-size: 4rem;
        margin-bottom: 15px;
    }

    .hero-box-text {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .projects {
        padding: 60px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        min-height: auto;
        padding: 22px;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-desc {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .about {
        padding: 60px 20px;
    }

    .about-header {
        margin-bottom: 50px;
    }

    .about-header h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .about-header p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-member {
        padding: 30px;
        border-radius: 14px;
    }

    .about-member:hover {
        transform: translateY(-3px);
    }

    .about-member-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .about-member-header .about-icon {
        font-size: 2.5rem;
    }

    .about-member-header h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .about-member-desc {
        font-size: 0.95rem;
        text-align: center;
    }

    .about-list li {
        font-size: 0.9rem;
        text-align: left;
    }

    .footer {
        padding: 50px 20px 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 30px;
    }

    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .footer-col p {
        font-size: 0.85rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 15px;
        height: 55px;
        position: fixed;
    }

    .logo {
        font-size: 0.95rem;
        gap: 6px;
        position: absolute;
        left: 15px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .hero {
        padding-top: 55px;
    }

    .hero-wrapper {
        padding: 0 12px;
        gap: 25px;
        min-height: 550px;
    }

    .hero-left h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        line-height: 1.25;
    }

    .hero-left p {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .hero-box {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .hero-icon {
        font-size: 3rem;
        margin-bottom: 12px;
    }

    .hero-box-text {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .projects, .about {
        padding: 40px 12px;
    }

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

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .section-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        padding: 18px;
        border-radius: 12px;
    }

    .project-title {
        font-size: 1.05rem;
    }

    .project-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .about-header h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .about-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-member {
        padding: 20px;
        border-radius: 12px;
    }

    .about-member-header {
        gap: 12px;
    }

    .about-member-header .about-icon {
        font-size: 2rem;
    }

    .about-member-header h3 {
        font-size: 1rem;
    }

    .about-member-desc {
        font-size: 0.85rem;
    }

    .about-list {
        margin-top: 12px;
    }

    .about-list li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .footer {
        padding: 30px 12px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 20px;
    }

    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .footer-col p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.8rem;
        gap: 6px;
    }

    .footer-bottom {
        padding-top: 15px;
        font-size: 0.75rem;
    }

    .footer-content {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .btn-secondary {
        min-height: 44px;
    }
}

@media (max-width: 360px) {
    :root {
        --header-height: 50px;
    }

    .hero {
        padding-top: 50px;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo-mark {
        width: 28px;
        height: 28px;
    }

    .hero-left h1 {
        font-size: 1.3rem;
    }

    .hero-box {
        padding: 20px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .about-member-header h3 {
        font-size: 1.1rem;
    }
}
