:root {
    --primary: #0EA5E9;
    --primary-hover: #0284C7;
    --bg-main: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-blue: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
    --radius-md: 16px;
    --radius-lg: 24px;
    --gradient-blue: linear-gradient(135deg, #38BDF8, #0284C7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.glow-top-right {
    top: -200px;
    right: -200px;
}

.glow-bottom-left {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(248, 250, 252, 0) 70%);
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-glass);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.text-blue {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.btn-outline {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-spacing {
    padding-top: 8rem;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.4);
    position: relative;
    z-index: 5;
    background: transparent;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.gradient-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary.shadow-blue {
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: white;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.stats-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem 3rem;
    border-radius: 30px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
    max-width: 85%;
    margin: -5rem auto 0;
    position: relative;
    z-index: 10;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.stat-item h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.divider {
    width: 1px;
    height: 60px;
    background: #E2E8F0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-glass);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 233, 0.3);
    background: white;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #F0F9FF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #BAE6FD;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
}

.server-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.server-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.server-icon {
    width: 64px;
    height: 64px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.server-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid #E2E8F0;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.server-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.badge-role {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-admin { background: #FEE2E2; color: #DC2626; }
.badge-mod { background: #E0F2FE; color: #0284C7; }

.server-stats {
    display: flex;
    background: #F8FAFC;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
}

.stat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tech-stack {
    margin-bottom: 8rem;
}

.glass-panel {
    background: linear-gradient(135deg, white, rgba(255,255,255,0.5));
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    box-shadow: var(--shadow-md);
}

.tech-content {
    flex: 1;
}

.tech-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.tech-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tech-tags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    background: white;
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.cta-box {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #F0F9FF, white);
    border: 1px solid #BAE6FD;
}

.cta-box h2 {
    font-size: 2.5rem;
    color: #0369A1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.cta-box p {
    color: #0284C7;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.large-btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding: 3rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dev-credits {
    margin-top: 0.5rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    
    .hero-title { font-size: 3rem; }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-image {
        margin-bottom: 4rem;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .stats-banner {
        width: 95%;
        margin-top: -4.5rem;
        padding: 1.5rem 2rem;
    }
    
    .grid-layout { grid-template-columns: 1fr; }
    
    .glass-panel {
        flex-direction: column;
        padding: 2.5rem;
        text-align: center;
        gap: 2rem;
    }
    
    .tech-tags { justify-content: center; }
}

@media (max-width: 768px) {
    .hero { padding-top: 8rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    
    .image-wrapper {
        width: 260px;
        height: 260px;
        border-width: 4px;
    }

    .stats-banner {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: -3.5rem;
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .divider {
        width: 80%;
        height: 1px;
        margin: 0.5rem auto;
    }
    
    .section-title h2 { font-size: 2rem; }
    
    .cta-box h2 { font-size: 2rem; }
}