/* FONTS & ROOT VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root{
    --navy-900: #0A1A2F;   /* main background */
    --navy-800: #102A43;   /* sections / cards */
    --navy-700: #1B3A57;   /* hover surfaces */

    --text-primary: #F5F7FA;
    --text-secondary: #CBD5E1;
    --border-muted: #334155;

    --accent: #3B82F6;     /* professional blue */
}

/* STYLES */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    overflow-x: hidden;
    background-color: var(--navy-900);
    color: var(--text-primary);
}

section {
    padding: 4rem clamp(4%, 6vw, 9%);
    max-width: 1400px;
    margin: 0 auto;
}

section:not(.home) {
    margin-top: 6rem;
}

span{
    color: var(--accent);
}

/* HEADER & NAVIGATION */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 80px;
    padding: 0 9%;
    background-color: rgba(10, 26, 47, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 2.4rem;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-left: 3rem;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--accent);
    border-bottom: none;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
    display: none;
    font-size: 2.4rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ---- BODY CONTENT ---- */

/* ===== HOME SECTION ===== */
.home {
    min-height: calc(100vh - 80px);
    padding-top: 11rem;
    display: flex;
    align-items: flex-start;
    gap: 7rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home .home-content h1{
    font-size: clamp(3.8rem, 5vw, 6.4rem);
    font-weight: 700;
    line-height: 1.15;
}

.home .home-content h3 {
    font-size: clamp(2.4rem, 3.5vw, 4.2rem);
    margin-bottom: 2.2rem;
    font-weight: 600;
}

.home-content p,
.content-text {
    font-size: clamp(1.5rem, 1.2vw, 1.8rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    opacity: 0.65;
    letter-spacing: 0.01em;
    font-weight: 400;

    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.home-content {
    max-width: 640px;
}

.content-text:last-child {
    margin-bottom: 1.5rem;
}

.home-img {
    transform: translateY(-40px);
}

.home-img img{
    position: relative;
    width: 32vw;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
    cursor: pointer;
    transition: 0.2s linear;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid var(--accent);
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: var(--accent);
}

.social-icons a:hover{
    color: var(--navy-900);
    transform: scale(1.3) translateY(-5px);
    background-color: var(--accent);
    box-shadow: 0 0 20px rgba(59,130,246,0.6);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: transparent;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--accent);
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid var(--accent);
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: var(--accent);
    color: var(--navy-900);
    box-shadow: 0 0 25px rgba(59,130,246,0.6);
}
/* Typing text animation */
.typing-text{
    display: block;
    width: 28ch;
    height: 5.2rem;
    overflow: hidden;
}

.typing-text span{
    display: inline-block;
    white-space: nowrap;
}
/* ===== SHOWCASE SECTION ===== */
.showcase-item {
    margin-bottom: 8rem;
}

.showcase-year {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.4rem;
    text-transform: uppercase;
}

.showcase-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4.5rem;
    padding: 4rem;
    background: var(--navy-800);
    border-radius: 2.4rem;
    align-items: center;
    transition: 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.showcase-card:hover {
    transform: translateY(-6px);
}

.showcase-image {
    width: 400px;
    min-height: 100%;
    background: #0f1f33;
    border-radius: 20px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    display: flex;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.showcase-content h3 {
    font-size: 2.4rem;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* .showcase-content h2 {
    font-size: 2.4rem;
    line-height: 1.25;
    margin-bottom: 1.6rem;
} */

.showcase-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0.9;
    max-width: none;
    width: 100%;
    margin-bottom: 1.2rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    letter-spacing: 0.02em;
}

.showcase-content .btn {
    align-self: flex-start;
}

.showcase-content p:not(:last-of-type) {
    margin-bottom: 0.8rem;
}

.showcase-content p:last-of-type {
    margin-bottom: 2rem;
}

.project-actions {
    display: flex;
    gap: 1.2rem;
    margin-top: 4rem;
    flex-wrap: nowrap;
}

.project-actions .btn {
    padding: 1rem 2rem;       
    font-size: 1.3rem;
    white-space: nowrap;
}

.project-btn {
    padding: 1rem 2.5rem;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.showcase-divider {
    border: none;
    height: 1px;
    width: 60%;
    margin: 2rem 0;
    background: linear-gradient(
        to right,
        transparent,
        rgba(203, 213, 225, 0.6),
        transparent
    );
}

/* ===== ACADEMIC SECTION ===== */
.academic {
    background-color: var(--navy-900);
    padding: 4rem 9%;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 6rem;
}

.academic-card {
    background: linear-gradient(
        180deg,
        rgba(16,42,67,0.95),
        rgba(10,26,47,0.95)
    );
    border-radius: 1.6rem;
    padding: 3.2rem;
    position: relative;
    transition: 0.35s ease;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.35),
        inset 0 0 0 1px var(--border-muted);
}

.academic-card:nth-child(odd) {
    transform: translateY(12px);
}

.academic-card:nth-child(even) {
    transform: translateY(-6px);
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59,130,246,0.15);
}

.academic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.6rem;
}

.tag {
    font-size: 1.2rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(59,130,246,0.15);
    color: var(--accent);
    font-weight: 500;
}

.year {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.academic-card h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.academic-card p {
    font-size: 1.45rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.academic-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: block;
    margin-bottom: 1rem;
}

.academic-link:hover {
    text-decoration: underline;
}

/* ===== CONNECTIONS SECTION ===== */
.connections {
    background-color: var(--navy-900);
    padding: 4rem 5%;
}

.connections-container {
    display: flex;
    align-items: center;
    position: relative;
}

.connections-row {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.connection-card {
    width: clamp(280px, 30vw, 380px);
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.connection-card img {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.connection-content {
    padding: 1rem;
    flex: 1;                 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.connection-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.connection-content p {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.connection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(59,130,246,0.3);
}
/* Arrows */
.conn-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 26, 47, 0.9);
    color: var(--accent);
    font-size: 2.5rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    padding: 1rem;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
}

.conn-arrow:hover {
    transform: translateY(-50%) scale(1.2);
}

.conn-arrow.left {
    left: 0;
}

.conn-arrow.right {
    right: 0;
}

.conn-arrow.show {
    opacity: 1;
    pointer-events: auto;
}

.connections-row::-webkit-scrollbar {
    display: none;
}

.connections-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
    pointer-events: auto;     
}

/* ===== CONTACT & FOOTER ===== */
.contact {
    min-height: 100vh;
    padding: 4rem 9%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 2.5rem 3.5rem;
    background: var(--navy-800);
    border-radius: 1.8rem;
    border: 1px solid var(--border-muted);
    width: fit-content;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 1.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.contact-item i {
    width: 4.2rem;
    height: 4.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 2rem;
}

.contact-item:hover {
    color: var(--text-primary);
}

.contact-item:hover i {
    background: var(--accent);
    color: var(--navy-900);
    box-shadow: 0 0 18px rgba(59,130,246,0.6);
}

.contact-footer {
    margin-top: 6rem;
    text-align: center;
}

.contact-footer p {
    font-size: 1.2rem;
    color: #64748b;
}

/* ===== SECTION HEADERS/PILLS ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-bottom: 5rem;
}

.section-pill {
    width: 48px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 4px;
}

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.section_text_p1 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
