/* ==========================
   GOOGLE FONT & RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:110px;
}

body{

    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;

    font-family:'Inter',sans-serif;
    background:#f8fbff;
    color:#0f4c81;
    line-height:1.7;
    overflow-x:hidden;

}

body::before{

    content:"";

    position:fixed;

    inset:0;

    background-image:
        radial-gradient(circle at 20% 20%,rgba(37,99,235,.06),transparent 25%),
        radial-gradient(circle at 80% 80%,rgba(96,165,250,.05),transparent 25%);

    pointer-events:none;

    z-index:-1;

}

/* ==========================
   VARIABLES
========================== */

:root{

    --primary:#2563eb;
    --secondary:#60a5fa;
    --accent:#0f766e;

    --dark:#020817;
    --dark-light:#f3f8ff;
    --card:#ffffff;
    --surface:#f6faff;

    --white:#ffffff;
    --text:#16406b;
    --muted:#4f6f93;
    --border:rgba(37,99,235,.12);

    --shadow:
        0 15px 40px rgba(37,99,235,.12);

    --radius:18px;

}

/* ==========================
   GLOBAL
========================== */

section{

    width:100%;
    padding:110px 9%;
    position:relative;
    overflow:hidden;

}

section:nth-child(even){

    background:rgba(37,99,235,.04);

}

img{

    width:100%;
    display:block;

}

a{

    text-decoration:none;
    transition:.3s ease;

}

/* Make paragraphs easier to read */
p{

    line-height:1.9;

}

/* Subtle border for main sections */
.education,
.experience,
.skills,
.research,
.publications,
.projects,
.memberships,
.contact{

    border-top:1px solid rgba(255,255,255,.05);

}

/* Unified improved box-shadow for cards */
.info-card,
.skill-card,
.project-card,
.publication-card,
.membership-card,
.timeline-content,
.contact-card{

    box-shadow:0 10px 30px rgba(0,0,0,.18);

}

/* Better hover effect for cards */
.info-card:hover,
.skill-card:hover,
.project-card:hover,
.publication-card:hover,
.membership-card:hover,
.timeline-content:hover{

    transform:translateY(-10px);
    border-color:#3b82f6;

}

/* Slightly tighter letter spacing on buttons */
.primary-btn,
.secondary-btn,
.cv-btn{

    letter-spacing:.4px;

}

/* Better images */
.profile-card{

    overflow:hidden;

}

.profile-card img{

    transition:.5s;

}

.profile-card:hover img{

    transform:scale(1.05);

}

ul{

    list-style:none;

}

.section-title{

    text-align:center;
    margin-bottom:70px;

}

.section-title span{

    color:var(--secondary);

    font-size:14px;

    font-weight:700;

    letter-spacing:3px;

}

.section-title h2{

    font-size:46px;

    margin:18px 0;

}

.section-title p{

    color:var(--text);

    max-width:800px;

    margin:auto;

}

/* ==========================
   HEADER
========================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 9%;

    background:rgba(255,255,255,.9);

    backdrop-filter:blur(18px);

    z-index:1000;

    border-bottom:1px solid rgba(37,99,235,.12);

}

.logo{

    font-size:28px;

    font-weight:800;

    color:var(--primary);

}

nav ul{

    display:flex;

    gap:35px;

}

nav a{

    color:var(--muted);

    font-weight:500;

    transition:.3s;

}

nav a:hover{

    color:var(--primary);

}

.cv-btn{

    padding:13px 28px;

    border-radius:50px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:#fff;

    font-weight:600;

    transition:.3s;

}

.cv-btn:hover{

    transform:translateY(-3px);

    box-shadow:var(--shadow);

}

/* ==========================
   HERO
========================== */

.hero{

    min-height:100vh;

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:70px;

    padding-top:150px;

}

.hero-left h3{

    font-size:22px;

    color:var(--secondary);

}

.hero-left h1{

    font-size:68px;

    line-height:1.1;

    margin:20px 0;

}

.hero-left h2{

    color:#8fb7ff;

    font-size:26px;

    font-weight:600;

    margin-bottom:30px;

}

