/* --- Root Variables & Reset --- */
:root {
    --primary-color: #0284c7; /* Professional Corporate Sky Blue */
    --primary-dark: #0369a1;
    --secondary-color: #f59e0b; /* Amber Accent */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --container-max: 1140px; 
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px; /* Reduced base font size for professional look */
    display: flex; flex-direction: column; min-height: 100vh;
}

/* --- Header & Navigation --- */
.header { 
    background: var(--bg-card); 
    border-bottom: 1px solid var(--border-color); 
    position: sticky; top: 0; z-index: 1000; 
    box-shadow: var(--shadow-sm); 
}
.header-container { 
    max-width: var(--container-max); margin: 0 auto; padding: 12px 20px; 
    display: flex; justify-content: space-between; align-items: center; 
}
.logo-container { display: flex; align-items: center; gap: 12px; }
.logo { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--border-color); padding: 2px;}
.brand-text h1 { font-size: 1.3rem; color: var(--primary-color); font-weight: 700; line-height: 1.1; letter-spacing: -0.5px;}
.tagline { font-size: 0.75rem; color: var(--text-muted); font-weight: 500;}

.navbar { display: flex; align-items: center; gap: 20px;}
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { 
    text-decoration: none; color: var(--text-main); font-weight: 500; 
    font-size: 0.95rem; transition: 0.2s ease; padding: 5px 0; 
    display: flex; align-items: center; gap: 6px;
}
.nav-links a i { font-size: 1rem; color: var(--text-muted); transition: 0.2s ease;}
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.nav-links a:hover i, .nav-links a.active i { color: var(--primary-color); }

