* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background: #0a0a0a;
}

canvas {
    display: block;
}

/* ==================== SECTIONS ==================== */
.section {
    min-height: 100vh;
    position: relative;
    display: none;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section.active {
    display: block;
}

#home {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('imges/Img/realbg1.png');
    background-size: cover;
    /* background-position: center; */
}

#about {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('imges/Img/bg2.jpeg');
    /* background-size: cover;
    background-position: center; */
}

#projects {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('imges/Img/bg2.jpeg');
    /* background-size: cover;
    background-position: center; */
}

#contact {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('imges/Img/realbg1.png');
    background-size: cover;
    /* background-position: center; */
}

/* ==================== NAV RIGHT ==================== */
.nav-icons {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    backdrop-filter: blur(10px);
    border: 2px solid #c99a47;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #c99a47;
    font-size: 20px;
}

.nav-icon:hover {
    transform: scale(1.3);
}

/* ==================== NAV LEFT ==================== */
.nav-icon2 {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==================== LOGO ==================== */
.logo {
    height: 400px;
    width: 280px;
    display: block;
    margin: 0 auto;
    padding-top: 12%;
    border-radius: 50%;
}

/* ==================== HOME CONTENT ==================== */
.home-content {
    text-align: center;
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
}

.magical-title {
    font-size: 4rem;
    color: #c99a47;
    text-shadow: 0 0 10px #583c0b;
    margin-bottom: 10px;
    font-family: "Great Vibes", cursive;
    white-space: nowrap;
}

.subtitle {
    font-size: 2.1rem;
    color: #c99a47;
    font-family: Cormorant Unicase, serif;
    opacity: 10;
}

/* ==================== PARTICLES ==================== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #c99a47, transparent),
        radial-gradient(2px 2px at 40px 70px, #c99a47, transparent),
        radial-gradient(1px 1px at 90px 40px, #c99a47, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
    opacity: 0.6;
}

@keyframes sparkle {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-100px);
    }
}

/* ==================== ABOUT SECTION ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 10px;
}

.about-header h1 {
    font-size: 3rem;
    color: #c99a47;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #c99a47;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #cccccc;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: #c99a47;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    color: #cccccc;
}

/* ==================== CERTIFICATIONS ==================== */
.certifications-section {
    margin: 25px;
    padding: 15px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid #c99a47;
}

.certifications-section h3 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.cert-card-link {
    text-decoration: none;
    color: inherit;
}

.cert-card {
    background: transparent;
    border-top: 8px solid #c99a47;
    box-shadow: 0px 0px 6px #c99a47;
    border-radius: 20px;
    padding: 33px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 60%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 1s ease;
}

.cert-card:hover::before {
    left: 100%;
}

/* .cert-card:hover {
    transform: scale(1.02);
    border-color: rgba(199, 180, 74, 0.5);;
    box-shadow: 0 20px 40px #c99a47;
    background: linear-gradient(to right, #5a3a02, #c99a47, #5a3a02);
} */

.cert-icon img {
    height: 160px;
    width: 160px;
    transition: transform 2s ease;
    overflow: hidden;
}

.cert-card:hover .cert-icon {
    transform: scale(1.2) rotate(10deg);
}

.cert-card h4 {
    font-family: 'Cormorant Unicase', serif;
    font-size: 1.4rem;
    color: #fff;
    margin-top: 10px;
    font-weight: 600;
}

.cert-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.cert-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-arrow {
    transform: translateX(10px);
    color: #fff;
}

/* ==================== LANGUAGES ==================== */
.languages-section {
    margin-bottom: 30px;

}

.languages-section h3 {
    color: #c99a47;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.language-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-name {
    min-width: 80px;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #5a3a02, #c99a47, #5a3a02);
    border-radius: 5px;
    width: 0%;
    transition: width 2s ease;
}

.percentage {
    min-width: 45px;
    color: #cccccc;
    text-align: right;
    font-size: 0.9rem;
}

/* ==================== CONTRIBUTION STATS ==================== */
.contribution-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 20px;
    border: 1px solid hsla(51, 53%, 54%, 0.5);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 15px;
    padding: 25px 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.contribution-item {
    text-align: center;
}

.contrib-number {
    font-size: 2rem;
    color: #c99a47;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.contrib-label {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.streak-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #c99a47;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.streak-number {
    font-size: 1.5rem;
    color: #c99a47;
    font-weight: bold;
}

/* ==================== TECH STACK ==================== */
.tech-stack {
    margin-top: 30px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tech-icons i {
    font-size: 3rem;
    color: #c99a47;
    transition: transform 0.3s ease;
}

.tech-icons i:hover {
    transform: scale(1.2);
}

/* ==================== GITHUB STATS ==================== */
.github-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(199, 180, 74, 0.5);
    position: relative;
}

.github-stats h3 {
    color: #c99a47;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.github-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.github-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    color: #c99a47;
    font-weight: bold;
}

.stat-name {
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 5px;
}

.grade-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
}