.hero-left p{

    color:var(--text);

    font-size:18px;

    margin-bottom:35px;

}

.badge{

    display:inline-flex;

    gap:10px;

    align-items:center;

    padding:12px 20px;

    border-radius:50px;

    background:rgba(59,130,246,.12);

    color:#8fc5ff;

    margin-bottom:30px;

}

.hero-buttons{

    display:flex;

    gap:20px;

    margin-bottom:45px;

}

.primary-btn{

    padding:15px 32px;

    border-radius:50px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:white;

    font-weight:600;

}

.secondary-btn{

    padding:15px 32px;

    border:1px solid rgba(37,99,235,.25);

    border-radius:50px;

    color:var(--primary);
    background:transparent;

}

.tech-stack{

    display:flex;

    flex-wrap:wrap;

    gap:14px;

}

.tech-stack span{

    padding:12px 18px;

    background:#f4f8ff;

    border-radius:40px;

    color:var(--primary);

    border:1px solid rgba(37,99,235,.18);

}

/* ==========================
   HERO RIGHT
========================== */

.hero-right{

    position:relative;

}

.profile-card{

    width:420px;

    margin:auto;

    border-radius:30px;

    overflow:hidden;

    background:var(--card);

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.profile-card img{

    height:540px;

    object-fit:cover;

}

.floating-card{

    position:absolute;

    background:#ffffff;

    border:1px solid rgba(37,99,235,.14);

    padding:18px;

    border-radius:18px;

    box-shadow:var(--shadow);

}

.image-quote{

    margin-top:18px;
    padding:16px 20px;
    border:1px solid rgba(37,99,235,.14);
    border-radius:16px;
    background:#f7fbff;
    text-align:center;
    box-shadow:0 8px 20px rgba(37,99,235,.08);

}

.quote-title{

    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--primary);
    margin-bottom:6px;

}

.quote-text{

    font-size:15px;
    color:var(--text);
    margin:0;
    line-height:1.6;

}

.card-one{

    top:40px;

    left:-30px;

}

.card-two{

    bottom:90px;

    right:-30px;

}

.card-three{

    bottom:45px;

    left:20px;

}

.floating-card h4{

    color:var(--primary);

}

.floating-card h2{

    margin:8px 0;

}

/* ==========================
   ABOUT
========================== */

.about{

    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;

}

.about-content{

    display:grid;
    grid-template-columns:1fr;
    gap:32px;
    max-width:1000px;
    align-items:start;
    margin-left:0;

}

.about-intro,
.about-text{

    max-width:980px;

}

.about-intro p,
.about-text p{

    margin-bottom:22px;
    color:var(--text);
    font-size:19px;
    line-height:2;

}

.about-cards{

    display:grid;
    grid-template-columns:repeat(2,minmax(220px,1fr));
    gap:24px;
    max-width:920px;

}

.info-card{

    background:var(--card);

    border-radius:20px;

    padding:35px;

    border:1px solid var(--border);

    transition:.35s;

}

.info-card:hover{

    transform:translateY(-10px);

}

.info-card i{

    font-size:40px;

    color:var(--secondary);

    margin-bottom:20px;

}

.info-card h3{

    margin-bottom:12px;

}

.info-card p{

    color:var(--text);

}
/*========================================
 EDUCATION & EXPERIENCE
========================================*/

.timeline{

    max-width:1100px;
    margin:0 auto;
    position:relative;

}

/* Education & Experience: make each section feel like a full page */
.education,
.experience{

    min-height:100vh;
    display:flex;
    align-items:center;
    padding:140px 9%;

}

.education .timeline,
.experience .timeline{

    max-width:1200px;
    width:100%;

}

.timeline-item{

    padding-left:100px;
    margin-bottom:80px;

}

.timeline-dot{

    width:34px;
    height:34px;
    left:6px;
    top:6px;
    border-radius:50%;
    border:6px solid var(--dark);

}

.timeline-content{

    padding:42px;
    border-radius:20px;
    font-size:16px;

}