.nav-login-btn { 
    background: #f0fdf4; color: #16a34a; border: 1px solid #22c55e; 
    padding: 8px 16px; border-radius: 6px; font-weight: 600; 
    cursor: pointer; transition: 0.2s ease; display: flex; align-items: center; gap: 6px; font-size: 0.9rem;
}
.nav-login-btn:hover { background: #22c55e; color: white; }

/* --- Layout --- */
#main-content { max-width: var(--container-max); margin: 0 auto; width: 100%; padding: 30px 20px; flex: 1; }
.page-section { display: none; animation: fadeIn 0.3s ease-out; }
.page-section.active-page { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.primary-btn { 
    background: var(--primary-color); color: white; border: none; padding: 12px 24px; 
    border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 600; 
    cursor: pointer; transition: 0.2s ease; display: inline-flex; align-items: center; gap: 8px;
}
.primary-btn:hover { background: var(--primary-dark); }

/* --- Hero Section --- */
.hero { 
    background: var(--bg-card); border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); padding: 60px 40px; box-shadow: var(--shadow-sm); 
}
.hero-content { max-width: 600px; }
.hero-badge { 
    display: inline-block; background: #fef3c7; color: #d97706; padding: 4px 12px; 
    border-radius: 20px; font-weight: 600; font-size: 0.8rem; margin-bottom: 15px;
}
.hero h2 { font-size: 2.2rem; margin-bottom: 15px; color: #0f172a; line-height: 1.2; font-weight: 800;}
.highlight { color: var(--primary-color); }
.hero p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 25px; line-height: 1.6;}
.badges { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap;}
.badges span { 
    background: #f1f5f9; color: var(--primary-dark); padding: 6px 12px; 
    border-radius: 6px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 6px;
}

/* --- Course Grid --- */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px;}
.section-header p { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px;}

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.course-card { 
    background: var(--bg-card); border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); padding: 25px; position: relative; 
    transition: 0.2s ease; cursor: pointer; box-shadow: var(--shadow-sm);
}
.course-card:hover { border-color: var(--primary-color); box-shadow: var(--shadow-md); transform: translateY(-2px);}
.course-card.popular { border-top: 4px solid var(--secondary-color); }
.badge-ribbon { 
    position: absolute; top: 12px; right: -6px; background: var(--secondary-color); 
    color: white; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; 
    border-radius: 3px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 4px;
}
.short-form { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; font-weight: 700;}
.toggle-icon { font-size: 1rem; color: #94a3b8; transition: transform 0.3s ease;}
.full-name { font-size: 1rem; color: #0f172a; font-weight: 600; margin-bottom: 8px;}
.duration { font-size: 0.9rem; color: var(--text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--border-color);}

.course-hidden-details { display: none; margin-top: 15px; animation: fadeIn 0.3s ease;}
.course-card.expanded .course-hidden-details { display: block; }
.course-card.expanded .toggle-icon { transform: rotate(180deg); color: var(--primary-color);}
.clean-list { list-style: none; }
.clean-list li { margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--text-main);}
.clean-list i { color: #10b981; margin-top: 3px; font-size: 1rem;}
.bonus-box { background: #fdfae8; border: 1px dashed #fbbf24; padding: 12px; border-radius: 6px; font-size: 0.9rem; margin-top: 15px; color: #b45309; font-weight: 600; display: flex; align-items: center; gap: 6px;}

/* --- Facilities Grid --- */
.facility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.facility-item { 
    display: flex; gap: 15px; background: var(--bg-card); padding: 20px; 
    border: 1px solid var(--border-color); border-radius: var(--radius-md); 
    align-items: flex-start; box-shadow: var(--shadow-sm); transition: 0.2s ease;
}
.facility-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-color);}
.fac-icon { background: #f0f9ff; width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;}
.fac-icon i { font-size: 1.4rem; color: var(--primary-color); }
.facility-item h4 { font-size: 1.05rem; margin-bottom: 5px; color: #0f172a; font-weight: 600;}
.facility-item p { font-size: 0.9rem; color: var(--text-muted); }

/* --- Contact Section --- */
.contact-layout { 
    display: flex; background: var(--bg-card); border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.contact-info-panel { flex: 1; background: var(--primary-dark); color: white; padding: 40px; }
.contact-info-panel h2 { margin-bottom: 15px; font-size: 1.8rem; font-weight: 700;}
.contact-info-panel p { font-size: 1rem; opacity: 0.9; }
.info-line { display: flex; gap: 12px; margin-top: 25px; font-size: 1rem; align-items: center; background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px;}
.info-line i { font-size: 1.2rem; color: #bae6fd;}

.contact-form-panel { flex: 1.5; padding: 40px; background: var(--white);}
.form-group { margin-bottom: 20px; }
.form-group label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 500; color: #334155; font-size: 0.95rem;}
.form-group label i { color: var(--primary-color); opacity: 0.7;}
.form-group input, .form-group textarea { 
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; 
    font-size: 0.95rem; background: #f8fafc; transition: 0.2s ease; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); background: white; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }
.email-input-wrapper { display: flex; gap: 10px; }
.email-input-wrapper input { flex: 1; }
.verify-btn { 
    background: white; border: 1px solid #10b981; color: #10b981; padding: 0 15px; 
    border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s ease; 
    display: flex; align-items: center; gap: 6px; font-size: 0.9rem;
}
.verify-btn:hover { background: #10b981; color: white;}

/* --- Small, Beautiful Chatbot UI --- */
.chatbot-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000;}
.chatbot-bubble { 
    background: var(--primary-color); color: white; border: none; padding: 12px 20px; 
    border-radius: 30px; font-size: 1rem; cursor: pointer; 
    box-shadow: var(--shadow-lg); display: flex; align-items: center; 
    gap: 8px; font-weight: 600; transition: 0.2s ease;
}
.chatbot-bubble:hover { transform: translateY(-3px); background: var(--primary-dark);}
.chatbot-window { 
    display: none; width: 330px; height: 500px; background: var(--bg-card); 
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); flex-direction: column; 
    position: absolute; bottom: 65px; right: 0; border: 1px solid var(--border-color); overflow: hidden;
}
.chatbot-window.open { display: flex; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background: var(--primary-dark); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.chat-title { font-weight: 600; font-size: 1rem; display: flex; gap: 8px; align-items: center;}
.chat-close { background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; opacity: 0.8;}
.chat-close:hover { opacity: 1;}
.chat-body { flex: 1; padding: 15px; overflow-y: auto; background: #f8fafc; display: flex; flex-direction: column; gap: 12px; font-size: 0.95rem;}
.msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; line-height: 1.4;}
.bot-msg { background: white; border: 1px solid var(--border-color); border-bottom-left-radius: 4px; align-self: flex-start; color: #1e293b;}
.user-msg { background: var(--primary-color); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.typing-indicator { display: flex; gap: 4px; background: white; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 12px; border-bottom-left-radius: 4px; width: fit-content; margin-left: 15px; align-items: center;}
.dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: blink 1.4s infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.chat-options { padding: 10px; background: white; border-top: 1px solid var(--border-color); display: flex; flex-wrap: wrap; gap: 6px;}
.chat-options button { background: #f1f5f9; border: 1px solid var(--border-color); padding: 6px 10px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; color: var(--text-main); transition: 0.2s ease;}
.chat-options button:hover { background: #e0f2fe; color: var(--primary-color); border-color: #bae6fd;}

/* Chat Input Area */
.chat-input-area { display: flex; border-top: 1px solid var(--border-color); background: white; padding: 10px;}
.chat-input-area input { flex: 1; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 0.9rem; outline: none;}
.chat-input-area input:focus { border-color: var(--primary-color); }
.chat-input-area button { background: none; border: none; color: var(--primary-color); font-size: 1.2rem; margin-left: 10px; cursor: pointer;}

/* --- Modals --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); display: none; align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(4px);}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
.modal-box { background: var(--bg-card); width: 90%; max-width: 420px; border-radius: var(--radius-lg); padding: 30px; position: relative; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); text-align: center;}
.close-modal { position: absolute; top: 15px; right: 15px; background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; color: var(--text-muted); cursor: pointer; transition: 0.2s ease;}
.close-modal:hover { background: #fee2e2; color: #ef4444;}

.ai-suggest-btn { background: #8b5cf6; color: white; border: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; margin-bottom: 15px; font-size: 0.95rem; transition: 0.2s ease;}
.ai-suggest-btn:hover { background: #7c3aed;}
.ai-header { margin-bottom: 20px; color: #6d28d9; }
.ai-header i { font-size: 2rem; margin-bottom: 10px; }
.ai-step p { font-size: 1.05rem; margin-bottom: 20px; color: #0f172a; font-weight: 600;}
.ai-opt-btn { width: 100%; background: #f8fafc; border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; margin-bottom: 10px; cursor: pointer; font-size: 0.95rem; transition: 0.2s ease; font-weight: 500;}
.ai-opt-btn:hover { border-color: #8b5cf6; background: #f5f3ff; color: #6d28d9;}

/* --- Developer ID Card (Fixed Overflow) --- */
.id-card-box { padding: 0; overflow: hidden; max-width: 350px;}
.id-header { height: 90px; background: var(--primary-dark); }
.id-profile { margin-top: -45px; display: flex; justify-content: center;}
.id-profile img { width: 90px; height: 90px; border-radius: 50%; border: 4px solid white; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: block;}
.id-details { padding: 20px;}
.id-details h2 { font-size: 1.4rem; margin-bottom: 5px; color: #0f172a;}
.designation { color: var(--primary-color); font-size: 0.95rem; font-weight: 600; margin-bottom: 15px;}
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px;}
.tech-stack span { background: #f1f5f9; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; color: #475569; border: 1px solid #e2e8f0;}
.id-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px;}
.id-socials a { color: var(--text-muted); font-size: 1.3rem; transition: 0.2s ease;}
.id-socials a:hover { color: var(--primary-color);}
.portfolio-btn { display: inline-flex; justify-content: center; gap: 8px; background: #0f172a; color: white; text-decoration: none; padding: 10px; border-radius: 6px; font-size: 0.95rem; font-weight: 600; width: 100%; transition: 0.2s ease;}
.portfolio-btn:hover { background: var(--primary-color);}

/* --- Responsive Footer --- */
.footer { background: white; border-top: 1px solid var(--border-color); padding: 50px 20px 20px; margin-top: auto; }
.footer-container { max-width: var(--container-max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center;}
.footer-top h3 { color: var(--primary-color); font-size: 1.5rem; margin-bottom: 10px; font-weight: 700;}
.footer-top p {font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px;}
.social-links { display: flex; gap: 12px; justify-content: center; margin-bottom: 30px;}
.social-links a { color: var(--text-main); background: #f8fafc; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.2s ease; font-size: 1.1rem; border: 1px solid #e2e8f0;}
.social-links a:hover { background: var(--primary-color); color: white; border-color: var(--primary-color);}
.footer-nav { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center;}
.footer-nav a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; font-weight: 500;}
.footer-nav a:hover { color: var(--primary-color);}
.footer-bottom { border-top: 1px solid var(--border-color); width: 100%; padding-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; color: var(--text-muted); font-size: 0.85rem;}
.dev-trigger-btn { background: none; border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; gap: 6px; font-size: 0.85rem;}
.dev-trigger-btn:hover { background: #f1f5f9; color: var(--primary-color);}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 12px; padding: 15px;}
    .hero { padding: 40px 20px; text-align: center; }
    .contact-layout { flex-direction: column; }
    .contact-info-panel, .contact-form-panel { padding: 30px 20px;}
    .chatbot-window { width: 90vw; right: 5vw; bottom: 80px; height: 450px;}
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px;}
}