@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap');

@font-face {
    font-family: CircularStd;
    src: url(assets/fonts/CircularStd-Bold.eot);
    src: url("assets/fonts/CircularStd-Bold.eot?#iefix") format("embedded-opentype"),
         url("assets/fonts/CircularStd-Bold.woff") format("woff"),
         url("assets/fonts/CircularStd-Bold.ttf") format("truetype"),
         url("assets/fonts/CircularStd-Bold.svg#bcc26993292869431e54c666aafa8fcd") format("svg");
}

:root {
    --primary-color: none;
    --overlay-color: rgba(255, 255, 255, 0.95);
    --menu-speed: 0.75s;
    --accent: #2B5797;
    --accent-light: #e8eff8;
    --text-color: #333;
    --light-text: #666;
    --black-color: #000;
    --white-color: #fff;
    --hero-color: #1a1a1a;
    --border-color: #e0e0e0;
    --bg-alt: #f9fafb;
}

/* ============================
   BASE
   ============================ */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

a { color: var(--accent); }
a:hover { color: #1a3f6f; text-decoration: none; }

/* ============================
   NAVIGATION
   ============================ */
.nav-desk {
    height: 10vh;
    display: block;
    width: 80vw;
    margin: auto;
    margin-top: 20px;
}

.nav-logo { height: 100%; float: left; }

.nav-name {
    font-family: 'CircularStd', 'Poppins', sans-serif;
    font-size: 1.4em;
    font-weight: bold;
    color: var(--accent) !important;
    text-decoration: none !important;
    border: 3px solid var(--accent);
    border-radius: 50%;
    padding: 8px 12px;
    display: inline-block;
    margin-top: 5px;
    transition: all 0.3s;
}

.nav-name:hover {
    background: var(--accent);
    color: white !important;
}

ul { float: right; list-style: none; padding: 30px 0px; }

li {
    display: inline;
    font-size: 16px;
    letter-spacing: 0.1;
    padding: 0px 15px;
}

li span a { color: var(--text-color); text-decoration: none; }
li span a:hover { color: var(--text-color); text-decoration: none; }

li span { position: relative; cursor: pointer; }
li span:before, li span:after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    top: 50%;
    margin-top: -0.5px;
    background: var(--black-color);
}
li span:before { left: -2.5px; }
li span:after {
    right: 2.5px;
    background: var(--black-color);
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
li span:hover:before {
    background: var(--black-color);
    width: 100%;
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
li span:hover:after { background: transparent; width: 100%; transition: 0s; }

/* ============================
   HERO
   ============================ */
.hero-tag {
    margin-top: 20vh;
    text-align: left;
    font-size: 4.2em;
    font-weight: bold;
    color: var(--hero-color);
    font-family: 'CircularStd', sans-serif;
}

.contact-hero { margin-top: 0vh; font-size: 3.2em; }

.hero-des {
    padding-right: 40px;
    text-align: left;
    letter-spacing: 0.2px;
    line-height: 1.7;
    font-size: 1.05em;
    color: var(--light-text);
}

.contact-des { letter-spacing: 0.2; }
.contact-des a { text-decoration: none; color: var(--accent); transition: color 0.3s; }
.contact-des a:hover { color: #1a3f6f; }

#hero-img { margin-top: 50px; width: 90%; }
#left-hero { padding-left: 150px; }

.hero-social { margin-top: 30px !important; }

/* ============================
   BUTTONS
   ============================ */
.learn-btn {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    cursor: pointer;
}
.learn-btn:hover { background: #1a3f6f; border-color: #1a3f6f; }

.contact-btn {
    margin-left: 8px;
    padding: 8px 20px;
    color: var(--accent);
    background: none;
    border: 2px solid var(--accent);
    font-size: 0.9em;
    transition: all 0.3s;
    cursor: pointer;
}
.contact-btn:hover { color: white; background: var(--accent); }

/* ============================
   SOCIAL ICONS
   ============================ */
.social-icons { margin-top: 30%; }
.social-icons a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s;
}
.social-icons a:hover { color: var(--accent); }
.social-icons i, .social-icons .ai { font-size: 1.8em; padding: 0px 6px; }

/* ============================
   CONTENT SECTIONS
   ============================ */
.content-section {
    padding: 60px 0;
}

.content-section.alt-bg {
    background: var(--bg-alt);
}

.container-custom {
    width: 80vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-family: 'CircularStd', 'Poppins', sans-serif;
    font-size: 2em;
    font-weight: bold;
    color: var(--hero-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

/* ============================
   SKILLS GRID
   ============================ */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.skills-group {
    background: white;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.skills-group:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.skill-category {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

/* ============================
   SKILLS & TAGS
   ============================ */
.info-card {
    background: var(--bg-alt);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-card h3 {
    font-size: 1em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tech-stack {
    cursor: default;
    margin-right: 0;
    background: white;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    font-size: 0.8em;
    border-radius: 4px;
    transition: all 0.3s;
    color: var(--text-color);
}
.tech-stack:hover { background: var(--accent-light); border-color: var(--accent); }

/* ============================
   TIMELINE
   ============================ */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--accent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-date {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--hero-color);
    margin-bottom: 2px;
}

.timeline-org {
    font-style: italic;
    color: var(--light-text);
    font-size: 0.9em;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.92em;
    line-height: 1.6;
    color: var(--light-text);
}

/* ============================
   AWARDS
   ============================ */
.award-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}
.award-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }

.award-icon { font-size: 2em; color: var(--accent); margin-bottom: 15px; }

.award-card h4 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--hero-color);
    margin-bottom: 10px;
}
.award-card p { font-size: 0.88em; color: var(--light-text); }

/* ============================
   CERTIFICATIONS
   ============================ */
.cert-list { display: flex; flex-wrap: wrap; gap: 12px; }

.cert-badge {
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 0.9em;
    color: var(--accent);
    font-weight: 500;
    transition: all 0.3s;
}
.cert-badge:hover { background: var(--accent); color: white; }
.cert-badge i { margin-right: 6px; }

/* ============================
   PROJECT CARDS
   ============================ */
.project-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s;
}
.project-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.project-label {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-card h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--hero-color);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.88em;
    color: var(--light-text);
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.88em;
    font-weight: 500;
    color: var(--accent);
}
.project-link:hover { color: #1a3f6f; }
.project-link i { font-size: 0.8em; margin-left: 4px; }

/* ============================
   PUBLICATIONS
   ============================ */
.pub-note {
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 25px;
}
.pub-note a { font-weight: 600; }

.pub-item {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.pub-year {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--accent);
    min-width: 50px;
    padding-top: 2px;
}

.pub-content h5 {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--hero-color);
    margin-bottom: 4px;
    line-height: 1.4;
}

.pub-content h5 a { color: var(--hero-color); text-decoration: none; }
.pub-content h5 a:hover { color: var(--accent); }

.pub-content p {
    font-size: 0.85em;
    color: var(--light-text);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-cards { margin-top: 20px; }

.contact-card-link { text-decoration: none !important; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
    background: white;
}
.contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(43, 87, 151, 0.1);
    transform: translateX(5px);
}

.contact-card i, .contact-card .ai {
    font-size: 1.5em;
    color: var(--accent);
    min-width: 30px;
    text-align: center;
}

.contact-card h5 {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--hero-color);
    margin-bottom: 0;
}
.contact-card p {
    font-size: 0.82em;
    color: var(--light-text);
    margin-bottom: 0;
}

.contact-location {
    margin-top: 25px;
    font-size: 0.9em;
    color: var(--light-text);
}
.contact-location i { color: var(--accent); margin-right: 6px; }

/* ============================
   FOOTER
   ============================ */
.footer-full {
    width: 80vw;
    margin: 0 auto;
    padding: 30px 10px;
    padding-top: 60px;
    position: relative;
    bottom: 0;
}

.footer-credits { float: right; font-size: 0.85em; color: var(--light-text); }
.footer-credits a { color: var(--text-color); font-weight: bold; text-decoration: none; transition: all 0.3s; }
.footer-credits a:hover { color: var(--accent); }

/* ============================
   MOBILE MENU
   ============================ */
.menu-wrap { position: fixed; top: 50px; right: 50px; z-index: 1; display: none; }
.menu-wrap .toggler { position: absolute; top: 0; right: 0; z-index: 2; cursor: pointer; width: 50px; height: 50px; opacity: 0; }
.menu-wrap .hamburger { position: absolute; top: 0; right: 0; z-index: 1; width: 60px; height: 60px; padding: 1rem; background: var(--primary-color); display: flex; align-items: center; justify-content: center; }
.menu-wrap .hamburger > div { position: relative; flex: none; width: 100%; height: 2px; z-index: 1; background: var(--hero-color); display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; }
.menu-wrap .hamburger > div::before, .menu-wrap .hamburger > div::after { content: ''; position: absolute; z-index: 1; top: -10px; width: 100%; height: 2px; background: inherit; }
.menu-wrap .hamburger > div::after { top: 10px; }
.menu-wrap .toggler:checked + .hamburger > div { transform: rotate(135deg); }
.menu-wrap .toggler:checked + .hamburger > div:before,
.menu-wrap .toggler:checked + .hamburger > div:after { top: 0; transform: rotate(90deg); }
.menu-wrap .toggler:checked:hover + .hamburger > div { transform: rotate(225deg); }
.menu-wrap .toggler:checked ~ .menu { visibility: visible; }
.menu-wrap .toggler:checked ~ .menu > div { transform: scale(1); transition-duration: var(--menu-speed); }
.menu-wrap .toggler:checked ~ .menu > div > div { opacity: 1; transition: opacity 0.4s ease 0.4s; }
.menu-wrap .menu { position: fixed; top: 0; right: 0; width: 100%; height: 100%; z-index: 1; visibility: hidden; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.menu-wrap .menu > div { background: var(--overlay-color); border-radius: 50%; width: 200vw; height: 200vw; display: flex; flex: none; align-items: center; justify-content: center; transform: scale(0); transition: all 0.4s ease; }
.menu-wrap .menu > div > div { text-align: center; max-width: 90vw; max-height: 100vh; opacity: 0; transition: opacity 0.4s ease; }
.menu-wrap .menu > div > div > ul > li { list-style: none; color: var(--text-color); font-size: 1.5rem; padding: 1rem; }
.menu-wrap .menu > div > div > ul > li > a { color: inherit; text-decoration: none; transition: color 0.4s ease; }

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: white; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: #1a3f6f; }

/* ============================
   TABLET
   ============================ */
@media (min-width: 768px) and (max-width: 1024px) {
    #left-hero { padding-left: 80px; flex: 0 0 100% !important; max-width: 100% !important; }
    #hero-right { display: none; }
    .container-custom { width: 90vw; }
    .work-double-row { padding-left: 30px; padding-right: 30px; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================
   MOBILE
   ============================ */
@media only screen and (max-width: 768px) {
    .nav-items { width: 0; height: 0; display: none; }
    .menu-wrap { display: block; }
    .menu ul li { display: block !important; }
    .menu ul li a { color: var(--black-color) !important; }
    .menu-wrap .hamburger { z-index: 2; }
    .menu-wrap .toggler { z-index: 3; }

    #left-hero { padding-left: 30px; padding-right: 30px; }
    .hero-tag { margin-top: 15vh; font-size: 2.8em; }
    .contact-hero { margin-top: 8vh; font-size: 2.4em; }
    .hero-des { padding-right: 10px; }
    #hero-right { display: none; }

    .container-custom { width: 90vw; padding: 0 10px; }
    .section-title { font-size: 1.6em; }

    .content-section { padding: 40px 0; }

    .timeline { padding-left: 20px; }
    .timeline-item { padding-left: 15px; }
    .timeline-item::before { left: -25px; }

    .pub-item { flex-direction: column; gap: 4px; }
    .pub-year { min-width: auto; }

    .project-card { margin-bottom: 20px; }
    .award-card { margin-bottom: 20px; }

    .cert-list { flex-direction: column; }
    .cert-badge { text-align: center; }
    .skills-grid { grid-template-columns: 1fr; }

    .social-icons { margin-top: 20px !important; }

    .footer-full { text-align: center; padding-top: 30px !important; }
    #contact-social { margin-top: 10%; }
    .footer-credits { display: block; text-align: center; padding-top: 10px; float: none; }

    .info-card { margin-top: 25px; }
}