/* Slightly larger section title spacing when sections are full-height */
.section-title{

    margin-bottom:90px;

}

.timeline::before{

    content:"";
    position:absolute;

    left:22px;
    top:0;
    width:3px;
    height:100%;

    background:rgba(255,255,255,.12);

}

.timeline-item{

    position:relative;

    padding-left:84px;

    margin-bottom:40px;

}

.timeline-dot{

    position:absolute;

    left:10px;
    top:8px;

    width:24px;
    height:24px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    border:4px solid var(--dark);

}

.timeline-content{

    background:var(--card);

    border-radius:20px;

    padding:28px 32px;
    border:1px solid var(--border);

    transition:.35s;

}

.timeline-content:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}

.timeline-content .year{

    display:inline-block;

    background:rgba(59,130,246,.12);

    color:#8fc5ff;

    padding:8px 18px;

    border-radius:30px;

    margin-bottom:18px;

    font-size:14px;

    font-weight:600;

}

.timeline-content h3{

    margin-bottom:10px;

    font-size:28px;

}

.timeline-content h4{

    color:var(--secondary);

    margin-bottom:0;

    font-weight:500;

}

.school-meta{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
    flex-wrap:wrap;

}

.school-logo{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:56px;
    height:56px;
    padding:8px;
    border-radius:14px;
    background:#f5f9ff;
    border:1px solid rgba(37,99,235,.14);
    transition:.25s ease;

}

.school-logo:hover{

    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(37,99,235,.12);

}

.school-logo img{

    width:100%;
    height:100%;
    object-fit:contain;

}

.timeline-content p{

    color:var(--text);

}

.timeline-content ul{

    margin-top:18px;

    padding-left:18px;

}

.timeline-content ul li{

    list-style:disc;

    color:var(--text);

    margin-bottom:8px;

}

/*========================================
 SKILLS
========================================*/

.skills-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.skill-card{

    background:var(--card);

    border-radius:22px;

    padding:35px;

    border:1px solid var(--border);

    transition:.35s;

    text-align:center;

}

.skill-card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow);

}

.skill-card i{

    font-size:48px;

    color:var(--secondary);

    margin-bottom:22px;

}

.skill-card h3{

    margin-bottom:15px;

}

.skill-card p{

    color:var(--text);

}

/*========================================
 RESEARCH TAGS
========================================*/

.research-tags{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:18px;

}

.research-tags span{

    padding:14px 24px;

    border-radius:40px;

    background:var(--card);

    border:1px solid var(--border);

    color:var(--text);

    transition:.3s;

}

.research-tags span:hover{

    background:var(--primary);

    color:white;

    transform:translateY(-4px);

}

/*========================================
 ACHIEVEMENTS
========================================*/

.achievement-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.achievement-card{

    background:linear-gradient(
        135deg,
        #f3f8ff,
        #f8fbff
    );

    border-radius:24px;

    padding:40px;

    text-align:center;

    border:1px solid rgba(37,99,235,.12);

    transition:.35s;

}

.achievement-card:hover{

    transform:translateY(-10px);

}

.achievement-card h2{

    font-size:48px;

    color:var(--secondary);

    margin-bottom:12px;

}

.achievement-card p{

    color:var(--text);

}

/*========================================
 PUBLICATIONS
========================================*/

.publication-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));

    gap:30px;

}

.publication-card{

    background:var(--card);

    padding:35px;

    border-radius:20px;

    border:1px solid var(--border);

    transition:.35s;

}

.publication-card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow);

}

.pub-year{

    display:inline-block;

    padding:8px 16px;

    border-radius:30px;

    background:rgba(59,130,246,.12);

    color:var(--secondary);

    margin-bottom:20px;

}

.publication-card h3{

    margin-bottom:20px;

}

.publication-card p{

    color:var(--text);

    margin-bottom:20px;

}

.publication-card a{

    color:var(--secondary);

    font-weight:600;

}
/*========================================
PROJECTS
========================================*/

.project-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:35px;

}

