:root {
    --bg: #0a0a0a;
    --accent: #007aff;
    --text: #ffffff;
    --card-bg: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5000; 
    background: rgba(10, 10, 10, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
}

.home-link { text-decoration: none; color: white; display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo-top { font-weight: 700; font-size: 1.8rem; letter-spacing: 2px; }
.logo-bottom { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-top: 4px; }

.links a { color: white; text-decoration: none; margin-left: 25px; font-size: 0.9rem; }
.links a:hover { color: var(--accent); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 5001; }
.hamburger span { width: 25px; height: 2px; background: white; }

.panel, .hero {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    background-color: var(--bg);
    padding: 150px 10% 40px; 
    overflow-y: auto; 
}

/* Hero: Responsive (Instant Scroll) */
.hero { 
    z-index: 1; 
    background: radial-gradient(circle at center, #111 0%, #000 100%); 
    text-align: center; 
    align-items: center; 
    padding-top: 100px;
    margin-bottom: 0; /* No Buffer for immediate responsiveness */
}

/* Content Panels: Standardized Buffer */
#about, #services, #projects, #team { margin-bottom: 80vh; }

#about { z-index: 2; }
#services { z-index: 3; }
#projects { z-index: 4; }
#team { z-index: 5; }
#contact { z-index: 6; margin-bottom: 0; padding-top: 100px; align-items: center; }

.team-bg { background-color: #0d0d0d; }
.content-wrapper { width: 100%; max-width: 1100px; }

h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.hero-tagline { font-size: 1.2rem; color: #ccc; margin-bottom: 4rem; }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 2rem; color: var(--accent); }

.grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    outline: none;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text);
    font-weight: 700;
    min-height: 3.2em; 
    display: flex;
    align-items: center;
}

.card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.card-details p { padding-top: 1.5rem; color: #bbb; font-size: 0.95rem; }

.card:hover, .card:focus { transform: translateY(-10px); box-shadow: 0 0 0 1px var(--accent); }
.card:hover h3, .card:focus h3 { color: var(--accent); }
.card:hover .card-details, .card:focus .card-details { max-height: 500px; opacity: 1; }

.linkedin-link { display: inline-block; margin-top: 1rem; color: var(--accent); text-decoration: none; font-size: 0.85rem; font-weight: 700; }

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

.reveal-up { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

form { display: flex; flex-direction: column; gap: 1rem; max-width: 600px; margin: 0 auto; text-align: left;}
input, textarea { padding: 1rem; background: #222; border: 1px solid #444; color: white; border-radius: 4px; width: 100%; font-family: inherit;}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .links {
        display: none;
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 220px;
        background: #0f0f0f;
        padding: 6rem 2rem;
        flex-direction: column; gap: 2rem;
        z-index: 5000;
        border-left: 1px solid #333;
    }
    .links.active { display: flex; }
    .links a { margin: 0; font-size: 1.1rem; color: white; }
}