.circle-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#ffd700 0deg 288deg, #333 288deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-progress::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
}

.grade {
    font-size: 2rem;
    color: #c99a47;
    font-weight: bold;
    z-index: 1;
}

/* ==================== PROJECTS ==================== */
.projects-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.project-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #c99a47;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-info h3 {
    color: #c99a47;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.project-description {
    color: #cccccc;
    font-size: 1rem;
}

.project-date {
    color: #999999;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background: transparent;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 80%;
    max-width: 600px;
    border: 2px solid #c99a47;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 25px;
}

.close:hover {
    color: #c99a47;
}

/* ==================== CONTACT ==================== */
.enchanted-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    padding: 20px;
}

.contact-container {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    border: 2px solid #c99a47;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    color: #c99a47;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #c99a47;
}

.contact-description {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #c99a47;
    border-radius: 10px;
    color: #c99a47;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c99a47;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cccccc;
}

.submit-btn {
    background: linear-gradient(to right, #5a3a02, #c99a47, #5a3a02);
    color: #000000;
    border: 1px solid #c99a47;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 2px 5px 10px rgba(255, 215, 0, 0.4);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

/* ==================== CHATBOT ==================== */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    font-family: 'Arial', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: scale(1.1);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.2);
}

.chat-toggle i {
    font-size: 24px;
    color: #362302;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #bd2015;
    border-radius: 50%;
    border: 2px solid #d3d3db;
    animation: bounce 2s infinite;
}

.notification-dot.hidden {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 154, 71, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(201, 154, 71, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(201, 154, 71, 0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(30px);
    animation: slideInUp 0.3s ease-out;
    z-index: 2001;
}

.chat-window.show {
    display: flex;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: whitesmoke;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.chat-toggle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #072532;
    box-sizing: border-box;
}

.assistant-details h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.assistant-details p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.chat-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #667eea transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-message {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 18px;
    color: white;
    line-height: 1.4;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.message-content p {
    margin: 0;
    font-size: 14px;
    font-family: 'Cormorant Unicase', serif;
    white-space: pre-line;
    line-height: 1.6;
}

.suggested-questions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Cormorant Unicase', serif;
}

.suggestion-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.chat-input-container {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Cormorant Unicase', serif;
    min-width: 0;
}

#chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-footer {
    text-align: center;
    margin-top: 10px;
}

