/* ---------------------------------------
   Fonts & Imports
---------------------------------------- */
@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

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

html {
    scroll-behavior: smooth;
}

/* ---------------------------------------
   Body
---------------------------------------- */
body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.7;
}

section {
    transition: background 0.5s ease-in-out;
    padding: 80px 0;
}

#intro { background: linear-gradient(135deg, #ffffff, #f3f6ff); }
#work { background: linear-gradient(135deg, #f3f6ff, #eefaff); }
#research { background: linear-gradient(135deg, #eefaff, #ebffe9); }

/* ---------------------------------------
   Top Navigation
---------------------------------------- */
nav#topnav {
    width: 100%;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: #ffffffd9;
    backdrop-filter: blur(10px);
    z-index: 100;
}

nav#topnav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

nav#topnav a {
    text-decoration: none;
    font-weight: 600;
    color: #444;
    padding-bottom: 4px;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

nav#topnav a:hover,
nav#topnav a.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

/* ---------------------------------------
   Container
---------------------------------------- */
.container {
    width: 92%;
    max-width: 880px;
    margin: auto;
}

/* ---------------------------------------
   Intro Section
---------------------------------------- */
.intro-wrapper {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.08);
    text-align: left;
}

.intro-photo-block {
    text-align: center;
    margin-bottom: 30px;
}

.intro-photo-block img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.intro-title {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 6px;
}

.intro-degree {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* ---------------------------------------
   UPDATED Quote Block
---------------------------------------- */
.pretty-quote {
    background: linear-gradient(135deg, #eef4ff, #ffffff);
    padding: 26px 32px;
    border-radius: 16px;
    border-left: 6px solid #2563eb;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    animation: fadeUp 0.7s ease-out;
}

.quote-main {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e3a8a;
    font-style: italic;
    margin-bottom: 6px;
}

.quote-sub {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
}

.quote-author {
    text-align: right;
    font-size: 1rem;
    font-style: italic;
    color: #666;
}

/* ---------------------------------------
   UPDATED Tech-Love Highlight Block
---------------------------------------- */
.fancy-tech {
    background: linear-gradient(135deg, #fff8e8, #fff3d9);
    border-left: 6px solid #f59e0b;
    padding: 26px 30px;
    border-radius: 16px;
    margin-top: 25px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    animation: fadeUp 0.75s ease-out;
}

.fancy-tech h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #b45309;
    font-weight: 700;
}

.fancy-tech p {
    font-size: 1.08rem;
    color: #3a3a3a;
    line-height: 1.65;
}

/* Animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------
   Cards
---------------------------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.card,
.research-card {
    background: white;
    padding: 25px 20px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.07);
    transition: 0.2s;
    overflow: visible;
}

.card:hover,
.research-card:hover {
    transform: translateY(-4px);
}

.card img,
.research-card img {
    width: 150px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.card img:hover,
.research-card img:hover {
    transform: scale(5.5);
    position: relative;
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.card h4,
.research-card h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #222;
}

.card p,
.research-card p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

/* Responsive */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------
   Footer
---------------------------------------- */
footer {
    text-align: center;
    padding: 40px 0;
    background: #fafafa;
    margin-top: 40px;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-icons a {
    font-size: 1.7rem;
    color: #444;
    transition: 0.25s;
}

.footer-icons a:hover {
    color: #2563eb;
}

footer p {
    color: #777;
    font-size: 0.9rem;
}
