:root {
    --bg: #051414;
    --border: rgba(20, 176, 184, 0.15);
    --border-hover: rgba(20, 181, 184, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #c8d0db;
    --text-muted: #adadb8;
    
    /* Dark Teal Accent Variables */
    --teal-accent: #0e525e;
    --teal-light: #ffffff;
    --teal-glow: rgba(15, 103, 118, 0.25);

    /* Custom Typography Definitions */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "SF Mono", "SFMono-Regular", Consolas, monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Translucent Wavy Background Layer with 30-Degree Rotation & Taller Wave Amplitude */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    pointer-events: none;
    
    /* Rotate waves by -30 degrees */
    transform: rotate(-30deg);
    transform-origin: center center;

    /* Seamless SVG pattern with increased vertical wave amplitude */
    background-image: 
        linear-gradient(135deg, rgba(9, 31, 35, 0.82) 0%, rgba(3, 13, 17, 0.92) 50%, rgba(0, 0, 0, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22400%22%20height%3D%22400%22%20viewBox%3D%220%200%20400%20400%22%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M%200%2050%20Q%20100%20-30%20200%2050%20T%20400%2050%22%20stroke%3D%22rgba(20%2C%20184%2C%20166%2C%200.22)%22%20stroke-width%3D%2222%22%2F%3E%3Cpath%20d%3D%22M%200%20110%20Q%20100%2030%20200%20110%20T%20400%20110%22%20stroke%3D%22rgba(15%2C%20118%2C%20110%2C%200.18)%22%20stroke-width%3D%2226%22%2F%3E%3Cpath%20d%3D%22M%200%20170%20Q%20100%2090%20200%20170%20T%20400%20170%22%20stroke%3D%22rgba(20%2C%20184%2C%20166%2C%200.25)%22%20stroke-width%3D%2220%22%2F%3E%3Cpath%20d%3D%22M%200%20230%20Q%20100%20150%20200%20230%20T%20400%20230%22%20stroke%3D%22rgba(13%2C%20148%2C%20136%2C%200.20)%22%20stroke-width%3D%2224%22%2F%3E%3Cpath%20d%3D%22M%200%20290%20Q%20100%20210%20200%20290%20T%20400%20290%22%20stroke%3D%22rgba(45%2C%20212%2C%20191%2C%200.22)%22%20stroke-width%3D%2220%22%2F%3E%3Cpath%20d%3D%22M%200%20350%20Q%20100%20270%20200%20350%20T%20400%20350%22%20stroke%3D%22rgba(20%2C%20184%2C%20166%2C%200.18)%22%20stroke-width%3D%2228%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    
    background-repeat: repeat;
    background-size: cover, 400px 400px;
    animation: waveShift 40s linear infinite;
}

/* Seamless background-position keyframes */
@keyframes waveShift {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 0 0, 400px 400px;
    }
}

/* Ambient Dark Teal Lighting Glows */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, #0d9488 0%, #042f2e 100%);
}

.glow-2 {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, #115e59 0%, #000000 100%);
}

/* Layout Hierarchy */
.layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    max-width: 1120px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Surface with Rounder Corners (24px) */
.glass-card {
    background: rgba(8, 20, 22, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    border-radius: 24px;
}

/* Sidebar */
.sidebar {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    margin: 2rem 0 2rem 1.5rem;
    border-radius: 24px;
}

/* Outfit Medium Headings */
h1, h2, h3, .card-title {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Profile Avatar */
.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.2);
    display: block;
    margin: 0 auto 1.25rem auto;
    
}

/* Name Heading (Solid White) */
.gradient-text {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal-light);
    background: rgba(15, 118, 110, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #2dd4bf;
    border-radius: 50%;
    box-shadow: 0 0 8px #2dd4bf;
}

.role {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

/* Two-column layout for side-by-side emails */
.email-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    /* Ensure height matches email buttons exactly */
    height: 40px; /* Or match the specific px height/padding of your email button */
    padding: 0 0.85rem; /* Remove top/bottom padding so height controls vertical sizing */
    box-sizing: border-box;
    
    background: linear-gradient(180deg, rgba(23, 133, 148, 0.85) 0%, rgba(13, 75, 83, 0.85) 100%);
    color: #ffffff;
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    
    /* Glass Effect & Transitions */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

/* Maintain proper icon sizing and alignment */
.btn-primary svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Hover and Active States */
.btn-primary:hover {
    background: linear-gradient(180deg, rgba(28, 153, 169, 0.95) 0%, rgba(15, 88, 97, 0.95) 100%);
    border-color: rgba(20, 184, 166, 0.75);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary:hover svg {
    transform: scale(1.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
    background: rgba(20, 167, 149, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: var(--border-hover);
}

.social-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-left: 0.25rem;
}

.social-row a {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-row a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Content Panel */
.content {
    padding: 4rem 3rem;
}

section {
    margin-bottom: 3.5rem;
}

h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--teal-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.inner-card {
    padding: 1.5rem;
    border-radius: 24px;
}

.lead-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills */
.skill-category {
    margin-bottom: 1rem;
}

.skill-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-family: var(--font-sans);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(15, 118, 110, 0.1);
    color: var(--text-primary);
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

.skill-tag:hover {
    border-color: var(--teal-light);
    background: rgba(20, 184, 166, 0.18);
    transform: translateY(-1px);
}

/* Cards */
.card {
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    border-color: var(--border-hover);
    background: rgba(15, 118, 110, 0.12);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

.card-org {
    color: var(--teal-light);
    font-size: 0.9rem;
}

.card-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-sans);
}

/* Card Link Wrapper */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Optional: Subtle lift state when hovering over a card */
.card-link:hover .glass-card {
    border-color: rgba(20, 184, 166, 0.5);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

ul {
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.925rem;
}

li {
    margin-bottom: 0.4rem;
}

/* Projects Section Styling */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0.85rem 0 1.25rem 0;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 12px;
    font-weight: 500;
}

footer {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Responsive Viewports */
@media (max-width: 850px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        margin: 1.5rem;
        top: 0;
    }

    .content {
        padding: 2rem 1.5rem;
    }
}