.chat-footer small {
    color: white;
    font-size: 11px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: white;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 2.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.1s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

/* ==================== EXIT MODAL ==================== */
.exit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-overlay.active {
    display: flex;
    opacity: 1;
}

.exit-modal {
    background: radial-gradient(circle at top left, #1f1f1f 0%, #0e0e0e 45%, #000 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.02) 100%);
    background-blend-mode: overlay;
    backdrop-filter: blur(10px);
    border: 1px solid #c99a47;
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.exit-overlay.active .exit-modal {
    transform: translateY(0);
}

.exit-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.exit-close:hover {
    background: #ff4444;
}

.exit-field {
    margin-bottom: 15px;
}

.exit-field input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #c99a47;
    background: rgba(0, 0, 0, 0.1);
    color: #c99a47;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.exit-field input:focus {
    outline: none;
    border-color: #c99a47;
}

.exit-stars {
    display: flex;
    gap: 10px;
    font-size: 2rem;
    cursor: pointer;
    justify-content: center;
    margin: 10px 0 20px;
}

.exit-stars span {
    color: #656563;
    transition: color 0.2s, transform 0.2s;
}

.exit-stars span.active {
    color: #c99a47;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.exit-stars span:hover {
    transform: scale(1.2);
}

.exit-submit {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #c99a47;
    background: linear-gradient(to right, #5a3a02, #c99a47, #5a3a02);
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Cormorant Unicase', serif;
}

.exit-submit:hover {
    transform: translateY(-2px);
    box-shadow: 2px 4px 8px rgba(255, 215, 0, 0.3);
}

.exit-thanks {
    display: none;
    text-align: center;
    margin-top: 10px;
    padding: 20px;
}

/* ==================== LOADER ==================== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top left, #1f1f1f 0%, #0e0e0e 45%, #000 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-logo h3 {
    font-size: clamp(2rem, 18vw, 4rem);
    font-weight: 900;
    margin-top: -90px;
    margin-left: 34px;
    color: #c99a47;
}

.loader-logo img {
    width: 360px;
    height: auto;
    display: block;
}

.loader-bar {
    width: min(300px, 80vw);
    height: 8px;
    background: rgba(89, 89, 81, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(to right, #5a3a02, #c99a47, #5a3a02);
    width: 0%;
    animation: load 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.loader-text {
    color: white;
    font-size: clamp(0.8rem, 2vw, 1rem);
    letter-spacing: 2px;
}

@keyframes load {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0px);
    }

    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px #ffd700;
    }

    100% {
        text-shadow: 0 0 30px #ffd700, 0 0 40px #ffd700;
    }
}


/* =====================================================
   TABLET — max-width: 1024px
   ===================================================== */
@media (max-width: 1024px) {
    .logo {
        height: 220px;
        width: 220px;
        padding-top: 10%;
    }

    .magical-title {
        font-size: 3.2rem;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .contact-container {
        padding: 30px 25px;
    }
}


/* =====================================================
   TABLET PORTRAIT — max-width: 768px
   ===================================================== */
@media (max-width: 768px) {

    /* Nav */
    .nav-icons {
        right: 12px;
        gap: 14px;
    }

    .nav-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .nav-icon2 {
        left: 10px;
        gap: 12px;
    }

    /* Home */
    .logo {
        height: 180px;
        width: 180px;
        padding-top: 18%;
    }

    .magical-title {
        font-size: 2.6rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .home-content {
        bottom: 14%;
    }

    /* About */
    .container {
        padding: 50px 15px;
    }

    .about-header {
        margin-bottom: 40px;
    }

    .about-header h1 {
        font-size: 2.2rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .stats-container {
        gap: 40px;
    }

    .certifications-section {
        margin: 15px;
        padding: 8px;
    }

    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .cert-card h4 {
        font-size: 1.1rem;
    }

    .languages-section {
        margin: 10px;
    }

    .languages-section h3 {
        font-size: 1.4rem;
    }

    .contribution-stats {
        margin: 20px 10px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tech-icons i {
        font-size: 2.4rem;
    }

    /* Projects */
    .projects-list {
        padding: 50px 15px;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-date {
        align-self: flex-end;
    }

    /* Modal */
    .modal-content {
        width: 92%;
        margin: 5% auto;
        padding: 25px 18px;
    }

    /* Contact */
    .contact-container {
        padding: 25px 20px;
        width: 90%;
    }

    .contact-title {
        font-size: 2.4rem;
    }

    .contact-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Chat window */
    .chat-window {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
        height: calc(100vh - 130px);
        max-height: calc(100vh - 130px);
    }

    /* Exit modal */
    .exit-overlay {
        align-items: flex-end;
    }

    .exit-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        border-top: 6px solid #c99a47;
        max-height: 85vh;
    }

    /* Loader */
    .loader-logo img {
        width: 240px;
    }

    .loader-logo h3 {
        font-size: 2.6rem;
        margin-top: -55px;
        margin-left: 28px;
    }
}


/* =====================================================
   MOBILE — max-width: 480px
   ===================================================== */
@media (max-width: 480px) {

    /* Nav */
    .nav-icons {
        right: 8px;
        gap: 10px;
    }

    .nav-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .nav-icon2 {
        left: 6px;
        gap: 10px;
    }

    .nav-icon2 .nav-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    /* Home */
    
    .magical-title {
        font-size: 2 rem;
        font-weight: bolder;
        text-shadow: 0 0 10px #583c0b;
        /* white-space: normal; */
    }

    .logo{
        display: none;
    }

    .subtitle {
        font-size: 1.3rem;
        font-weight: bolder;
    }

    .home-content {
        top: 360px;
    }

    /* About */
    .container {
        padding: 35px 12px;
    }

    .about-header h1 {
        font-size: 1.8rem;
    }

    .about-description {
        font-size: 0.95rem;
    }

    .stats-container {
        gap: 25px;
        flex-direction: column;
        align-items: center;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Certifications */
    .certifications-section {
        margin: 20px;
        padding: 20px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cert-card {
        padding: 18px 15px;
    }

    .cert-card h4 {
        font-size: 1rem;
    }

    .cert-icon {
        font-size: 2.8rem;
    }

    /* Languages */
    .languages-section {
        margin: 32px;
    }

    .language-name {
        min-width: 65px;
        font-size: 0.8rem;
    }

    .percentage {
        min-width: 38px;
        font-size: 0.8rem;
    }

    /* Contribution stats */
    .contribution-stats {
        margin: 15px;
        padding: 18px 10px;
        justify-content: center;
        gap: 18px;
    }

    .contrib-number {
        font-size: 1.6rem;
    }

    .contrib-label {
        font-size: 0.8rem;
    }

    /* Tech stack */
    .tech-icons {
        gap: 18px;
    }

    .tech-icons i {
        font-size: 2rem;
    }

    /* Projects */
    .projects-list {
        padding: 35px 10px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .project-date {
        font-size: 0.8rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 8% auto;
        padding: 20px 15px;
    }

    /* Contact */
    .contact-container {
        padding: 20px;
        width: 92%;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 15px;
        font-size: 0.95rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }

    /* Chatbot */
    .chatbot-container {
        bottom: 15px;
        right: 12px;
    }

    .chat-toggle {
        width: 42px;
        height: 42px;

    }

    .chat-window {
        width: auto;
        margin-left: 18px;
        height: calc(100vh - 110px);
        max-height: calc(100vh - 110px);
    }

    .chat-header {
        padding: 12px;
    }

    .assistant-details h3 {
        font-size: 15px;
    }

    .assistant-details p {
        font-size: 11px;
    }

    .chat-messages {
        padding: 12px;
        gap: 5px;
    }

    .message {
        max-width: 92%;
    }

    .message-content {
        padding: 12px;
    }

    .message-content p {
        font-size: 13px;
    }

    .suggestion-btn {
        padding:10px;
        font-size: 12px;
    }

    .chat-input-container {
        padding: 12px;
    }

    #chat-input {
        padding: 10px 13px;
        font-size: 14px;
        /* prevents iOS zoom */
    }

    /* Exit modal */
    .exit-modal {
        padding: 24px 18px;
    }

    .exit-stars {
        font-size: 2.2rem;
        gap: 12px;
    }

    .exit-field input {
        font-size: 16px;
        /* prevents iOS zoom */
        padding: 11px 12px;
    }

    /* Loader */
    .loader-logo img {
        width: 200px;
    }

    .loader-logo h3 {
        font-size: 2rem;
        margin-top: -45px;
        margin-left: 22px;
    }

    .loader-bar {
        width: 180px;
    }
}


/* =====================================================
   SMALL MOBILE — max-width: 375px
   ===================================================== */
@media (max-width: 375px) {

    .logo {
        height: 120px;
        width: 120px;
        padding-top: 25%;
    }

    .magical-title {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .home-content {
        bottom: 8%;
    }

    .nav-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .about-header h1 {
        font-size: 1.6rem;
    }

    .cert-card h4 {
        font-size: 0.9rem;
    }

    .contact-title {
        font-size: 1.7rem;
    }

    .chat-window {
        left: 5px;
        right: 5px;
        bottom: 70px;
    }

    .magical-title {
        font-size: 1.6rem;
    }

    .loader-logo img {
        width: 170px;
    }

    .loader-logo h3 {
        font-size: 1.8rem;
        margin-left: 18px;
        margin-top: -38px;
    }
}