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

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden; */

    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
}

/* contact */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --light: #ffffff;
    --text: #1a1a2e;
}

/* Contact section overrides and responsive layout */
#contact {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 5%;
}

.section-header.light .section-title {
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

.section-header.light .section-label {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.section-header.light .section-description {
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: -2.5rem auto 3rem;
    text-align: center;
}

/* container & grid */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* panel */
.contact-panel {
    min-width: 0;
}

/* contact info */
.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.contact-icon {
    width: 54px;
    height: 54px;
    background: white;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.contact-details p a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

/* social row */
.social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

/* form */
.contact-form {
    background: rgba(255, 255, 255, 0.06);
    padding: 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 0.95rem 1rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.form-feedback {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

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

    .section-header.light .section-description {
        text-align: left;
        margin-left: 0;
    }
}


/* End */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: #546cd6;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #764ba2;
    transform: translateY(-2px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    animation: slideDown 1s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.5rem;
    color: rgba(74, 74, 74, 0.9);
    margin-bottom: 2rem;
    animation: slideUp 1s ease 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

section {
    padding: 5rem 5%;
    background: white;
}

section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 5px;
    flex-shrink: 0;
}

.profile-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

.profile-img-file {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-tag {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-img {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: whitesmoke;
    overflow: hidden;
    position: relative;
}

/*Image as decorative background*/
/* .project-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
  pointer-events: none;
  z-index: 1;
} */

.project-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: white;
}

.project-card:nth-child(2) .project-img {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.project-card:nth-child(3) .project-img {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.project-card:nth-child(4) .project-img {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.project-card:nth-child(5) .project-img {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.4rem 1rem;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.role-header h3 {
    margin-bottom: 0 !important;
}

.timeline-content .company {
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 0.25rem;
}

.company-url {
    margin-bottom: 0.5rem;
}

.role-header .company-url {
    margin-bottom: 0;
}

.company-url a {
    color: #343434;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.company-url a:hover {
    color: #6062ec;
    text-decoration: underline;
}

.timeline-content .date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

footer {
    background: #343452;
    color: white;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .experience-timeline {
        padding-left: 30px;
    }
}

/* Modal overlay & box */
.site-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Modal box */
.site-modal {
    position: relative;
    background: #fff;
    color: #111;
    border-radius: 14px;
    padding: 32px 24px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', sans-serif;
    animation: modal-pop 0.18s ease both;
    text-align: center;
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top-right close X */
.btn-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.btn-close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.03);
}

/* Full-width Mail button */
.btn-mail {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #0e76a8, #0b5d86);
    color: #fff;
    font-weight: 700;
    padding: 12px 0;
    text-align: center;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.08s ease;
    margin-top: 12px;
}

.btn-mail:hover {
    filter: brightness(0.93);
    transform: translateY(-1px);
}

.btn-mail span:first-child {
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.site-modal h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.site-modal p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #444;
}

/* small accessibility focus outline */
.site-modal :focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 118, 168, 0.08);
}



/* particles canvas in hero */
.hero {
    position: relative;
    /* already set but keep it explicit */
    overflow: hidden;
    /* ensure particles clipped */
}

/* canvas sits inside hero, behind content but above background shapes */
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    /* behind hero-content which is z-index:2 below */
    pointer-events: none;
    /* allow clicks through — we'll listen on .hero element */
}

/* ensure hero content is above particles */
.hero-content {
    position: relative;
    z-index: 2;
}

/* if your pseudo background circles need to remain visible, keep them under content */
.hero::before,
.hero::after {
    z-index: 1;
}

/* Captcha Modal */
.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.hidden {
    display: none;
}

.captcha-box {
    background: #fff;
    color: #111;
    border-radius: 16px;
    padding: 20px 30px;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.captcha-item {
    font-size: 2rem;
    margin: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f0f0f0;
    user-select: none;
}

.captcha-item.hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.captcha-grid.shake {
    animation: shake 0.5s;
}

.shake {
    animation: shake 0.4s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.captcha-refresh {
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s;
}

.captcha-refresh:hover {
    transform: scale(1.05);
}

.close-btn {
    background: #e33;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
}

.close-btn:hover {
    background: #c22;
}

.resume-btn {
    background: #0e4edb;
    color: #fff;
    border: none;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.resume-btn:hover {
    background: #156ef5;
}

.pulse-icon {
    animation: pulse 2.5s infinite ease-in-out;
    transform-origin: center;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorated Resume Button */
.decorated-btn {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.decorated-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}