.project-card{

    background:var(--card);
    border-radius:24px;
    overflow:hidden;
    border:1px solid var(--border);
    transition:.4s;

}

.project-card:hover{

    transform:translateY(-12px);
    box-shadow:var(--shadow);

}

.project-card img{

    width:100%;
    height:230px;
    object-fit:cover;

}

.project-content{

    padding:30px;

}

.project-content h3{

    margin-bottom:18px;

}

.project-content p{

    color:var(--text);
    margin-bottom:25px;

}

.project-tags{

    display:flex;
    flex-wrap:wrap;
    gap:12px;

}

.project-tags span{

    background:rgba(59,130,246,.15);
    color:var(--secondary);

    padding:10px 18px;

    border-radius:30px;

    font-size:14px;

}

.project-content a,
.publication-card a{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    border-radius:999px;
    border:1px solid rgba(37,99,235,.2);
    color:var(--primary);
    background:#f7fbff;
    font-weight:600;
    transition:.25s ease;

}

.project-content a:hover,
.publication-card a:hover{

    background:var(--primary);
    color:white;
    border-color:var(--primary);
    transform:translateY(-2px);

}

/*========================================
MEMBERSHIPS
========================================*/

.membership-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.membership-card{

    background:var(--card);

    padding:40px;

    text-align:center;

    border-radius:22px;

    border:1px solid var(--border);

    transition:.35s;

}

.membership-card:hover{

    transform:translateY(-10px);

}

.membership-card h3{

    color:var(--secondary);

    margin-bottom:15px;

    font-size:30px;

}

.membership-card p{

    color:var(--text);

}

/*========================================
CONTACT
========================================*/

.contact-container{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:50px;

}

.contact-info{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.contact-card{

    display:flex;

    align-items:flex-start;

    gap:20px;

    background:var(--card);

    padding:25px;

    border-radius:18px;

    border:1px solid var(--border);

}

.contact-card i{

    font-size:30px;

    color:var(--secondary);

    margin-top:5px;

}

.contact-card h3{

    margin-bottom:6px;

}

.contact-card p{

    color:var(--text);

}

.contact-form{

    background:var(--card);

    padding:35px;

    border-radius:22px;

    border:1px solid var(--border);

}

.contact-form input,
.contact-form textarea{

    width:100%;

    margin-bottom:20px;

    background:#f7fbff;

    border:1px solid rgba(37,99,235,.12);

    border-radius:12px;

    padding:18px;

    color:var(--text);

    font-size:16px;

}

.contact-form textarea{

    resize:vertical;

}

.contact-form button{

    width:100%;

    padding:18px;

    border:none;

    border-radius:50px;

    cursor:pointer;

    font-size:17px;

    font-weight:600;

    color:white;

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    transition:.3s;

}

.contact-form button:hover{

    transform:translateY(-3px);

}

/*========================================
SOCIALS
========================================*/

.social-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:25px;

}

.social-card{

    background:var(--card);

    padding:30px;

    border-radius:20px;

    border:1px solid var(--border);

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:15px;

    transition:.35s;

    color:var(--text);

}

.social-card:hover{

    transform:translateY(-8px);

    background:var(--primary);

}

.social-card i{

    font-size:40px;

}

/*========================================
FOOTER
========================================*/

footer{

    background:#f4f8ff;

    padding:80px 9%;

    text-align:center;

}

.footer-content h2{

    font-size:36px;

    margin-bottom:18px;

}

.footer-content p{

    color:var(--muted);

    max-width:850px;

    margin:15px auto;

}

.footer-links{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:30px;

    margin:45px 0;

}

.footer-links a{

    color:var(--muted);

    transition:.3s;

}

.footer-links a:hover{

    color:var(--secondary);

}

.copyright{

    border-top:1px solid rgba(255,255,255,.08);

    padding-top:35px;

}

/*========================================
RESPONSIVE
========================================*/

@media(max-width:1100px){

.hero{

grid-template-columns:1fr;

text-align:center;

}

.hero-buttons{

justify-content:center;

}

.tech-stack{

justify-content:center;

}

.about-content{

grid-template-columns:1fr;

}

.contact-container{

grid-template-columns:1fr;

}

.achievement-grid{

grid-template-columns:repeat(2,1fr);

}

.profile-card{

width:360px;

}

}

