/* ============================================
   Layout: Section-specific Structures
   ============================================ */

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 60px;

    /* Weak visual separation */
    padding-bottom: 25px;
    margin-bottom: -10px; /* Offset the gap introduced by padding to keep layout tight */
    border-bottom: 2px dashed rgba(0, 0, 0, 0.25);
}

.header-name {
    flex: 1;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    display: flex;
    justify-content: flex-start;
}

nav {
    flex: 2;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--border-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.header-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-content {
    flex: 1;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    gap: 15px;
}

/* --- Education Section (Glassmorphism & Overlapping Logos) --- */
.about.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-width) solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about.glass-panel:hover {
    background: rgba(255, 255, 255, 0.6);
}

.about-content {
    flex: 1;
}

.about-image.overlapping-logos {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.stack-logo {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: var(--border-width) solid var(--border-color);
    background-color: var(--element-bg);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--border-color);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
    object-fit: contain;
    padding: 10px;
}

.stack-logo:hover {
    transform: scale(1.1) translateY(-10px) !important;
    z-index: 10 !important;
}

.logo-1 {
    top: 10px;
    z-index: 3;
    transform: translateX(0);
}

.logo-2 {
    bottom: 20px;
    left: 10px;
    z-index: 2;
    transform: rotate(-10deg);
}

.logo-3 {
    bottom: 30px;
    right: 10px;
    z-index: 1;
    transform: rotate(15deg);
}

/* --- Projects/Publications Section --- */
.projects {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- Connect / Footer Section --- */
.connect-section {
    background-color: var(--footer-bg);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.social-area {
    flex: 1;
}

.social-area h2 {
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
