@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #0f172a; 
    overflow-x: hidden; 
}

.glass { 
    background: rgba(30, 41, 59, 0.7); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.gradient-text { 
    background: linear-gradient(90deg, #38bdf8, #818cf8); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* Stack boxes */
.stack-box { 
    background: rgba(30, 41, 59, 0.5); 
    border: 1px solid rgba(56, 189, 248, 0.2); 
    transition: all 0.3s ease; 
}

.stack-box:hover { 
    border-color: #38bdf8; 
    transform: translateY(-2px); 
    background: rgba(30, 41, 59, 0.8); 
}

/* Protocol tags */
.protocol-tag {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-family: monospace;
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Project cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #1e293b;
    background-color: #0f172a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-0.5rem);
    border-color: #334155;
    box-shadow: 0 10px 30px -15px rgba(2, 6, 23, 0.7);
}

/* Mobile Nav */
#mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #1e293b;
    z-index: 100;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-nav.open { 
    right: 0; 
}

#nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: 90;
    display: none;
    backdrop-filter: blur(4px);
}

/* Hamburger Icon Animation */
.nav-icon { width: 30px; height: 20px; position: relative; cursor: pointer; }
.nav-icon span { display: block; position: absolute; height: 2px; width: 100%; background: #fff; border-radius: 9px; opacity: 1; left: 0; transition: .25s ease-in-out; }
.nav-icon span:nth-child(1) { top: 0px; }
.nav-icon span:nth-child(2) { top: 10px; }
.nav-icon span:nth-child(3) { top: 20px; }
.nav-icon.open span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.nav-icon.open span:nth-child(2) { opacity: 0; left: -60px; }
.nav-icon.open span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

@media (max-width: 380px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.5rem !important; 
        line-height: 1.1 !important;
    }
}