@media(max-width:768px){

header{

padding:20px;

flex-direction:column;

gap:20px;

}

nav ul{

flex-wrap:wrap;

justify-content:center;

gap:15px;

}

.hero-left h1{

font-size:46px;

}

.hero-left h2{

font-size:20px;

}

.section-title h2{

font-size:34px;

}

.about-cards{

grid-template-columns:1fr;

}

.achievement-grid{

grid-template-columns:1fr;

}

.profile-card{

width:100%;

}

.floating-card{

display:none;

}

.timeline{

padding-left:0;

}

.timeline::before{

display:none;

}

.timeline-item{

padding-left:0;

}

.timeline-dot{

display:none;

}

}

@media(max-width:500px){

.hero{

padding-top:180px;

}

.hero-buttons{

flex-direction:column;

}

.primary-btn,
.secondary-btn{

width:100%;

text-align:center;

}

.section-title h2{

font-size:28px;

}

}
/*========================================
PREMIUM POLISH
========================================*/

/* Better scrollbar */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#07111f;

}

::-webkit-scrollbar-thumb{

    background:#2d5be3;
    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#4d79ff;

}

/* Selection */

::selection{

    background:#2d5be3;
    color:white;

}

/* Better transitions */

a,
button,
.skill-card,
.info-card,
.project-card,
.publication-card,
.membership-card,
.achievement-card,
.timeline-content{

    transition:all .35s ease;

}

/* Images */

img{

    transition:.4s;

}

.project-card:hover img{

    transform:scale(1.08);

}

.profile-card:hover img{

    transform:scale(1.03);

}

/* Buttons */

.primary-btn:hover,
.cv-btn:hover{

    transform:translateY(-5px);

}

.secondary-btn:hover{

    background:white;

    color:#07111f;

}

/* Hero */

.hero{

    position:relative;

}

.hero::before{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    background:#2563eb22;

    border-radius:50%;

    filter:blur(140px);

    top:-120px;
    right:-150px;

    z-index:-1;

}

/* Cards */

.info-card,
.skill-card,
.project-card,
.publication-card,
.membership-card,
.contact-card{

    backdrop-filter:blur(12px);

}

/* Hover */

.info-card:hover,
.skill-card:hover,
.project-card:hover,
.publication-card:hover,
.membership-card:hover{

    border-color:#3b82f6;

}

/* Titles */

.section-title h2{

    background:linear-gradient(
    90deg,
    var(--text),
    var(--secondary));

    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

}

/* Contact */

.contact-form input:focus,
.contact-form textarea:focus{

    outline:none;

    border:1px solid #3b82f6;

}

/* Improve focus accessibility globally */
input:focus,
textarea:focus,
button:focus{

    outline:2px solid #3b82f6;
    outline-offset:3px;

}

/* Footer */

footer{

    margin-top:100px;

}

/* Smooth animation */

@keyframes float{

0%{

transform:translateY(0px);

}

50%{

transform:translateY(-12px);

}

100%{

transform:translateY(0px);

}

}

.card-one{

animation:float 5s infinite;

}

.card-two{

animation:float 6s infinite;

}

.card-three{

animation:float 7s infinite;

}

/* Fade animation */

@keyframes fadeUp{

from{

opacity:0;

transform:translateY(40px);

}

to{

opacity:1;

transform:translateY(0);

}

}

.hero-left{

animation:fadeUp 1s ease;

}

.hero-right{

animation:fadeUp 1.2s ease;

}

.about{

animation:fadeUp 1.4s ease;

}

.education{

animation:fadeUp 1.6s ease;

}

.experience{

animation:fadeUp 1.8s ease;

}

.skills{

animation:fadeUp 2s ease;

}

.research{

animation:fadeUp 2.2s ease;

}

.projects{

animation:fadeUp 2.4s ease;

}

.contact{

animation:fadeUp 2.6s ease;

}