/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2a4b8c;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #2a4b8c;
}

.cv-download {
    background-color: #2a4b8c;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.cv-download:hover {
    background-color: #1e3a6f;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(42, 75, 140, 0.05);
    top: -100px;
    right: -100px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(42, 75, 140, 0.03);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.availability-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.1);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.2;
}

.highlight {
    color: #2a4b8c;
}

.tagline {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #2a4b8c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #2a4b8c;
    font-size: 1rem;
    cursor: pointer;
}

.btn:hover {
    background-color: #1e3a6f;
    border-color: #1e3a6f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: #2a4b8c;
}

.btn-secondary:hover {
    background-color: #2a4b8c;
    color: white;
}

/* Hero Image */
.hero-image {
    position: relative;
    flex-shrink: 0;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.image-frame {
    position: absolute;
    width: 370px;
    height: 370px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a4b8c, #1e3a6f);
    top: -10px;
    left: -10px;
    z-index: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* About Section */


h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #222;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: #2a4b8c;
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}
/* =========================================================
   MODERN ABOUT ME SECTION (FIXED & RESPONSIVE)
   ========================================================= */

.about-modern {
    padding: 120px 0;
    background: #ffffff;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* LEFT IMAGE */
.about-image-box {
    position: relative;
    width: 380px;
    height: 380px;
    flex-shrink: 0;
}

.about-image-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: linear-gradient(135deg, #2a4b8c, #1e3a6f);
    opacity: 0.25;
    top: 12px;
    left: 12px;
}

.about-photo {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

/* RIGHT TEXT */
.about-info {
    flex: 1;
    min-width: 320px;
}

.about-info h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.about-intro {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.8;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS FOR ABOUT SECTION
   ========================================================= */

/* TABLET */
@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-image-box {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .about-info h2 {
        font-size: 2.3rem;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .about-image-box {
        width: 250px;
        height: 250px;
    }

    .about-info h2 {
        font-size: 2rem;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .about-image-box {
        width: 200px;
        height: 200px;
    }

    .about-info h2 {
        font-size: 1.7rem;
    }

    .about-info p,
    .about-intro {
        font-size: 1rem;
    }
}


.cv-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-left: 4px solid #2a4b8c;
    border-radius: 4px;
}

.cv-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2a4b8c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.skill-category li:before {
    content: '✓';
    color: #2a4b8c;
    font-weight: bold;
    margin-right: 10px;
}

/* Portfolio Section */
/* ============================
   MODERN PORTFOLIO SECTION
   ============================ */

.portfolio-modern {
    padding: 100px 0;
    background: #f0f4ff;
}

.portfolio-modern h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a6f;
    margin-bottom: 50px;
}

.portfolio-grid-modern {
    display: grid;
    gap: 35px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.portfolio-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    border-top: 6px solid #2a4b8c;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Improved Project Logo Layout */
.portfolio-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;

    /* New improvements */
    padding: 10px;
    background: #f4f6ff;
    border-radius: 12px;
    display: block;
    margin: 0 auto 18px auto;
    border: 1px solid #e2e6f3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


.portfolio-card h3 {
    font-size: 1.5rem;
    color: #2a4b8c;
    font-weight: bold;
    margin-bottom: 8px;
}

.portfolio-role {
    color: #444;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-card ul {
    margin-left: 20px;
}

.portfolio-card ul li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

/* Make project cards clickable (for selected ones) */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.more-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #2a4b8c;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.card-link:hover .more-text {
    opacity: 1;
}





/* ============================
   RESPONSIVE DESIGN
   ============================ */

@media (max-width: 480px) {
    .portfolio-card {
        padding: 20px;
    }

    .portfolio-card h3 {
        font-size: 1.3rem;
    }

    .portfolio-card ul li {
        font-size: 0.95rem;
    }
}


/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.contact-content {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: #2a4b8c;
    width: 24px;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a4b8c;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #f0f2f5;
    color: #555;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #2a4b8c;
    color: white;
    transform: translateY(-3px);
}

.cv-download-contact {
    margin: 30px 0;
}

/* Footer */
footer {
    background-color: #1e3a6f;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   FLOWISE CHATBOT - ENHANCED STYLES
   ========================================================= */

/* Flowise Chatbot Container */
#flowise-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Flowise Chatbot Iframe Styling */
#flowise-chatbot iframe {
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(42, 75, 140, 0.25) !important;
    border: none !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Enhanced Chatbot Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a4b8c 0%, #1e3a6f 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(42, 75, 140, 0.4),
                0 0 0 0 rgba(42, 75, 140, 0.5);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.chatbot-toggle:hover {
    background: linear-gradient(135deg, #1e3a6f 0%, #2a4b8c 100%);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 75, 140, 0.5),
                0 0 0 8px rgba(42, 75, 140, 0.1);
}


.chatbot-toggle:active {
    transform: scale(0.95);
}   

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(42, 75, 140, 0.4),
                    0 0 0 0 rgba(42, 75, 140, 0.5);
    }
    50% {
        box-shadow: 0 6px 20px rgba(42, 75, 140, 0.6),
                    0 0 0 10px rgba(42, 75, 140, 0);
    }
}
