* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.slide-section {
    opacity: 0;
    transform: translateX(-50px);  /* Slide in from the left */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When shown */
.slide-section.show {
    opacity: 1;
    transform: translateX(0);
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #2c3e50;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 45%, #2c3e50 100%);
    color: white;
    padding: calc(3.2rem + 60px) 2rem 3.2rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.65rem;
    animation: fadeInDown 1s;
}

.hero-inner {
    width: min(1120px, 100%);
    text-align: left;
    padding: 1rem 0;
}

.hero-about-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.2rem, 4vw, 3.4rem);
    align-items: center;
}

.hero-about-image img {
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 28px rgba(14, 20, 70, 0.25);
}

.hero-about-content {
    min-width: 0;
}

.hero-kicker {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.95rem;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dce7ff;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #eef3ff;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.hero-lead {
    max-width: 52ch;
    font-size: clamp(1.02rem, 1.5vw, 1.25rem);
    color: rgba(243, 247, 255, 0.9);
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}

.hero .btn {
    border-radius: 999px;
    padding: 0.72rem 1.3rem;
    border: 1px solid transparent;
    transform: none;
}

.hero-btn-primary {
    background: #ffffff;
    color: #2c3e50;
}

.hero-btn-primary:hover {
    box-shadow: 0 8px 18px rgba(28, 39, 128, 0.22);
}

.hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.58);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(28, 39, 128, 0.18);
}

.hero-social-links {
    display: flex;
    gap: 0.55rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.58);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.social-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.hero-message-btn {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.58);
}

.hero-message-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(28, 39, 128, 0.18);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #3498db;
    margin: 1rem auto;
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.about-image {
    flex: 1;
    min-width: 250px;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.skill {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.skill:hover {
    transform: translateY(-5px);
}

.skill h3 {
    color: #3498db;
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: #334;
    font-size: 0.97rem;
}

.skill-list li {
    position: relative;
    padding-left: 0.95rem;
}

.skill-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3498db;
}

.skill-bar {
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 1s ease;
}

/* Experience Section */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-entry {
    margin-bottom: 0.8rem;
}

.experience-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.experience-entry .experience-item {
    margin-bottom: 0;
}

.experience-date-top {
    font-weight: 600;
    color: #3498db;
    margin: 0 0 0.45rem 0.25rem;
    font-size: 0.95rem;
}

.experience-content h3 {
    margin-bottom: 0.5rem;
}

/* Contact Section */
#contact {
    position: relative;
}

.contact-subtitle {
    max-width: 720px;
    margin: -0.8rem auto 2rem;
    text-align: center;
    color: #4a5b6d;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.contact-panel {
    width: min(680px, 100%);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d7e8f8;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(44, 62, 80, 0.12);
    padding: 1.4rem;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.contact-badges span {
    background: #eaf4ff;
    border: 1px solid #d1e7ff;
    color: #2b5f8f;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.87rem;
}

.contact-form {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #d4deea;
    border-radius: 10px;
    background: #f8fbff;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5e95cb;
    box-shadow: 0 0 0 3px rgba(94, 149, 203, 0.18);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2f80c1 0%, #3498db 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(52, 152, 219, 0.28);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects Section */
.project-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    margin-bottom: 15px;
    align-items: center;
}

.project-entry {
    margin-bottom: 15px;
}

.project-entry .project-item {
    margin-bottom: 0;
}

.project-date-top {
    font-weight: 600;
    color: #3498db;
    margin: 0 0 0.45rem 0.25rem;
    font-size: 0.95rem;
}

.project-date {
    min-width: 120px;
    font-weight: 600;
    color: #3498db;
}

.experience-content h3 {
    margin-bottom: 1rem;
}

.btn {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

a {
    color: #3498db;
    text-decoration: none;
}

.project-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.project-icon-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.28rem;
    width: 50px;
    flex: 0 0 50px;
}

.work-in-progress-icon {
    cursor: pointer;
}

.work-in-progress-icon:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 3px;
    border-radius: 12px;
}

.project-item h3 {
    text-align: center;
    width: 25%;
}
.project-item p {
    margin-bottom: 1rem;
    line-height: 1.4;
    width: 100%;
}
.success-message {
    margin-top: 15px;
    padding: 12px 18px;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    text-align: center;
    font-size: 1.1em;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}
strong {
    min-width: 120px;
    flex-shrink: 0;
}
/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 2rem 3.2rem;
    }

    .hamburger {
        display: flex;
    }
    nav ul {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: #2c3e50;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        padding-top: 4rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.3);
        align-items: flex-start;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        width: 100%;
        margin: 0;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li a {
        display: block;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-inner {
        text-align: center;
    }

    .hero-about-layout {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    .hero-about-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .hero-lead {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .experience-item {
        flex-direction: column;
    }

    .project-item {
        flex-direction: column;
    }

    .skills-container {
        align-items: center;
    }
    .experience-content{
        text-align: center;
    }
    .experience-date{
        text-align: center;
    }
    .skills-container{
        text-align: center;
    }
    .contact-info{
        flex-direction: column;
        text-align: center;
    }
    .contact-subtitle {
        margin-top: -0.4rem;
        margin-bottom: 1.5rem;
    }
    .contact-panel {
        padding: 1rem;
    }
    .contact-badges {
        justify-content: center;
    }
    .contact-item{
        justify-content: center;
        text-align: center;
        font-size: 1.1em;
    }
    .project-item{
        align-items: center;
        text-align: center;
        border-left: none;
    }
    .project-item h3 {
        width: 100%;
    }
}
#avatar-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 150px;
  height: auto;
    display: flex;
    flex-direction: column;
    cursor: pointer; /* makes it clear it’s clickable */
    align-items: center;
        gap: 3px;
    z-index: 1100;
        overflow: visible;
    position: fixed;
}

#avatar {
  width: 100%;
  display: block;
}

.avatar-wip-badge {
    background: #f59e0b;
    color: #1f2937;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #d97706;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
    line-height: 1.1;
    margin-top: 2px;
    animation: wipPulse 1.8s ease-in-out infinite;
}

.avatar-wip-badge.dismissed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes wipPulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(2px);
    }
}

#speech-bubble {
  position: absolute;
    bottom: calc(100% + 14px); /* always above avatar container */
  right: 0;
    min-width: 220px;
  max-width: 250px;
  color: black;
  font-size: 14px;
  line-height: 1.4;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  word-wrap: break-word;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1200;
}

#speech-text {
    display: block;
}

.speech-history-item {
    white-space: pre-line;
    background: #f7fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.speech-history-item:last-child {
    margin-bottom: 0;
}

#avatar-container.chat-open #speech-bubble {
    bottom: calc(100% + 70px);
}

#avatar-container.chat-open #user-input {
    bottom: calc(100% + 10px);
}

#speech-bubble.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
}

#user-input {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 220px;
    padding: 0.72rem 0.85rem;
    font-size: 0.92rem;
  border: 1px solid #c7d7e7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2a37;
  box-shadow: 0 14px 30px rgba(22, 34, 60, 0.16);
  backdrop-filter: blur(6px);
  z-index: 1250;
  outline: none;
  display: none;
}

#user-input.is-open {
    display: block;
    animation: chatInputPop 0.2s ease-out;
}

#user-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2), 0 14px 30px rgba(22, 34, 60, 0.16);
}

#user-input::placeholder {
    color: #6b7280;
}

@keyframes chatInputPop {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #user-input {
        bottom: calc(100% + 10px);
        right: 0;
        width: min(280px, calc(100vw - 32px));
    }

    #avatar-container.chat-open #speech-bubble {
        bottom: calc(100% + 62px);
    }
}
